/* ==========================================================================
   Katsuyama Finetech (Thailand) Co., Ltd. — site template
   Self-contained: no Bootstrap, no jQuery, no AOS, no w3.css.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand — sampled from the company seal (img/logo.png) */
  --navy-900: #00004d;
  --navy:     #000080;
  --navy-600: #1b2e9e;
  --accent:   #1e90ff;
  --accent-soft: #e8f1fb;
  --sky:      #8ec1ed;

  /* Neutrals */
  --ink:      #111827;
  --muted:    #55607a;
  --line:     #e3e8f0;
  --bg:       #ffffff;
  --bg-alt:   #f5f8fc;

  /* Type */
  --font: "K2D", "Noto Sans Thai", "Hiragino Kaku Gothic ProN", "Yu Gothic",
          Meiryo, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Space & shape */
  --wrap: 1180px;
  --gap: 24px;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --header-h: 76px;

  --shadow-sm: 0 1px 2px rgba(17, 24, 39, .06), 0 2px 8px rgba(17, 24, 39, .05);
  --shadow-md: 0 4px 12px rgba(17, 24, 39, .07), 0 12px 32px rgba(17, 24, 39, .08);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img, video, iframe { max-width: 100%; }
img { height: auto; border: 0; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-600); }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

/* ---------- Script-specific typography ---------- */
/* Japanese may break between any two characters, which splits katakana words
   in half. auto-phrase breaks on phrase boundaries instead (ignored by
   browsers that don't support it, which is a safe fallback). */
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) p, :lang(ja) .lead,
:lang(ja) li, :lang(ja) .num, :lang(ja) .lbl {
  line-break: strict;
  word-break: auto-phrase;
}
/* Thai stacks tone marks above and vowel signs below, so it needs more
   leading than Latin to stay legible. */
:lang(th) body, :lang(th) p, :lang(th) li, :lang(th) .lead,
:lang(th) .data-table td, :lang(th) .data-table th { line-height: 1.85; }
:lang(th) h1, :lang(th) h2, :lang(th) h3 { line-height: 1.4; }
/* The small all-caps labels are a Latin device: Thai has no case, and wide
   tracking pulls Thai and Japanese apart rather than tightening them. */
:lang(th) .eyebrow, :lang(th) .field-label, :lang(th) .f-label,
:lang(th) .kicker, :lang(th) .tag, :lang(th) .site-footer h4 {
  letter-spacing: 0; text-transform: none;
}
:lang(ja) .eyebrow, :lang(ja) .field-label, :lang(ja) .f-label,
:lang(ja) .kicker, :lang(ja) .tag, :lang(ja) .site-footer h4 {
  letter-spacing: .04em; text-transform: none;
}

/* ---------- Layout helpers ---------- */
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.section { padding: 76px 0; }
.section--alt { background: var(--bg-alt); }
.section--tight { padding: 52px 0; }

.section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section-head .eyebrow {
  display: inline-block; margin-bottom: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy-600);
}
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 12px; }
.section-head p { color: var(--muted); margin: 0; }
.section-head::after {
  content: ""; display: block; width: 56px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--navy), var(--accent));
  margin: 20px auto 0;
}
.section-head--left { margin-inline: 0; text-align: left; }
.section-head--left::after { margin-inline: 0; }

.grid { display: grid; gap: var(--gap); }
/* Grid and flex children default to min-width:auto, so a wide table inside one
   stretches the whole row. Let them shrink and scroll their own content. */
.grid > *, .split > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
  font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1;
  cursor: pointer; transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-600); color: #fff; transform: translateY(-1px); }
.btn--ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--outline { border-color: var(--navy); color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff; }
.btn .arr { font-size: 18px; line-height: 1; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }
.site-header .wrap {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand img { width: 46px; height: 46px; object-fit: contain; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 17px; font-weight: 700; color: var(--navy); letter-spacing: -.01em; }
.brand-sub { font-size: 12px; font-weight: 400; color: var(--muted); letter-spacing: .04em; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a.nav-link {
  position: relative; display: block; padding: 10px 13px; border-radius: var(--r-sm);
  font-size: 15.5px; font-weight: 600; color: var(--ink);
}
.nav a.nav-link:hover { color: var(--navy); background: var(--accent-soft); }
.nav a.nav-link.active { color: var(--navy); }
.nav a.nav-link.active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px;
  height: 3px; border-radius: 2px; background: var(--accent);
}

/* Language switcher */
.lang { position: relative; margin-left: 6px; }
.lang-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink);
  cursor: pointer;
}
.lang-btn:hover { border-color: var(--sky); background: var(--accent-soft); }
.lang-btn img { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; }
.lang-btn .caret { font-size: 10px; color: var(--muted); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 186px;
  padding: 6px; margin: 0; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .15s, transform .15s, visibility .15s;
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 500; color: var(--ink);
}
.lang-menu a:hover { background: var(--accent-soft); color: var(--navy); }
.lang-menu a[aria-current="true"] { color: var(--navy); font-weight: 700; background: var(--accent-soft); }
.lang-menu img { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; flex: none; }

/* Mobile nav toggle */
.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink);
  margin-inline: auto; transition: transform .2s, opacity .2s;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; display: grid; align-items: center;
  min-height: clamp(420px, 60vh, 560px);
  background: var(--navy-900) center/cover no-repeat;
  color: #fff; isolation: isolate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(0, 0, 77, .88) 0%, rgba(0, 0, 128, .74) 42%, rgba(0, 0, 77, .35) 100%);
}
.hero-inner { padding: 72px 0; max-width: 700px; }
.hero .kicker {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px; margin-bottom: 20px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28);
  font-size: 13.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.hero .kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sky); }
.hero h1 {
  font-size: clamp(30px, 5vw, 50px); font-weight: 700; line-height: 1.16;
  margin-bottom: 18px; text-wrap: balance;
}
.hero p.lead {
  font-size: clamp(16px, 1.8vw, 19px); color: rgba(255, 255, 255, .9);
  max-width: 560px; margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Hero carrying the Managing Director's message: the text spans the full
   width, so the photo needs a heavier, even wash behind it. */
.hero--message { min-height: 0; padding: 0; }
/* Only a light wash over the photo — the message sits on its own glass panel,
   so the factory stays visible around and through it. */
.hero--message::after {
  background: linear-gradient(100deg, rgba(0, 0, 55, .46) 0%, rgba(0, 0, 70, .3) 55%,
                                      rgba(0, 0, 55, .2) 100%);
}
.hero-message {
  display: grid; grid-template-columns: 220px 1fr; gap: 44px;
  align-items: start;
  margin: 52px 0; padding: 42px 46px;
  background: rgba(2, 6, 62, .52);
  backdrop-filter: blur(9px) saturate(120%);
  -webkit-backdrop-filter: blur(9px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--r-lg);
}
/* Browsers without backdrop-filter get a slightly denser panel instead. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hero-message { background: rgba(2, 6, 62, .82); }
}
.hero-portrait { margin: 0; text-align: center; }
.hero-portrait img {
  width: 190px; height: 190px; object-fit: cover; border-radius: 50%;
  margin-inline: auto; border: 5px solid rgba(255, 255, 255, .9);
  box-shadow: 0 10px 30px rgba(0, 0, 40, .45);
}
.hero-portrait figcaption { margin-top: 16px; }
.hero-portrait .who { display: block; font-weight: 700; font-size: 17px; }
.hero-portrait .role { display: block; margin-top: 2px; font-size: 14.5px; color: var(--sky); }
.hero-body h1 { font-size: clamp(26px, 3.6vw, 38px); margin-bottom: 20px; }
.hero-body p {
  font-size: clamp(15.5px, 1.5vw, 17px); color: rgba(255, 255, 255, .92);
  max-width: 68ch; margin-bottom: 14px;
}
.hero-body .hero-actions { margin-top: 28px; }

/* ---------- Inner-page banner ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy-900), var(--navy) 55%, #16227e);
  color: #fff; padding: 58px 0;
}
.page-hero .eyebrow {
  display: inline-block; margin-bottom: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sky);
}
.page-hero h1 { font-size: clamp(27px, 4vw, 40px); margin-bottom: 10px; }
.page-hero .lead { max-width: 660px; margin: 0; color: rgba(255, 255, 255, .88); font-size: 17px; }

/* ---------- Stats strip ---------- */
.stats { background: var(--navy); color: #fff; }
.stats .grid { gap: 0; }
.stat { padding: 30px 24px; text-align: center; border-left: 1px solid rgba(255, 255, 255, .16); }
.stat:first-child { border-left: 0; }
.stat .num { display: block; font-size: clamp(24px, 3vw, 32px); font-weight: 700; line-height: 1.1; }
.stat .lbl { display: block; margin-top: 6px; font-size: 14px; color: rgba(255, 255, 255, .78); letter-spacing: .03em; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 28px; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--sky); }
.card .ico {
  display: grid; place-items: center; width: 74px; height: 74px; margin-bottom: 18px;
  border-radius: 50%; background: var(--accent-soft);
}
.card .ico img { width: 42px; height: 42px; object-fit: contain; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }
/* A labelled value inside a card (e.g. the two e-mail addresses on Contact) */
.card .field { margin-bottom: 14px; }
.card .field:last-child { margin-bottom: 0; }
.card .field-label {
  display: block; margin-bottom: 2px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}

.card--center { text-align: center; }
.card--center .ico { margin-inline: auto; }
.card-media {
  width: calc(100% + 56px); margin: -30px -28px 22px; max-width: none;
  aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.card .data-table { font-size: 15px; }
.card .data-table th, .card .data-table td { padding: 8px 10px; }
.card .table-scroll { margin-top: 4px; }

/* ---------- Check list ---------- */
.check-list { list-style: none; padding: 0; margin: 0 0 26px; }
.check-list li { position: relative; padding-left: 34px; margin-bottom: 14px; color: #253044; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; display: grid; place-items: center;
  border-radius: 50%; background: var(--accent-soft); color: var(--navy);
  font-size: 13px; font-weight: 700;
}

/* ---------- Pledge quote ---------- */
.pledge {
  margin: 0 0 28px; padding: 20px 24px;
  border-left: 4px solid var(--accent); border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--accent-soft);
  font-size: 19px; font-weight: 600; color: var(--navy); font-style: normal;
}

/* ---------- News ---------- */
/* Horizontal cards in one column: reads well with a single item and with many. */
.news-list { display: grid; gap: var(--gap); }
.news-list .news-card {
  display: grid; grid-template-columns: 320px 1fr; gap: 0 32px;
  align-items: start; padding: 0; overflow: hidden;
}
.news-list .news-card > a { grid-row: 1 / span 4; align-self: stretch; }
.news-list .news-card .card-media {
  width: 100%; height: 100%; margin: 0; border-radius: 0;
  aspect-ratio: auto; min-height: 220px; object-fit: cover;
}
.news-list .news-card .tag { justify-self: start; margin: 28px 32px 12px 0; }
.news-list .news-card h3 { margin: 0 32px 8px 0; }
.news-list .news-card p { margin: 0 32px 0 0; }
.news-list .news-card .news-meta { margin: 20px 32px 24px 0; }

.news-card { display: flex; flex-direction: column; }
.tag {
  display: inline-block; padding: 4px 12px; border-radius: 999px;
  background: var(--navy); color: #fff; font-size: 12.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.news-card .tag { align-self: flex-start; margin-bottom: 12px; }
.news-card h3 { font-size: 20px; }
.news-card h3 a { color: var(--ink); }
.news-card h3 a:hover { color: var(--navy); }
.news-card p { flex: 1; }
.news-meta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 14.5px; color: var(--muted);
}
.news-meta span { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); }
.news-meta img { width: 26px; height: 26px; object-fit: contain; }

/* ---------- Featured news (e.g. the solar rooftop) ---------- */
.news-feature { padding: 34px 36px; }
/* Stack several featured items with the same gap, whatever their order. */
.news-feature + .news-feature, .news-feature + .news-list { margin-top: 28px; }
.news-feature-head {
  display: grid; grid-template-columns: 1fr auto; gap: 28px;
  align-items: center; margin-bottom: 30px;
}
.news-feature h2 { font-size: clamp(23px, 2.6vw, 30px); margin: 10px 0 8px; }
.news-feature > .news-feature-head p { color: var(--muted); margin: 0; max-width: 60ch; }
.news-feature .news-meta { margin-top: 26px; }

.solar-total {
  text-align: center; padding: 20px 30px; border-radius: var(--r-md);
  background: var(--navy); color: #fff; white-space: nowrap;
}
.solar-total .num { display: block; font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; line-height: 1.1; }
.solar-total .lbl { display: block; margin-top: 4px; font-size: 13.5px; color: var(--sky); }

.solar-photos { margin-bottom: 26px; }
.solar-photos a img { aspect-ratio: 4 / 3; }
.solar-photos figcaption { font-weight: 500; color: var(--muted); text-align: left; }

.solar-project {
  border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 22px 24px; background: var(--bg-alt);
}
.solar-project header {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 16px;
}
.solar-project h3 { font-size: 19px; margin: 0; }
.solar-project .brand { font-weight: 400; font-size: 15px; color: var(--muted); }
.solar-project .cap { font-size: 20px; font-weight: 700; color: var(--navy); }

.spec {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 16px;
  margin: 0 0 18px; font-size: 15.5px;
}
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-weight: 600; }

.solar-project .data-table { font-size: 15px; background: #fff; border-radius: var(--r-sm); overflow: hidden; }
.solar-project .data-table th, .solar-project .data-table td { padding: 9px 12px; }
.solar-project .data-table tbody th { width: auto; }
.solar-project .data-table td,
.solar-project .data-table thead th + th { text-align: right; }
/* Keep the figures on one line; the wrapper scrolls if the phone is narrow. */
.solar-project .data-table th, .solar-project .data-table td { white-space: nowrap; }
.solar-project .table-scroll { border-radius: var(--r-sm); }

@media (max-width: 860px) {
  .news-feature { padding: 26px 22px; }
  .news-feature-head { grid-template-columns: 1fr; gap: 20px; }
  .solar-total { text-align: left; }
}

@media (max-width: 560px) {
  .news-feature { padding: 22px 16px; }
  .solar-project { padding: 18px 14px; }
  .solar-project .data-table { font-size: 13px; }
  .solar-project .data-table th,
  .solar-project .data-table td { padding: 7px 8px; }
  .spec { font-size: 14.5px; gap: 5px 12px; }
}

/* ---------- Job openings ---------- */
.job-card { display: flex; flex-direction: column; padding: 28px 30px; }
.job-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin-bottom: 20px;
  padding-bottom: 16px; border-bottom: 1px solid var(--line);
}
.job-head h3 { font-size: 20px; margin: 0; }
.tag--urgent { background: #b3261e; }

.job-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; flex: 1; }
.job-card h4, .job-footer h4 {
  margin: 0 0 10px; font-size: 13px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--navy-600);
}
.job-card ul, .job-footer ul { list-style: none; padding: 0; margin: 0; }
.job-card li, .job-footer li {
  position: relative; padding-left: 16px; margin-bottom: 8px;
  font-size: 15.5px; color: #253044;
}
.job-card li::before, .job-footer li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--sky);
}
.job-card .btn { align-self: flex-start; margin-top: 24px; }

.job-footer {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  margin-top: var(--gap); padding: 28px 30px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
}
.job-footer p { font-size: 15.5px; color: #253044; }
.job-posted { font-size: 14px; color: var(--muted); }

@media (max-width: 860px) {
  .job-card { padding: 22px 20px; }
  .job-cols { grid-template-columns: 1fr; gap: 20px; }
  .job-footer { grid-template-columns: 1fr; gap: 24px; padding: 22px 20px; }
}

/* ---------- Call to action ---------- */
.cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 26px; padding: 36px 40px; border-radius: var(--r-lg);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.cta h2 { font-size: 24px; margin-bottom: 6px; }
.cta p { margin: 0; color: var(--muted); }

/* ---------- Map ---------- */
.map-frame { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); line-height: 0; }
.map-frame iframe { width: 100%; height: 420px; border: 0; display: block; }

/* ---------- Download panel ---------- */
.download-panel {
  display: grid; grid-template-columns: 240px 1fr; gap: 44px; align-items: center;
  padding: 44px; border-radius: var(--r-lg);
  background: var(--bg-alt); border: 1px solid var(--line);
}
.download-panel img {
  width: 100%; border-radius: var(--r-md); box-shadow: var(--shadow-md);
  transition: transform .25s ease;
}
.download-panel img:hover { transform: translateY(-4px) scale(1.02); }
.download-panel h2 { font-size: 26px; }
.download-panel p { color: var(--muted); max-width: 46ch; }

/* ---------- Split (text + media) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--narrow-media { grid-template-columns: 1.15fr .85fr; }
.split--top { align-items: start; }
.sticky-media { position: sticky; top: calc(var(--header-h) + 28px); }
@media (max-width: 992px) { .sticky-media { position: static; } }
.split img { border-radius: var(--r-md); }
.split .body p { color: #253044; }

/* ---------- Message from the director ---------- */
.message { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.message .portrait { text-align: center; }
.message .portrait img {
  width: 200px; height: 200px; object-fit: cover; border-radius: 50%;
  margin-inline: auto; border: 5px solid #fff; box-shadow: var(--shadow-md);
}
.message .portrait .who { margin-top: 16px; font-weight: 700; color: var(--navy); }
.message .portrait .role { font-size: 14.5px; color: var(--muted); }
.message .quote { position: relative; padding-left: 30px; }
.message .quote::before {
  content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px;
  border-radius: 2px; background: linear-gradient(var(--navy), var(--accent));
}
.message .quote p:last-child { margin-bottom: 0; }

/* ---------- Organisation chart ----------
   A real nested list, so it reads in order, translates, and reflows on a
   phone. The connector lines are drawn from the list items themselves. */
.org { max-width: 720px; margin-inline: auto; }
.org ul { list-style: none; margin: 0; padding: 0; }
.org-tree > li > ul { margin-top: 10px; }
.org { --org-gap: 10px; --org-indent: 30px; --org-elbow: 33px; }
.org ul ul { margin-left: 28px; }
.org ul ul > li {
  position: relative;
  padding-left: var(--org-indent);
  margin-bottom: var(--org-gap);
}
.org ul ul > li:last-child { margin-bottom: 0; }
/* Vertical rule: runs through the gap to the next sibling, and stops at the
   elbow on the last one so the line never dangles. */
.org ul ul > li::before {
  content: ""; position: absolute; left: 0; top: 0;
  bottom: calc(-1 * var(--org-gap)); width: 2px; background: var(--line);
}
.org ul ul > li:last-child::before { bottom: auto; height: var(--org-elbow); }
/* Horizontal elbow into the card */
.org ul ul > li::after {
  content: ""; position: absolute; left: 0; top: var(--org-elbow);
  width: var(--org-indent); height: 2px; background: var(--line);
}

.org-person {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 18px 10px 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: border-color .18s, box-shadow .18s, transform .18s;
}
.org-person:hover { border-color: var(--sky); box-shadow: var(--shadow-md); transform: translateX(2px); }
.org-person img {
  width: 48px; height: 48px; flex: none; border-radius: 50%;
  object-fit: cover; background: var(--accent-soft);
}
.org-name { display: block; font-weight: 700; font-size: 16px; line-height: 1.3; }
.org-role { display: block; font-size: 14px; color: var(--muted); line-height: 1.35; }

.org-person--lead {
  background: var(--navy); border-color: var(--navy); padding: 14px 24px 14px 14px;
}
.org-person--lead img { width: 60px; height: 60px; border: 2px solid rgba(255, 255, 255, .5); }
.org-person--lead .org-name { color: #fff; font-size: 18px; }
.org-person--lead .org-role { color: var(--sky); }
.org-person--lead:hover { border-color: var(--navy-600); background: var(--navy-600); }

@media (max-width: 560px) {
  .org { --org-indent: 18px; --org-elbow: 30px; }
  .org ul ul { margin-left: 14px; }
  .org-person { gap: 12px; padding: 8px 14px 8px 8px; border-radius: var(--r-lg); }
  .org-person img { width: 42px; height: 42px; }
  .org-name { font-size: 15px; }
  .org-role { font-size: 13px; }
}

/* ---------- Client logos ---------- */
.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.logos .logo-cell {
  display: grid; place-items: center; padding: 22px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color .2s, box-shadow .2s;
}
.logos .logo-cell:hover { border-color: var(--sky); box-shadow: var(--shadow-sm); }
.logos img { max-height: 58px; width: auto; object-fit: contain; }

/* ---------- Data table ---------- */
.data-table { font-size: 16px; }
.data-table th, .data-table td { padding: 11px 14px; text-align: left; vertical-align: top; }
.data-table thead th { background: var(--navy); color: #fff; font-weight: 600; }
.data-table tbody tr { border-bottom: 1px solid var(--line); }
.data-table tbody tr:nth-child(odd) { background: var(--bg-alt); }
.data-table tbody th { width: 40%; font-weight: 600; color: var(--navy); }
.data-table td, .data-table th { overflow-wrap: break-word; }
.table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255, 255, 255, .8); padding: 58px 0 0; }
.site-footer a { color: rgba(255, 255, 255, .8); }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 44px; padding-bottom: 44px; }
.site-footer h4 {
  color: #fff; font-size: 14px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px;
}
.site-footer .f-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.site-footer .f-brand img { width: 54px; height: 54px; object-fit: contain; background: #fff; border-radius: 50%; padding: 4px; }
.site-footer .f-brand strong { color: #fff; font-size: 17px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer .f-label {
  display: block; font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: rgba(255, 255, 255, .55); margin-top: 12px;
}
.site-footer address { font-style: normal; font-size: 15.5px; line-height: 1.75; }
.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, .14); padding: 20px 0;
  font-size: 14.5px; color: rgba(255, 255, 255, .62);
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
}

/* ---------- Tabs (Process page) ---------- */
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 36px; }
@media (max-width: 992px) { .tabs { grid-template-columns: repeat(2, 1fr); } }
.tabs button {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 14px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: #fff; font: inherit; font-size: 16px; font-weight: 600; color: var(--ink);
  cursor: pointer; transition: border-color .18s, background .18s, color .18s;
}
.tabs button img { width: 40px; height: 40px; object-fit: contain; }
.tabs button:hover { border-color: var(--sky); background: var(--accent-soft); }
.tabs button.active { border-color: var(--navy); background: var(--navy); color: #fff; }
.tabs button.active img { filter: brightness(0) invert(1); }

/* ---------- Slider ---------- */
.slider { position: relative; }
.slider .slides { position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-alt); }
.slider .slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .5s ease;
}
.slider .slides img.active { opacity: 1; }
.slider .dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.slider .dots button {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%;
  background: var(--line); cursor: pointer; transition: background .2s, transform .2s;
}
.slider .dots button.active { background: var(--navy); transform: scale(1.25); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; display: none;
  place-items: center; padding: 28px; background: rgba(0, 0, 32, .9);
}
.lightbox.open { display: grid; }
.lightbox img { max-width: 100%; max-height: 90vh; width: auto; border-radius: var(--r-sm); }
.lightbox-close {
  position: absolute; top: 18px; right: 22px; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15);
  color: #fff; font-size: 28px; line-height: 1; cursor: pointer;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .3); }

/* ---------- Gallery ---------- */
.gallery a {
  display: block; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--line); background: #fff;
}
.gallery a img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s ease; }
.gallery a:hover img { transform: scale(1.05); }
.gallery figcaption { padding: 12px 14px; font-size: 15px; font-weight: 600; color: var(--navy); text-align: center; }
/* Documents (certificates) — show the whole page, never crop it */
.gallery--docs a img {
  aspect-ratio: 3 / 4; object-fit: contain; background: #fff; padding: 12px;
}
.gallery--docs a:hover img { transform: none; }
.gallery--docs a { transition: border-color .2s, box-shadow .2s; }
.gallery--docs a:hover { border-color: var(--sky); box-shadow: var(--shadow-md); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 800;
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 50%; background: var(--navy); color: #fff; font-size: 20px;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s, background .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--navy-600); color: #fff; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .split, .split--narrow-media { grid-template-columns: 1fr; gap: 34px; }
  .message { grid-template-columns: 1fr; gap: 28px; }
  .message .quote { padding-left: 22px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 860px) {
  :root { --header-h: 66px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 auto; width: min(320px, 86vw);
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 18px; overflow-y: auto;
    background: #fff; border-left: 1px solid var(--line); box-shadow: var(--shadow-md);
    /* Stay inside the viewport when closed — a panel parked off-screen to the
       right would give the page a horizontal scrollbar on phones. */
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav a.nav-link { padding: 13px 14px; font-size: 17px; }
  .nav a.nav-link.active::after { left: 14px; right: auto; width: 22px; bottom: 6px; }
  .lang { margin: 14px 0 0; border-top: 1px solid var(--line); padding-top: 14px; }
  .lang-btn { width: 100%; justify-content: space-between; }
  .lang-menu { position: static; opacity: 1; visibility: visible; transform: none;
               box-shadow: none; border: 0; padding: 6px 0 0; min-width: 0; display: none; }
  .lang.open .lang-menu { display: block; }
  .brand-sub { display: none; }
  .hero-inner { padding: 56px 0; }
  .hero-message { grid-template-columns: 1fr; gap: 26px; margin: 28px 0; padding: 28px 24px; }
  .hero-portrait { text-align: left; display: flex; align-items: center; gap: 18px; }
  .hero-portrait img { width: 96px; height: 96px; border-width: 3px; margin-inline: 0; }
  .hero-portrait figcaption { margin-top: 0; }
  .stat { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .16); padding: 22px 16px; }
  .stat:nth-child(-n+2) { border-top: 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 56px 0; }
  .tabs { grid-template-columns: 1fr; }
  .tabs button { flex-direction: row; justify-content: flex-start; padding: 14px 16px; }
  .download-panel { grid-template-columns: 1fr; gap: 28px; padding: 28px 24px; text-align: center; }
  .download-panel img { max-width: 220px; margin-inline: auto; }
  .download-panel p { margin-inline: auto; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta { padding: 28px 24px; }
  .map-frame iframe { height: 320px; }
  .news-list .news-card { grid-template-columns: 1fr; }
  .news-list .news-card > a { grid-row: auto; }
  .news-list .news-card .card-media { min-height: 0; aspect-ratio: 16 / 10; }
  .news-list .news-card .tag { margin: 22px 24px 12px; }
  .news-list .news-card h3,
  .news-list .news-card p { margin-inline: 24px; }
  .news-list .news-card .news-meta { margin: 18px 24px 22px; }
  .brand img { width: 40px; height: 40px; }
  .brand-name { font-size: 15px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .to-top, .hero-actions { display: none !important; }
  .hero { min-height: auto; color: #000; background: none; }
  .hero::after { display: none; }
  body { font-size: 12pt; }
}
