/* =========================================================
   TIMOA corporate site — shared styles for every language

   Layout follows runway.com (reference/runway/spec.md), refined with
   the visual design rules in docs/design-system.md:
     · Type scale: 12 / 14 / 15 / 16 / 20 / 24 / 32–56 (fluid)
     · Spacing: 4px base, 8px grid — 4 8 12 16 24 32 40 48 64 80 96 128
     · Line height: display 1.05–1.1 · titles 1.25 · body 1.6
     · Contrast: WCAG 2.2 AA for every text size
     · Targets: ≥ 44px on touch layouts
   ========================================================= */

:root {
  /* Color */
  --white: #ffffff;
  --ink: #0c0c0c;          /* headings, dark surfaces            19.6:1 on white */
  --text: #404040;         /* body copy                          10.4:1 */
  --muted: #6b6b6b;        /* notes, meta, labels                 5.3:1 */
  --inactive: #737373;     /* inactive tabs/list                  4.7:1 */
  --legal: #a3a3a3;        /* small text on --ink                 7.8:1 */
  --btn-dark: #262626;
  --btn-dark-hover: #000000;
  --btn-light: #eef1f5;
  --btn-light-hover: #e2e6ec;
  --btn-hero: #f7f7f7;
  --field: #8c8c8c;        /* form field border                   3.4:1 (non-text ≥ 3:1) */
  --danger: #b3261e;       /* errors                              6.5:1 */
  --line: rgba(0, 0, 0, 0.1);
  --line-dark: rgba(255, 255, 255, 0.22);

  /* Type — fluid sizes are linear from 390px to 1440px viewports */
  --font: "Inter", "Noto Sans JP", "Noto Sans SC", "Noto Sans HK", "Noto Sans KR", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-display: clamp(36px, calc(28.57px + 1.905vw), 56px);  /* 36 → 56 */
  --fs-h2: clamp(32px, calc(26.06px + 1.524vw), 48px);       /* 32 → 48 */
  --fs-h3: clamp(24px, calc(21.03px + 0.762vw), 32px);       /* 24 → 32 */
  --fs-title: clamp(20px, calc(18.51px + 0.381vw), 24px);    /* 20 → 24 */
  --fs-lead: clamp(18px, calc(17.26px + 0.19vw), 20px);      /* 18 → 20 */
  --fs-body-l: 18px;       /* long-form reading (articles, legal) */
  --fs-body: 16px;
  --fs-body-s: 15px;
  --fs-small: 14px;
  --fs-caption: 12px;

  /* Spacing (8px grid) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 40px; --s-8: 48px; --s-9: 64px; --s-10: 80px; --s-11: 96px; --s-12: 128px;
  --gutter: 64px;          /* page side margin: 64 / 48 / 32 / 20 */
  --container: 1312px;     /* max content width (1440 viewport − 2 × 64) */
  --section: 128px;        /* vertical section padding */
  --stack: 64px;           /* section heading → content */
  --header-h: 64px;

  /* Radius */
  --r-s: 8px;              /* buttons, small media */
  --r-m: 12px;             /* hero, large media */
  --r-l: 16px;             /* bordered cards */

  /* Controls */
  --btn-h: 40px;
  --btn-h-lg: 48px;

  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}
@media (max-width: 1279px) {
  :root { --gutter: 48px; }
}
@media (max-width: 1023px) {
  :root { --gutter: 32px; --section: 96px; --stack: 48px; --btn-h: 44px; --btn-h-lg: 48px; }
}
@media (max-width: 639px) {
  :root { --gutter: 20px; --section: 80px; --stack: 40px; }
}

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

html {
  background: var(--white);
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, ul, ol, figure { margin: 0; padding: 0; }
h1, h2, h3, h4 { font-weight: 400; text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; inset-inline-start: -9999px; top: var(--s-2); z-index: 100;
  padding: var(--s-2) var(--s-3); background: var(--ink); color: var(--white); border-radius: var(--r-s);
}
.skip-link:focus { inset-inline-start: var(--s-2); }

.wrap { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type roles ---------- */
.label {
  font-size: var(--fs-caption); line-height: 16px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--btn-h); padding: 0 var(--s-4);
  border: 0; border-radius: var(--r-s);
  font-size: var(--fs-small); line-height: 20px; font-weight: 600;
  white-space: nowrap; cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn--sm { min-height: 32px; padding: 0 var(--s-3); }
.btn--dark { background: var(--btn-dark); color: var(--white); }
.btn--dark:hover { background: var(--btn-dark-hover); }
.btn--light { background: var(--btn-light); color: #1a1a1a; }
.btn--light:hover { background: var(--btn-light-hover); }
.btn--hero {
  min-height: var(--btn-h-lg); padding: 0 var(--s-5);
  font-size: var(--fs-body); line-height: 24px;
  background: var(--btn-hero); color: var(--ink);
}
.btn--hero:hover { background: var(--white); }
.btn--lg { min-height: var(--btn-h-lg); padding: 0 var(--s-6); font-size: var(--fs-body); line-height: 24px; }
.btn--white { background: var(--white); color: var(--ink); }
.btn--white:hover { background: #e6e6e6; }
.btn--outline { background: transparent; color: var(--white); border: 1px solid rgba(255, 255, 255, 0.32); }
.btn--outline:hover { border-color: rgba(255, 255, 255, 0.7); }
.btn svg, .link-more svg { width: 16px; height: 16px; flex: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }

.link-more {
  display: inline-flex; align-items: center; gap: var(--s-1);
  min-height: 24px;
  font-size: var(--fs-small); line-height: 20px; font-weight: 600; color: #1a1a1a;
}
.link-more svg { transition: transform 0.2s var(--ease); }
.link-more:hover svg { transform: translateX(2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: transparent;
  transition: background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.site-header.is-scrolled, .site-header--solid, .menu-open .site-header { background: var(--white); box-shadow: 0 1px 0 var(--line); }
.site-header .wrap {
  height: 100%;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.logo {
  justify-self: start;
  font-size: 20px; line-height: 24px; font-weight: 700; letter-spacing: 0.02em; color: var(--ink);
}
.nav { display: flex; gap: var(--s-1); }
.nav a {
  display: inline-flex; align-items: center; height: 40px; padding: 0 var(--s-3);
  font-size: var(--fs-body-s); line-height: 24px; font-weight: 500; color: var(--ink);
  border-radius: var(--r-s);
  transition: background-color 0.2s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--btn-light); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: var(--s-2); }
.header-actions .btn { min-height: 32px; padding: 0 var(--s-3); }

/* Language switcher */
.lang { position: relative; }
.lang__btn svg { width: 14px; height: 14px; }
.lang__menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + var(--s-2));
  min-width: 176px; padding: var(--s-2);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; }
.lang__menu a {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 40px; padding: 0 var(--s-3); border-radius: var(--r-s);
  font-size: var(--fs-small); line-height: 20px; color: var(--text);
}
.lang__menu a:hover { background: var(--btn-light); }
.lang__menu a[aria-current="true"] { color: var(--ink); font-weight: 600; }
.lang__menu a[aria-current="true"]::after { content: "✓"; font-size: 12px; }

.menu-toggle {
  display: none; width: 40px; height: 40px; padding: 0;
  background: var(--btn-light); border: 0; border-radius: var(--r-s); cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink);
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 23px; }
.menu-open .menu-toggle span:nth-child(1) { top: 19.5px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { top: 19.5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--white);
  padding: var(--s-4) var(--gutter) var(--s-7);
  display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transition: opacity 0.2s var(--ease), visibility 0.2s;
  overflow-y: auto;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a.mobile-menu__link {
  display: flex; align-items: center; min-height: 56px;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-title); line-height: 1.25; color: var(--ink);
}
.mobile-menu .mobile-menu__langs { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5); }

@media (max-width: 1023px) {
  .nav, .header-actions .hide-md { display: none; }
  .menu-toggle { display: block; width: 44px; height: 44px; }
  .menu-toggle span { left: 14px; right: 14px; }
  .menu-toggle span:nth-child(1) { top: 18px; }
  .menu-toggle span:nth-child(2) { top: 25px; }
  .menu-open .menu-toggle span:nth-child(1), .menu-open .menu-toggle span:nth-child(2) { top: 21.5px; }
  .site-header .wrap { grid-template-columns: 1fr auto; }
  .header-actions .btn { min-height: 44px; }
  .logo, .footer-logo { display: inline-flex; align-items: center; min-height: 44px; }
  .link-more { min-height: 44px; }
}
@media (min-width: 1024px) { .mobile-menu { display: none; } }

/* ---------- Hero ---------- */
.hero { padding-top: var(--header-h); }
.hero__card {
  position: relative; isolation: isolate;
  height: 600px;
  border-radius: var(--r-m); overflow: hidden;
  background: var(--ink);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--s-8);
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0) 100%),
              linear-gradient(0deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 55%);
}
.hero__content { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-4); max-width: 720px; }
.hero h1 {
  font-size: var(--fs-display); line-height: 1.05; letter-spacing: -0.025em; color: var(--white);
}
.hero__lead {
  max-width: 34em;
  font-size: var(--fs-lead); line-height: 1.5; color: rgba(255, 255, 255, 0.9);
}
.hero__content .btn--hero { margin-top: var(--s-4); }
@media (max-width: 1023px) {
  .hero__card { height: 560px; padding: var(--s-6); }
}
@media (max-width: 639px) {
  .hero__card { height: 560px; padding: var(--s-5); }
}

/* ---------- Brand strip ---------- */
.brands { padding-top: var(--s-9); }
.brands__caption { font-size: var(--fs-small); line-height: 20px; text-align: center; color: var(--muted); }
.brands__row {
  margin-top: var(--s-5);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s-4) var(--s-8);
}
.brands__row span {
  font-size: 18px; line-height: 24px; font-weight: 600; letter-spacing: -0.01em; color: #737373;
}
.brands__row span.cjk { font-weight: 500; }
@media (max-width: 1023px) { .brands__row { gap: var(--s-3) var(--s-6); } }
@media (max-width: 639px) {
  .brands__caption { padding-inline: var(--s-4); }
  .brands__row { gap: var(--s-2) var(--s-5); }
  .brands__row span { font-size: var(--fs-body-s); }
}

/* ---------- Section rhythm ---------- */
/* One rhythm: every block owns only its top space, so gaps never double up. */
.section, #why, .news, .company { padding-top: var(--section); }
.company { padding-bottom: var(--section); }

.h2-center {
  max-width: 22ch; margin: 0 auto;
  font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.02em; text-align: center; color: var(--ink);
}
.h2-left { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }

/* ---------- Businesses ---------- */
.biz-grid {
  margin-top: var(--stack);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-8) var(--s-5);
}
@media (max-width: 1023px) { .biz-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-9) var(--s-5); } }
@media (max-width: 639px) { .biz-grid { grid-template-columns: 1fr; gap: var(--s-9); } }

.biz { display: flex; flex-direction: column; }
.biz__title { font-size: var(--fs-caption); line-height: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.biz__media {
  display: block; margin-top: var(--s-3); aspect-ratio: 16 / 10;
  border-radius: var(--r-s); overflow: hidden; position: relative;
}
.biz__headline {
  margin-top: var(--s-5);
  font-size: var(--fs-title); line-height: 1.25; letter-spacing: -0.01em; color: var(--ink);
}
.biz__body { margin-top: var(--s-3); font-size: var(--fs-body-s); line-height: 24px; color: var(--text); }
.biz .btn-row { margin-top: auto; padding-top: var(--s-5); }
.biz__note { margin-top: var(--s-3); min-height: 32px; font-size: var(--fs-caption); line-height: 16px; color: var(--muted); } /* 2 lines reserved so button rows align */

/* ---------- Products (tabbed card) ---------- */
.tabs {
  display: flex; align-items: center; gap: var(--s-5);
  margin-bottom: var(--s-5);
}
.tabs__btn {
  flex: none; padding: var(--s-2) 0; background: none; border: 0; cursor: pointer;
  font-size: var(--fs-title); line-height: 1.25; letter-spacing: -0.01em; color: var(--inactive);
  transition: color 0.2s var(--ease);
}
.tabs__btn[aria-selected="true"], .tabs__btn:hover { color: var(--ink); }
.tabs__line { flex: 1 1 0; height: 1px; background: var(--line); min-width: var(--s-4); }
@media (max-width: 1439px) {  /* seven product tabs: compact row below the 1440 design width */
  .tabs { gap: var(--s-5); justify-content: space-between; overflow-x: auto; scrollbar-width: none; }
  .tabs__line { display: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs__btn { font-size: var(--fs-lead); }
}
@media (max-width: 1023px) {
  .tabs { flex-wrap: wrap; gap: 0 var(--s-5); }
  .tabs__line { display: none; }
  .tabs__btn { min-height: 44px; font-size: var(--fs-body); line-height: 24px; }
}

.tab-card {
  border: 1px solid var(--line); border-radius: var(--r-l); background: var(--white);
  padding: var(--s-8);
}
.tab-panel { display: grid; grid-template-columns: 4fr 8fr; gap: var(--s-8); align-items: center; }
.tab-panel[hidden] { display: none; }
@media (max-width: 1023px) {
  .tab-card { padding: var(--s-6); }
  .tab-panel { grid-template-columns: 1fr; gap: var(--s-6); }
}
@media (max-width: 639px) {
  .tab-card { padding: var(--s-5); }
}

.feature-list { display: flex; flex-direction: column; gap: var(--s-1); }
.feature-list button {
  width: 100%; padding: var(--s-2) 0; background: none; border: 0; cursor: pointer; text-align: start;
  font-size: var(--fs-title); line-height: 1.25; letter-spacing: -0.01em; color: var(--inactive);
  transition: color 0.2s var(--ease);
}
.feature-list button[aria-pressed="true"], .feature-list button:hover { color: var(--ink); }
@media (max-width: 1023px) { .feature-list button { min-height: 44px; } }
.tab-panel .btn-row { margin-top: var(--s-6); }

.tab-media {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-m); overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end; padding: var(--s-6);
  color: var(--white);
}
.tab-media::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 60%);
}
.tab-media .art { position: absolute; inset: 0; z-index: -2; }
.tab-media__wordmark {
  position: absolute; top: var(--s-5); inset-inline-start: var(--s-6);
  font-size: var(--fs-caption); line-height: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: var(--s-2) var(--s-3); border-radius: var(--r-s); background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.tab-media__title { font-size: var(--fs-title); line-height: 1.25; letter-spacing: -0.01em; }
.tab-media__text { margin-top: var(--s-2); max-width: 52ch; font-size: var(--fs-body-s); line-height: 24px; color: rgba(255, 255, 255, 0.9); }
@media (max-width: 639px) {
  .tab-media { padding: var(--s-5); }
  .tab-media__wordmark { top: var(--s-4); inset-inline-start: var(--s-5); }
  .tab-media__text { display: none; }
}
.tab-media__caption-mobile { display: none; margin-top: var(--s-4); font-size: var(--fs-body-s); line-height: 24px; color: var(--text); }
@media (max-width: 639px) { .tab-media__caption-mobile { display: block; } }

/* ---------- Statement media panel ---------- */
.panel {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 640px; border-radius: var(--r-m); background: var(--ink); color: var(--white);
  display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: var(--s-9); align-items: center;
  padding: var(--s-9) var(--s-10) var(--s-9) var(--s-8);
}
.panel .art { position: absolute; inset: 0; z-index: -1; opacity: 0.85; }
.panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(0,0,0,0.55), rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.6));
}
.panel__statement { align-self: end; }
.panel__label { font-size: var(--fs-caption); line-height: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.75); }
.panel__text { margin-top: var(--s-4); max-width: 18em; font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.015em; }
.panel__list li { padding: var(--s-5) 0; border-top: 1px solid var(--line-dark); }
.panel__list li:last-child { border-bottom: 1px solid var(--line-dark); }
.panel__list h4 { font-size: var(--fs-lead); line-height: 1.3; }
.panel__list p { margin-top: var(--s-2); font-size: var(--fs-body-s); line-height: 24px; color: rgba(255, 255, 255, 0.85); }
@media (max-width: 1023px) {
  .panel { grid-template-columns: 1fr; gap: var(--s-8); padding: var(--s-8) var(--s-6); min-height: 0; }
  .panel__statement { align-self: start; }
}
@media (max-width: 639px) { .panel { padding: var(--s-7) var(--s-5); } }

/* ---------- News ---------- */
.news-grid {
  margin-top: var(--stack);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-8) var(--s-6);
}
@media (max-width: 639px) {
  /* Mobile: swipeable row — the next card peeks in so the row reads as scrollable */
  .news-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; gap: var(--s-4);
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
  }
  .news-grid::-webkit-scrollbar { display: none; }
  .news-grid:focus-visible { outline-offset: -2px; }
  .news-item { scroll-snap-align: start; }
}
.carousel-dots { display: none; }
@media (max-width: 639px) {
  .carousel-dots { display: flex; justify-content: center; gap: var(--s-2); margin-top: var(--s-5); }
  .carousel-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(0, 0, 0, 0.16); transition: background-color 0.2s var(--ease), width 0.2s var(--ease); }
  .carousel-dots span.is-active { width: 24px; border-radius: 4px; background: var(--ink); }
}
.news-item { position: relative; display: flex; gap: var(--s-5); } /* keeps .visually-hidden text inside the mobile scroller */
@media (max-width: 1023px) { .news-item { flex-direction: column; gap: var(--s-4); } }
.news-item__media {
  flex: none; width: 46%; aspect-ratio: 16 / 9; align-self: flex-start; border-radius: var(--r-s); overflow: hidden;
}
@media (max-width: 1023px) { .news-item__media { width: 100%; } }
.news-item__body { display: flex; flex-direction: column; }
.news-item .post-meta { margin-bottom: var(--s-2); }
.news-item h3 { font-size: var(--fs-title); line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); }
.news-item p { margin-top: var(--s-2); font-size: var(--fs-body-s); line-height: 24px; color: var(--muted);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.news-item .link-more { margin-top: var(--s-4); }

/* ---------- Company ---------- */
.company__grid { margin-top: var(--stack); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-9); }
@media (max-width: 1023px) { .company__grid { grid-template-columns: 1fr; gap: var(--s-8); } }
.company__message { max-width: 34em; }
.company__message p { font-size: var(--fs-title); line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
.company__message p + p { margin-top: var(--s-4); font-size: var(--fs-body); line-height: 1.6; letter-spacing: 0; color: var(--text); }
.company__sign { margin-top: var(--s-5) !important; font-weight: 600; color: var(--ink) !important; }
.overview { width: 100%; border-collapse: collapse; }
.overview th, .overview td {
  text-align: start; vertical-align: top; padding: var(--s-4) 0; border-top: 1px solid var(--line);
  font-size: var(--fs-body-s); line-height: 24px;
}
.overview tr:last-child th, .overview tr:last-child td { border-bottom: 1px solid var(--line); }
.overview th { width: 32%; padding-inline-end: var(--s-5); font-weight: 400; color: var(--muted); }
.overview td { color: var(--ink); }
.overview td a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0,0,0,0.25); }
.overview td a:hover { text-decoration-color: currentColor; }
.tbd { color: var(--muted); font-style: italic; }
@media (max-width: 639px) {
  .overview th, .overview td { display: block; width: 100%; padding: 0; border: 0; }
  .overview th { padding-top: var(--s-4); border-top: 1px solid var(--line); }
  .overview td { padding: var(--s-1) 0 var(--s-4); }
  .overview tr:last-child td { border-bottom: 1px solid var(--line); }
}

/* ---------- Closing CTA ---------- */
.cta { padding: var(--section) 0; border-top: 1px solid var(--line); text-align: center; }
.cta p { max-width: 34em; margin: var(--s-5) auto 0; font-size: var(--fs-lead); line-height: 1.5; color: var(--text); }
.cta .btn-row { justify-content: center; margin-top: var(--s-6); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--white); padding-top: var(--s-11); }
.footer-top { display: grid; grid-template-columns: 4fr 8fr; gap: var(--s-9); }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-5); max-width: 360px; }
.footer-logo { font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: 0.02em; color: var(--white); }
.footer-tagline { font-size: var(--fs-body-s); line-height: 24px; color: rgba(255, 255, 255, 0.72); }
.footer-brand .btn-row { margin-top: var(--s-2); }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-8) var(--s-5); }
.footer-col h2 { font-size: var(--fs-caption); line-height: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--legal); }
.footer-col ul { margin-top: var(--s-4); display: flex; flex-direction: column; gap: var(--s-3); }
.footer-col a { display: inline-flex; align-items: center; gap: var(--s-1); font-size: var(--fs-body-s); line-height: 24px; color: rgba(255, 255, 255, 0.86); transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--white); }
.footer-col .ext, .link-more .ext { width: 12px; height: 12px; opacity: 0.6; }
.footer-bottom {
  margin-top: var(--s-11); padding: var(--s-6) 0; border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4) var(--s-8); flex-wrap: wrap;
}
.footer-bottom__left { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-2) var(--s-6); }
.legal { font-size: var(--fs-caption); line-height: 16px; color: var(--legal); }
.footer-legal, .footer-langs ul { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.footer-legal a, .footer-langs a { display: inline-flex; align-items: center; font-size: var(--fs-caption); line-height: 16px; color: var(--legal); transition: color 0.2s var(--ease); }
.footer-legal a:hover, .footer-langs a:hover, .footer-langs a[aria-current="true"] { color: var(--white); }
.footer-langs { display: flex; align-items: center; gap: var(--s-3); color: var(--legal); }
.footer-langs > svg { width: 14px; height: 14px; }
@media (max-width: 1023px) {
  .footer-top { grid-template-columns: 1fr; gap: var(--s-8); }
  .footer-brand { max-width: 480px; }
  .footer-col ul { gap: 0; }
  .footer-col a { min-height: 44px; }
  .footer-legal a, .footer-langs a { min-height: 44px; font-size: var(--fs-small); }
  .footer-bottom { margin-top: var(--s-9); flex-direction: column; align-items: flex-start; gap: var(--s-2); }
}
@media (max-width: 767px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Sub pages ---------- */
.page { padding-top: var(--header-h); }
.page-head { padding: var(--s-10) 0 var(--s-9); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s-2); font-size: var(--fs-small); line-height: 20px; color: var(--muted); }
.breadcrumb li { display: inline-flex; align-items: center; gap: var(--s-2); min-width: 0; }
.breadcrumb li + li::before { content: "/"; color: var(--legal); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb [aria-current="page"] { color: var(--ink); max-width: 32ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.breadcrumb li[aria-current="page"]::before { margin-inline-end: var(--s-2); }
.breadcrumb + * { margin-top: var(--s-8); }
.eyebrow { font-size: var(--fs-caption); line-height: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.eyebrow + .page-title { margin-top: var(--s-4); }
.page-title { max-width: 18em; font-size: var(--fs-display); line-height: 1.05; letter-spacing: -0.025em; color: var(--ink); }
.page-lead { max-width: 34em; margin-top: var(--s-5); font-size: var(--fs-lead); line-height: 1.5; color: var(--text); }
.page-head__actions { margin-top: var(--s-6); }
.page-updated { margin-top: var(--s-4); font-size: var(--fs-small); line-height: 20px; color: var(--muted); }
.page-media { aspect-ratio: 21 / 9; border-radius: var(--r-m); overflow: hidden; }
@media (max-width: 1023px) {
  .page-head { padding: var(--s-8) 0 var(--s-8); }
  .breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; }
  .breadcrumb + * { margin-top: var(--s-5); }
  .page-media { aspect-ratio: 16 / 9; }
}
@media (max-width: 639px) { .page-media { aspect-ratio: 4 / 3; } }

.section--tight { padding-top: 0; }
.section--last { padding-bottom: var(--section); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: var(--s-4) var(--s-5); }
.section-head .h2-left { flex: 1 1 auto; }
.split { display: grid; grid-template-columns: 4fr 8fr; gap: var(--s-6) var(--s-9); align-items: start; }
@media (max-width: 1023px) { .split { grid-template-columns: 1fr; } }

/* Post cards (news, other businesses) */
.post-meta { display: flex; flex-wrap: wrap; gap: 0 var(--s-3); font-size: var(--fs-small); line-height: 20px; color: var(--muted); }
.post-meta span { color: var(--ink); font-weight: 500; }
.post-grid { margin-top: var(--stack); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-8) var(--s-6); }
@media (max-width: 1023px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .post-grid { grid-template-columns: 1fr; gap: var(--s-7); } }
.post-card__link { display: flex; flex-direction: column; height: 100%; }
.post-card__media { aspect-ratio: 16 / 9; border-radius: var(--r-s); overflow: hidden; }
.post-card__media .art { transition: transform 0.6s var(--ease); }
.post-card__link:hover .post-card__media .art { transform: scale(1.03); }
.post-card__body { margin-top: var(--s-4); }
.post-card__title { margin-top: var(--s-2); font-size: var(--fs-title); line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.post-card__link:hover .post-card__title { text-decoration: underline; }
.post-card__excerpt { margin-top: var(--s-2); font-size: var(--fs-body-s); line-height: 24px; color: var(--muted);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.post-card--feature .post-card__link { display: grid; grid-template-columns: 7fr 5fr; gap: var(--s-8); align-items: center; }
.post-card--feature .post-card__media { border-radius: var(--r-m); }
.post-card--feature .post-card__body { margin-top: 0; }
.post-card--feature .post-card__title { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.015em; }
.post-card--feature .post-card__excerpt { font-size: var(--fs-body); line-height: 1.6; }
.post-card--feature + .post-grid { margin-top: var(--s-9); padding-top: var(--s-9); border-top: 1px solid var(--line); }
@media (max-width: 1023px) {
  .post-card--feature .post-card__link { grid-template-columns: 1fr; gap: var(--s-4); }
  .post-card--feature + .post-grid { margin-top: var(--s-8); padding-top: var(--s-8); }
}

/* Business pages */
.intro { max-width: 960px; }
.intro__statement { font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -0.015em; color: var(--ink); }
.intro__body { max-width: 40em; margin-top: var(--s-6); font-size: var(--fs-body-l); line-height: 1.7; color: var(--text); }
.offerings { margin-top: var(--stack); }
.offering { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s-6) var(--s-9); padding: var(--s-9) 0; border-top: 1px solid var(--line); }
.offering:last-child { border-bottom: 1px solid var(--line); }
.offering__media { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-m); overflow: hidden; color: var(--white); }
.offering__name { margin-top: var(--s-5); font-size: var(--fs-title); line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); }
.offering__desc { margin-top: var(--s-2); font-size: var(--fs-body-s); line-height: 24px; color: var(--text); }
.offering__aside .btn-row { margin-top: var(--s-5); }
.offering__features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); align-content: start; }
.offering__features li { padding-top: var(--s-4); border-top: 1px solid var(--line); }
.offering__features h4 { font-size: var(--fs-lead); line-height: 1.3; font-weight: 400; color: var(--ink); }
.offering__features p { margin-top: var(--s-2); font-size: var(--fs-body-s); line-height: 24px; color: var(--muted); }
@media (max-width: 1023px) { .offering { grid-template-columns: 1fr; padding: var(--s-8) 0; } }
@media (max-width: 639px) { .offering__features { grid-template-columns: 1fr; gap: var(--s-5); } }
.points { margin-top: var(--stack); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-8) var(--s-6); }
.points li { padding-top: var(--s-5); border-top: 1px solid var(--ink); }
.point__num { display: block; font-size: var(--fs-caption); line-height: 16px; font-weight: 600; letter-spacing: 0.08em; color: var(--muted); font-variant-numeric: tabular-nums; }
.points h3 { margin-top: var(--s-4); font-size: var(--fs-title); line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); }
.points p { margin-top: var(--s-3); font-size: var(--fs-body-s); line-height: 24px; color: var(--text); }
@media (max-width: 1023px) { .points { grid-template-columns: 1fr; gap: var(--s-6); } }

/* Articles & legal text */
.article__col { max-width: 680px; margin-inline: auto; }  /* ≈ 70 characters at 18px */
.article .breadcrumb + .post-meta { margin-top: var(--s-8); }
.article__title { margin-top: var(--s-4); font-size: var(--fs-h2); line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
.article__lead { margin-top: var(--s-5); font-size: var(--fs-lead); line-height: 1.6; color: var(--text); }
.article__media { max-width: 1120px; margin-inline: auto; aspect-ratio: 16 / 9; border-radius: var(--r-m); overflow: hidden; }
.article .prose { margin-top: var(--s-9); }
.article__foot { margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.link-back { display: inline-flex; align-items: center; gap: var(--s-1); min-height: 24px; font-size: var(--fs-small); line-height: 20px; font-weight: 600; color: #1a1a1a; }
.link-back svg { width: 16px; height: 16px; }
@media (max-width: 1023px) {
  .article .breadcrumb + .post-meta { margin-top: var(--s-5); }
  .link-back { min-height: 44px; }
  .article .prose { margin-top: var(--s-8); }
}
.prose { font-size: var(--fs-body-l); line-height: 1.75; color: var(--text); }
.prose > * + *, .prose section > * + * { margin-top: var(--s-4); }
.prose h2 { margin-top: var(--s-8); font-size: var(--fs-title); line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
.prose > h2:first-child, .prose section:first-child { margin-top: 0; }
.prose section + section { margin-top: var(--s-8); }
.prose section > h2 { margin-top: 0; }
.prose ul { padding-inline-start: var(--s-5); list-style: disc; }
.prose li + li { margin-top: var(--s-2); }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0, 0, 0, 0.3); }
.prose a:hover { text-decoration-color: currentColor; }
.legal-doc { display: grid; grid-template-columns: 3fr 9fr; gap: var(--s-9); align-items: start; }
.legal-doc .prose { max-width: 680px; }
.toc { position: sticky; top: calc(var(--header-h) + var(--s-6)); }
.toc__title { font-size: var(--fs-caption); line-height: 16px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin-top: var(--s-4); display: flex; flex-direction: column; gap: var(--s-1); }
.toc a { display: block; padding: var(--s-1) 0; font-size: var(--fs-small); line-height: 20px; color: var(--muted); }
.toc a:hover { color: var(--ink); }
@media (max-width: 1023px) { .legal-doc { grid-template-columns: 1fr; } .toc { display: none; } }

/* 404 */
.page-head--404 { padding-bottom: var(--section); }
.nf-links { margin-top: var(--s-8); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-6); }

/* Contact */
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hp input { padding: 0; border: 0; }
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: var(--s-9); align-items: start; }
.contact__title { font-size: var(--fs-title); line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); }
.contact__routes ul { margin-top: var(--s-5); }
.contact-route { padding: var(--s-5) 0; border-top: 1px solid var(--line); }
.contact-route:last-child { border-bottom: 1px solid var(--line); }
.contact-route h3 { font-size: var(--fs-lead); line-height: 1.3; font-weight: 400; color: var(--ink); }
.contact-route p { margin-top: var(--s-1); font-size: var(--fs-body-s); line-height: 24px; color: var(--text); }
.contact-route .link-more { margin-top: var(--s-2); }
.contact-route__note { color: var(--muted) !important; }
.contact__card { padding: var(--s-8); border: 1px solid var(--line); border-radius: var(--r-l); }
.form { margin-top: var(--s-6); display: grid; gap: var(--s-5); }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-4); }
.field label { display: block; margin-bottom: var(--s-2); font-size: var(--fs-small); line-height: 20px; font-weight: 500; color: var(--ink); }
.field__opt { margin-inline-start: var(--s-1); font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  display: block; width: 100%; min-height: 48px; padding: 0 var(--s-4);
  font: inherit; font-size: var(--fs-body); line-height: 24px; color: var(--ink);
  background: var(--white); border: 1px solid var(--field); border-radius: var(--r-s);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { padding: var(--s-3) var(--s-4); min-height: 160px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none; padding-inline-end: var(--s-7);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%230c0c0c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center / 16px;
}
.field :is(input, select, textarea):hover { border-color: var(--text); }
.field :is(input, select, textarea):focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field :is(input, select, textarea):user-invalid { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.check { display: flex; align-items: flex-start; gap: var(--s-3); }
.check input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--ink); }
.check label { font-size: var(--fs-body-s); line-height: 24px; color: var(--text); }
.check a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-5); }
.form__note { font-size: var(--fs-small); line-height: 20px; color: var(--muted); }
.form__status { padding: var(--s-3) var(--s-4); border-radius: var(--r-s); background: var(--btn-light); font-size: var(--fs-body-s); line-height: 24px; color: var(--ink); }
.form__status.is-success { background: #e9f5ee; color: #14532d; }
.form__status.is-error { background: #fdecea; color: var(--danger); }
@media (max-width: 1023px) {
  .contact { grid-template-columns: 1fr; gap: var(--s-8); }
  .contact__card { padding: var(--s-6); }
  .check { min-height: 44px; }
}
@media (max-width: 639px) {
  .contact__card { padding: var(--s-5); }
  .form__row { grid-template-columns: 1fr; }
}

/* ---------- Newsroom ---------- */
.pill { display: inline-flex; align-items: center; min-height: 24px; padding: 0 var(--s-2); border-radius: 999px; background: var(--btn-light); color: var(--ink) !important; font-size: var(--fs-caption); line-height: 16px; font-weight: 600 !important; }
.post-meta { align-items: center; gap: var(--s-1) var(--s-3); }
.post-meta .post-meta__read { color: var(--muted); font-weight: 400; }
.post-card__media, .news-item__media, .article__media { position: relative; }
.post-card__media img, .news-item__media img, .article__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-card__badge { position: absolute; top: var(--s-4); inset-inline-start: var(--s-4); padding: var(--s-1) var(--s-3); border-radius: 999px; background: var(--ink); color: var(--white); font-size: var(--fs-caption); line-height: 16px; font-weight: 600; }
.newsroom { padding-top: 0; }
.news-filters { position: sticky; top: var(--header-h); z-index: 20; margin-bottom: var(--s-8); padding: var(--s-4) 0; background: var(--white); border-bottom: 1px solid var(--line); }
.news-filters ul { display: flex; gap: var(--s-2); overflow-x: auto; scrollbar-width: none; }
.news-filters ul::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 40px; padding: 0 var(--s-4); border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; font-size: var(--fs-small); line-height: 20px; font-weight: 500; color: var(--ink); transition: background-color 0.2s var(--ease), color 0.2s var(--ease); }
.chip:hover { background: var(--btn-light); }
.chip[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip__count { font-size: var(--fs-caption); line-height: 16px; color: var(--muted); }
.chip[aria-current="page"] .chip__count { color: rgba(255, 255, 255, 0.72); }
.news-empty { padding: var(--s-10) 0; text-align: center; color: var(--muted); }
.pagination { margin-top: var(--s-9); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--s-2); }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-1); min-width: 40px; min-height: 40px; padding: 0 var(--s-3); border-radius: var(--r-s); font-size: var(--fs-small); line-height: 20px; color: var(--ink); }
.pagination a:hover { background: var(--btn-light); }
.pagination [aria-current="page"] { background: var(--ink); color: var(--white); }
.pagination svg { width: 16px; height: 16px; }
.media-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-6) var(--s-8); padding: var(--s-8); border-radius: var(--r-l); background: #f5f6f8; }
.media-box__title { font-size: var(--fs-title); line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); }
.media-box__text { max-width: 40em; margin-top: var(--s-2); font-size: var(--fs-body-s); line-height: 24px; color: var(--text); }
.read-progress { position: fixed; top: var(--header-h); inset-inline: 0; z-index: 49; height: 2px; pointer-events: none; }
.read-progress span { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .read-progress span { transform-origin: right; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.byline__mark { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--white); font-size: var(--fs-small); line-height: 20px; font-weight: 700; }
.byline__text { flex: 1; min-width: 0; }
.byline__name { font-size: var(--fs-small); line-height: 20px; font-weight: 600; color: var(--ink); }
.byline__meta { font-size: var(--fs-small); line-height: 20px; color: var(--muted); }
.share { display: flex; align-items: center; gap: var(--s-1); }
.share__label { margin-inline-end: var(--s-2); font-size: var(--fs-small); line-height: 20px; color: var(--muted); }
.share__btn { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--ink); cursor: pointer; transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease); }
.share__btn:hover { background: var(--btn-light); border-color: transparent; }
.share__btn svg { width: 16px; height: 16px; }
.share__status { margin-inline-start: var(--s-2); font-size: var(--fs-caption); line-height: 16px; color: var(--muted); }
.article__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); }
.article-nav { margin-top: var(--s-8); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.article-nav__link { display: flex; flex-direction: column; gap: var(--s-2); padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-m); transition: border-color 0.2s var(--ease); }
.article-nav__link:hover { border-color: var(--ink); }
.article-nav__link--next { grid-column: 2; align-items: flex-end; text-align: end; }
.article-nav__label { display: inline-flex; align-items: center; gap: var(--s-1); font-size: var(--fs-small); line-height: 20px; color: var(--muted); }
.article-nav__label svg { width: 16px; height: 16px; }
.article-nav__title { font-size: var(--fs-body); line-height: 24px; font-weight: 500; color: var(--ink); }
[dir="rtl"] .article-nav__label svg { transform: scaleX(-1); }
@media (max-width: 1023px) {
  .chip { min-height: 44px; }
  .share__btn { width: 44px; height: 44px; }
  .pagination a, .pagination span { min-width: 44px; min-height: 44px; }
}
@media (max-width: 639px) {
  .news-filters { margin-bottom: var(--s-6); }
  .media-box { padding: var(--s-6); }
  .article-nav { grid-template-columns: 1fr; }
  .article-nav__link--next { grid-column: 1; }
  .byline .share { width: 100%; }
}

/* ---------- AI support chat (bottom-right) ---------- */
.ai-launcher {
  position: fixed; inset-inline-end: var(--s-5); bottom: var(--s-5); z-index: 60;
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: var(--btn-h-lg); padding: 0 var(--s-5) 0 var(--s-4);
  border: 0; border-radius: 999px; background: var(--ink); color: var(--white); cursor: pointer;
  font-size: var(--fs-small); line-height: 20px; font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18), 0 2px 4px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease);
}
.ai-launcher:hover { background: #000; transform: translateY(-2px); }
.ai-launcher svg { width: 20px; height: 20px; }
.ai-launcher[aria-expanded="true"] { display: none; }
.ai-panel {
  position: fixed; inset-inline-end: var(--s-5); bottom: var(--s-5); z-index: 60;
  width: 400px; height: min(640px, calc(100vh - 2 * var(--s-5) - var(--header-h)));
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-l);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18), 0 4px 12px rgba(0, 0, 0, 0.08);
}
.ai-panel[hidden] { display: none; }
.ai-head { display: flex; align-items: center; gap: var(--s-1); padding: var(--s-3) var(--s-3) var(--s-3) var(--s-5); border-bottom: 1px solid var(--line); }
.ai-head > div { flex: 1; min-width: 0; margin-inline-start: var(--s-2); }
.ai-avatar { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--white); }
.ai-avatar svg { width: 16px; height: 16px; }
.ai-title { font-size: var(--fs-body); line-height: 24px; font-weight: 600; color: var(--ink); }
.ai-status { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-caption); line-height: 16px; color: var(--muted); }
.ai-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1f9d55; }
.ai-icon-btn { flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: var(--r-s); background: none; color: var(--ink); cursor: pointer; transition: background-color 0.2s var(--ease); }
.ai-icon-btn:hover { background: var(--btn-light); }
.ai-icon-btn svg { width: 20px; height: 20px; }
.ai-reset[hidden] { display: none; }
.ai-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.ai-msg { max-width: 88%; padding: var(--s-3) var(--s-4); border-radius: var(--r-m); font-size: var(--fs-body-s); line-height: 24px; overflow-wrap: anywhere; }
.ai-msg p + p, .ai-msg p + ul, .ai-msg ul + p { margin-top: var(--s-2); }
.ai-msg ul { padding-inline-start: var(--s-5); list-style: disc; }
.ai-msg a { text-decoration: underline; text-underline-offset: 3px; }
.ai-msg--bot { align-self: flex-start; background: #f2f3f5; color: var(--ink); border-start-start-radius: var(--s-1); }
.ai-msg--user { align-self: flex-end; background: var(--ink); color: var(--white); border-start-end-radius: var(--s-1); white-space: pre-wrap; }
.ai-msg--error { align-self: flex-start; background: #fdecea; color: var(--danger); border-start-start-radius: var(--s-1); }
.ai-msg--error a { color: var(--danger); }
.ai-msg--note { align-self: stretch; max-width: none; padding: 0; background: none; font-size: var(--fs-caption); line-height: 16px; color: var(--muted); }
.ai-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.ai-chip {
  min-height: 32px; padding: var(--s-1) var(--s-3); border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--ink); cursor: pointer; text-align: start;
  font-size: var(--fs-small); line-height: 20px; transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.ai-chip:hover { background: var(--btn-light); border-color: transparent; }
.ai-dots { display: inline-flex; gap: var(--s-1); padding: var(--s-1) 0; }
.ai-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--inactive); animation: ai-dot 1.2s infinite ease-in-out; }
.ai-dots span:nth-child(2) { animation-delay: 0.15s; }
.ai-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes ai-dot { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
.ai-form { display: flex; align-items: flex-end; gap: var(--s-2); margin: 0 var(--s-4); padding: var(--s-2) var(--s-2) var(--s-2) var(--s-4); border: 1px solid var(--field); border-radius: var(--r-m); }
.ai-form:focus-within { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.ai-form textarea {
  flex: 1; min-height: 40px; max-height: 120px; padding: var(--s-2) 0; border: 0; outline: none; resize: none;
  font: inherit; font-size: var(--fs-body); line-height: 24px; color: var(--ink); background: none;
}
.ai-send { flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: var(--r-s); background: var(--ink); color: var(--white); cursor: pointer; }
.ai-send:disabled { background: var(--btn-light); color: var(--inactive); cursor: default; }
.ai-send svg { width: 20px; height: 20px; }
.ai-note { padding: var(--s-3) var(--s-5) var(--s-4); font-size: var(--fs-caption); line-height: 16px; color: var(--muted); }
.ai-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.contact-route__ai { margin-top: var(--s-3); }
.contact-route__ai svg { width: 16px; height: 16px; }
@media (max-width: 1023px) {
  .ai-chip { min-height: 44px; }
  .ai-icon-btn { width: 44px; height: 44px; }
  .ai-send { width: 44px; height: 44px; }
}
@media (max-width: 639px) {
  .ai-launcher { inset-inline-end: var(--s-4); bottom: var(--s-4); }
  .ai-panel { inset: 0; width: auto; height: auto; border: 0; border-radius: 0; }
  .ai-open { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .ai-dots span { animation: none; opacity: 0.6; } }

/* ---------- Aura art (stand-in for real photos/videos) ---------- */
.art { width: 100%; height: 100%; }
.art-hero      { background: radial-gradient(60% 80% at 78% 30%, #6a3cff 0%, transparent 60%), radial-gradient(55% 70% at 95% 95%, #1fb6ff 0%, transparent 60%), radial-gradient(60% 75% at 55% 110%, #ff3d8b 0%, transparent 60%), radial-gradient(45% 60% at 40% 10%, #ff5a1f 0%, transparent 60%), #0c0c0c; }
.art-software  { background: radial-gradient(120% 80% at 20% 10%, #3a5bff 0%, transparent 55%), radial-gradient(90% 70% at 90% 60%, #00d1b2 0%, transparent 55%), #070b1f; }
.art-games     { background: radial-gradient(110% 80% at 80% 10%, #ff3d8b 0%, transparent 55%), radial-gradient(90% 80% at 10% 80%, #ffb800 0%, transparent 55%), #1a0710; }
.art-food      { background: radial-gradient(110% 80% at 30% 20%, #ff8fab 0%, transparent 55%), radial-gradient(100% 80% at 90% 90%, #b3261e 0%, transparent 55%), #1a0a0a; }
.art-consult   { background: radial-gradient(110% 80% at 70% 20%, #c9a96e 0%, transparent 55%), radial-gradient(90% 80% at 10% 90%, #2f6f5e 0%, transparent 55%), #0c0f0d; }
.art-devos     { background: radial-gradient(80% 60% at 20% 30%, #4f7cff 0%, transparent 60%), radial-gradient(70% 60% at 85% 75%, #8a5cff 0%, transparent 60%), #05060f; }
.art-museway   { background: radial-gradient(80% 70% at 75% 25%, #ff6a3d 0%, transparent 60%), radial-gradient(70% 60% at 15% 80%, #ff2e93 0%, transparent 60%), #12040a; }
.art-tech      { background: radial-gradient(80% 70% at 25% 25%, #00c2a8 0%, transparent 60%), radial-gradient(70% 60% at 85% 80%, #2d6bff 0%, transparent 60%), #03100f; }
.art-playtimi  { background: radial-gradient(80% 70% at 80% 20%, #ffcc00 0%, transparent 60%), radial-gradient(70% 70% at 15% 85%, #ff3d6e 0%, transparent 60%), #140a02; }
.art-sakura    { background: radial-gradient(80% 70% at 30% 25%, #ffb3c7 0%, transparent 60%), radial-gradient(70% 60% at 85% 85%, #8c1d2c 0%, transparent 60%), #120607; }
.art-ginza     { background: radial-gradient(80% 70% at 75% 20%, #c9a24b 0%, transparent 60%), radial-gradient(70% 60% at 15% 85%, #3b2a6b 0%, transparent 60%), #07060f; }
.art-timoa     { background: radial-gradient(80% 70% at 70% 25%, #d8b878 0%, transparent 60%), radial-gradient(70% 60% at 15% 85%, #24584b 0%, transparent 60%), #0a0c0b; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- CJK tuning (ja / zh / ko pages) ----------
   CJK glyphs fill the em box: no negative tracking, taller line height,
   slightly smaller display sizes, and phrase-aware line breaking. */
html:lang(ja) body, html:lang(zh-Hans) body, html:lang(zh-Hant) body, html:lang(ko) body { line-height: 1.8; }
:is(html:lang(ja), html:lang(zh-Hans), html:lang(zh-Hant), html:lang(ko)) :is(.hero h1, .h2-center, .h2-left, .panel__text, .page-title, .article__title, .intro__statement) {
  letter-spacing: 0.01em; line-height: 1.3;
}
:is(html:lang(ja), html:lang(zh-Hans), html:lang(zh-Hant), html:lang(ko)) :is(.hero h1, .page-title) { font-size: clamp(32px, calc(25.31px + 1.714vw), 50px); }
:is(html:lang(ja), html:lang(zh-Hans), html:lang(zh-Hant), html:lang(ko)) :is(.h2-center, .h2-left, .article__title) { font-size: clamp(28px, calc(22.80px + 1.333vw), 42px); }
:is(html:lang(ja), html:lang(zh-Hans), html:lang(zh-Hant), html:lang(ko)) :is(.panel__text, .intro__statement, .post-card--feature .post-card__title) { font-size: clamp(22px, calc(19.40px + 0.667vw), 29px); }
:is(html:lang(ja), html:lang(zh-Hans), html:lang(zh-Hant), html:lang(ko)) :is(.biz__headline, .feature-list button, .tabs__btn, .tab-media__title, .news-item h3, .company__message p:first-child, .post-card__title, .offering__name, .points h3, .prose h2, .contact__title) {
  letter-spacing: 0.01em; line-height: 1.45;
}
:is(html:lang(ja), html:lang(zh-Hans), html:lang(zh-Hant), html:lang(ko)) :is(.hero__lead, .cta p) { line-height: 1.8; }
:is(html:lang(ja), html:lang(zh-Hans), html:lang(zh-Hant), html:lang(ko)) :is(.biz__body, .news-item p, .tab-media__text, .panel__list p, .overview th, .overview td, .post-card__excerpt, .offering__features p, .points p, .contact-route p, .page-lead, .article__lead, .intro__body, .prose) { line-height: 1.8; }
:is(html:lang(ja), html:lang(zh-Hans), html:lang(zh-Hant), html:lang(ko)) :is(.biz__title, .label, .panel__label, .footer-col h2, .tab-media__wordmark, .eyebrow, .toc__title, .point__num) { letter-spacing: 0.04em; }
:is(html:lang(ja), html:lang(zh-Hans), html:lang(zh-Hant), html:lang(ko)) .h2-center { max-width: 18em; }
html:lang(ja) :is(h1, h2, h3, h4, p, button), html:lang(zh-Hans) :is(h1, h2, h3, h4, p, button), html:lang(zh-Hant) :is(h1, h2, h3, h4, p, button) { word-break: auto-phrase; line-break: strict; }
html:lang(ko) :is(h1, h2, h3, h4, p, button) { word-break: keep-all; }
.ph { display: inline-block; } /* ja/zh clause units from build-pages.py phrases() */
/* CJK reading measure: about 34 full-width characters per line for long-form text */
:is(html:lang(ja), html:lang(zh-Hans), html:lang(zh-Hant), html:lang(ko)) :is(.intro__body, .legal-doc .prose) { max-width: 34em; }

/* ---------- Per-language font order: Han characters use the right regional forms ---------- */
html:lang(ja) body { font-family: "Inter", "Noto Sans JP", system-ui, sans-serif; }
html:lang(zh-Hans) body { font-family: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
html:lang(zh-Hant) body { font-family: "Inter", "Noto Sans HK", "PingFang HK", "Microsoft JhengHei", system-ui, sans-serif; }
html:lang(ko) body { font-family: "Inter", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif; }

/* ---------- Arabic (right-to-left) ----------
   Layout mirrors through logical properties (inline-start/end). Arabic script must never be
   letter-spaced or uppercased (it breaks the joined letterforms), and reads best a little looser. */
html:lang(ar) body { font-family: "Noto Sans Arabic", "Inter", "Segoe UI", Tahoma, sans-serif; line-height: 1.8; }
html:lang(ar) * { letter-spacing: 0 !important; text-transform: none !important; }
html:lang(ar) :is(.hero h1, .h2-center, .h2-left, .page-title, .article__title, .panel__text, .intro__statement) { line-height: 1.35; }
html:lang(ar) :is(.biz__headline, .feature-list button, .tabs__btn, .tab-media__title, .news-item h3, .post-card__title, .offering__name, .points h3, .prose h2, .contact__title, .company__message p:first-child) { line-height: 1.5; }
html:lang(ar) :is(.biz__body, .news-item p, .tab-media__text, .panel__list p, .overview th, .overview td, .post-card__excerpt, .offering__features p, .points p, .contact-route p, .page-lead, .article__lead, .intro__body, .prose, .hero__lead, .cta p) { line-height: 1.85; }
html:lang(ar) .intro__body { max-width: 36em; }
[dir="rtl"] :is(.btn, .link-more, .link-back, .ai-send, .lang__btn) svg:not(.ext) { transform: scaleX(-1); }
[dir="rtl"] .link-more:hover svg:not(.ext) { transform: scaleX(-1) translateX(2px); }
[dir="rtl"] .hero__media::after {
  background: linear-gradient(270deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0) 100%),
              linear-gradient(0deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 55%);
}
[dir="rtl"] .field select { background-position: left 16px center; }
