/* ==========================================================================
   JPN GROUP — DESIGN SYSTEM  ·  "Editorial Premium" (v2)

   Brand DNA is unchanged: deep indigo mark, orange + magenta "speed streak".
   What changed is the craft: an editorial serif for headlines, a dark
   mesh-gradient hero, glass surfaces, generous whitespace, image-led cards
   and considered motion.

   IMPORTANT — Admin → Settings → Theme still controls the seven brand colours
   below (--ink, --indigo, --indigo-deep, --orange, --magenta, --cream, --mist).
   Every other colour in this file is DERIVED from them with color-mix(), so
   changing a colour in the admin panel re-tints the whole site coherently.
   ========================================================================== */

/* ---------- Fonts (self-hosted: faster, private, no Google round-trip) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/fraunces-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  /* Brand colours — editable in Admin → Settings → Theme */
  --ink:         #171125;
  --ink-soft:    #4a4457;
  --cream:       #FAF9F6;
  --mist:        #F1ECFB;
  --indigo:      #4A2FD1;
  --indigo-deep: #301D8C;
  --orange:      #F5821F;
  --magenta:     #EC1279;
  --line:        rgba(23, 17, 37, 0.10);

  /* Typography */
  --font-display: "Fraunces", "Noto Serif JP", "Noto Serif SC", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", "Noto Sans SC", sans-serif;
  --font-ui:      var(--font-body);
  --font-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* Derived surfaces (fallbacks first, then colour-mix refinements) */
  --surface:      #ffffff;
  --ink-2:        #221a3a;
  --ink-3:        #2c2249;
  --on-dark:      rgba(255, 255, 255, 0.72);
  --on-dark-dim:  rgba(255, 255, 255, 0.5);
  --line-dark:    rgba(255, 255, 255, 0.12);
  --grad-brand:   linear-gradient(100deg, var(--orange), var(--magenta));
  --grad-cool:    linear-gradient(135deg, var(--indigo), var(--indigo-deep));

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 22px;
  --radius-sm: 14px;
  --header-h: 76px;

  --shadow-sm: 0 1px 2px rgba(23, 17, 37, .06), 0 4px 14px rgba(23, 17, 37, .05);
  --shadow-md: 0 2px 4px rgba(23, 17, 37, .05), 0 14px 34px rgba(23, 17, 37, .09);
  --shadow-lg: 0 4px 8px rgba(23, 17, 37, .06), 0 30px 60px rgba(23, 17, 37, .16);
  --ease: cubic-bezier(.16, .84, .44, 1);
}
@supports (color: color-mix(in srgb, red, blue)) {
  :root {
    --ink-2:  color-mix(in srgb, var(--ink) 86%, var(--indigo));
    --ink-3:  color-mix(in srgb, var(--ink) 70%, var(--indigo));
    --line:   color-mix(in srgb, var(--ink) 10%, transparent);
    --surface: color-mix(in srgb, var(--cream) 30%, #fff);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  /* Second line of defence against one oversized element making a phone
     browser zoom the whole page out. */
  overflow-x: hidden;
  max-width: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;       /* clip (not hidden) so position:sticky keeps working */
  max-width: 100%;
}
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; }
[hidden] { display: none !important; }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}
h3, h4, h5 {
  font-family: var(--font-ui);
  font-weight: 650;
  letter-spacing: -0.012em;
  line-height: 1.25;
  margin: 0;
}
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
::selection { background: color-mix(in srgb, var(--magenta) 24%, #fff); color: var(--ink); }

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--indigo) 65%, #fff);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Skip link for keyboard + screen-reader users */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px;
  font-weight: 600; font-size: 14px; transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.muted { color: var(--ink-soft); }
.small { font-size: 13px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }

/* ---------- Eyebrow + streak device ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--indigo);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 3px; border-radius: 3px;
  background: var(--grad-brand);
  display: inline-block;
  flex: none;
}
.streak {
  height: 8px; border-radius: 999px; display: block;
  background: var(--grad-brand);
}
.streak-row { display: flex; flex-direction: column; gap: 6px; width: 110px; }
.streak-row .streak:nth-child(1) { width: 100%; }
.streak-row .streak:nth-child(2) { width: 66%; }
.streak-row .streak:nth-child(3) { width: 84%; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1;
  padding: 14px 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .3s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--grad-brand); opacity: 0; transition: opacity .3s ease;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px color-mix(in srgb, var(--magenta) 30%, transparent); }
.btn-outline { background: transparent; color: var(--ink); border-color: color-mix(in srgb, var(--ink) 28%, transparent); }
.btn-outline:hover { border-color: var(--ink); background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { padding: 11px 18px; font-size: 13.5px; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* Buttons on dark surfaces */
.hero .btn-primary, .cta-band .btn-primary, .site-footer .btn-primary {
  background: var(--grad-brand); color: #fff;
  box-shadow: 0 10px 30px color-mix(in srgb, var(--magenta) 32%, transparent);
}
.hero .btn-primary::before, .cta-band .btn-primary::before { display: none; }
.hero .btn-outline, .cta-band .btn-outline {
  color: #fff; border-color: rgba(255,255,255,.35);
}
.hero .btn-outline:hover, .cta-band .btn-outline:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease, background .3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(23, 17, 37, .06);
  background: color-mix(in srgb, var(--cream) 92%, transparent);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 44px; width: auto; display: block; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav > a, .main-nav > .has-dropdown > a {
  font-family: var(--font-ui);
  font-size: 14.5px;
  font-weight: 550;
  color: color-mix(in srgb, var(--ink) 82%, transparent);
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  display: inline-block;
  transition: color .2s ease, background .2s ease;
}
.main-nav > a:hover, .main-nav > .has-dropdown:hover > a,
.main-nav > .has-dropdown:focus-within > a { color: var(--ink); background: color-mix(in srgb, var(--indigo) 8%, transparent); }
.main-nav > a.active { color: var(--indigo); background: color-mix(in srgb, var(--indigo) 10%, transparent); }
.main-nav > .has-dropdown > a::after {
  content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px;
  border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg); opacity: .6; transition: transform .25s var(--ease);
}
.main-nav > .has-dropdown:hover > a::after { transform: rotate(225deg) translate(-2px,-2px); }
.main-nav > a.mobile-cta, .mobile-cta { display: none; }

.header-tools { display: flex; align-items: center; gap: 10px; }

/* Dropdowns (Sister Concerns mega-menu + language switcher) */
.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  min-width: 260px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; translate: 0 8px;
  transition: opacity .2s ease, translate .25s var(--ease), visibility .2s;
  z-index: 120;
}
/* invisible bridge so the menu doesn't close while the pointer crosses the gap */
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown { opacity: 1; visibility: visible; translate: 0 0; }
.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 12px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: background .15s ease, color .15s ease, padding .2s var(--ease);
}
.dropdown a:hover { background: color-mix(in srgb, var(--indigo) 9%, transparent); color: var(--indigo); padding-left: 18px; }

/* Sister-concerns menu becomes a 2-column panel */
.main-nav .has-dropdown > .dropdown:not(.lang-dropdown-menu) {
  min-width: 560px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 8px;
  padding: 14px;
}
.main-nav .has-dropdown > .dropdown:not(.lang-dropdown-menu) a:last-child {
  grid-column: 1 / -1;
  margin-top: 6px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 12px 12px;
  color: var(--indigo);
  font-weight: 600;
  padding-top: 14px;
}

/* Compact language switcher (click-based so it behaves the same on touch) */
.lang-dropdown { position: relative; }
.lang-current {
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--ink);
  display: flex; align-items: center; gap: 6px;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.lang-current:hover { border-color: color-mix(in srgb, var(--indigo) 40%, transparent); box-shadow: var(--shadow-sm); }
.lang-current .caret { font-size: 9px; transition: transform .2s ease; }
.lang-dropdown.open .lang-current .caret { transform: rotate(180deg); }
.lang-dropdown .dropdown.lang-dropdown-menu { left: auto; right: 0; transform: none; min-width: 150px; }
.lang-dropdown.open .dropdown.lang-dropdown-menu { opacity: 1; visibility: visible; translate: 0 0; }

.tool-btn {
  width: 42px; height: 42px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 20px;
  cursor: pointer;
}
.mobile-toggle { display: none; }

/* ==========================================================================
   HERO (homepage)
   ========================================================================== */
.hero {
  position: relative;
  color: #fff;
  background: var(--ink);
  padding: clamp(64px, 9vw, 128px) 0 0;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 75% at 88% 8%,  color-mix(in srgb, var(--magenta) 46%, transparent), transparent 62%),
    radial-gradient(55% 70% at 4% 96%,  color-mix(in srgb, var(--indigo) 78%, transparent), transparent 66%),
    radial-gradient(42% 52% at 52% -6%, color-mix(in srgb, var(--orange) 30%, transparent), transparent 62%),
    var(--ink);
}
.hero::after {   /* fine engineering grid, faded at the edges */
  content: "";
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(75% 70% at 50% 35%, #000 20%, transparent 78%);
          mask-image: radial-gradient(75% 70% at 50% 35%, #000 20%, transparent 78%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-bottom: clamp(48px, 7vw, 88px);
}
.hero .eyebrow { color: rgba(255,255,255,.82); }
.hero h1 {
  font-size: clamp(38px, 5.6vw, 82px);
  font-weight: 560;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 22px 0 24px;
  color: #fff;
}
.hero h1 .accent {
  font-style: italic;
  font-weight: 500;
  background: linear-gradient(100deg, #ffb066, #ff5fa8 70%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  padding-right: .06em;
}
.hero p.lead {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
  color: var(--on-dark);
  max-width: 560px;
  margin: 0 0 34px;
}
.hero-cta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px clamp(28px, 4vw, 56px);
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
}
.hero-stats .stat b {
  font-family: var(--font-display);
  font-weight: 560;
  font-size: clamp(32px, 3.6vw, 46px);
  line-height: 1;
  display: block;
  letter-spacing: -0.02em;
  color: #fff;
}
.hero-stats .stat span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--on-dark-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: block;
  margin-top: 10px;
}

/* CEO glass panel */
.hero-panel {
  position: relative;
  padding: clamp(26px, 3vw, 40px);
  border-radius: 28px;
  color: #fff;
  background: linear-gradient(160deg, rgba(255,255,255,.13), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 40px 80px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.2);
}
.hero-panel::before {
  content: "\201C";
  position: absolute; right: 26px; top: 6px;
  font-family: var(--font-display); font-size: 150px; line-height: 1;
  color: rgba(255,255,255,.09); pointer-events: none;
}
.hero-panel .tag {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: #ffb066; display: inline-flex; align-items: center; gap: 10px;
}
.hero-panel .tag::before { content: ""; width: 22px; height: 2px; background: var(--grad-brand); }
.hero-panel h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.38;
  letter-spacing: -0.01em;
  margin: 18px 0 24px;
}
.hp-person { display: flex; align-items: center; gap: 14px; }
.hp-avatar {
  width: 52px; height: 52px; border-radius: 50%; flex: none; overflow: hidden;
  background: var(--grad-brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 20px;
  border: 2px solid rgba(255,255,255,.35);
}
.hp-avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; }
.hp-person strong { display: block; font-weight: 600; font-size: 15px; }
.hp-person > div > span { display: block; font-size: 13px; color: var(--on-dark-dim); margin-top: 2px; }
.hero-panel .streak-row { margin-top: 26px !important; }

/* Marquee of the group's companies */
.marquee {
  border-top: 1px solid var(--line-dark);
  background: rgba(0,0,0,.18);
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; width: max-content;
  animation: jpnMarquee 46s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 22px;
  padding: 20px 22px 20px 0;
  font-family: var(--font-display); font-size: clamp(17px, 1.6vw, 22px); font-weight: 500;
  color: rgba(255,255,255,.78); white-space: nowrap;
  transition: color .2s ease;
}
.marquee-item::after {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad-brand); flex: none;
  margin-left: 22px;
}
.marquee-item:hover { color: #fff; }
@keyframes jpnMarquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   SECTIONS
   ========================================================================== */
section { padding: clamp(64px, 8.5vw, 116px) 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4.5vw, 56px); }
.section-head h2 {
  font-size: clamp(30px, 4vw, 52px);
  margin-top: 16px;
  font-weight: 560;
}
.section-head p { color: var(--ink-soft); font-size: 17px; margin-top: 14px; }
.section-alt {
  background:
    radial-gradient(60% 50% at 100% 0%, color-mix(in srgb, var(--indigo) 8%, transparent), transparent 70%),
    radial-gradient(50% 50% at 0% 100%, color-mix(in srgb, var(--magenta) 5%, transparent), transparent 70%),
    var(--mist);
}

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 28px);
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 2.6vw, 36px);
  position: relative;
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s ease, border-color .3s ease;
}
.card::before {   /* brand hairline that draws in on hover */
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--grad-brand); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--indigo) 22%, transparent); }
.card:hover::before { transform: scaleX(1); }
.card h3 { font-size: 20px; margin: 4px 0 12px; }
.card p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.7; margin: 0; }
.value-icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  background: linear-gradient(140deg, var(--ink-2), var(--indigo-deep));
  display: flex; align-items: center; justify-content: center;
  color: #ffb066;
  font-family: var(--font-display);
  font-weight: 600; font-size: 22px;
  margin-bottom: 22px;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--indigo) 28%, transparent);
}

/* ---------- Sister-concern cards ---------- */
.sc-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: transform .45s var(--ease), box-shadow .45s ease, border-color .3s ease;
}
.sc-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--indigo) 25%, transparent); }
.sc-banner {
  aspect-ratio: 16 / 9;    /* matches the uploaded banners, so nothing is cropped */
  width: 100%;
  background: var(--grad-cool) center / cover no-repeat;
  position: relative;
  overflow: visible;
}
.sc-banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(23,17,37,.16));
  pointer-events: none;
}
.sc-logo-badge {
  position: absolute;
  bottom: -30px; left: 22px;
  width: 64px; height: 64px;
  background: #fff;
  border-radius: 18px;
  padding: 5px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700; font-size: 20px;
  color: var(--indigo);
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(23,17,37,.16);
  z-index: 2;
  overflow: hidden;
}
.sc-logo-badge img { width: 100%; height: 100%; object-fit: contain; border-radius: 12px !important; }
.sc-body { padding: 44px 26px 26px; flex: 1; display: flex; flex-direction: column; }
.sc-body h3 { font-size: 20px; margin-bottom: 8px; }
.sc-body .tagline {
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .06em;
  color: var(--magenta); margin-bottom: 12px; text-transform: uppercase; line-height: 1.5;
}
.sc-body p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.65; margin: 0; }
.sc-more {
  margin-top: auto; padding-top: 18px;
  font-size: 13.5px; font-weight: 600; color: var(--indigo);
  display: inline-flex; align-items: center; gap: 8px;
}
.sc-more .arrow { transition: transform .3s var(--ease); }
.sc-card:hover .sc-more .arrow { transform: translateX(6px); }

.sc-banner--indigo { background-image: linear-gradient(135deg, var(--indigo), var(--indigo-deep)); }
.sc-banner--sunset { background-image: linear-gradient(135deg, var(--orange), var(--magenta)); }
.sc-banner--ink    { background-image: linear-gradient(135deg, var(--ink), var(--indigo-deep)); }

/* ---------- CEO / quote ---------- */
.ceo-block {
  display: grid;
  grid-template-columns: minmax(200px, 300px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}
.ceo-photo {
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  background: linear-gradient(160deg, var(--mist), #fff);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft);
  text-align: center; padding: 20px; overflow: hidden; position: relative;
}
.ceo-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; border-radius: 0 !important; }
.ceo-quote {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.7vw, 36px);
  line-height: 1.32;
  letter-spacing: -0.015em;
  margin: 18px 0 0;
  text-wrap: pretty;
}
.ceo-quote span { color: var(--indigo); }
.ceo-name { margin-top: 26px; font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em; color: var(--ink-soft); }

/* ---------- Blog cards ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 28px); }
.blog-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .45s var(--ease), box-shadow .45s ease;
}
.blog-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.blog-thumb {
  aspect-ratio: 16 / 10;
  background: var(--grad-brand) center / cover no-repeat;
  overflow: hidden;
  transition: transform .8s var(--ease);
}
.blog-card:hover .blog-thumb { transform: scale(1.04); }
.blog-card > .blog-thumb { border-radius: 0; }
.blog-content { padding: 24px 26px 28px; }
.blog-meta {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--magenta);
  margin-bottom: 12px; text-transform: uppercase; letter-spacing: .1em;
}
.blog-content h3 { font-size: 19px; line-height: 1.32; margin-bottom: 10px; }
.blog-content p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.65; margin: 0; }

/* ---------- Testimonials ---------- */
.testimonial-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 28px); }
.testimonial {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: clamp(26px, 2.6vw, 36px);
  position: relative;
  transition: transform .4s var(--ease), box-shadow .4s ease;
}
.testimonial::before {
  content: "\201C"; position: absolute; right: 24px; top: 8px;
  font-family: var(--font-display); font-size: 84px; line-height: 1; color: color-mix(in srgb, var(--indigo) 14%, transparent);
}
.testimonial:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.testimonial p { font-size: 15.5px; color: var(--ink); line-height: 1.75; margin: 0; }
.testimonial .who {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
  font-family: var(--font-ui); font-weight: 600; font-size: 14.5px;
}
.stars { color: var(--orange); letter-spacing: 3px; font-size: 15px; }
.testimonial .stars { margin-bottom: 14px; display: block; }

/* ---------- Partners ---------- */
.partners-strip {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap;
  gap: 14px 40px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft);
}
.partners-strip span { opacity: .75; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 34px;
  padding: clamp(36px, 6vw, 84px);
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr);
  align-items: center;
  gap: 30px;
  background: var(--ink);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(55% 90% at 100% 0%, color-mix(in srgb, var(--magenta) 55%, transparent), transparent 62%),
    radial-gradient(60% 90% at 0% 100%, color-mix(in srgb, var(--indigo) 80%, transparent), transparent 66%),
    radial-gradient(40% 60% at 60% 110%, color-mix(in srgb, var(--orange) 40%, transparent), transparent 70%),
    var(--ink);
}
.cta-band h2 { color: #fff; font-size: clamp(28px, 3.8vw, 52px); font-weight: 560; }
.cta-band p { color: var(--on-dark); margin: 16px 0 0; font-size: 17px; max-width: 560px; }
.cta-band > div:last-child { justify-self: end; }
.cta-band .btn { padding: 18px 32px; font-size: 15.5px; }

/* ---------- Newsletter ---------- */
.newsletter-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: clamp(28px, 4vw, 52px);
  display: flex; justify-content: space-between; align-items: center;
  gap: 28px 40px; flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}
.newsletter-form { display: flex; gap: 10px; flex: 1 1 380px; max-width: 520px; }
.newsletter-form input {
  flex: 1; min-width: 0;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 15px 22px;
  font-family: var(--font-body); font-size: 15px;
  background: var(--cream);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.newsletter-form input:focus { outline: none; background: #fff; border-color: var(--indigo); box-shadow: 0 0 0 4px color-mix(in srgb, var(--indigo) 14%, transparent); }
.newsletter-form .btn { flex: none; }
.newsletter-msg { margin-top: 14px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  position: relative;
  background: var(--ink);
  color: var(--on-dark);
  padding: clamp(56px, 7vw, 92px) 0 30px;
  overflow: hidden;
  isolation: isolate;
}
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad-brand);
}
.site-footer::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 100% 100%, color-mix(in srgb, var(--indigo) 40%, transparent), transparent 70%),
    radial-gradient(35% 45% at 0% 0%, color-mix(in srgb, var(--magenta) 14%, transparent), transparent 70%);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(36px, 5vw, 56px);
  border-bottom: 1px solid var(--line-dark);
}
.footer-grid h4 {
  color: #fff;
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 22px;
}
.footer-grid a, .footer-grid p { display: block; font-size: 14.5px; line-height: 1.6; margin: 0 0 12px; color: var(--on-dark); }
.footer-grid a { transition: color .2s ease, transform .25s var(--ease); width: fit-content; }
.footer-grid a:hover { color: #fff; transform: translateX(4px); }
.footer-brand .logo-plate {
  display: inline-flex; background: #fff; border-radius: 16px; padding: 10px 16px; margin-bottom: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.footer-brand img { height: 40px; width: auto; display: block; }
.footer-brand p { max-width: 340px; line-height: 1.75; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.footer-social a {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 600;
  font-family: var(--font-mono);
  margin: 0; color: #fff;
  transition: background .25s ease, border-color .25s ease, transform .25s var(--ease);
}
.footer-social a:hover { background: var(--grad-brand); border-color: transparent; transform: translateY(-3px); }
.footer-grid .footer-social a:hover { transform: translateY(-3px); }
.footer-bottom {
  padding-top: 26px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--on-dark-dim);
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom a:hover { color: #fff; }
.to-top {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 500;
  border: 1px solid var(--line-dark); border-radius: 999px; padding: 8px 16px;
  transition: background .2s ease, color .2s ease;
}
.to-top:hover { background: #fff; color: var(--ink) !important; }

/* ==========================================================================
   INNER PAGES
   ========================================================================== */
.page-hero {
  position: relative;
  padding: clamp(44px, 6vw, 84px) 0 clamp(40px, 5vw, 68px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(50% 120% at 100% 0%, color-mix(in srgb, var(--magenta) 10%, transparent), transparent 62%),
    radial-gradient(50% 120% at 0% 100%, color-mix(in srgb, var(--indigo) 12%, transparent), transparent 66%),
    var(--mist);
  overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000);
          mask-image: linear-gradient(90deg, transparent 30%, #000);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(34px, 5vw, 64px); margin-top: 20px; font-weight: 560; max-width: 900px; }
.page-hero p { max-width: 640px; color: var(--ink-soft); margin-top: 18px; font-size: clamp(16px, 1.5vw, 18.5px); line-height: 1.7; }
.breadcrumb {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; letter-spacing: .04em; color: var(--ink-soft);
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px;
}
.breadcrumb a { color: var(--indigo); transition: color .2s ease; }
.breadcrumb a:hover { color: var(--magenta); text-decoration: underline; text-underline-offset: 4px; }

/* Company-page colour options keep working — now as gentle tints */
.page-hero.sc-banner--indigo { background-image:
  radial-gradient(50% 120% at 100% 0%, color-mix(in srgb, var(--indigo) 18%, transparent), transparent 62%),
  linear-gradient(180deg, color-mix(in srgb, var(--indigo) 5%, #fff), var(--mist)); }
.page-hero.sc-banner--sunset { background-image:
  radial-gradient(50% 120% at 100% 0%, color-mix(in srgb, var(--orange) 24%, transparent), transparent 62%),
  radial-gradient(50% 120% at 0% 100%, color-mix(in srgb, var(--magenta) 10%, transparent), transparent 66%),
  linear-gradient(180deg, #fff8f1, #fff1f6); }
.page-hero.sc-banner--ink { background-image:
  radial-gradient(50% 120% at 100% 0%, color-mix(in srgb, var(--ink) 14%, transparent), transparent 62%),
  linear-gradient(180deg, #f4f3f8, #e9e7f1); }
.page-hero.sc-banner--indigo::after, .page-hero.sc-banner--sunset::after, .page-hero.sc-banner--ink::after { opacity: .45; }

/* ---------- Company detail hero ---------- */
.concern-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  margin-top: clamp(20px, 3vw, 34px);
}
.concern-hero-grid.no-banner { grid-template-columns: 1fr; }
.concern-id { display: flex; align-items: center; gap: 18px; }
.concern-id .sc-logo-badge { position: static; width: 76px; height: 76px; font-size: 22px; flex: none; }
.concern-hero-grid h1 { margin-top: 0; font-size: clamp(32px, 4.6vw, 60px); }
.concern-tagline { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-soft); margin: 14px 0 0; line-height: 1.6; }
.concern-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.concern-banner-box {
  position: relative;
  aspect-ratio: 16 / 9;         /* same ratio as the list card — banners are never cropped */
  border-radius: 28px;
  background: var(--mist) center / cover no-repeat;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  overflow: hidden;
}
.concern-mv {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 30px); margin-top: 28px;
}
.mv-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(26px, 3vw, 42px); position: relative; overflow: hidden;
}
.mv-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad-brand); }
.mv-card h2 { font-size: clamp(22px, 2.4vw, 30px); margin-bottom: 14px; }
.mv-card p { color: var(--ink-soft); font-size: 16px; line-height: 1.85; margin: 0; }
.contact-lines a { color: var(--indigo); font-weight: 500; }
.contact-lines a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 28px); }
.team-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 12px 22px; min-width: 0;
  transition: transform .4s var(--ease), box-shadow .4s ease;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.team-photo {
  width: 100%; aspect-ratio: 4 / 5;
  border-radius: calc(var(--radius) - 8px);
  background: linear-gradient(160deg, color-mix(in srgb, var(--indigo) 14%, #fff), color-mix(in srgb, var(--magenta) 10%, #fff));
  margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 44px; font-weight: 600; color: color-mix(in srgb, var(--indigo) 60%, #fff);
  overflow: hidden; position: relative;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; display: block; border-radius: 0 !important; transition: transform .8s var(--ease); }
.team-card:hover .team-photo img { transform: scale(1.05); }
.team-card h4, .team-card .role, .team-card .bio, .team-card .contact, .team-card .footer-social { padding: 0 10px; }
.team-card h4 { font-size: 17px; margin-bottom: 4px; }
.team-card .role { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--magenta); line-height: 1.5; }
.team-card .bio { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; margin: 10px 0 0; }
.team-card .contact { margin-top: 12px; font-size: 13px; color: var(--ink-soft); word-break: break-word; }
.team-card .contact a { color: var(--indigo); }
.team-card .footer-social { margin-top: 14px; }
.team-card .footer-social a { width: 34px; height: 34px; border-color: var(--line); color: var(--ink); font-size: 11.5px; }
.team-card .footer-social a:hover { color: #fff; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 44px; max-width: 820px; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 10px; bottom: 10px; width: 2px;
  background: linear-gradient(180deg, var(--orange), var(--magenta), var(--indigo));
  border-radius: 2px; opacity: .55;
}
.tl-item { position: relative; padding-bottom: clamp(28px, 3vw, 40px); }
.tl-item::before {
  content: ""; position: absolute; left: -44px; top: 8px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--cream); border: 4px solid var(--magenta);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--magenta) 14%, transparent);
}
.tl-item b { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.015em; }
.tl-item p { margin: 6px 0 0; color: var(--ink-soft); font-size: 16px; line-height: 1.7; max-width: 640px; }

/* ---------- Offices, contact ---------- */
.office-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 28px); }
.office-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 2.6vw, 34px);
  transition: transform .4s var(--ease), box-shadow .4s ease;
}
.office-card:hover { box-shadow: var(--shadow-md); }
.office-card h4 { font-size: 19px; margin-bottom: 12px; }
.office-card .map {
  margin-top: 20px; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--indigo) 8%, #fff), var(--mist));
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); text-align: center; padding: 14px;
}
.office-card .map iframe { width: 100%; height: 100%; display: block; border: 0; border-radius: 0 !important; }
.map-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--indigo); }
.map-link:hover { color: var(--magenta); }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-grid > div:first-child {
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
  padding: clamp(24px, 3.4vw, 46px); box-shadow: var(--shadow-sm);
}
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: 9px; color: var(--ink-soft);
}
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 15px 18px;
  font-family: var(--font-body);
  font-size: 16px;               /* 16px stops iOS zooming into the field */
  color: var(--ink);
  background: var(--cream);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.form-field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; background: #fff; border-color: var(--indigo);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--indigo) 14%, transparent);
}
.form-field input[type="file"] { padding: 12px; background: #fff; cursor: pointer; }
.contact-side .office-card { margin-bottom: 20px; }
.contact-grid .btn[type="submit"], .contact-grid button.btn { padding: 16px 30px; }

/* ---------- Job listing ---------- */
.job-card {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 2.6vw, 32px); margin-bottom: 18px; flex-wrap: wrap; gap: 20px;
  transition: transform .4s var(--ease), box-shadow .4s ease, border-color .3s ease;
}
.job-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--indigo) 22%, transparent); }
.job-card h3 { font-size: 21px; margin-bottom: 8px; }
.job-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.pill {
  background: color-mix(in srgb, var(--indigo) 9%, #fff); color: var(--indigo-deep);
  padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 550;
}

/* ---------- Article typography ---------- */
.article-body { max-width: 760px; margin: 0 auto; font-size: 17.5px; }
.article-body h2 { font-size: clamp(26px, 3vw, 36px); margin: 2.1em 0 .6em; font-weight: 560; }
.article-body h3 { font-size: clamp(20px, 2.1vw, 24px); margin: 1.8em 0 .5em; }
.article-body h4 { font-size: 18px; margin: 1.6em 0 .4em; }
.article-body p { font-size: 17.5px; line-height: 1.85; color: color-mix(in srgb, var(--ink) 82%, transparent); margin: 0 0 1.25em; }
.article-body ul, .article-body ol { padding-left: 1.4em; color: color-mix(in srgb, var(--ink) 82%, transparent); font-size: 17.5px; line-height: 1.85; margin: 0 0 1.4em; }
.article-body li { margin-bottom: .4em; }
.article-body li::marker { color: var(--magenta); }
.article-body a { color: var(--indigo); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.article-body a:hover { color: var(--magenta); }
.article-body img { border-radius: 18px; margin: 1.6em 0; display: block; }
.article-body blockquote {
  margin: 1.8em 0; padding: 6px 0 6px 26px; border-left: 4px solid; border-image: var(--grad-brand) 1;
  font-family: var(--font-display); font-size: 1.25em; line-height: 1.5; color: var(--ink); font-weight: 500;
}
.article-body table { width: 100%; border-collapse: collapse; margin: 1.6em 0; font-size: 15.5px; display: block; overflow-x: auto; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; }
.article-body th { background: var(--mist); }
.article-body pre, .article-body code { font-family: var(--font-mono); font-size: .9em; }
.article-body pre { background: var(--ink); color: #fff; padding: 18px; border-radius: 14px; overflow-x: auto; }
.article-body iframe, .article-body video { width: 100%; border-radius: 16px; border: 0; aspect-ratio: 16 / 9; height: auto; }
.article-hero-img {
  aspect-ratio: 16 / 9; border-radius: 28px;
  background: var(--grad-cool) center / cover no-repeat;
  margin-bottom: 44px; box-shadow: var(--shadow-md);
}

/* ---------- Comments & form feedback ---------- */
.comment { padding: 22px 0; border-bottom: 1px solid var(--line); }
.comment:last-of-type { border-bottom: none; }
.comment-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; gap: 12px; }
.comment-head strong { font-family: var(--font-ui); font-size: 15px; }
.comment-head span { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-soft); }
.comment p { margin: 0; font-size: 15px; line-height: 1.75; color: var(--ink-soft); }
.comment-form-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: 26px;
  padding: clamp(22px, 3vw, 36px); margin-top: 40px; box-shadow: var(--shadow-sm);
}
.comment-form-box h3 { font-size: 20px; margin-bottom: 22px; }
.comment-form-box .two-col { gap: 16px; }
.form-msg, .newsletter-msg { margin-top: 14px; padding: 13px 16px; border-radius: 14px; font-size: 14px; }
.msg-ok  { background: #E8F6EE; color: #12603A; border: 1px solid rgba(27,122,75,.3); }
.msg-err { background: #FDECEF; color: #8E1029; border: 1px solid rgba(196,24,60,.3); }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 6px; }
.chip {
  display: inline-flex; align-items: center;
  padding: 10px 20px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 14px; font-weight: 550; color: var(--ink);
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .25s var(--ease);
}
.chip:hover { border-color: var(--indigo); color: var(--indigo); transform: translateY(-2px); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: clamp(14px, 2vw, 22px); }
.gallery-item {
  position: relative; border: none; padding: 0; border-radius: 22px; overflow: hidden; cursor: zoom-in;
  aspect-ratio: 4 / 3; background: var(--mist); display: block; width: 100%;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .4s ease, transform .4s var(--ease);
}
.gallery-item:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s var(--ease); }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(23,17,37,.82), transparent);
  color: #fff; font-size: 13.5px; padding: 40px 18px 16px; text-align: left;
  opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease;
}
.gallery-item:hover .gallery-caption, .gallery-item:focus-visible .gallery-caption { opacity: 1; transform: none; }
.lightbox:not([hidden]) {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(10,8,18,.94);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 56px 20px 32px;
}
.lightbox img { max-width: min(94vw, 1400px); max-height: 80vh; border-radius: 14px; object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lightbox-caption { color: #fff; margin-top: 18px; font-size: 14.5px; text-align: center; max-width: 640px; }
.lightbox-close {
  position: absolute; top: 18px; right: 20px; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); color: #fff; font-size: 16px; cursor: pointer;
  transition: background .2s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,.22); }

/* ---------- Popup ---------- */
.popup-overlay {
  position: fixed; inset: 0; background: rgba(15,10,30,.6);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; z-index: 500; padding: 20px;
}
.popup-overlay.active { display: flex; }
.popup-box {
  background: #fff; border-radius: 28px; padding: clamp(26px, 4vw, 40px); max-width: 460px; width: 100%;
  position: relative; text-align: center; box-shadow: var(--shadow-lg); max-height: 90vh; overflow-y: auto;
}
.popup-box .streak-row { margin: 0 auto 20px; }
.popup-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 13px; z-index: 2;
}
.popup-close:hover { background: var(--mist); }
.popup-img { width: 100%; border-radius: 16px; margin-bottom: 18px; display: block; }
.popup-overlay.active .popup-box { animation-duration: .35s; animation-fill-mode: both; }
.popup-overlay.anim-fade.active     .popup-box { animation-name: jpnFade; }
.popup-overlay.anim-slide-up.active .popup-box { animation-name: jpnSlideUp; }
.popup-overlay.anim-zoom.active     .popup-box { animation-name: jpnZoom; }
@keyframes jpnFade    { from { opacity: 0; } to { opacity: 1; } }
@keyframes jpnSlideUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes jpnZoom    { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }

/* ---------- Floating action buttons ---------- */
.fab-stack {
  position: fixed; bottom: max(20px, env(safe-area-inset-bottom)); right: 20px; z-index: 90;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.fab-btn {
  position: relative; width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 12px 28px rgba(23,17,37,.26);
  transition: transform .3s cubic-bezier(.34,1.5,.64,1), box-shadow .3s ease;
}
.fab-btn:hover { transform: translateY(-4px) scale(1.07); }
.fab-call { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.fab-whatsapp { background: #25D366; color: #fff; }
.fab-chat { width: 60px; height: 60px; background: var(--ink); color: #fff; }
.fab-chat::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  background: var(--grad-brand); z-index: -1; opacity: .55; filter: blur(8px);
}
.chat-bubble { animation: jpnPulse 3.6s ease-in-out infinite; }
@keyframes jpnPulse {
  0%, 100% { box-shadow: 0 14px 30px rgba(23,17,37,.25), 0 0 0 0 rgba(236,18,121,.28); }
  50%      { box-shadow: 0 14px 30px rgba(23,17,37,.25), 0 0 0 12px rgba(236,18,121,0); }
}

/* ---------- AI chat widget ---------- */
.chat-panel {
  position: fixed; bottom: 104px; right: 20px; z-index: 95;
  width: 380px; max-width: calc(100vw - 32px);
  height: 540px; max-height: calc(100vh - 140px);
  background: #fff; border: 1px solid var(--line); border-radius: 26px;
  box-shadow: 0 30px 70px rgba(23,17,37,.28);
  display: flex; flex-direction: column; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.98);
  transition: opacity .25s ease, transform .3s var(--ease), visibility .25s;
}
.chat-panel.open { opacity: 1; visibility: visible; transform: none; }
.chat-head {
  background: linear-gradient(135deg, var(--ink), var(--indigo-deep));
  color: #fff; padding: 20px 22px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  position: relative; overflow: hidden;
}
.chat-head::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--grad-brand); }
.chat-head strong { font-family: var(--font-ui); font-size: 16px; display: block; }
.chat-head span { font-size: 12.5px; color: rgba(255,255,255,.7); display: block; margin-top: 4px; line-height: 1.45; }
.chat-close { background: transparent; border: none; color: rgba(255,255,255,.75); cursor: pointer; font-size: 15px; padding: 2px 4px; flex: none; }
.chat-close:hover { color: #fff; }
.chat-log { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px; background: var(--cream); }
.chat-msg { max-width: 86%; padding: 12px 16px; border-radius: 18px; font-size: 14.5px; line-height: 1.6; word-wrap: break-word; overflow-wrap: anywhere; }
.chat-msg p { margin: 0 0 8px; }
.chat-msg p:last-child { margin-bottom: 0; }
.chat-msg--bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; color: var(--ink); }
.chat-msg--user { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.chat-msg--pending { color: var(--ink-soft); font-style: italic; }
.chat-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chat-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--indigo); background: color-mix(in srgb, var(--indigo) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--indigo) 22%, transparent); transition: background .2s ease, color .2s ease, transform .2s ease;
}
.chat-link:hover { background: var(--indigo); color: #fff; transform: translateY(-1px); }
.chat-link--whatsapp { color: #128C4A; background: #E8F8EE; border-color: #B7E6C8; }
.chat-link--whatsapp:hover { background: #25D366; color: #fff; }
.chat-link--call { color: var(--ink); background: var(--mist); border-color: var(--line); }
.chat-link--call:hover { background: var(--ink); color: #fff; }
.chat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chat-chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 14px;
  font-family: var(--font-body); font-size: 13px; font-weight: 550; cursor: pointer; transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.chat-chip:hover { border-color: var(--indigo); color: var(--indigo); transform: translateY(-1px); }
.chat-dots { display: inline-flex; gap: 5px; align-items: center; height: 14px; }
.chat-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-soft); opacity: .4; animation: chatDot 1.2s infinite ease-in-out; }
.chat-dots i:nth-child(2) { animation-delay: .2s; } .chat-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes chatDot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
.fab-chat.has-hint::before {
  content: attr(title); position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%);
  background: #fff; color: var(--ink); font: 600 13px/1.3 var(--font-ui); padding: 9px 14px; border-radius: 12px;
  white-space: nowrap; box-shadow: var(--shadow-md); border: 1px solid var(--line); animation: jpnRise .5s var(--ease) both;
}
.chat-msg--bot { max-width: 92%; }

.chat-form { display: flex; gap: 8px; padding: 14px; border-top: 1px solid var(--line); background: #fff; }
.chat-form input {
  flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 12px 18px; font-family: var(--font-body); font-size: 16px; background: var(--cream); color: var(--ink);
}
.chat-form input:focus { outline: none; border-color: var(--indigo); background: #fff; }
.chat-form button {
  border: none; border-radius: 999px; background: var(--ink); color: #fff;
  font-family: var(--font-ui); font-weight: 600; font-size: 14px; padding: 0 20px; cursor: pointer; flex: none;
  transition: background .2s ease;
}
.chat-form button:hover:not(:disabled) { background: var(--indigo); }
.chat-form button:disabled { opacity: .5; cursor: default; }

/* ==========================================================================
   SUPPORTING RULES for markup added in the redesign
   ========================================================================== */
/* Company pages: breadcrumb is deliberately black, bold and larger (client request) */
.breadcrumb.breadcrumb--strong { color: #000; font-weight: 700; font-size: 14px; letter-spacing: .02em; }
.breadcrumb.breadcrumb--strong a, .breadcrumb.breadcrumb--strong span { color: #000; }
.breadcrumb.breadcrumb--strong a:hover { color: var(--indigo); }

.section-foot { margin-top: clamp(28px, 4vw, 48px); display: flex; justify-content: center; }
.richtext-head { max-width: 760px; margin-bottom: clamp(24px, 3vw, 40px); }
.richtext-head h2 { font-size: clamp(28px, 3.6vw, 46px); margin-top: 14px; }
.empty-state { text-align: center; padding: 64px 0; color: var(--ink-soft); }
.filters-band { padding-top: 0; padding-bottom: 0; }
.filters-band .filters { margin: 32px 0 0; }
.filters-band + section { padding-top: 40px; }
.hero h1 .accent { display: block; }

/* testimonials */
.testimonial { margin: 0; }
.testimonial blockquote { margin: 0; font-size: 15.5px; line-height: 1.75; color: var(--ink); }
.testimonial .who { display: flex; align-items: center; gap: 14px; }
.testimonial .who strong { display: block; font-weight: 650; }
.testimonial .who small { display: block; font-weight: 500; font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.avatar {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad-brand); color: #fff;
  font-family: var(--font-ui); font-weight: 700; font-size: 14px; letter-spacing: .02em;
}

/* image fills */
.sc-banner img, .blog-thumb img, .concern-banner-box img {
  width: 100%; height: 100%; object-fit: cover; display: block; position: relative; z-index: 0;
}
.sc-banner { overflow: visible; }
.sc-banner img { border-radius: var(--radius) var(--radius) 0 0; }
.blog-thumb { position: relative; }
.concern-banner-box img { position: absolute; inset: 0; }
.sc-card .sc-banner::after { border-radius: var(--radius) var(--radius) 0 0; }

.ceo-initials, .team-photo span {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em;
  color: color-mix(in srgb, var(--indigo) 60%, #fff);
}
.ceo-initials { font-size: clamp(56px, 8vw, 96px); }

.card .num {
  display: inline-block; font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: .08em; color: var(--magenta); margin-bottom: 14px;
}

/* social icons on a light background */
.footer-social.social-dark a { border-color: var(--line); color: var(--ink); background: #fff; }
.footer-social.social-dark a:hover { color: #fff; }

.contact-grid--single { grid-template-columns: minmax(0, 720px); justify-content: center; }
.form-title { font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 24px; }
.form-note { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-soft); margin-top: 14px; }
.form-msg ul { margin: 0; padding-left: 18px; }
.form-msg[hidden] { display: none; }
.contact-lines { color: var(--ink-soft); font-size: 14.5px; line-height: 1.75; margin: 0 0 14px; }
.contact-lines { overflow-wrap: anywhere; }
.contact-lines a { color: var(--indigo); }
.contact-lines a:hover { color: var(--magenta); }
.office-card .btn { margin-top: 6px; }

.article-hero-img { position: relative; overflow: hidden; }
.article-hero-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-title { font-size: clamp(30px, 4.4vw, 56px); max-width: 920px; }
.post-meta { margin-top: 18px; }
.crumb-current { color: var(--ink-soft); }
.wrap-narrow { max-width: 760px; }
.section-head--tight { margin-bottom: 24px; }
.section-head--tight h2 { font-size: clamp(22px, 2.4vw, 28px); }
.muted-text { color: var(--ink-soft); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.page-meta { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em; color: var(--ink-soft); margin-top: 14px !important; }
.article-narrow { max-width: 760px; }

.job-summary { color: var(--ink-soft); font-size: 14.5px; line-height: 1.65; margin: 6px 0 12px; max-width: 580px; }

/* burger icon */
.burger { position: relative; width: 18px; height: 14px; display: block; }
.burger i {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .3s var(--ease), opacity .2s ease, top .3s var(--ease);
}
.burger i:nth-child(1) { top: 0; }
.burger i:nth-child(2) { top: 6px; }
.burger i:nth-child(3) { top: 12px; }
.mobile-toggle[aria-expanded="true"] .burger i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.mobile-toggle[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; }
.mobile-toggle[aria-expanded="true"] .burger i:nth-child(3) { top: 6px; transform: rotate(-45deg); }
html.nav-locked { overflow: hidden; }

/* Japanese / Chinese typography */
html:lang(ja) body { font-family: "Noto Sans JP", var(--font-body); }
html:lang(zh-CN) body { font-family: "Noto Sans SC", var(--font-body); }
html:lang(ja) h1, html:lang(ja) h2, html:lang(ja) h3, html:lang(ja) .ceo-quote { font-family: "Noto Serif JP", var(--font-display); }
html:lang(zh-CN) h1, html:lang(zh-CN) h2, html:lang(zh-CN) h3, html:lang(zh-CN) .ceo-quote { font-family: "Noto Serif SC", var(--font-display); }

/* ==========================================================================
   PREMIUM LAYER — texture, numbering, spotlight, refined details
   ========================================================================== */
/* 1. A whisper of film grain over the whole page (never over text contrast) */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 2. Section numbering — "01 — ABOUT JPN GROUP" */
main { counter-reset: sec; }
main > section:not(.hero):not(.page-hero) { counter-increment: sec; }
main > section:not(.hero):not(.page-hero) .section-head .eyebrow::after,
main > section:not(.hero):not(.page-hero) .richtext-head .eyebrow::after {
  content: counter(sec, decimal-leading-zero);
  order: -1; font-family: var(--font-mono); font-weight: 500; color: var(--magenta); letter-spacing: .08em;
}
.section-head .eyebrow, .richtext-head .eyebrow { flex-wrap: wrap; }

/* 4. Hero — slow-drifting light orbs + scroll cue */
.hero-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; z-index: -1; pointer-events: none; will-change: transform; }
.hero-orb--a { width: 520px; height: 520px; right: -140px; top: -180px; background: color-mix(in srgb, var(--magenta) 55%, transparent); animation: orbA 18s ease-in-out infinite alternate; }
.hero-orb--b { width: 460px; height: 460px; left: -160px; bottom: -120px; background: color-mix(in srgb, var(--indigo) 80%, transparent); animation: orbB 22s ease-in-out infinite alternate; }
.hero-orb--c { width: 300px; height: 300px; left: 42%; top: -120px; background: color-mix(in srgb, var(--orange) 45%, transparent); animation: orbA 26s ease-in-out infinite alternate-reverse; }
@keyframes orbA { from { transform: translate(0,0) scale(1); } to { transform: translate(-60px, 50px) scale(1.12); } }
@keyframes orbB { from { transform: translate(0,0) scale(1); } to { transform: translate(70px, -40px) scale(.92); } }
.hero-copy { position: relative; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 2;
  width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.35); border-radius: 999px;
}
.scroll-cue::before { content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: #fff; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }
.hero-stats .stat b::after { content: ""; display: block; width: 22px; height: 2px; margin-top: 10px; background: var(--grad-brand); border-radius: 2px; }
.hero-stats .stat span { margin-top: 8px; }

/* 5. Spotlight that follows the cursor on cards */
.card, .sc-card, .blog-card, .testimonial, .team-card, .mv-card, .office-card, .job-card { --mx: 50%; --my: 50%; }
.card::after, .sc-card::after, .blog-card::after, .testimonial::after, .team-card::after, .mv-card::after, .office-card::after, .job-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; z-index: 0;
  background: radial-gradient(260px circle at var(--mx) var(--my), color-mix(in srgb, var(--indigo) 9%, transparent), transparent 60%);
  opacity: 0; transition: opacity .35s ease;
}
.card:hover::after, .sc-card:hover::after, .blog-card:hover::after, .testimonial:hover::after, .team-card:hover::after, .mv-card:hover::after, .office-card:hover::after, .job-card:hover::after { opacity: 1; }
.card > *, .blog-card > *, .testimonial > *, .team-card > *, .mv-card > *, .office-card > *, .job-card > * { position: relative; z-index: 1; }
.sc-card { position: relative; }
.sc-card > .sc-body { position: relative; z-index: 1; }
.sc-card::after { z-index: 1; }

/* 6. Image rings — photos get a soft inner hairline */
.sc-banner::before, .blog-thumb::before, .concern-banner-box::before, .team-photo::before, .article-hero-img::before, .gallery-item::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(23,17,37,.08); pointer-events: none; z-index: 2;
}
.sc-banner, .blog-thumb, .team-photo, .gallery-item { position: relative; }

/* 7. Value icons — gradient ring */
.value-icon { position: relative; }
.value-icon::after { content: ""; position: absolute; inset: -3px; border-radius: 19px; padding: 1px; background: var(--grad-brand); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .55; }

/* 8. Sister-concern cards: index chip + logo ring */
.sc-card .sc-index { position: absolute; top: 14px; right: 14px; z-index: 3; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: #fff; background: rgba(23,17,37,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 5px 9px; border-radius: 999px; }
.sc-logo-badge { box-shadow: 0 10px 24px rgba(23,17,37,.16), 0 0 0 4px #fff; }

/* 9. Buttons — gradient halo on hover for outline buttons on light bg */
.btn-outline { position: relative; }
.btn-primary .arrow { transition: transform .3s var(--ease); }
.btn-primary:hover .arrow { transform: translateX(4px); }

/* 10. Inner page hero — faint oversized title word */
.page-hero .wrap { position: relative; }
.page-hero h1 { position: relative; }
.page-hero .ghost {
  position: absolute; right: 0; bottom: -.32em; z-index: 0; pointer-events: none; user-select: none;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(64px, 9vw, 128px); line-height: 1; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--indigo) 13%, transparent); white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%);
  max-width: 60%; overflow: hidden; text-align: right;
}
.page-hero .breadcrumb { position: relative; z-index: 1; }

/* 11. Footer — giant faint wordmark + refined bottom row */
.site-footer .wrap { position: relative; z-index: 1; }
.footer-word {
  position: absolute; left: 50%; bottom: -.3em; transform: translateX(-50%); z-index: 0; pointer-events: none; user-select: none;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(120px, 22vw, 340px); line-height: 1; letter-spacing: -.05em;
  color: rgba(255,255,255,.028); white-space: nowrap;
}
.site-footer { isolation: isolate; }
.footer-bottom a.dev-credit-link { color: #fff; }

/* 12. Section dividers — a thin brand hairline between consecutive light sections */
main > section + section:not(.section-alt):not(.cta-section)::before {
  content: ""; position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}

/* 13. Links in article bodies */
.article-body a { color: var(--indigo); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--indigo) 35%, transparent); text-underline-offset: 4px; transition: text-decoration-color .2s ease; }
.article-body a:hover { text-decoration-color: var(--magenta); }

/* 14. Testimonial quote glyph + stars refined */
.testimonial .stars { font-size: 14px; letter-spacing: 2px; }

/* 15. Team card hover reveals a gradient underline on name */
.team-card h4 { position: relative; display: inline-block; }
.team-card h4::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 2px; background: var(--grad-brand); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.team-card:hover h4::after { transform: scaleX(1); }

/* 16. Selection colour */
::selection { background: color-mix(in srgb, var(--magenta) 22%, #fff); color: var(--ink); }

@media (prefers-reduced-motion: reduce) { .hero-orb, .scroll-cue::before { animation: none !important; } }
@media (max-width: 980px) { .scroll-cue { display: none; } .page-hero .ghost { font-size: 80px; bottom: -10px; } body::after { display: none; } .hero-orb { filter: blur(40px); } .hero-orb--c { display: none; } }
@media (max-width: 640px) { .fab-chat.has-hint::before { display: none; } }

/* ==========================================================================
   MOTION — content is ALWAYS visible by default. main.js opts below-the-fold
   elements into a gentle reveal (adds .rv) and removes it again on a timer,
   so a script failure can never leave anything invisible.
   ========================================================================== */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--rv-delay, 0s); }
.rv.is-in { opacity: 1; transform: none; }
.always-visible, .always-visible > * { animation: none !important; opacity: 1 !important; transform: none !important; }

.hero .eyebrow, .hero h1, .hero p.lead, .hero-cta, .hero-stats, .hero-panel { animation: jpnRise .9s var(--ease) both; }
.hero h1 { animation-delay: .08s; }
.hero p.lead { animation-delay: .18s; }
.hero-cta { animation-delay: .28s; }
.hero-stats { animation-delay: .38s; }
.hero-panel { animation-delay: .3s; }
.streak-row .streak { transform-origin: left; animation: jpnStreak .9s var(--ease) both; }
.streak-row .streak:nth-child(2) { animation-delay: .12s; }
.streak-row .streak:nth-child(3) { animation-delay: .24s; }
@keyframes jpnRise   { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes jpnStreak { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rv { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none !important; flex-wrap: wrap; width: auto; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .main-nav > a, .main-nav > .has-dropdown > a { padding: 10px 11px; font-size: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  :root { --header-h: 68px; }
  .main-nav { display: none; }
  .mobile-toggle { display: flex; }
  .header-tools { gap: 8px; }
  .header-tools .btn-primary { padding: 11px 16px; font-size: 13px; }
  .header-tools .btn-outline { display: none; }

  .main-nav.mobile-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; padding: 8px var(--gutter) 22px;
    border-top: 1px solid var(--line);
    border-radius: 0 0 26px 26px;
    box-shadow: 0 30px 50px rgba(23,17,37,.16);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    animation: jpnDrop .28s var(--ease) both;
  }
  .main-nav.mobile-open > a, .main-nav.mobile-open > .has-dropdown > a {
    display: block; padding: 17px 4px; font-size: 17px; border-radius: 0;
    border-bottom: 1px solid var(--line); background: none; color: var(--ink);
  }
  .main-nav.mobile-open > .has-dropdown > a::after { display: none; }
  .main-nav.mobile-open > a.active { color: var(--indigo); background: none; }
  .main-nav.mobile-open .has-dropdown .dropdown { display: none; }
  .main-nav.mobile-open .mobile-cta { display: inline-flex; margin-top: 18px; border-bottom: 0; }
  .main-nav.mobile-open .mobile-cta.btn { color: #fff; background: var(--ink); padding: 16px 24px; font-size: 15px; justify-content: center; border-radius: 999px; }

  .hero-grid, .ceo-block, .contact-grid, .card-grid, .blog-grid, .testimonial-strip, .office-grid, .cta-band,
  .concern-hero-grid, .concern-mv, .two-col { grid-template-columns: 1fr; }
  .cta-band > div:last-child { justify-self: start; }
  .ceo-photo { max-width: 320px; }
  .hero-panel { max-width: 640px; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-grid { gap: 24px; }
}
@keyframes jpnDrop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

@media (max-width: 640px) {
  section { padding: 56px 0; }
  .brand img { height: 34px; }
  .site-header .wrap { gap: 10px; }
  .lang-current { height: 40px; padding: 0 11px; }
  .tool-btn { width: 40px; height: 40px; }
  .header-tools .btn-primary { padding: 10px 13px; font-size: 12.5px; }
  .hero h1 { font-size: clamp(34px, 10vw, 46px); }
  .hero-stats { gap: 22px 30px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .team-grid { gap: 12px; }
  .team-card { padding: 8px 8px 16px; border-radius: 18px; }
  .team-card h4 { font-size: 15px; padding: 0 6px; }
  .team-card .role, .team-card .bio, .team-card .contact, .team-card .footer-social { padding: 0 6px; }
  .team-card .role { font-size: 10px; }
  .team-card .contact { font-size: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .newsletter-form { flex-direction: column; max-width: none; flex-basis: 100%; }
  .newsletter-form .btn { width: 100%; }
  .job-card .btn { width: 100%; }
  .timeline { padding-left: 38px; }
  .tl-item::before { left: -38px; width: 18px; height: 18px; }
  .fab-stack { right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); gap: 10px; }
  .fab-btn { width: 48px; height: 48px; }
  .fab-chat { width: 56px; height: 56px; }
  .chat-panel { right: 12px; left: 12px; bottom: 88px; width: auto; height: calc(100vh - 120px); border-radius: 22px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-caption { opacity: 1; transform: none; font-size: 12px; padding: 30px 12px 10px; }
  .article-body, .article-body p, .article-body ul, .article-body ol { font-size: 16.5px; }
}
@media (max-width: 400px) {
  .header-tools .btn-primary { display: none; }   /* the CTA lives inside the ☰ menu on very small phones */
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* CJK: wider glyphs need slightly smaller display sizes and looser lines */
html:lang(ja) h1, html:lang(zh-CN) h1, html:lang(ja) h2, html:lang(zh-CN) h2 { letter-spacing: 0; line-height: 1.3; font-weight: 600; }
html:lang(ja) .hero h1, html:lang(zh-CN) .hero h1 { font-size: clamp(32px, 4.6vw, 62px); line-height: 1.22; }
html:lang(ja) .hero h1 .accent, html:lang(zh-CN) .hero h1 .accent { font-style: normal; }
html:lang(ja) .page-hero h1, html:lang(zh-CN) .page-hero h1 { font-size: clamp(30px, 4.2vw, 52px); }
html:lang(ja) .section-head h2, html:lang(zh-CN) .section-head h2 { font-size: clamp(26px, 3.4vw, 42px); }
html:lang(ja) body, html:lang(zh-CN) body { line-height: 1.75; }
html:lang(ja) .eyebrow, html:lang(zh-CN) .eyebrow { letter-spacing: .08em; }

/* Print: just the content */
@media print {
  .site-header, .fab-stack, .chat-panel, .popup-overlay, .marquee, .site-footer::before, .site-footer::after { display: none !important; }
  .hero { background: #fff; color: #000; } .hero h1, .hero p.lead { color: #000; -webkit-text-fill-color: #000; }
}
