/* =====================================================================
   SCS Invictus South Africa — Premium corporate site
   Hand-written CSS · design tokens · no framework
   ===================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --brand:        #E5871A;
  --brand-strong: #C76E0C;
  --brand-deep:   #A6580A;
  --brand-tint:   #FCEFDD;
  --brand-glow:   rgba(229, 135, 26, 0.40);

  --ink:        #16130F;
  --ink-soft:   #3D372F;
  --muted:      #6B6357;
  --muted-2:    #8A8275;
  --line:       #E8E2D8;
  --line-soft:  #F1ECE3;
  --paper:      #FFFFFF;
  --paper-2:    #FAF7F1;
  --paper-3:    #F4EFE6;

  --night:      #14110D;
  --night-2:    #1E1A14;
  --night-line: rgba(255,255,255,0.10);
  --on-night:   #F4EEE4;
  --on-night-mut: #B3A998;

  --font-display: "Poppins", "Noto Sans JP", system-ui, sans-serif;
  --font-body:    "Poppins", "Noto Sans JP", system-ui, sans-serif;

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(6rem, 11vw, 11.5rem);
  --radius: 4px;
  --radius-lg: 10px;
  --radius-xl: 18px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px rgba(22,19,15,0.04);
  --shadow:    0 18px 44px -26px rgba(22,19,15,0.32);
  --shadow-lg: 0 44px 90px -42px rgba(22,19,15,0.5);
  --glass-shadow: 0 24px 60px -28px rgba(0,0,0,0.55);
}

/* ---------- 2. Reset & base ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

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

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

h1,h2,h3,h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand-strong); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 300;
  background: #fff; color: var(--ink); padding: .7rem 1.1rem; border-radius: 4px;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- 3. Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand-strong);
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--brand); display: inline-block; }
.eyebrow--center { justify-content: center; }
.eyebrow.on-dark { color: var(--brand); }

.section-head { max-width: 680px; margin-bottom: clamp(2.75rem, 5vw, 4.5rem); }
.section-head.is-center { margin-inline: auto; text-align: center; }
.section-title { font-size: clamp(1.55rem, 2.8vw, 2.3rem); margin-top: 0.85rem; letter-spacing: -0.015em; }
.section-intro { margin-top: 1.1rem; font-size: 1.02rem; color: var(--muted); max-width: 60ch; }
.is-center .section-intro { margin-inline: auto; }

/* ---------- 4. Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.6rem; font-family: var(--font-display); font-weight: 600;
  font-size: 0.95rem; letter-spacing: 0.01em; border: 1px solid transparent; border-radius: var(--radius);
  transition: transform .35s var(--ease), background-color .3s var(--ease),
              color .3s var(--ease), border-color .3s var(--ease), box-shadow .35s var(--ease);
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--lg { padding: 0.9rem 1.65rem; font-size: 0.92rem; }
.btn--pill { border-radius: 999px; }

.btn--primary {
  color: #fff;
  background-image: linear-gradient(120deg, var(--brand-strong) 0%, var(--brand) 45%, #F4A23C 100%);
  background-size: 180% 100%; background-position: 0% 0;
  box-shadow: 0 14px 30px -14px var(--brand-glow);
  transition: transform .35s var(--ease), background-position .6s var(--ease), box-shadow .35s var(--ease);
}
.btn--primary:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 24px 48px -16px var(--brand-glow); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }

.btn--on-dark { color: var(--on-night); border-color: rgba(255,255,255,0.30); }
.btn--on-dark:hover { border-color: #fff; background: rgba(255,255,255,0.08); transform: translateY(-2px); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; color: var(--brand-strong);
}
.link-arrow svg { width: 1em; height: 1em; transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* =====================================================================
   5. Header — top bar + sticky nav
   ===================================================================== */
.topbar { background: var(--night); color: var(--on-night-mut); font-size: 0.82rem; border-bottom: 1px solid var(--night-line); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; flex-wrap: wrap; }
.topbar__contacts { display: flex; align-items: center; gap: 1.15rem; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 0.5rem; }
.topbar__item svg { width: 14px; height: 14px; color: var(--brand); flex: none; }
.topbar a.topbar__item:hover { color: var(--on-night); }
.topbar__sep { width: 1px; height: 14px; background: var(--night-line); display: inline-block; }

.lang { display: inline-flex; align-items: center; border: 1px solid var(--night-line); border-radius: 999px; padding: 2px; }
.lang__btn {
  color: var(--on-night-mut); font-family: var(--font-display); font-weight: 600; font-size: 0.74rem;
  letter-spacing: 0.06em; padding: 4px 11px; border-radius: 999px;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.lang__btn[aria-pressed="true"] { background: var(--brand); color: #fff; }
.lang__btn:not([aria-pressed="true"]):hover { color: var(--on-night); }

.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .35s var(--ease), border-color .35s var(--ease), background-color .35s var(--ease);
}
.nav.is-stuck { box-shadow: 0 10px 30px -22px rgba(22,19,15,0.5); border-bottom-color: var(--line); background: rgba(255,255,255,0.94); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 44px; width: auto; }

.nav__menu { display: flex; align-items: center; gap: 0.35rem; }
.nav__link {
  position: relative; font-family: var(--font-display); font-weight: 500; font-size: 0.95rem;
  color: var(--ink-soft); padding: 0.55rem 0.9rem; border-radius: var(--radius); transition: color .25s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.35rem; height: 2px;
  background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--ink); }

.nav__cta { display: flex; align-items: center; gap: 0.75rem; }
.nav__cta .btn--primary { padding: 0.6rem 1.25rem; font-size: 0.85rem; box-shadow: 0 10px 22px -14px var(--brand-glow); }
.nav__toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; position: relative; }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 50%; width: 20px; height: 2px; background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s var(--ease); transform: translateX(-50%);
}
.nav__toggle span { top: 50%; transform: translate(-50%,-50%); }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: translateX(-50%) rotate(45deg); top: 0; }
.nav.is-open .nav__toggle span::after { transform: translateX(-50%) rotate(-45deg); top: 0; }

/* =====================================================================
   6. Hero
   ===================================================================== */
.hero {
  position: relative; isolation: isolate; background: var(--night); color: #fff; overflow: hidden;
  min-height: clamp(560px, 88vh, 880px); display: flex; align-items: center;
  padding-block: clamp(5rem, 10vw, 8rem);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover;
  transform-origin: 60% 40%;
  animation: kenburns 26s var(--ease) infinite alternate;
}
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.16); } }

.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(15,12,9,0.92) 0%, rgba(15,12,9,0.72) 42%, rgba(15,12,9,0.40) 100%),
    linear-gradient(180deg, rgba(15,12,9,0.55) 0%, rgba(15,12,9,0.30) 45%, rgba(15,12,9,0.85) 100%);
}
.hero__glow {
  position: absolute; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 22% 30%, rgba(229,135,26,0.28), transparent 60%),
    radial-gradient(45% 55% at 80% 70%, rgba(229,135,26,0.16), transparent 60%);
  animation: heroglow 16s var(--ease) infinite alternate;
}
@keyframes heroglow {
  0%   { transform: translate3d(0,0,0) scale(1); opacity: 0.9; }
  100% { transform: translate3d(3%, -3%, 0) scale(1.12); opacity: 1; }
}
.hero__inner { max-width: 760px; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display);
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #fff;
  padding: 0.5rem 1rem; border: 1px solid rgba(255,255,255,0.28); border-radius: 999px; background: rgba(255,255,255,0.06);
}
.hero h1 {
  color: #fff; font-weight: 700; font-size: clamp(1.95rem, 4.4vw, 3.3rem); line-height: 1.1;
  margin-top: 1.5rem; max-width: 18ch; letter-spacing: -0.025em;
}
.hero h1 .hero__sub { color: #fff; font-weight: 500; opacity: 0.96; white-space: nowrap; }
/* JA hero: keep the specified 3 line breaks on every screen; each line stays whole, no wrapping */
html[lang='ja'] .hero h1 { max-width: none; }   /* let each forced line sit on one line (capped by .hero__inner) */
.hero h1 .hero-br-ja { display: inline; }        /* breaks stay active on desktop AND mobile */
/* On phones, shrink the heading just enough that the longest line fits on one line and never wraps */
@media (max-width: 620px) {
  html[lang='ja'] .hero h1 { font-size: clamp(1.1rem, 7vw, 1.85rem); white-space: nowrap; }
}
.hero__lead {
  margin-top: 1.4rem; font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: rgba(255,255,255,0.9);
  max-width: 50ch; line-height: 1.55; font-weight: 400;
}
.hero__actions { margin-top: 2.25rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__scrollcue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 1; }
.hero__scrollcue i { width: 24px; height: 38px; border: 1.5px solid rgba(255,255,255,0.4); border-radius: 13px; display: block; position: relative; }
.hero__scrollcue i::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 8px; background: var(--brand);
  border-radius: 2px; transform: translateX(-50%); animation: scrolldot 1.8s var(--ease) infinite;
}
@keyframes scrolldot { 0%{opacity:0;transform:translate(-50%,0)} 40%{opacity:1} 80%{opacity:0;transform:translate(-50%,12px)} }

/* =====================================================================
   7. Our Team / Group — borderless minimalist
   ===================================================================== */
.group { background: var(--paper); }
.group__grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.group__copy .section-title { font-size: clamp(1.5rem, 2.6vw, 2.15rem); line-height: 1.18; }
.group p { font-size: 1.02rem; }
.group p + p { margin-top: 1.15rem; }
.group .link-arrow { margin-top: 2rem; }
.group__media {
  position: relative; margin: 0; border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: box-shadow .5s var(--ease), transform .5s var(--ease);
}
.group__media:hover { transform: translateY(-4px); box-shadow: 0 40px 70px -34px rgba(229,135,26,0.40), var(--shadow-lg); }
.group__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/11; transition: transform 1.4s var(--ease); }
.group__media:hover img { transform: scale(1.06); }
.group__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,17,13,0) 45%, rgba(20,17,13,0.5) 100%);
}
.group__badge {
  position: absolute; left: 1.4rem; bottom: 1.4rem; z-index: 1;
  display: flex; align-items: center; gap: 0.9rem;
  background: rgba(20,17,13,0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.18); border-radius: 14px;
  padding: 0.9rem 1.25rem; color: #fff; max-width: 280px;
}
.group__badge strong { font-family: var(--font-display); font-size: 2.1rem; line-height: 1; }
.group__badge strong span { color: var(--brand); }
.group__badge > span { font-size: 0.84rem; color: rgba(255,255,255,0.85); line-height: 1.3; }

/* =====================================================================
   8. Stats — bg image + glass cards
   ===================================================================== */
.stats { background: var(--night); color: var(--on-night); overflow: hidden; position: relative; }
.stats__bg { position: absolute; inset: 0; z-index: 0; }
.stats__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.stats::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(90% 120% at 15% 0%, rgba(229,135,26,0.20), transparent 50%),
    linear-gradient(180deg, rgba(14,11,8,0.82), rgba(14,11,8,0.92));
}
.stats .container { position: relative; z-index: 1; }
.stats .section-head { margin-bottom: clamp(2.5rem, 4vw, 3.5rem); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.stat.glass {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3vw, 2.75rem); box-shadow: var(--glass-shadow);
  transition: transform .45s var(--ease), border-color .45s var(--ease), background-color .45s var(--ease);
}
.stat.glass:hover { transform: translateY(-6px); border-color: rgba(229,135,26,0.5); background: rgba(255,255,255,0.10); }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3.1vw, 2.5rem); color: #fff; line-height: 1; display: flex; align-items: baseline; gap: 2px; }
.stat__num .suffix { color: var(--brand); }
.stat__label { margin-top: 0.75rem; color: var(--on-night-mut); font-size: 0.95rem; }

/* =====================================================================
   9. Worldwide reach — animated globe
   ===================================================================== */
.reach { background: var(--paper-2); color: var(--ink-soft); overflow: hidden; }
.reach__lights {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(42% 55% at 82% 32%, rgba(229,135,26,0.07), transparent 62%);
}
.reach .container { position: relative; z-index: 1; }
.reach__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.reach__copy .section-intro { margin-top: 1.25rem; }
.reach__note { margin-top: 1.1rem; font-size: 0.95rem; color: var(--muted); max-width: 52ch; }
.reach__locations { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; }
.reach__locations li {
  font-family: var(--font-display); font-weight: 500; font-size: 0.82rem; color: var(--ink-soft);
  padding: 0.4rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  transition: border-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.reach__locations li:hover { border-color: var(--brand); color: var(--brand-strong); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.reach__globe { display: flex; justify-content: center; align-items: center; }
/* Animated globe relocated into the "By the numbers" section (behind the glass stat cards) */
.stats__globe { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(580px, 78%); height: auto; aspect-ratio: 1 / 1; display: block; z-index: 1; opacity: 0.72; pointer-events: none; filter: drop-shadow(0 26px 50px rgba(0,0,0,0.45)); }
@media (max-width: 700px) { .stats__globe { width: min(360px, 88%); opacity: 0.42; } }
/* Desktop-only line breaks (e.g. JP mission) — collapse on small screens so text reflows */
.br-d { display: inline; }
@media (max-width: 600px) { .br-d { display: none; } }
.reach__legend { display: flex; gap: 1.75rem; margin-top: 1.75rem; flex-wrap: wrap; }
.reach__legend span { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.86rem; color: var(--muted); }
.reach__legend i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.reach__legend .dot-hub { background: var(--ink); box-shadow: 0 0 0 3px rgba(229,135,26,0.45); }
.reach__legend .dot-node { background: var(--brand); }

/* =====================================================================
   10. Accreditations — marquee
   ===================================================================== */
.accred { background: var(--paper); }
.logos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; align-items: stretch; }
.logo-cell {
  display: grid; place-items: center; padding: 2rem 1.25rem; min-height: 130px;
  border: 1px solid var(--line-soft); border-radius: var(--radius-lg); background: #fff;
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease);
}
.logo-cell:hover { border-color: var(--line); box-shadow: var(--shadow); transform: translateY(-3px); }
.logo-cell img { max-height: clamp(34px, 4.5vw, 50px); height: auto; width: auto; max-width: 100%; object-fit: contain; opacity: 0.85; }
.logo-cell--saica img { max-height: clamp(52px, 6.8vw, 78px); }
.marquee {
  margin-top: clamp(1rem, 3vw, 2rem); overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; align-items: center; gap: clamp(3rem, 7vw, 6rem); width: max-content; animation: marquee 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { flex: none; display: grid; place-items: center; }
.marquee__item img {
  height: clamp(34px, 4.5vw, 50px); width: auto; opacity: 0.55; filter: grayscale(1);
  transition: opacity .4s var(--ease), filter .4s var(--ease), transform .4s var(--ease);
}
.marquee__item img:hover { opacity: 1; filter: grayscale(0); transform: translateY(-3px) scale(1.04); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* =====================================================================
   11. Services — image cards
   ===================================================================== */
.services { background: var(--paper-2); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.svc {
  display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius-xl);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.svc:hover { transform: translateY(-8px); box-shadow: 0 34px 60px -32px rgba(229,135,26,0.45), var(--shadow-lg); }
.svc__media { position: relative; display: block; aspect-ratio: 16/11; overflow: hidden; cursor: pointer; }
.svc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.svc:hover .svc__media img { transform: scale(1.07); }
.svc__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,17,13,0) 40%, rgba(20,17,13,0.55) 100%);
}
.svc__num {
  position: absolute; left: 1.1rem; top: 1.1rem; z-index: 1;
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em;
  color: #fff; background: rgba(229,135,26,0.92); padding: 0.4rem 0.7rem; border-radius: 6px;
}
.svc__body { padding: clamp(1.5rem, 2.4vw, 2rem); display: flex; flex-direction: column; flex: 1; }
.svc__body h3 { font-size: 1.32rem; }
.svc__body p { margin-top: 0.85rem; color: var(--muted); font-size: 0.98rem; flex: 1; }
.svc__body .link-arrow { margin-top: 1.4rem; }

/* =====================================================================
   12. Insights
   ===================================================================== */
.insights { background: var(--paper-2); }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.post { background: var(--paper); border-radius: var(--radius-xl); overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.post:hover { transform: translateY(-8px); box-shadow: 0 34px 60px -32px rgba(229,135,26,0.40), var(--shadow-lg); }
.post__img { aspect-ratio: 16/10; overflow: hidden; display: block; }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post:hover .post__img img { transform: scale(1.06); }
.post__body { padding: 1.6rem 1.7rem 1.85rem; display: flex; flex-direction: column; flex: 1; }
.post__cat {
  align-self: flex-start; font-family: var(--font-display); font-weight: 600; font-size: 0.72rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-strong); background: var(--brand-tint);
  padding: 0.35rem 0.7rem; border-radius: 999px;
}
.post__meta { margin-top: 1rem; font-size: 0.8rem; color: var(--muted-2); }
.post h3 { font-size: 1.2rem; margin-top: 0.5rem; }
.post p { margin-top: 0.65rem; color: var(--muted); font-size: 0.95rem; flex: 1; }
.post .link-arrow { margin-top: 1.25rem; font-size: 0.88rem; }

/* =====================================================================
   13. CTA section (replaces Contact)
   ===================================================================== */
.cta { background: var(--night); color: #fff; overflow: hidden; text-align: center; }
.cta__bg { position: absolute; inset: 0; z-index: 0; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.42; transform: scale(1.05); }
.cta::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(80% 100% at 50% 0%, rgba(229,135,26,0.22), transparent 55%),
    linear-gradient(180deg, rgba(14,11,8,0.78), rgba(14,11,8,0.9));
}
.cta__inner { position: relative; z-index: 1; max-width: 760px; margin-inline: auto; }
.cta__title { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-top: 0.9rem; }
.cta__text { color: rgba(255,255,255,0.85); margin-top: 1.1rem; font-size: 1.02rem; max-width: 54ch; margin-inline: auto; }
.cta__actions { margin-top: 2.5rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* =====================================================================
   14. Footer
   ===================================================================== */
.footer { background: #0E0C09; color: var(--on-night-mut); padding-block: clamp(3.5rem, 6vw, 5rem) 1.75rem; }
.footer__top { display: grid; grid-template-columns: 1.7fr 1fr 0.9fr 1.5fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.footer__brand img { height: 38px; margin-bottom: 1.15rem; }
.footer__brand p { max-width: 34ch; font-size: 0.9rem; line-height: 1.6; margin-bottom: 1.5rem; }
.footer h4 { color: #fff; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1.2rem; }
.footer__links { display: grid; gap: 0.7rem; }
.footer__links a { font-size: 0.92rem; transition: color .2s var(--ease); }
.footer__links a:hover { color: var(--brand); }

/* contact list with icons */
.footer__contact { list-style: none; display: grid; gap: 0.9rem; margin: 0; padding: 0; }
.footer__contact li { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.9rem; line-height: 1.45; }
.footer__contact a, .footer__contact span { color: var(--on-night-mut); transition: color .2s var(--ease); }
.footer__contact a:hover { color: var(--brand); }
.footer__ic { flex: none; width: 18px; height: 18px; color: var(--brand); margin-top: 1px; }
.footer__ic svg { width: 100%; height: 100%; display: block; }

/* follow us */
.footer__social { display: flex; gap: 0.6rem; }
.footer__soc {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff;
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.footer__soc svg { width: 20px; height: 20px; }
.footer__soc:hover { background: var(--brand-strong); transform: translateY(-2px); }

/* newsletter */
.footer__news { display: grid; gap: 0.7rem; }
.footer__news input {
  width: 100%; padding: 0.8rem 0.95rem; border-radius: 10px; font: inherit; font-size: 0.9rem;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); color: #fff;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.footer__news input::placeholder { color: rgba(255,255,255,0.45); }
.footer__news input:focus { outline: none; border-color: var(--brand); background: rgba(255,255,255,0.09); }
.footer__news button { width: 100%; justify-content: center; margin-top: 0.15rem; }
.footer__news-ok { font-size: 0.85rem; color: var(--brand); margin: 0.2rem 0 0; }

.footer__bottom {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.5rem; border-top: 1px solid var(--night-line);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.82rem;
}

/* =====================================================================
   15. Inquiry modal — glassmorphism
   ===================================================================== */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.is-open { display: block; }
.modal__backdrop {
  position: absolute; inset: 0; background: rgba(10,8,6,0.55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .4s var(--ease);
}
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__dialog {
  position: relative; z-index: 1; width: min(640px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem); overflow-y: auto; margin: 1rem auto; top: 50%; transform: translateY(-50%) scale(0.96);
  background: linear-gradient(165deg, rgba(32,27,20,0.92), rgba(20,17,13,0.92));
  backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius-xl);
  box-shadow: 0 50px 100px -40px rgba(0,0,0,0.7);
  padding: clamp(1.75rem, 4vw, 2.75rem); color: var(--on-night);
  opacity: 0; transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.modal.is-open .modal__dialog { opacity: 1; transform: translateY(-50%) scale(1); }
.modal__close {
  position: absolute; right: 1rem; top: 1rem; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; color: var(--on-night-mut);
  border: 1px solid rgba(255,255,255,0.14); transition: color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.modal__close svg { width: 18px; height: 18px; }
.modal__close:hover { color: #fff; border-color: #fff; transform: rotate(90deg); }
.modal__head { margin-bottom: 1.5rem; }
.modal__head h3 { color: #fff; font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 0.6rem; }
.modal__head p { color: var(--on-night-mut); margin-top: 0.5rem; font-size: 0.95rem; }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.05rem; position: relative; }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: 0.78rem; color: #fff; margin-bottom: 0.45rem; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 0.96rem; color: #fff;
  padding: 0.8rem 1rem; border: 1px solid rgba(255,255,255,0.16); border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  transition: border-color .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--on-night-mut); }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand); background: rgba(255,255,255,0.10); box-shadow: 0 0 0 4px rgba(229,135,26,0.18);
}
.field input.err, .field select.err, .field textarea.err { border-color: #e2603f; }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.5rem; }
.select-wrap select option { background: var(--night-2); color: #fff; }
.select-wrap svg { position: absolute; right: 0.95rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--on-night-mut); pointer-events: none; }
.field__count { position: absolute; right: 2px; top: 0; font-size: 0.74rem; color: var(--on-night-mut); }
.consent { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.86rem; color: var(--on-night-mut); margin-bottom: 1.25rem; }
.consent input { margin-top: 3px; accent-color: var(--brand); width: 17px; height: 17px; flex: none; }
.form .btn--primary { width: 100%; justify-content: center; }

.modal__success { text-align: center; padding: 1.5rem 0; }
.modal__success-ic {
  width: 70px; height: 70px; margin: 0 auto 1.25rem; border-radius: 50%; display: grid; place-items: center;
  background: rgba(229,135,26,0.16); border: 1px solid rgba(229,135,26,0.4); color: var(--brand);
}
.modal__success-ic svg { width: 30px; height: 30px; }
.modal__success h3 { color: #fff; font-size: 1.6rem; }
.modal__success p { color: var(--on-night-mut); margin: 0.6rem auto 1.5rem; max-width: 36ch; }
.modal__success .btn { color: #fff; border-color: rgba(255,255,255,0.3); }
.modal__success .btn:hover { border-color: #fff; }

/* =====================================================================
   16. Scroll-reveal
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .85s var(--ease-out), transform .85s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: .09s; }
[data-delay="2"] { transition-delay: .18s; }
[data-delay="3"] { transition-delay: .27s; }
[data-delay="4"] { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg img { animation: none; transform: scale(1.05); }
  .post__img img, .svc__media img, .group__media img, .cta__bg img { transform: none !important; }
  .hero__scrollcue i::after { animation: none; }
  .marquee__track { animation: none; }
}

/* ---------- i18n visibility ---------- */
[data-lang-jp] { display: none; }
html[lang="ja"] [data-lang-en] { display: none; }
html[lang="ja"] [data-lang-jp] { display: revert; }

/* =====================================================================
   17. Responsive
   ===================================================================== */
@media (max-width: 1024px) {
  .group__grid { grid-template-columns: 1fr; }
  .reach__grid { grid-template-columns: 1fr; text-align: center; }
  .reach__copy .eyebrow, .reach__regions, .reach__legend { justify-content: center; }
  .reach__copy .section-intro { margin-inline: auto; }
  .reach__globe { order: -1; }
  .svc-grid, .posts { grid-template-columns: 1fr 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav__menu {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 360px); background: #fff;
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 6rem 1.75rem 2rem; gap: 0.25rem; transform: translateX(100%);
    transition: transform .45s var(--ease); box-shadow: var(--shadow-lg); z-index: 90;
  }
  .nav.is-open .nav__menu { transform: translateX(0); }
  .nav__link { padding: 0.9rem 0.5rem; font-size: 1.1rem; border-bottom: 1px solid var(--line-soft); }
  .nav__link::after { display: none; }
  .nav__toggle { display: block; z-index: 95; }
  .nav-backdrop { position: fixed; inset: 0; background: rgba(20,17,13,0.4); opacity: 0; pointer-events: none; transition: opacity .4s var(--ease); z-index: 80; }
  .nav.is-open .nav-backdrop { opacity: 1; pointer-events: auto; }
  .topbar__item--addr, .topbar__sep:last-of-type { display: none; }
}

@media (max-width: 620px) {
  .svc-grid, .posts, .stats__grid, .form__row, .footer__top { grid-template-columns: 1fr; }
  .logos-grid { grid-template-columns: 1fr 1fr; }
  .hero__actions .btn, .cta__actions .btn { flex: 1 1 auto; justify-content: center; }
  .topbar__contacts { display: none; }
  .topbar__inner { justify-content: flex-end; }
  .footer__bottom { flex-direction: column; }
}

/* =====================================================================
   18. Sub-pages (About / Services / Contact)
   ===================================================================== */
.subhero {
  position: relative; isolation: isolate; background: var(--night); color: #fff;
  padding-block: clamp(6.5rem, 12vw, 9.5rem) clamp(3.5rem, 7vw, 5.5rem); text-align: center; overflow: hidden;
}
.subhero__bg { position: absolute; inset: 0; z-index: -2; }
.subhero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.22; }
.subhero__glow {
  position: absolute; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 50% at 24% 28%, rgba(229,135,26,0.30), transparent 60%),
    radial-gradient(45% 55% at 80% 72%, rgba(229,135,26,0.16), transparent 60%);
  animation: heroglow 16s var(--ease) infinite alternate;
}
.subhero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 25%, transparent 75%);
  mask-image: radial-gradient(circle at 50% 40%, #000 25%, transparent 75%);
}
.subhero .eyebrow { color: var(--brand); justify-content: center; }
.subhero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.4rem); margin-top: 1rem; letter-spacing: -0.02em; }
.subhero p { color: rgba(255,255,255,0.82); max-width: 56ch; margin: 1.1rem auto 0; font-size: 1.08rem; }
.breadcrumb { display: inline-flex; gap: .5rem; font-size: .8rem; color: var(--on-night-mut); margin-top: 1.5rem; }
.breadcrumb a:hover { color: #fff; }

/* Overview prose */
.prose { max-width: 820px; margin-inline: auto; }
.prose p { margin-bottom: 1.15rem; font-size: 1.06rem; color: var(--ink-soft); }
.prose p strong { color: var(--ink); }
.prose .link-arrow { margin-top: 0.5rem; }
.pullquote {
  margin: 2rem 0; padding: 1.5rem 1.75rem; border-left: 3px solid var(--brand);
  background: var(--paper-2); border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-size: 1.12rem; line-height: 1.55; color: var(--ink); font-weight: 500;
}
.pullquote cite { display: block; margin-top: 0.75rem; font-size: 0.9rem; font-weight: 600; color: var(--brand-strong); font-style: normal; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.split h2 { font-size: clamp(1.4rem,2.6vw,2rem); margin-bottom: 1rem; }
.split p { color: var(--muted); margin-bottom: 1rem; }

/* Value cards (philosophy / principle / mission) */
.vcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.vcard {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: clamp(1.6rem, 2.6vw, 2.2rem); transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.vcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.vcard__tag { font-family: var(--font-display); font-weight: 600; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-strong); }
.vcard h3 { font-size: 1.25rem; margin: 0.6rem 0 0.8rem; }
.vcard p { color: var(--muted); font-size: 0.98rem; }

/* Feature/strength cards */
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.feat {
  display: flex; gap: 1.1rem; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-xl); padding: clamp(1.5rem, 2.4vw, 2rem);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.feat:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.feat__ic { flex: none; width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-strong); }
.feat__ic svg { width: 25px; height: 25px; }
.feat h3 { font-size: 1.12rem; line-height: 1.35; }
.feat p { color: var(--muted); font-size: 0.96rem; margin-top: 0.5rem; }

/* Trust strip */
.trust { background: var(--night); color: var(--on-night); }
.trust__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.trust__item { text-align: center; padding: 1.5rem; border: 1px solid var(--night-line); border-radius: var(--radius-lg); background: rgba(255,255,255,0.04); }
.trust__item strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem,3vw,2.2rem); color: #fff; }
.trust__item span { color: var(--on-night-mut); font-size: 0.92rem; }

/* Country lead profile */
.profile { display: grid; grid-template-columns: 280px 1fr; gap: clamp(1.75rem,4vw,3rem); align-items: center; }
.profile__photo { border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4/5; background: var(--paper-3); box-shadow: var(--shadow); }
.profile__photo img { width: 100%; height: 100%; object-fit: cover; }
.profile__mono { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(150deg, var(--brand), var(--brand-deep)); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 3.5rem; }
.profile h3 { font-size: 1.5rem; }
.profile .role { color: var(--brand-strong); font-weight: 600; font-family: var(--font-display); font-size: 0.95rem; margin-top: 0.25rem; }
.profile p { color: var(--muted); margin-top: 1rem; }

/* Services cards */
.svc-nav { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: clamp(2.5rem,5vw,3.5rem); }
.svc-nav a {
  font-family: var(--font-display); font-weight: 500; font-size: 0.85rem; color: var(--ink-soft);
  padding: 0.5rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  transition: border-color .3s var(--ease), color .3s var(--ease), background-color .3s var(--ease), transform .3s var(--ease);
}
.svc-nav a:hover { border-color: var(--brand); color: var(--brand-strong); transform: translateY(-2px); }
.svccards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.svccard {
  position: relative; scroll-margin-top: 120px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-xl); padding: clamp(1.6rem, 2.6vw, 2.25rem); overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.svccard::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--brand), var(--brand-strong)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.svccard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.svccard:hover::before { transform: scaleX(1); }
.svccard__head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.1rem; }
.svccard__ic { flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-strong); transition: background-color .4s var(--ease), color .4s var(--ease); }
.svccard__ic svg { width: 23px; height: 23px; }
.svccard:hover .svccard__ic { background: var(--brand); color: #fff; }
.svccard h3 { font-size: 1.2rem; }
.svccard ul { display: grid; gap: 0.5rem; }
.svccard li { position: relative; padding-left: 1.35rem; color: var(--muted); font-size: 0.96rem; }
.svccard li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.svccard h4 { font-family: var(--font-display); font-size: 0.92rem; color: var(--ink); margin: 1rem 0 0.5rem; font-style: italic; }
.svccard .note { font-size: 0.86rem; color: var(--muted-2); font-style: italic; margin-top: 0.9rem; padding-top: 0.8rem; border-top: 1px dashed var(--line); }
.svccard--wide { grid-column: 1 / -1; }
.svccard--wide .taxgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 2rem; }

/* Contact page */
.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 760px; margin-inline: auto; }   /* was 3-col (phone slot) */
.cinfo {
  text-align: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: clamp(1.75rem,3vw,2.5rem); transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.cinfo:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.cinfo__ic { width: 56px; height: 56px; margin: 0 auto 1.1rem; border-radius: 15px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-strong); }
.cinfo__ic svg { width: 27px; height: 27px; }
.cinfo h3 { font-size: 1.05rem; }
.cinfo a, .cinfo p { color: var(--muted); font-size: 0.96rem; margin-top: 0.4rem; display: block; }
.cinfo a:hover { color: var(--brand-strong); }

.contact-main { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,3.5rem); align-items: start; }
.form--light { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(1.75rem,3.5vw,2.75rem); box-shadow: var(--shadow-sm); }
.form--light .field label { color: var(--ink); }
.form--light .field input, .form--light .field textarea, .form--light .field select {
  color: var(--ink); background: var(--paper-2); border-color: var(--line);
}
.form--light .field input::placeholder, .form--light .field textarea::placeholder { color: var(--muted-2); }
.form--light .field input:focus, .form--light .field textarea:focus, .form--light .field select:focus {
  background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(229,135,26,0.12);
}
.form--light .select-wrap svg { color: var(--muted); }
.form--light .select-wrap select option { background: #fff; color: var(--ink); }
.form--light .consent { color: var(--muted); }
.form--light .field__count { color: var(--muted-2); }
.form-success { display: none; text-align: center; padding: 1rem 0; }
.form-success.is-on { display: block; }
.form-success .ic { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand-strong); }
.form-success .ic svg { width: 30px; height: 30px; }

.aside-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(1.5rem,3vw,2rem); }
.hours { display: grid; gap: 0.6rem; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.96rem; color: var(--muted); padding-bottom: 0.6rem; border-bottom: 1px solid var(--line-soft); }
.hours li:last-child { border-bottom: 0; }
.hours li span:last-child { color: var(--ink); font-weight: 500; }
.map-embed { border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin-top: 1.5rem; }
.map-embed iframe { display: block; width: 100%; height: 320px; border: 0; filter: grayscale(0.2); }

@media (max-width: 1024px) {
  .vcards { grid-template-columns: 1fr; }
  .split, .contact-main, .profile { grid-template-columns: 1fr; }
  .profile__photo { max-width: 280px; }
  .svccards { grid-template-columns: 1fr; }
  .contact-info { grid-template-columns: 1fr; }
  .feat-grid { grid-template-columns: 1fr; }
  .trust__grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .svccard--wide .taxgrid { grid-template-columns: 1fr; }
}

/* =====================================================================
   19. Services — one-stop lifecycle + tabbed detail
   ===================================================================== */
.lifecycle { display: grid; grid-template-columns: 1fr minmax(300px, 400px) 1fr; gap: clamp(1.5rem, 3vw, 2.75rem); align-items: center; }
.lifecycle__col { display: grid; gap: 1.25rem; }
.lc-group { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(1.25rem,2.2vw,1.6rem); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease); }
.lc-group:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.lc-group h4 { color: var(--brand-strong); font-size: 1.02rem; margin-bottom: 0.75rem; }
.lc-group ul { display: grid; gap: 0.45rem; }
.lc-group li { position: relative; padding-left: 1.2rem; color: var(--muted); font-size: 0.92rem; line-height: 1.4; }
.lc-group li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.hexwrap { display: grid; place-items: center; }
.hexwrap svg { width: 100%; max-width: 400px; height: auto; }
.hex-label { font-family: var(--font-display); font-weight: 600; fill: #fff; }
.hex-center-label { font-family: var(--font-display); font-weight: 700; fill: var(--brand-strong); }

.svtabs { display: grid; grid-template-columns: 330px 1fr; gap: clamp(1.5rem, 3vw, 2.75rem); align-items: start; }
.svtabs__list { display: grid; gap: 0.6rem; }
.svtab {
  width: 100%; text-align: left; font-family: var(--font-display); font-weight: 600; font-size: 0.97rem; color: #fff;
  background: var(--brand); border-radius: var(--radius-lg); padding: 1rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  transition: background-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.svtab:hover { transform: translateX(3px); }
.svtab[aria-selected="true"] { background: var(--brand-strong); box-shadow: var(--shadow); }
.svtab svg { width: 1.05em; height: 1.05em; flex: none; opacity: 0; transform: translateX(-4px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.svtab[aria-selected="true"] svg { opacity: 1; transform: none; }
.svtabs__panels { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(1.6rem, 3vw, 2.5rem); min-height: 320px; box-shadow: var(--shadow-sm); }
.svpanel { display: none; }
.svpanel.is-active { display: block; animation: fadeup .5s var(--ease); }
@keyframes fadeup { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.svpanel h3 { color: var(--brand-strong); font-size: clamp(1.3rem,2.4vw,1.6rem); margin-bottom: 1.1rem; }
.svpanel ul { display: grid; gap: 0.55rem; }
.svpanel li { position: relative; padding-left: 1.4rem; color: var(--ink-soft); font-size: 1rem; line-height: 1.5; }
.svpanel li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.svpanel h4 { font-family: var(--font-display); font-style: italic; color: var(--ink); margin: 1.15rem 0 0.6rem; font-size: 1rem; }
.svpanel .taxgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; }
.svpanel .note { font-style: italic; color: var(--muted-2); font-size: 0.9rem; margin-top: 1.1rem; padding-top: 0.85rem; border-top: 1px dashed var(--line); }
@media (prefers-reduced-motion: reduce) { .svpanel.is-active { animation: none; } }
@media (max-width: 1024px) { .lifecycle { grid-template-columns: 1fr; } .hexwrap { order: -1; } }
@media (max-width: 860px) {
  .svtabs { grid-template-columns: 1fr; }
  .svtabs__list { grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); overflow-x: auto; padding-bottom: 0.5rem; scrollbar-width: thin; }
}
@media (max-width: 620px) { .svpanel .taxgrid { grid-template-columns: 1fr; } }

/* =====================================================================
   20. Sub-page hero → full-width photographic banner (centered title)
   ===================================================================== */
.subhero { padding-block: 0; min-height: clamp(440px, 62vh, 680px); display: grid; place-items: center; }
.subhero__bg img { opacity: 1; }
.subhero__glow { display: none; }
.subhero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 1;
  background: linear-gradient(180deg, rgba(15,12,9,0.55) 0%, rgba(15,12,9,0.38) 45%, rgba(15,12,9,0.72) 100%);
  background-size: auto; -webkit-mask-image: none; mask-image: none;
}
.subhero .container { padding-block: 1.25rem; }
.subhero .eyebrow { display: none; }
.subhero p { display: none; }
.subhero h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-top: 0; text-shadow: 0 2px 22px rgba(0,0,0,0.5); }
.breadcrumb { margin-top: 1.1rem; justify-content: center; color: rgba(255,255,255,0.85); }
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { color: rgba(255,255,255,0.7); }

/* =====================================================================
   21. Floating mobile CTA + full-screen mobile menu + contact layout
   ===================================================================== */
.fab { display: none; }

.contact-centered { max-width: 720px; margin-inline: auto; }
.contact-centered .form--light { box-shadow: var(--shadow); }
.hours-card { max-width: 460px; margin: 2rem auto 0; }
.map-section { padding: 0; }
.map-full { width: 100%; line-height: 0; }
.map-full iframe { width: 100%; height: clamp(360px, 58vh, 600px); border: 0; display: block; filter: grayscale(0.15); }

/* About — Our Team / leadership split (borderless) */
.team-split { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.team-split__media { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; background: var(--paper-3); }
.team-split__media img { width: 100%; height: 100%; object-fit: cover; }
.team-split__media .profile__mono { width: 100%; height: 100%; }
.team-split h3 { font-size: 1.5rem; }
.team-split .role { color: var(--brand-strong); font-weight: 600; font-family: var(--font-display); font-size: 0.95rem; margin-top: 0.25rem; }
.team-split p { color: var(--muted); margin-top: 1rem; }

@media (max-width: 1024px) { .team-split { grid-template-columns: 1fr; } .team-split__media { max-width: 360px; } }

@media (max-width: 860px) {
  /* hide header CTA on mobile */
  .nav__cta .btn--primary { display: none; }

  /* full-screen overlay mobile menu */
  .nav__menu {
    position: fixed; inset: 0; width: 100%; height: 100vh; height: 100dvh;
    background: rgba(18,15,11,0.97);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem;
    padding: 5rem 1.5rem 2rem; transform: none; opacity: 0; visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s var(--ease); box-shadow: none; z-index: 95;
  }
  .nav.is-open .nav__menu { opacity: 1; visibility: visible; }
  .nav__menu .nav__link {
    color: #fff; font-size: 1.5rem; padding: 0.85rem 1rem; border-bottom: 0; text-align: center;
    opacity: 0; transform: translateY(12px); transition: opacity .45s var(--ease), transform .45s var(--ease), color .25s var(--ease);
  }
  .nav__menu .nav__link::after { display: none; }
  .nav__menu .nav__link.is-active { color: var(--brand); }
  .nav.is-open .nav__menu .nav__link { opacity: 1; transform: none; }
  .nav.is-open .nav__menu .nav__link:nth-child(1) { transition-delay: .10s; }
  .nav.is-open .nav__menu .nav__link:nth-child(2) { transition-delay: .16s; }
  .nav.is-open .nav__menu .nav__link:nth-child(3) { transition-delay: .22s; }
  .nav.is-open .nav__menu .nav__link:nth-child(4) { transition-delay: .28s; }
  .nav.is-open .nav__menu .nav__link:nth-child(5) { transition-delay: .34s; }
  .nav__toggle { display: block; z-index: 110; position: relative; }
  .nav.is-open .nav__toggle span,
  .nav.is-open .nav__toggle span::before,
  .nav.is-open .nav__toggle span::after { background: #fff; }
  .nav.is-open .nav__toggle { border-color: rgba(255,255,255,0.4); background: transparent; }
  .nav-backdrop { display: none; }

  /* floating inquire button */
  .fab {
    display: inline-flex; align-items: center; gap: 0.5rem; position: fixed; right: 1rem; bottom: 1rem; z-index: 90;
    background-image: linear-gradient(120deg, var(--brand-strong), var(--brand) 60%, #F4A23C);
    color: #fff; border-radius: 999px; padding: 0.9rem 1.35rem;
    font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
    box-shadow: 0 14px 30px -10px var(--brand-glow);
  }
  .fab svg { width: 1.1em; height: 1.1em; }
  .contact-main { grid-template-columns: 1fr; }
}

/* =====================================================================
   22. Micro-interaction polish — uniform & snappy (150–250ms), active states
   ===================================================================== */
.btn {
  transition: transform .2s var(--ease), background-position .25s var(--ease),
              background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(0) scale(.985); }
.link-arrow svg { transition: transform .2s var(--ease); }

.vcard, .feat, .cinfo, .lc-group, .svccard, .svc, .post,
.group__media, .team-split__media, .logo-cell, .stat.glass {
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
              border-color .22s var(--ease), background-color .22s var(--ease);
}
.lang__btn, .nav__link, .svtab, .reach__locations li,
.svc-nav a, .topbar a.topbar__item, .footer__links a { transition-duration: .2s; }

/* consistent focus ring on form fields + interactive cards */
.cinfo:focus-within { border-color: var(--brand); box-shadow: var(--shadow); }

/* =====================================================================
   23. About — Mission band
   ===================================================================== */
.mission {
  max-width: 880px; margin-inline: auto; text-align: center;
  background: linear-gradient(160deg, var(--brand-tint), #fff);
  border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  box-shadow: var(--shadow-sm);
}
.mission .eyebrow { justify-content: center; }
.mission__text {
  margin-top: 1rem; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.2rem, 2.4vw, 1.65rem); line-height: 1.5; color: var(--ink);
  letter-spacing: -0.01em;
}

/* =====================================================================
   24. About — One Team split (justified text left, image right)
   ===================================================================== */
.split.split--center { align-items: center; }
.philosophy__body p { text-align: justify; text-justify: inter-word; margin-bottom: 1.05rem; font-size: 1.04rem; color: var(--ink-soft); }
.philosophy__body p strong { color: var(--ink); }
.philosophy__media { margin: 0; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; }
.philosophy__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.philosophy__media:hover img { transform: scale(1.04); }
@media (max-width: 1024px) { .philosophy__media { aspect-ratio: 16/11; } }
@media (max-width: 620px) { .philosophy__body p { text-align: left; } }

/* =====================================================================
   25. Unified type scale — tighter, balanced desktop hierarchy
   ===================================================================== */
:root { --section-y: clamp(4.25rem, 7.5vw, 7rem); }

body { font-size: 1rem; line-height: 1.62; }            /* 16px base */

/* Page / hero titles */
.hero h1            { font-size: clamp(1.85rem, 3.8vw, 2.75rem); }
.hero__lead         { font-size: clamp(1rem, 1.3vw, 1.1rem); }
.subhero h1         { font-size: clamp(1.6rem, 2.8vw, 2.05rem); }
.cta__title         { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
.cta__text          { font-size: 1rem; }

/* Section headers (one consistent H2 size everywhere) */
.section-title      { font-size: clamp(1.45rem, 2.2vw, 1.85rem); }
.section-intro      { font-size: clamp(.96rem, 1.2vw, 1.02rem); }
.group__copy .section-title { font-size: clamp(1.45rem, 2.2vw, 1.85rem); }
.split h2           { font-size: clamp(1.45rem, 2.2vw, 1.85rem) !important; }

/* Card / sub-headings (one consistent size) */
.svc__body h3, .post h3, .vcard h3, .feat h3, .svccard h3,
.cinfo h3, .lc-group h4, .team-split h3, .profile h3, .aside-card h3 { font-size: 1.12rem; }
.svpanel h3         { font-size: 1.3rem; }

/* Body copy */
.prose p, .philosophy__body p, .group p, .split p, .team-split p,
.svccard li, .svc__body p, .post p, .feat p, .vcard p { font-size: 1rem; }
.mission__text      { font-size: clamp(1.1rem, 1.9vw, 1.35rem); }
.pullquote          { font-size: 1.05rem; }

/* Stats / numbers */
.stat__num          { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }

/* Controls */
.btn, .btn--lg      { font-size: .92rem; }
.nav__link          { font-size: .92rem; }
.svtab              { font-size: .93rem; }

/* =====================================================================
   26. Bilingual (Japanese) refinements
   ===================================================================== */
.svpanel li:empty { display: none; }
.philosophy__body p:empty, .split p:empty, .mission p:empty { display: none; }
html[lang="ja"] body,
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3, html[lang="ja"] h4,
html[lang="ja"] .btn, html[lang="ja"] .nav__link, html[lang="ja"] .svtab {
  font-family: "Noto Sans JP", "Poppins", system-ui, sans-serif;
}
html[lang="ja"] .philosophy__body p, html[lang="ja"] .prose p { text-align: left; }

/* =====================================================================
   27. Hero background video (image placeholder -> video fade-in)
   ===================================================================== */
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0; transition: opacity 1s var(--ease); z-index: 1; pointer-events: none;
}
.hero__video.is-ready { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero__video { display: none; } }


/* Japanese service-card lists (cards 01–03): nudge the font down so list
   lines fit and the ／ separator doesn't wrap onto its own line. English unaffected. */
html[lang="ja"] .svc-grid .svc .svc__body p { font-size: 0.9rem; line-height: 1.85; }


/* Japanese view: SAME layout as the English lifecycle, but the center hexagon is
   removed so the two card-columns expand to fill the full width — the longer
   Japanese items then fit cleanly without overlap. Desktop keeps two columns and
   stacks to one column on mobile, exactly like the English version. */
@media (min-width: 1025px) {
  html[lang="ja"] .lifecycle { grid-template-columns: 1fr 1fr; align-items: start; }
}
html[lang="ja"] .lifecycle .hexwrap { display: none; }   /* center hexagon removed on JA only */
html[lang="ja"] .lc-group li { font-size: 0.86rem; line-height: 1.55; }   /* fit longer JP items neatly */

html[lang="ja"] .lc-group li[data-i18n="lc.cb.2"] { display: none; }   /* JA merges this into item 1 */

html[lang="ja"] li[data-i18n="svc.me.d8"] { display: none; }   /* JA detail list uses 7 items */

html:not([lang="ja"]) li[data-i18n="svc.acc.6"] { display: none; }   /* JA-only extra bullet */

html:not([lang="ja"]) li[data-i18n="svc.pay.4"], html:not([lang="ja"]) li[data-i18n="svc.pay.5"] { display: none; }   /* JA-only payroll bullets */

html:not([lang="ja"]) li[data-i18n="svc.ma.5"] { display: none; }   /* JA-only M&A bullet */


/* Widen the "Services in detail" section so the Taxation 2-column grid has room to spread */
#detail .container { max-width: 1360px; }
@media (min-width: 861px) {
  #detail .svtabs { grid-template-columns: 280px 1fr; }
  #detail .svpanel .taxgrid { gap: 1.15rem 2.5rem; }
  /* Keep long Japanese tax items on a single, clean line */
  html[lang='ja'] #detail .svpanel .taxgrid li { font-size: 0.92rem; line-height: 1.55; }
  html[lang='ja'] #detail .svpanel .taxgrid li { word-break: normal; overflow-wrap: normal; }
}


/* ---- ABOUT: SCS Invictus South Africa — exact-match layout ---- */
.br-sa { display: none; }
#scssa-copy p:empty { display: none; }
#scssa-copy p { color: var(--muted); }
@media (min-width: 1024px) {
  .br-sa { display: inline; }
  .split:has(#scssa-copy) { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
  #scssa-copy p { font-size: 0.95rem; line-height: 1.95; letter-spacing: 0.01em; margin: 0; }
}

/* ===== One Team, No Border — orange-box wrapping + spacing (wider copy, slim full-height image) ===== */
.gbr { display: inline; }
.group__copy p { line-height: 1.6; }
.group p + p { margin-top: 1.5rem; }
@media (min-width: 1025px) {
  .group__grid { grid-template-columns: 1.62fr 1fr; align-items: stretch; }
  .group__copy { align-self: center; }
  .group__media { height: 100%; }
  .group__media img { height: 100%; aspect-ratio: auto; }
}
@media (max-width: 1024px) { .gbr { display: none; } }

/* ===== Mobile menu — white dropdown panel ===== */
@media (max-width: 860px) {
  .nav__cta .btn--primary { display: none; }

  .nav__menu {
    position: absolute; top: 100%; left: 0; right: 0; bottom: auto;
    width: 100%; height: auto;
    background: #fff;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    gap: 0; padding: 0;
    border-top: 1px solid var(--line);
    box-shadow: 0 22px 34px -20px rgba(20,17,13,0.30);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s var(--ease);
    z-index: 95;
  }
  .nav.is-open .nav__menu { opacity: 1; visibility: visible; transform: translateY(0); }

  .nav__menu .nav__link {
    color: var(--ink-soft); font-family: var(--font-display); font-weight: 500;
    font-size: 1.05rem; padding: 1.05rem 1.25rem; text-align: center;
    border-bottom: 1px solid var(--line);
    opacity: 1; transform: none;
    transition: color .2s var(--ease), background-color .2s var(--ease);
  }
  .nav__menu .nav__link:last-child { border-bottom: 0; }
  .nav__menu .nav__link.is-active { color: var(--brand); }
  .nav__menu .nav__link:hover { color: var(--ink); background: var(--paper-2); }
  .nav.is-open .nav__menu .nav__link { opacity: 1; transform: none; }

  .nav.is-open .nav__toggle span,
  .nav.is-open .nav__toggle span::before,
  .nav.is-open .nav__toggle span::after { background: var(--ink); }
  .nav.is-open .nav__toggle { border-color: var(--line); background: #fff; }

  .nav-backdrop { display: none; }
}
