/* Lontay Dense — tile board system
   Direction: dense-tiles / The well-kept board
   Palette: deep navy #0F2C4C, brand blue #1B5E9E, cyan #9FC2E4,
            gold #C9A227, paper #FBF7F2. */

:root {
  --navy: #0f2c4c;
  --navy-2: #173a60;
  --blue: #1b5e9e;
  --cyan: #9fc2e4;
  --gold: #c9a227;
  --paper: #fbf7f2;
  --white: #ffffff;
  --ink: #17222e;
  --muted: #5d6b78;
  --line: rgba(15, 44, 76, 0.16);
  --gap: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button, input, textarea { font: inherit; }

.skip-link {
  position: absolute; left: -9999px; top: 10px; z-index: 999;
  background: var(--navy); color: var(--white); padding: 10px 16px; font-size: 13px;
}
.skip-link:focus { left: 10px; }

/* ---------- board ---------- */
.board {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: 90px;
  gap: var(--gap);
  padding: var(--gap);
  max-width: 1680px;
  margin-inline: auto;
}
.tile {
  min-width: 0;
  padding: 20px 22px;
  overflow: hidden;
  background: var(--white);
  position: relative;
  border-radius: 0;
}
.t-12 { grid-column: span 12; }
.t-8 { grid-column: span 8; }
.t-6 { grid-column: span 6; }
.t-4 { grid-column: span 4; }
.t-3 { grid-column: span 3; }
.t-2 { grid-column: span 2; }
.r-1 { grid-row: span 1; }
.r-2 { grid-row: span 2; }
.r-3 { grid-row: span 3; }
.r-4 { grid-row: span 4; }
.r-5 { grid-row: span 5; }
.r-6 { grid-row: span 6; }

.tone-navy { background: var(--navy); color: var(--white); }
.tone-blue { background: var(--blue); color: var(--white); }
.tone-gold { background: var(--gold); color: var(--navy); }
.tone-paper { background: #f0ece4; color: var(--navy); }
.tone-white { background: var(--white); color: var(--navy); }

/* ---------- compact header (restored) ---------- */
.wrap { width: min(100% - 48px, 1680px); margin-inline: auto; }
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.header-inner { min-height: 84px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand-text { display: grid; line-height: 1.1; min-width: 0; }
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: .07em; color: var(--navy); white-space: nowrap; }
.brand-sub { margin-top: 5px; padding-top: 4px; border-top: 1px solid var(--gold); font-size: 9px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.primary-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { position: relative; display: block; font-size: 13px; font-weight: 700; color: var(--navy); padding: 8px 0; white-space: nowrap; }
.primary-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 2px; height: 1px; background: var(--gold); transition: right 220ms ease; }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { right: 0; }
.lang-switch { display: flex; align-items: center; gap: 2px; margin-left: 14px; padding-left: 14px; border-left: 1px solid var(--line); }
.lang-switch a, .lang-switch span { padding: 6px 7px; border-radius: 2px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.lang-switch a:hover { color: var(--navy); background: #f3f1ec; }
.lang-switch .is-active { color: var(--white); background: var(--navy); }
.menu-toggle {
  display: none; margin-left: auto; padding: 6px 10px; border: 1px solid var(--line);
  background: var(--white); color: var(--navy); font-size: 20px; line-height: 1; cursor: pointer;
}
.rule { height: 1px; background: linear-gradient(90deg, var(--navy) 0 16%, var(--gold) 16% 18%, transparent 18% 100%); }

/* ---------- shared type ---------- */
.eyebrow {
  color: var(--blue); font-size: 10px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; margin-bottom: 14px;
}
.tone-gold .eyebrow, .tone-blue .eyebrow, .tone-navy .eyebrow { color: var(--cyan); }
.tile h1 { font-size: clamp(30px, 3.5vw, 56px); line-height: 1.06; letter-spacing: -.035em; font-weight: 800; }
.tile h2 { font-size: clamp(26px, 3vw, 46px); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; }
.tile-index, .fact-index, .network-index { color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.tile-desc { display: block; margin-top: 8px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.tone-navy .tile-desc, .tone-blue .tile-desc { color: rgba(255,255,255,.72); }
.tone-gold .tile-desc { color: rgba(15,44,76,.72); }
.tile strong { display: block; font-size: 17px; line-height: 1.18; letter-spacing: -.01em; }
.tile-lead { margin-top: 12px; font-size: 16px; line-height: 1.5; }
.tile-copy { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--muted); overflow-wrap: break-word; }
.tone-navy .tile-copy, .tone-blue .tile-copy { color: rgba(255,255,255,.74); }

.action {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 16px; font-size: 12px; font-weight: 700;
  letter-spacing: .04em; transition: background-color 160ms ease, color 160ms ease;
}
.action--solid { background: var(--navy); color: var(--white); }
.action--solid:hover { background: var(--blue); }
.action--line { border: 1px solid currentColor; color: var(--navy); }
.action--line:hover { background: var(--navy); color: var(--white); }
.action--ink { background: var(--navy); color: var(--white); }
.action--ink:hover { background: var(--blue); }

/* ---------- intro board ---------- */
.tile--statement { background: var(--white); display: flex; flex-direction: column; }
.statement-lead { margin-top: 16px; max-width: 640px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.tile-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 16px; }
.tile--photo { padding: 0; background: #dfe8ef; }
.tile--photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-caption {
  position: absolute; left: 18px; bottom: 14px; z-index: 1;
  background: var(--navy); color: var(--white); padding: 6px 10px;
  font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.tile--facts { background: var(--paper); display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; align-content: center; }
.fact { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line); padding-top: 8px; }
.fact strong { font-size: 13px; }
.tile--marquee { padding: 0; background: var(--gold); color: var(--navy); display: flex; align-items: center; }
.marquee-track { display: flex; gap: 60px; white-space: nowrap; width: max-content; animation: board-marquee 34s linear infinite; }
.marquee-track span { font-size: clamp(28px, 3.4vw, 52px); font-weight: 800; letter-spacing: -.03em; }
.tile--marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes board-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- about ---------- */
.tile--about-main { background: var(--navy); color: var(--white); }
.tile--about-main .eyebrow { color: var(--gold); }
.tile--number { background: var(--white); display: flex; flex-direction: column; justify-content: center; }
.number { font-size: clamp(52px, 6vw, 88px); font-weight: 800; line-height: .9; letter-spacing: -.05em; color: var(--navy); }
.number-caption { margin-top: 10px; color: var(--muted); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- section heads ---------- */
.tile--section-head { background: var(--white); display: flex; flex-direction: column; justify-content: center; }
.tile--section-head h2 { font-size: clamp(40px, 5vw, 76px); }
.tile--section-head .eyebrow { margin-bottom: 10px; }

/* ---------- products / steps / supply / stats ---------- */
.tile--product, .tile--step, .tile--supply { display: flex; flex-direction: column; }
.tile--product strong, .tile--supply strong { margin-top: auto; font-size: clamp(15px, 1.35vw, 20px); text-transform: uppercase; letter-spacing: .005em; }
.tile--step strong { margin-top: 8px; font-size: 15px; }
.tile--step .tile-desc { font-size: 12px; }
.tile--supply strong { text-transform: none; }
.tile--stat { display: flex; flex-direction: column; justify-content: center; }
.stat-value { font-size: clamp(48px, 5.2vw, 84px); font-weight: 800; line-height: .9; letter-spacing: -.05em; }
.stat-label { margin-top: 12px; font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; opacity: .82; }

/* ---------- contact ---------- */
.tile--contact { display: flex; flex-direction: column; }
.tile--contact .eyebrow { color: var(--gold); }
.contact-lines { margin-top: auto; display: grid; gap: 8px; }
.contact-lines > div { display: grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: baseline; border-top: 1px solid rgba(255,255,255,.22); padding-top: 8px; }
.contact-lines span { color: var(--cyan); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.contact-lines a, .contact-lines p { font-size: 14px; line-height: 1.4; }
.tile--contact-action { display: flex; flex-direction: column; justify-content: space-between; }
.tile--contact-action strong { font-size: clamp(22px, 2.2vw, 34px); line-height: 1.1; letter-spacing: -.03em; }
.tile--contact-action .action { align-self: flex-start; }
.action-mark { font-size: 40px; line-height: 1; align-self: flex-end; }

/* ---------- footer ---------- */
.site-foot { margin-top: var(--gap); }
.tile--foot-head { background: var(--navy); color: var(--white); display: flex; align-items: flex-end; }
.tile--foot-head h2 { font-size: clamp(34px, 4.4vw, 68px); }
.tile--network { display: flex; flex-direction: column; transition: background-color 160ms ease; }
.tile--network:hover { background: var(--blue); color: var(--white); }
.tile--network strong { font-size: 20px; letter-spacing: -.02em; }
.tile--network .tile-desc { color: inherit; opacity: .78; }
.tile--network .network-arrow { position: absolute; right: 20px; top: 18px; font-size: 18px; }
.tile--network.is-current .network-index { color: var(--gold); }
.tile--colophon { background: var(--navy); color: rgba(255,255,255,.72); display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 11px; letter-spacing: .04em; padding-block: 12px; }
.foot-langs { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.foot-langs a, .foot-langs .is-active { color: rgba(255,255,255,.7); font-weight: 700; padding: 2px 0; }
.foot-langs a + a, .foot-langs a + .is-active, .foot-langs .is-active + a { margin-left: 10px; border-left: 1px solid rgba(255,255,255,.28); padding-left: 10px; }
.foot-langs a:hover { color: var(--gold); }
.foot-langs .is-active { color: var(--gold); }

/* ---------- generic page ---------- */
.board--page { min-height: 70vh; }

/* ---------- responsive: two-column board ---------- */
@media (max-width: 1080px) {
  .board { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .t-12, .t-8, .t-6 { grid-column: span 6; }
  .t-4, .t-3 { grid-column: span 3; }
  .t-2 { grid-column: span 2; }
  .tile--statement { grid-row: span 5; }
  .tile--about-main { grid-row: span 4; }
  .tile--contact, .tile--contact-action { grid-column: span 6; }
  .tile--section-head { grid-row: span 2; }
  .tile--network { grid-column: span 3; }
}

@media (max-width: 680px) {
  :root { --gap: 6px; }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .t-12, .t-8, .t-6, .t-4, .t-3, .t-2,
  .tile--statement, .tile--about-main, .tile--contact,
  .tile--contact-action, .tile--section-head { grid-column: span 2; }
  .r-1, .r-2, .r-3, .r-4, .r-5, .r-6 { grid-row: auto; }
  .tile { min-height: 128px; padding: 16px; }
  .wrap { width: min(100% - 32px, 1680px); }
  .header-inner { min-height: 72px; gap: 10px; flex-wrap: wrap; }
  .brand { gap: 8px; max-width: calc(100% - 96px); }
  .brand img { width: 34px; height: 34px; flex: 0 0 34px; }
  .brand-text { min-width: 0; }
  .brand-name { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .brand-sub { font-size: 8px; letter-spacing: .08em; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .menu-toggle { display: block; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%; display: none;
    margin: 0; padding: 22px 24px 28px;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 24px rgba(15,44,76,.12);
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav ul { flex-direction: column; align-items: stretch; width: 100%; gap: 4px; }
  .primary-nav a { white-space: normal; font-size: 15px; padding: 10px 0; }
  .lang-switch { margin-left: 4px; padding-left: 4px; border-left: 0; gap: 0; }
  .lang-switch a, .lang-switch span { padding: 5px 4px; font-size: 10px; }
  .tile--product, .tile--step, .tile--supply, .tile--stat, .tile--network { grid-column: span 1; min-height: 150px; }
  .tile--marquee { min-height: 76px; }
  .marquee-track span { font-size: 30px; }
  .tile--photo { min-height: 210px; }
  .tile h1 { font-size: 34px; }
  .tile h2 { font-size: 28px; }
  .tile--section-head h2 { font-size: 40px; }
  .tile--foot-head h2 { font-size: 32px; }
  .contact-lines > div { grid-template-columns: 1fr; gap: 2px; }
  .tile--colophon { flex-direction: column; align-items: flex-start; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .tile, .action { transition: none; }
}
