/* ============================================================
   CIS Professional International Training Centre
   Special-Agent / Tactical Theme — Global Stylesheet
   ============================================================ */

:root {
  /* Core palette */
  --bg:        #0a0d12;
  --bg-2:      #0f141c;
  --surface:   #141b25;
  --surface-2: #1b2431;
  --line:      #26313f;
  --line-soft: #1c2532;

  /* Text */
  --text:      #e8ecf2;
  --muted:     #93a0b3;
  --dim:       #64707f;

  /* Accents */
  --gold:      #c8a24a;
  --gold-2:    #e3c877;
  --crimson:   #b0242c;
  --crimson-2: #d43a43;
  --steel:     #4a6079;

  /* Theme-dependent surfaces */
  --header-bg:    rgba(10,13,18,.82);
  --grid-line:    rgba(38,49,63,.25);
  --on-gold:      #10141a;
  --media-fade:   rgba(10,13,18,.55);
  --chip-solid:   rgba(10,13,18,.75);
  --media-stripe: rgba(255,255,255,.02);
  --glow-gold:    rgba(200,162,74,.06);
  --glow-steel:   rgba(74,96,121,.10);
  --logo-blend:   screen;   /* knocks the black background out of the dark-mode logo */

  --maxw: 1200px;
  --radius: 4px;
  --shadow: 0 20px 50px -20px rgba(0,0,0,.7);

  --f-display: "Oswald", "Noto Sans TC", system-ui, sans-serif;
  --f-cond:    "Barlow Condensed", "Noto Sans TC", system-ui, sans-serif;
  --f-body:    "Inter", "Noto Sans TC", system-ui, -apple-system, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* ---------- Light theme ---------- */
:root[data-theme="light"] {
  --bg:        #f4f6f9;
  --bg-2:      #ffffff;
  --surface:   #ffffff;
  --surface-2: #eceff4;
  --line:      #ccd4df;
  --line-soft: #e1e6ee;

  --text:      #101720;
  --muted:     #55606e;
  --dim:       #7d8894;

  /* Deeper gold so text/borders stay legible on white (AA contrast) */
  --gold:      #8a6a1a;
  --gold-2:    #a3821f;
  --crimson:   #96202a;
  --crimson-2: #b3262f;
  --steel:     #56708c;

  --header-bg:    rgba(255,255,255,.86);
  --grid-line:    rgba(90,110,135,.14);
  --on-gold:      #ffffff;
  --media-fade:   rgba(16,23,32,.30);
  --chip-solid:   rgba(255,255,255,.85);
  --media-stripe: rgba(16,23,32,.03);
  --glow-gold:    rgba(160,128,40,.10);
  --glow-steel:   rgba(80,110,145,.10);
  --logo-blend:   multiply; /* knocks the white background out of the light-mode logo */
  --shadow: 0 18px 40px -20px rgba(20,30,45,.30);
}

/* Traditional Chinese font swap for body when active */
html[lang="zh-Hant"] {
  --f-display: "Noto Sans TC", "Oswald", sans-serif;
  --f-cond:    "Noto Sans TC", "Barlow Condensed", sans-serif;
  --f-body:    "Noto Sans TC", "Inter", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
input, select, textarea, button { font: inherit; }

/* Respect iPhone notch / safe areas */
@supports (padding: max(0px)) {
  .wrap {
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
  }
}

/* Tactical grid / scanline backdrop */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 600px at 80% -10%, var(--glow-gold), transparent 60%),
    radial-gradient(900px 500px at -10% 100%, var(--glow-steel), transparent 55%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 75%);
  opacity: .5;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.1; letter-spacing: .5px; }
.eyebrow {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); display: inline-block; }

.section-title { font-size: clamp(1.8rem, 4vw, 2.9rem); text-transform: uppercase; }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-cond); font-size: 1.05rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 13px 26px; cursor: pointer; border: 1px solid transparent;
  transition: .25s ease; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: var(--gold-2); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-crimson { background: var(--crimson); color: #fff; }
.btn-crimson:hover { background: var(--crimson-2); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }

/* Brand logo — the JPEGs carry a solid black/white background, so we blend it
   away: `screen` drops black on the dark theme, `multiply` drops white on light. */
.brand-logo {
  width: 44px; height: 44px; flex: none;
  object-fit: contain;
  mix-blend-mode: var(--logo-blend);
  /* JPEG compression leaves the backdrop near-white / near-black rather than
     pure. Nudging contrast clips it to exactly #fff / #000 so the blend is
     invisible and no faint square shows behind the shield. */
  filter: contrast(1.12);
}
.logo-light { display: none; }
:root[data-theme="light"] .logo-dark { display: none; }
:root[data-theme="light"] .logo-light { display: block; }
.site-footer .brand-logo { width: 52px; height: 52px; }
.brand .brand-txt b { font-family: var(--f-display); letter-spacing: 2px; font-size: 1.05rem; text-transform: uppercase; }
.brand .brand-txt span { display: block; font-size: .62rem; letter-spacing: .28em; color: var(--muted); text-transform: uppercase; font-family: var(--f-mono); }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  font-family: var(--f-cond); font-size: 1.02rem; letter-spacing: .1em;
  text-transform: uppercase; padding: 8px 14px; color: var(--muted);
  position: relative; transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
  height: 2px; background: var(--gold);
}
.nav-actions { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  display: inline-flex; border: 1px solid var(--line); border-radius: 2px; overflow: hidden;
  font-family: var(--f-mono); font-size: .72rem;
}
.lang-toggle button {
  background: transparent; color: var(--muted); border: 0; cursor: pointer;
  padding: 7px 11px; letter-spacing: .1em; transition: .2s;
}
.lang-toggle button.active { background: var(--gold); color: var(--on-gold); font-weight: 700; }

/* Theme (dark/light) toggle */
.theme-toggle {
  width: 38px; height: 34px; flex: none;
  display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line); border-radius: 2px;
  color: var(--muted); cursor: pointer; transition: .2s; font-size: .95rem; line-height: 1;
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.menu-btn { display: none; background: transparent; border: 1px solid var(--line); color: var(--text); width: 42px; height: 42px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: clamp(70px, 12vw, 140px) 0 clamp(60px, 9vw, 110px);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.hero-inner { max-width: 780px; }
.hero h1 { font-size: clamp(2.5rem, 7vw, 5.2rem); text-transform: uppercase; margin: 18px 0; }
.hero h1 .hl { color: var(--gold); }
.hero .lead { font-size: 1.18rem; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero-meta { display: flex; gap: 40px; margin-top: 54px; flex-wrap: wrap; }
.hero-meta .stat b { font-family: var(--f-display); font-size: 2.4rem; color: var(--gold); display: block; line-height: 1; }
.hero-meta .stat span { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-family: var(--f-mono); }
.hero-meta .stat span.stat-red { color: var(--crimson); }

.hero-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-logo { display: flex; align-items: center; justify-content: center; position: relative; }
/* Same trick as .brand-logo: the JPEGs carry a solid black/white backdrop, so we
   blend it away rather than relying on alpha the JPEGs don't have. */
.hero-shield {
  width: 100%; max-width: 520px; height: auto;
  object-fit: contain;
  mix-blend-mode: var(--logo-blend);
  filter: contrast(1.12);
  /* Deliberately no z-index: it would create a stacking context and isolate the
     blend above, leaving the shield nothing to blend against. DOM order already
     paints the reticle behind, since both it and the images are positioned. */
  position: relative;
}
/* Reticle is centred on the shield rather than on the section. Sized in % so it
   keeps its ratio to the shield as the column narrows. */
.hero-logo .crosshair {
  left: 50%; right: auto; top: 50%;
  transform: translate(-50%, -50%);
  width: 116%; height: auto; aspect-ratio: 1 / 1;
}

.crosshair {
  position: absolute; right: -60px; top: 50%; transform: translateY(-50%);
  width: 460px; height: 460px; opacity: .22; pointer-events: none;
  border: 1px solid var(--gold); border-radius: 50%;
}
.crosshair::before, .crosshair::after {
  content: ""; position: absolute; background: var(--gold);
}
.crosshair::before { left: 50%; top: -30px; bottom: -30px; width: 1px; transform: translateX(-50%); }
.crosshair::after { top: 50%; left: -30px; right: -30px; height: 1px; transform: translateY(-50%); }

/* ---------- Sections ---------- */
section { padding: clamp(56px, 9vw, 100px) 0; }
.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head h2 { margin: 14px 0 12px; }

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

.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line-soft);
  padding: 30px;
  position: relative;
  transition: .3s ease;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}
.card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow); }
.card .ico {
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 1px solid var(--gold); color: var(--gold); margin-bottom: 18px;
  font-size: 1.3rem;
}
.card h3 { font-size: 1.25rem; text-transform: uppercase; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .96rem; }
.card .tag { position: absolute; top: 16px; right: 18px; font-family: var(--f-mono); font-size: .66rem; color: var(--dim); letter-spacing: .15em; }

/* ---------- Course cards ---------- */
.course-card {
  background: var(--surface); border: 1px solid var(--line-soft);
  display: flex; flex-direction: column; transition: .3s; position: relative;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.course-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.course-banner {
  height: 150px; position: relative; overflow: hidden;
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(45deg, rgba(200,162,74,.05) 0 10px, transparent 10px 20px),
    linear-gradient(135deg, var(--surface-2), var(--bg));
  border-bottom: 1px solid var(--line-soft);
}
/* Photo banner variant — real course imagery behind the level tag / number */
.course-banner.has-photo { padding: 0; }
.course-banner.has-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.9) contrast(1.03);
}
.course-banner.has-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,13,18,.30), rgba(10,13,18,.72));
}
.course-banner.has-photo .num,
.course-banner.has-photo .level,
.course-banner.has-photo .badge-tquk { position: relative; z-index: 2; }
.course-banner.has-photo .level { background: rgba(10,13,18,.6); }
.course-banner.has-photo .num { text-shadow: 0 3px 16px rgba(0,0,0,.85); }

.course-banner .num {
  font-family: var(--f-display); font-size: 3.4rem; color: var(--gold); opacity: .9;
  text-shadow: 0 4px 20px rgba(0,0,0,.5);
}
.course-banner .level {
  position: absolute; top: 12px; left: 12px; font-family: var(--f-mono);
  font-size: .64rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold); padding: 3px 8px;
}
.course-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.course-body h3 { font-size: 1.2rem; text-transform: uppercase; margin-bottom: 8px; }
.course-body p { color: var(--muted); font-size: .92rem; flex: 1; }
.course-meta { display: flex; gap: 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-soft); font-family: var(--f-mono); font-size: .72rem; color: var(--dim); }
.course-meta b { color: var(--gold); font-weight: 400; }

/* Course subtitle, spec rows, price */
.course-sub {
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 10px; display: block;
}
.course-specs { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); display: grid; gap: 8px; }
.spec { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: .84rem; }
.spec dt { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.spec dd { color: var(--text); text-align: right; }
.spec.price dd { font-family: var(--f-display); font-size: 1.5rem; color: var(--gold); line-height: 1; }
.course-incl { margin-top: 12px; font-size: .84rem; color: var(--muted); line-height: 1.5; }
/* Listing card "View Course" affordance */
.card-more {
  margin-top: 16px; font-family: var(--f-cond); font-size: .95rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--gold);
  align-self: flex-start; transition: gap .2s;
}
.course-card:hover .card-more { color: var(--gold-2); }

/* Language-scoped content (used where EN and ZH lists differ in length).
   `:root` raises specificity so these win over later `.chip-list { display:flex }`. */
:root .only-zh { display: none; }
html[lang="zh-Hant"] .only-en { display: none; }
html[lang="zh-Hant"] .only-zh { display: flex; }

/* ---------- PI program breakdown (course detail) ---------- */
.prog-req {
  color: var(--text); font-size: .95rem; margin-bottom: 20px;
  padding: 12px 16px; border-left: 3px solid var(--gold); background: var(--surface);
}
.prog-list { display: grid; gap: 16px; }
.prog-item {
  border: 1px solid var(--line-soft); background: var(--surface); padding: 22px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}
.prog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.prog-head h4 { font-size: 1.1rem; text-transform: uppercase; margin-bottom: 4px; }
.prog-sub { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.prog-price { font-family: var(--f-display); font-size: 1.4rem; color: var(--gold); white-space: nowrap; }
.prog-meta { display: block; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin: 12px 0 14px; }
.prog-note { margin-top: 14px; font-size: .86rem; color: var(--muted); line-height: 1.55; border-top: 1px solid var(--line-soft); padding-top: 12px; }
.sec-list { list-style: none; display: grid; gap: 12px; margin-top: 14px; }
.sec-list li { border-left: 2px solid var(--gold); padding: 2px 0 2px 14px; }
.sec-list .s-title { display: block; font-family: var(--f-cond); font-size: 1rem; letter-spacing: .05em; text-transform: uppercase; color: var(--text); }
.sec-list .s-detail { display: block; font-family: var(--f-mono); font-size: .78rem; letter-spacing: .03em; color: var(--gold); margin-top: 3px; }

/* ---------- Course detail page (course.html) ---------- */
.cd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.cd-media { position: sticky; top: 96px; }
.course-banner.cd-photo {
  height: auto; aspect-ratio: 4/3; border: 1px solid var(--line-soft);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.course-banner.cd-photo .num { font-size: 5rem; }
.cd-info h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); text-transform: uppercase; margin: 8px 0 16px; }
.cd-info .course-sub { font-size: .78rem; }
.cd-info .lead { margin-bottom: 24px; }
.cd-specs {
  border: 1px solid var(--line-soft); background: var(--surface);
  padding: 18px 20px; gap: 12px; margin-bottom: 26px;
}
.cd-block { margin-bottom: 24px; }
.cd-note { font-size: .9rem; color: var(--muted); line-height: 1.65; border-left: 3px solid var(--gold); background: var(--surface); padding: 12px 16px; }
.cd-block .scope-label { margin: 0 0 12px; }
.cd-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

@media (max-width: 860px) {
  .cd-grid { grid-template-columns: 1fr; gap: 30px; }
  .cd-media { position: static; }
  .course-banner.cd-photo { aspect-ratio: 16/10; }
}

/* Module schedule (PTBSD course) */
.module-list { list-style: none; display: grid; gap: 8px; margin-top: 12px; }
.module-list li { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.module-list li:last-child { border-bottom: 0; }
.module-list .m-name { font-family: var(--f-cond); font-size: .98rem; letter-spacing: .04em; text-transform: uppercase; color: var(--text); }
.module-list .m-dates { font-family: var(--f-mono); font-size: .82rem; color: var(--gold); white-space: nowrap; }
.module-note { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-top: 10px; }

.tier-list { list-style: none; display: grid; gap: 8px; margin-top: 14px; }
.tier-list li { display: flex; gap: 10px; color: var(--muted); font-size: .88rem; }
.tier-list li::before { content: "▸"; color: var(--gold); }
.badge-tquk {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  font-family: var(--f-mono); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase;
  background: var(--gold); color: var(--on-gold); padding: 4px 9px; font-weight: 700;
}

/* ---------- Accreditation / affiliation strip ---------- */
.accred-band { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--bg-2); }
.accred-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.accred-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
/* No plate or frame — each mark already ships on its own solid backdrop
   (TQUK white / EBSSA black / ACPMA blue), so the logo itself IS the tile.
   Rounded corners + a soft shadow make that read as intentional. */
.accred-plate {
  width: 100%; height: 150px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s ease;
}
.accred-item:hover .accred-plate { transform: translateY(-4px); }
/* Explicit px height keeps the three marks visually balanced; the global
   `img { height:auto }` would otherwise let the square logos overflow. */
.accred-plate img {
  height: 128px; width: auto; max-width: 100%; object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 26px -14px rgba(0,0,0,.55);
}
.accred-name { font-family: var(--f-cond); font-size: 1.02rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text); }
.accred-note { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-top: 4px; }

@media (max-width: 720px) {
  .accred-grid { grid-template-columns: 1fr; gap: 26px; }
  .accred-plate { height: 132px; }
  .accred-plate img { height: 116px; }
}

/* ---------- Service rows (blog page) ---------- */
.service-row { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-bottom: 70px; }
.service-row:nth-child(even) .service-media { order: 2; }
.service-media { position: relative; border: 1px solid var(--line); overflow: hidden; }
.service-media img { width: 100%; aspect-ratio: 3/2; object-fit: cover; filter: saturate(.85) contrast(1.05); }
.service-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 45%, var(--media-fade));
}
.service-media .corner { position: absolute; width: 22px; height: 22px; border: 2px solid var(--gold); z-index: 2; }
.service-media .corner.tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.service-media .corner.br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }
.service-num {
  position: absolute; top: 12px; right: 14px; z-index: 2;
  font-family: var(--f-mono); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold); padding: 3px 8px; background: var(--chip-solid);
}
.service-row h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); text-transform: uppercase; margin: 12px 0 14px; }
.scope-label { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--dim); margin: 22px 0 12px; display: block; }
.chip-list { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; }
.chip-list li {
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  padding: 7px 13px; font-size: .84rem; transition: .25s;
}
.chip-list li:hover { border-color: var(--gold); color: var(--gold); }

@media (max-width: 940px) {
  .service-row { grid-template-columns: 1fr; gap: 28px; margin-bottom: 54px; }
  .service-row:nth-child(even) .service-media { order: -1; }
}

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-media {
  aspect-ratio: 4/3; border: 1px solid var(--line);
  background:
    repeating-linear-gradient(0deg, var(--media-stripe) 0 2px, transparent 2px 4px),
    linear-gradient(135deg, var(--surface-2), var(--bg));
  position: relative; display: grid; place-items: center;
}
.split-media .badge {
  font-family: var(--f-display); text-transform: uppercase; letter-spacing: 3px;
  color: var(--gold); font-size: 1.4rem; text-align: center;
}
.split-media .corner { position: absolute; width: 22px; height: 22px; border: 2px solid var(--gold); }
.split-media .corner.tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.split-media .corner.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.split-media .corner.bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.split-media .corner.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }

/* Portrait variant: holds a real photo rather than the decorative badge, so it
   keeps the source image's own ratio instead of the default 4/3 — including
   at the breakpoints below, where the higher specificity here still wins. */
.split-media.portrait { aspect-ratio: 813 / 1125; }
.split-media.portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }

.check-list { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; color: var(--muted); }
.check-list li::before { content: "▸"; color: var(--gold); font-weight: 700; }

/* Biography variant: a headline entry with an optional detail line beneath. */
.bio-list li > span { display: grid; gap: 3px; }
.bio-list b { font-weight: 600; color: var(--text); }
.bio-list small { font-size: .84rem; color: var(--dim); line-height: 1.55; }

/* ---------- Stat strip ---------- */
.stat-strip { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--bg-2); }
.stat-strip .grid-4 { gap: 0; }
.stat-strip .stat { text-align: center; padding: 40px 20px; border-right: 1px solid var(--line-soft); }
.stat-strip .stat:last-child { border-right: 0; }
.stat-strip .stat b { font-family: var(--f-display); font-size: 2.8rem; color: var(--gold); display: block; }
.stat-strip .stat span { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-family: var(--f-mono); }

/* ---------- Blog ---------- */
.post-card { background: var(--surface); border: 1px solid var(--line-soft); transition: .3s; display: flex; flex-direction: column; }
.post-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.post-thumb { height: 180px; background: linear-gradient(135deg, var(--surface-2), var(--bg)); display: grid; place-items: center; border-bottom: 1px solid var(--line-soft); }
.post-thumb .ico { font-size: 2rem; color: var(--gold); opacity: .8; }
.post-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.post-body .date { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; color: var(--gold); text-transform: uppercase; }
.post-body h3 { font-size: 1.15rem; text-transform: uppercase; margin: 10px 0; }
.post-body p { color: var(--muted); font-size: .92rem; flex: 1; }
.post-body .read { margin-top: 16px; font-family: var(--f-cond); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.gallery-item {
  position: relative; overflow: hidden; cursor: pointer; margin: 0;
  border: 1px solid var(--line-soft); background: var(--surface);
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease, filter .3s ease; filter: saturate(.9);
}
.gallery-item:hover img { transform: scale(1.06); filter: saturate(1.05); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 26px 16px 14px; color: #fff;
  font-family: var(--f-cond); font-size: 1rem; letter-spacing: .06em; text-transform: uppercase;
  background: linear-gradient(180deg, transparent, rgba(10,13,18,.85));
  transform: translateY(6px); opacity: .92; transition: .3s ease;
}
.gallery-item:hover figcaption { transform: none; opacity: 1; }
.gallery-item::after {
  content: "⤢"; position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 30px; height: 30px; display: grid; place-items: center;
  color: var(--gold); border: 1px solid var(--gold); background: rgba(10,13,18,.55);
  font-size: .9rem; opacity: 0; transition: opacity .3s;
}
.gallery-item:hover::after { opacity: 1; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center;
  background: rgba(6,9,13,.92); backdrop-filter: blur(6px); padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border: 1px solid var(--line); box-shadow: var(--shadow); }
.lightbox-close {
  position: absolute; top: 20px; right: 24px; z-index: 2;
  width: 46px; height: 46px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--text);
  font-size: 1.6rem; line-height: 1; transition: .2s;
}
.lightbox-close:hover { border-color: var(--gold); color: var(--gold); }

@media (max-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (max-width: 460px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ---------- Store ---------- */
.product-card { background: var(--surface); border: 1px solid var(--line-soft); transition: .3s; display: flex; flex-direction: column; }
.product-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.product-img { height: 210px; display: grid; place-items: center; background: linear-gradient(135deg, var(--surface-2), var(--bg)); border-bottom: 1px solid var(--line-soft); font-size: 2.6rem; color: var(--gold); position: relative; }
.product-img .badge { position: absolute; top: 12px; right: 12px; background: var(--crimson); color: #fff; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .12em; padding: 3px 8px; text-transform: uppercase; }
.product-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.product-body h3 { font-size: 1.05rem; text-transform: uppercase; margin-bottom: 6px; }
.product-body .cat { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; color: var(--dim); text-transform: uppercase; }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.product-foot .price { font-family: var(--f-display); font-size: 1.4rem; color: var(--gold); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  background: var(--bg); border: 1px solid var(--line); color: var(--text);
  padding: 12px 14px; font-family: var(--f-body); font-size: 16px; border-radius: 2px;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { min-height: 130px; resize: vertical; }

/* ---------- Info tiles (contact) ---------- */
.info-tile { border: 1px solid var(--line-soft); background: var(--surface); padding: 26px; display: flex; gap: 16px; }
.info-tile .ico { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 1px solid var(--gold); color: var(--gold); }
.info-tile h4 { text-transform: uppercase; font-size: 1rem; margin-bottom: 4px; }
.info-tile p { color: var(--muted); font-size: .92rem; }
.info-tile p b { color: var(--text); font-weight: 600; }
a.info-tile { transition: border-color .25s, transform .25s; }
a.info-tile:hover { border-color: var(--gold); transform: translateY(-2px); }
.info-wa { border-color: rgba(37,211,102,.4); }
.info-wa .ico { border-color: #25d366; color: #25d366; }
.info-wa:hover { border-color: #25d366; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--surface-2), var(--bg-2)); border: 1px solid var(--line); text-align: center; padding: 64px 30px; position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 3rem); text-transform: uppercase; margin-bottom: 14px; }
.cta-band .lead { margin: 0 auto 28px; }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--line-soft); position: relative; }
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); text-transform: uppercase; margin: 16px 0 12px; }
.breadcrumb { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; color: var(--dim); text-transform: uppercase; }
.breadcrumb b { color: var(--gold); font-weight: 400; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); background: var(--bg-2); padding: 60px 0 30px; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h5 { font-family: var(--f-cond); text-transform: uppercase; letter-spacing: .14em; color: var(--text); font-size: 1rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer a { color: var(--muted); font-size: .92rem; }
.site-footer a:hover { color: var(--gold); }
.footer-brand p { color: var(--muted); font-size: .92rem; margin-top: 14px; max-width: 34ch; }
.footer-bottom { border-top: 1px solid var(--line-soft); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--dim); font-size: .82rem; font-family: var(--f-mono); letter-spacing: .06em; }
.footer-credit { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); text-align: center; font-family: var(--f-mono); font-size: .76rem; letter-spacing: .06em; color: var(--dim); display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.footer-credit a { color: var(--muted); transition: color .2s; }
.footer-credit a:hover { color: var(--gold); }

/* ---------- Footer social ---------- */
.social { margin-top: 26px; }
.social-label {
  display: block; margin-bottom: 12px;
  font-family: var(--f-mono); font-size: .66rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--dim);
}
.social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.social-link {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px 9px 13px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--f-cond); font-size: .88rem;
  letter-spacing: .13em; text-transform: uppercase;
  /* Same bevelled corners as .btn, so the tiles read as part of the system */
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  transition: color .22s ease, border-color .22s ease, background .22s ease, transform .22s ease;
}
.social-link svg { width: 15px; height: 15px; flex: none; transition: transform .22s ease; }
.social-link:hover {
  color: var(--gold); border-color: var(--gold);
  background: var(--surface-2); transform: translateY(-2px);
}
.social-link:hover svg { transform: scale(1.08); }
.social-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

/* Large desktop / small laptop */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* iPad landscape & below — collapse to hamburger nav */
@media (max-width: 1000px) {
  .nav-links, .nav-actions .desktop-only { display: none; }
  .menu-btn { display: grid; place-items: center; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 12px 24px calc(16px + env(safe-area-inset-bottom)); gap: 2px;
    box-shadow: var(--shadow);
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .nav-links.open a { width: 100%; padding: 14px 4px; border-bottom: 1px solid var(--line-soft); }
  .nav-links.open a.active::after { display: none; }
}

/* iPad portrait / general tablet */
@media (max-width: 940px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .hero-split { grid-template-columns: 1fr; gap: 34px; }
  .hero-shield { max-width: 260px; }
  .split-media { aspect-ratio: 16/7; }
  .stat-strip .stat { border-bottom: 1px solid var(--line-soft); }
  .crosshair { display: none; }
}

/* Large phones / small tablets */
@media (max-width: 720px) {
  .grid-3, .grid-4, .grid-2, .form-grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-strip .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-strip .stat:nth-child(2) { border-right: 0; }
  .split-media { aspect-ratio: 16/9; }
  .cta-band { padding: 48px 22px; }
  .info-tile { padding: 20px; }
}

/* iPhone & small phones */
@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .nav { height: 64px; gap: 10px; }
  .nav-links.open { top: 64px; }
  .brand .brand-txt span { display: none; }
  .lang-toggle button { padding: 8px 10px; }
  .hero { padding: 56px 0 48px; }
  .hero-meta { gap: 22px; }
  .hero-meta .stat b { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .btn { width: 100%; justify-content: center; }
  .hero-cta, .cta-band .btn, .form-actions { width: 100%; }
  .card, .course-card, .product-card, .post-card { clip-path: none; }
}

/* Coarse-pointer touch targets (phones/tablets) */
@media (hover: none) {
  .nav-links a, .btn, .lang-toggle button, .site-footer a { min-height: 44px; }
  .card:hover, .course-card:hover, .product-card:hover, .post-card:hover { transform: none; }
}
