/*
 * PAKO Group company profile.
 * Palette: white, blue-tinted dark grey and blue. Type: Plus Jakarta Sans + IBM Plex Mono (self-hosted).
 * No inline styles anywhere, so the Content-Security-Policy can stay at style-src 'self'.
 */

@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/plus-jakarta-sans-400.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/plus-jakarta-sans-500.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/plus-jakarta-sans-600.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/plus-jakarta-sans-700.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/plus-jakarta-sans-800.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2"); }

:root {
  --paper: #ffffff;
  --steel: #f2f4f7;
  --line: #dde2ea;
  --line-strong: #c5d2e6;
  --dash: #b8c3d3;
  --ink: #222b38;
  --muted: #5b6676;
  --blue: #1d5bd6;
  --blue-deep: #1748ad;
  --blue-soft: #8db1ff;
  --blue-tint: rgba(29, 91, 214, .08);
  --ring: rgba(29, 91, 214, .15);
  --slate: #1f2733;
  --slate-2: #2a3442;
  --on-dark: #e9edf3;
  --on-dark-muted: #a3adbb;
  --ok: #1f7a4d;
  --error: #b42318;
  --shadow: rgba(31, 39, 51, .35);

  --f-sans: "Plus Jakarta Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  --step-4: clamp(2.25rem, 1.5rem + 3.2vw, 3.75rem);

  --header-h: 72px;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--step-0)/1.6 var(--f-sans); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-sans); line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; 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; left: 16px; top: -48px; z-index: 100; padding: 10px 14px; background: var(--blue); color: #fff; border-radius: 4px; text-decoration: none; }
.skip-link:focus { top: 12px; }

.wrap { max-width: 1200px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.section { padding-block: clamp(56px, 7vw, 104px); }
.section.flush-top { padding-top: 0; }
.eyebrow { font: 500 var(--step--1)/1.2 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.accent { color: var(--blue); }

.section-head { display: grid; gap: 12px; max-width: 46rem; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: var(--step-3); font-weight: 700; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: var(--step-1); line-height: 1.5; }
.section-head.row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; max-width: none; }
.section-head.row > div { display: grid; gap: 10px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 4px; font: 600 var(--step-0)/1 var(--f-sans); text-decoration: none; cursor: pointer; border: 1px solid transparent; background: none; transition: background-color .2s, border-color .2s, color .2s; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary, .btn-primary:hover { color: #fff; }
.btn-primary { background: var(--blue); }
.btn-primary:hover { background: var(--blue-deep); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--paper); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ondark { border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn-ondark:hover { border-color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header & navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 6px 24px -14px var(--shadow); }
.header-row { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 26px; width: auto; }
.primary-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px; font: 500 15px/1 var(--f-sans); color: var(--ink); background: none; border: 0; border-radius: 4px; text-decoration: none; cursor: pointer; }
.nav-link:hover, .nav-item.open > .nav-link { background: var(--steel); }
.nav-link.current { box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
.chev { width: 10px; height: 10px; transition: transform .2s; }
.nav-item.open > .nav-link .chev { transform: rotate(180deg); }
.dropdown { position: absolute; top: calc(100% + 8px); left: 0; min-width: 270px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 18px 40px -18px var(--shadow); padding: 8px; display: grid; gap: 2px; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility 0s .15s; }
.dropdown::before { content: ""; position: absolute; inset: -9px 0 auto; height: 9px; }
.nav-item:hover > .dropdown, .nav-item:focus-within > .dropdown, .nav-item.open > .dropdown { opacity: 1; visibility: visible; transform: none; transition: opacity .15s, transform .15s; }
.dropdown a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 4px; text-decoration: none; }
.dropdown a:hover, .dropdown a[aria-current="page"] { background: var(--steel); }
.dropdown strong { font: 600 15px/1.3 var(--f-sans); }
.dropdown span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.header-cta { margin-left: 8px; min-height: 42px; padding: 0 18px; font-size: 15px; }
.header-cta[aria-current="page"] { box-shadow: 0 0 0 3px var(--ring); }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle svg { width: 20px; height: 20px; }
.mobile-nav { display: none; }

@media (max-width: 960px) {
  .primary-nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-nav.open { display: block; border-top: 1px solid var(--line); padding-block: 8px 24px; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
  .mobile-nav a, .mobile-nav summary { display: flex; justify-content: space-between; align-items: center; min-height: 52px; padding: 0 4px; border-bottom: 1px solid var(--line); font: 600 17px/1.2 var(--f-sans); text-decoration: none; cursor: pointer; list-style: none; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav details[open] summary .chev { transform: rotate(180deg); }
  .mobile-nav .chev { width: 12px; height: 12px; }
  .mobile-nav details a { padding-left: 16px; font-weight: 500; color: var(--muted); }
  .mobile-nav details a[aria-current="page"] { color: var(--blue); }
  .mobile-nav .btn { margin-top: 20px; width: 100%; border-bottom: 0; color: #fff; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--slate); color: var(--on-dark); padding-block: 64px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 2fr .9fr; gap: 48px; }
.footer-about { display: grid; gap: 16px; align-content: start; color: var(--on-dark-muted); font-size: 15px; }
.footer-about img { height: 24px; width: auto; }
.f-plants { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.f-plant { display: grid; gap: 6px; align-content: start; font-size: 14px; color: var(--on-dark-muted); line-height: 1.5; }
.f-plant b { color: #fff; font-weight: 600; font-size: 15px; }
.f-plant .eyebrow { color: var(--blue-soft); font-size: 11px; }
.footer-links { display: grid; gap: 10px; align-content: start; }
.footer-links a { color: var(--on-dark); text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-h { font: 500 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 6px; }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--on-dark-muted); }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .f-plants { grid-template-columns: 1fr; } }

/* ---------- Inner page header ---------- */
.page-head { padding-block: clamp(40px, 6vw, 72px) clamp(32px, 4vw, 56px); }
.page-head.ruled { border-bottom: 1px solid var(--line); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; font: 500 13px/1.2 var(--f-mono); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.page-head h1 { font-size: var(--step-4); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; max-width: 20ch; }
.page-head .lede { margin-top: 16px; font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 40rem; }
.page-head-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.page-head-grid.media { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 5vw, 64px); }
.head-copy .lede { margin-top: 0; }
.head-copy { display: grid; gap: 18px; }
@media (max-width: 900px) { .page-head-grid, .page-head-grid.media { grid-template-columns: 1fr; } }

.next { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-block: clamp(48px, 6vw, 80px); }
.next.ruled { border-top: 1px solid var(--line); }
.next h2 { font-size: var(--step-2); font-weight: 800; max-width: 26ch; }

/* ================= Home ================= */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(40px, 5vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.hero h1 { font-size: var(--step-4); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; }
.hero .lede { font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); line-height: 1.55; color: var(--muted); max-width: 34rem; }
.hero-figure { min-width: 0; }
.hero-figure img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 50%; border-radius: 6px; background: var(--steel); }

.facts { border-block: 1px solid var(--line); }
.facts ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts li { display: grid; gap: 6px; align-content: start; padding: 28px 24px; border-left: 1px solid var(--line); min-width: 0; }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts .num { font: 700 var(--step-2)/1.1 var(--f-sans); letter-spacing: -0.02em; color: var(--blue); font-variant-numeric: tabular-nums; }
.facts .label { color: var(--muted); font-size: 15px; line-height: 1.45; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-figure img { aspect-ratio: 16 / 11; }
  .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li { padding: 22px 16px; }
  .facts li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

.units { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.unit { display: grid; grid-template-rows: auto 1fr; gap: 16px; min-width: 0; }
.unit img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.unit-body { display: grid; gap: 8px; align-content: start; }
.unit .tag { font: 500 12px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.unit h3 { font-size: var(--step-1); font-weight: 700; }
.unit p { color: var(--muted); font-size: 15px; line-height: 1.55; }
@media (max-width: 1000px) { .units { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .units { grid-template-columns: 1fr; } }

.band { background: var(--slate); color: var(--on-dark); }
.band .eyebrow { color: var(--blue-soft); }
.band .section-head h2 { color: #fff; }
.band .section-head p:not(.eyebrow) { color: var(--on-dark-muted); }

.showcase { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.show-card { position: relative; display: grid; align-content: end; min-height: 440px; border-radius: 6px; overflow: hidden; text-decoration: none; color: #fff; isolation: isolate; }
.show-card:hover { color: #fff; }
.show-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.show-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(31, 39, 51, .05) 0%, rgba(31, 39, 51, .55) 45%, rgba(31, 39, 51, .96) 100%); }
.show-card:hover img { transform: scale(1.03); }
.show-body { display: grid; gap: 10px; padding: 28px; }
.show-body h3 { font-size: var(--step-3); font-weight: 800; color: #fff; }
.show-body p { color: var(--on-dark); max-width: 32rem; }
.more { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; margin-top: 6px; }
.more svg { width: 16px; height: 16px; transition: transform .2s; }
.show-card:hover .more svg { transform: translateX(4px); }
@media (max-width: 800px) { .showcase { grid-template-columns: 1fr; } .show-card { min-height: 360px; } }

.export-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.export-copy { display: grid; gap: 20px; }
.export-copy h2 { font-size: var(--step-3); font-weight: 700; }
.export-copy .lede { color: var(--muted); font-size: var(--step-1); line-height: 1.5; }
.export-list { margin-top: 8px; border-top: 1px solid var(--line); }
.export-list li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.export-list .eyebrow { color: var(--blue); font-size: 12px; }
.export-video video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; background: var(--slate); }
@media (max-width: 900px) { .export-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .export-list li { grid-template-columns: 1fr; gap: 4px; } }

.logos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logos li { display: grid; place-items: center; aspect-ratio: 16 / 9; padding: 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logos img { max-height: 56px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.logos li:hover img { filter: none; opacity: 1; }
@media (max-width: 800px) { .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } .logos li { padding: 16px; } }

.certs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.cert { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; padding: 28px 24px 28px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.cert img { width: 64px; height: 64px; object-fit: contain; }
.cert h3 { font-size: var(--step-1); font-weight: 700; }
.cert p { font-size: 14px; color: var(--muted); line-height: 1.4; margin-top: 4px; }
@media (max-width: 1000px) { .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; } }
@media (max-width: 520px) { .certs { grid-template-columns: 1fr; } }

.cta { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; padding-block: clamp(48px, 6vw, 80px) clamp(64px, 8vw, 104px); }
.cta h2 { font-size: var(--step-3); font-weight: 800; margin-top: 12px; }
.cta-lines { display: grid; gap: 14px; }
.cta-line { display: grid; gap: 2px; }
.cta-line .eyebrow { font-size: 12px; }
.cta-line a { font: 600 var(--step-1)/1.3 var(--f-sans); text-decoration: none; }
.cta-line a:hover { text-decoration: underline; text-decoration-color: var(--blue); text-decoration-thickness: 2px; }
@media (max-width: 800px) { .cta { grid-template-columns: 1fr; align-items: start; } }

/* ================= History ================= */
.span-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.span-stats div { display: grid; align-content: start; gap: 2px; padding: 16px 16px 0 0; min-width: 0; }
.span-stats b { font: 700 var(--step-2)/1.1 var(--f-sans); color: var(--blue); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.span-stats .co { font: 700 15px/1.3 var(--f-sans); }
.span-stats .act { font-size: 14px; color: var(--muted); line-height: 1.4; }

.history { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.rail { position: sticky; top: 104px; display: grid; gap: 4px; }
.rail .eyebrow { margin-bottom: 8px; }
.rail a { display: block; padding: 8px 12px; border-left: 2px solid var(--line); text-decoration: none; font: 600 15px/1.2 var(--f-sans); color: var(--muted); transition: color .2s, border-color .2s, background-color .2s; }
.rail a:hover { color: var(--ink); border-left-color: var(--ink); }
.rail a.here { color: var(--blue); border-left-color: var(--blue); background: linear-gradient(90deg, var(--blue-tint), transparent); }

.track { position: relative; padding-left: 52px; }
.track::before { content: ""; position: absolute; left: 11px; top: 10px; bottom: 0; width: 2px; background: linear-gradient(var(--line), var(--line) 85%, transparent); }
.decade { position: relative; display: grid; gap: 14px; }
.decade + .decade { margin-top: 40px; }
.decade-head { position: relative; display: grid; gap: 4px; }
.decade-head::before { content: ""; position: absolute; left: -48px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 2px solid var(--dash); box-shadow: 0 0 0 5px var(--paper); transition: background-color .25s, border-color .25s, box-shadow .25s; }
.decade.is-active .decade-head::before { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 5px var(--paper), 0 0 0 9px var(--ring); }
.decade-head h2 { font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.decade-head .eyebrow { color: var(--blue); }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.m-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: start; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.m-card:hover { border-color: var(--line-strong); background: #fbfcfe; box-shadow: 0 10px 24px -18px var(--shadow); }
.m-media { position: relative; width: 96px; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--steel); }
.m-media img { width: 100%; height: 100%; object-fit: contain; padding: 8px 8px 26px; transition: transform .3s ease; }
.m-media.cover img { object-fit: cover; padding: 0; }
.m-card:hover .m-media img { transform: scale(1.05); }
.m-year { position: absolute; inset: auto 0 0 0; padding: 4px 0; background: var(--blue); color: #fff; text-align: center; font: 700 13px/1.2 var(--f-sans); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.m-body { display: grid; gap: 4px; align-content: start; padding-top: 2px; }
.m-body h3 { font-size: 1rem; font-weight: 700; line-height: 1.35; letter-spacing: -0.01em; }
.m-body p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.cards > .m-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 1000px) {
  .history { grid-template-columns: 1fr; }
  .rail { position: static; display: flex; flex-wrap: wrap; gap: 8px; }
  .rail .eyebrow { width: 100%; margin-bottom: 0; }
  .rail a { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; }
  .rail a.here { border-color: var(--blue); background: var(--blue); color: #fff; }
}
@media (max-width: 720px) {
  .track { padding-left: 36px; }
  .track::before { left: 7px; }
  .decade-head::before { left: -36px; }
  .cards { grid-template-columns: 1fr; }
  .m-card { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 10px; }
  .m-media { width: 76px; }
  .m-media img { padding: 6px 6px 22px; }
  .m-year { font-size: 12px; padding: 3px 0; }
}

.vm { background: var(--steel); }
.vm-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 72px); }
.vm h2 { font-size: var(--step-3); font-weight: 800; margin-top: 12px; }
.vm .mission-label { margin-bottom: 12px; }
.missions { display: grid; border-top: 1px solid var(--line); counter-reset: m; }
.missions li { counter-increment: m; display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); font: 600 var(--step-1)/1.35 var(--f-sans); }
.missions li::before { content: counter(m, decimal-leading-zero); font: 500 13px/2 var(--f-mono); color: var(--blue); }
@media (max-width: 900px) { .vm-grid { grid-template-columns: 1fr; } }

/* ================= Board ================= */
.board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.person { display: grid; padding: 0; text-align: left; cursor: pointer; color: inherit; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s; }
.person:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.person[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 0 0 3px var(--ring); }
.portrait { aspect-ratio: 4 / 5; background: radial-gradient(110% 80% at 50% 20%, #ffffff 0%, var(--steel) 75%); display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.portrait img { width: 100%; height: 100%; object-fit: contain; object-position: bottom center; }
.person-meta { display: grid; gap: 2px; padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.person-meta b { font: 700 15px/1.3 var(--f-sans); }
.person-meta span { font-size: 13px; color: var(--muted); line-height: 1.35; }
.person[aria-pressed="true"] .person-meta span { color: var(--blue); }

.profile { margin-top: 20px; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, #fbfcfe, var(--paper)); }
.profile .portrait { align-self: start; border-radius: 12px; }
.profile-body { display: grid; gap: 20px; align-content: start; min-width: 0; }
.profile-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; }
.profile-top .eyebrow { color: var(--blue); margin-bottom: 6px; }
.profile-top h2 { font-size: var(--step-2); font-weight: 800; }
.pager { display: flex; gap: 8px; }
.pager button { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); cursor: pointer; transition: border-color .2s, background-color .2s; }
.pager button:hover { border-color: var(--ink); background: var(--steel); }
.pager svg { width: 16px; height: 16px; }
.info-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.info { display: grid; gap: 4px; padding: 14px 16px; border-radius: 10px; background: var(--steel); }
.info .eyebrow { font-size: 11px; }
.info b { font: 600 15px/1.4 var(--f-sans); }
.career h3 { font: 500 12px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.roles li { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.roles li:first-child { border-top: 1px solid var(--line); }
.roles .yrs { font: 500 13px/1.5 var(--f-mono); color: var(--blue); font-variant-numeric: tabular-nums; }
.roles li:first-child .yrs { color: #fff; background: var(--blue); border-radius: 999px; padding: 0 10px; width: fit-content; height: fit-content; }
.roles .what { display: grid; gap: 1px; }
.roles .what b { font: 600 15px/1.4 var(--f-sans); }
.roles .what span { font-size: 14px; color: var(--muted); line-height: 1.4; }
@media (max-width: 1000px) { .board { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .profile { grid-template-columns: 1fr; } .profile .portrait { max-width: 200px; } }
@media (max-width: 560px) {
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info-row { grid-template-columns: 1fr; }
  .roles li { grid-template-columns: 1fr; gap: 4px; }
}

/* ================= Products ================= */
.segbar { position: sticky; top: var(--header-h); z-index: 40; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-block: 1px solid var(--line); }
.segbar .wrap { display: flex; gap: 8px; padding-block: 10px; overflow-x: auto; }
.seg-tab { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; font: 600 15px/1 var(--f-sans); color: var(--muted); white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s; }
.seg-tab small { font: 500 12px/1 var(--f-mono); letter-spacing: .04em; opacity: .8; }
.seg-tab:hover { border-color: var(--ink); color: var(--ink); }
.seg-tab.here { background: var(--blue); border-color: var(--blue); color: #fff; }
.products-page { scroll-padding-top: 140px; }

.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.intro-copy { display: grid; gap: 18px; }
.intro-copy h2 { font-size: var(--step-3); font-weight: 800; }
.intro-copy p:not(.eyebrow) { color: var(--muted); font-size: 1.0625rem; line-height: 1.6; max-width: 34rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chips li { padding: 6px 12px; border-radius: 999px; background: var(--steel); font: 600 13px/1.2 var(--f-sans); }
.intro-photo { border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--steel); }
.intro-photo img { width: 100%; height: 100%; object-fit: cover; }
.band .intro-copy h2 { color: #fff; }
.band .intro-copy p:not(.eyebrow) { color: var(--on-dark-muted); }
.band .chips li { background: var(--slate-2); color: var(--on-dark); }

.sub-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; margin: clamp(48px, 6vw, 72px) 0 20px; }
.sub-head h3 { font-size: var(--step-2); font-weight: 800; }
.band .sub-head h3 { color: #fff; }
.band .sub-head .eyebrow { color: var(--on-dark-muted); }

.range { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.range-card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--paper); transition: border-color .2s, box-shadow .2s; }
.range-card:hover { border-color: var(--line-strong); box-shadow: 0 14px 30px -22px var(--shadow); }
.range-media { aspect-ratio: 4 / 3; display: grid; place-items: center; background: radial-gradient(90% 80% at 50% 45%, #ffffff 0%, var(--steel) 72%); }
.range-media img { width: 62%; height: 80%; object-fit: contain; transition: transform .4s ease; filter: drop-shadow(0 14px 18px rgba(31, 39, 51, .18)); }
.range-card:hover .range-media img { transform: rotate(-8deg) scale(1.03); }
.range-body { display: grid; gap: 6px; align-content: start; padding: 18px 20px 20px; }
.range-body .tag { font: 500 12px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.range-body h4 { font: 700 1.125rem/1.3 var(--f-sans); letter-spacing: -0.01em; }
.range-body p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.range-body .made { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; }
.range-body .made b { color: var(--ink); font-weight: 600; }

.logo-strip { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; }
.logo-strip li { display: grid; place-items: center; height: 72px; padding: 12px; border-radius: 8px; background: var(--steel); }
.logo-strip img { max-height: 36px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .7; transition: filter .2s, opacity .2s; }
.logo-strip li:hover img { filter: none; opacity: 1; }

.brands { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.brand-card { position: relative; display: grid; align-content: end; min-height: 340px; border-radius: 12px; overflow: hidden; background: var(--slate-2); isolation: isolate; border: 1px solid rgba(255, 255, 255, .06); }
.brand-card > img { position: absolute; z-index: -2; transition: transform .5s ease; }
.brand-card.photo > img { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.brand-card.photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(31, 39, 51, 0) 25%, rgba(31, 39, 51, .92) 100%); }
.brand-card.photo:hover > img { transform: scale(1.04); }
.brand-card.cutout > img { top: 24px; left: 50%; width: 62%; transform: translateX(-50%); filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .45)); }
.brand-card.cutout:hover > img { transform: translateX(-50%) rotate(-8deg); }
.brand-card.logo > img { top: 34%; left: 50%; width: 70%; transform: translate(-50%, -50%); border-radius: 8px; }
.brand-body { display: grid; gap: 6px; padding: 20px 22px 22px; }
.brand-body .spec { font: 500 12px/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--blue-soft); }
.brand-body h4 { font: 800 1.375rem/1.2 var(--f-sans); letter-spacing: -0.02em; color: #fff; }
.brand-body p { color: var(--on-dark-muted); font-size: 14px; line-height: 1.5; }
.band-cta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-radius: 12px; background: var(--slate-2); }
.band-cta p { color: var(--on-dark); font-weight: 600; }
.band-cta span { display: block; font-weight: 400; font-size: 14px; color: var(--on-dark-muted); }
@media (max-width: 1000px) {
  .logo-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .brands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brands .brand-card:first-child { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .intro { grid-template-columns: 1fr; }
  .range { grid-template-columns: 1fr; }
  .range-card { grid-template-rows: none; grid-template-columns: 132px minmax(0, 1fr); }
  .range-media { aspect-ratio: auto; }
}
@media (max-width: 560px) {
  .logo-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .brands { grid-template-columns: 1fr; }
  .brand-card { min-height: 300px; }
}

/* ================= Contact ================= */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.channels { display: grid; gap: 12px; }
.channel { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); text-decoration: none; transition: border-color .2s, background-color .2s; }
.channel:hover { border-color: var(--line-strong); background: #fbfcfe; }
.channel .ico { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-tint); color: var(--blue); }
.channel .ico svg { width: 20px; height: 20px; }
.channel .txt { display: grid; gap: 2px; min-width: 0; }
.channel .txt .eyebrow { font-size: 11px; }
.channel .txt b { font: 700 1.0625rem/1.3 var(--f-sans); overflow-wrap: anywhere; }
.channel .txt span:last-child { font-size: 13px; color: var(--muted); }
.go { width: 20px; height: 20px; color: var(--muted); }
.copy-btn { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font: 600 13px/1 var(--f-sans); cursor: pointer; transition: border-color .2s, color .2s; }
.copy-btn:hover { border-color: var(--ink); }
.copy-btn.done { border-color: var(--ok); color: var(--ok); }
.note { padding: 14px 16px; border-radius: 10px; background: var(--steel); font-size: 14px; color: var(--muted); line-height: 1.5; }
.note b { color: var(--ink); }

.form-card { padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, #fbfcfe, var(--paper)); }
.form-card h2 { font-size: var(--step-2); font-weight: 800; }
.form-card > p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.form { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full, .form .full { grid-column: 1 / -1; }
.field label, .topics legend { font: 600 14px/1.2 var(--f-sans); }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); font-size: 15px; line-height: 1.4; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--ring); }
.field .err, .form .err { color: var(--error); font-size: 13px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error); }
.topics { display: flex; flex-wrap: wrap; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.topics legend { margin-bottom: 8px; padding: 0; }
.topic input { position: absolute; opacity: 0; pointer-events: none; }
.topic span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font: 600 14px/1 var(--f-sans); color: var(--muted); cursor: pointer; transition: all .2s; }
.topic span:hover { border-color: var(--ink); color: var(--ink); }
.topic input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.topic input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.form-foot .hint { font-size: 13px; color: var(--muted); }
.alert { margin-top: 20px; display: grid; gap: 6px; padding: 16px 18px; border-radius: 12px; font-size: 14px; }
.alert.ok { background: rgba(31, 122, 77, .08); border: 1px solid rgba(31, 122, 77, .25); }
.alert.ok b { color: var(--ok); font-size: 1rem; }
.alert.bad { background: rgba(180, 35, 24, .06); border: 1px solid rgba(180, 35, 24, .25); color: var(--error); }

.plants-sec { background: var(--steel); }
.plants-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 16px; align-items: stretch; }
.plant-list { display: grid; gap: 12px; }
.plant-card { display: grid; gap: 6px; padding: 16px 18px; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: inherit; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.plant-card:hover { border-color: var(--line-strong); }
.plant-card[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 0 0 3px var(--ring); }
.plant-card .eyebrow { color: var(--blue); font-size: 11px; }
.plant-card b { font: 700 1.0625rem/1.3 var(--f-sans); }
.plant-card span:last-child { font-size: 14px; color: var(--muted); line-height: 1.5; }
.map { position: relative; min-height: 380px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(rgba(29, 91, 214, .05) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, rgba(29, 91, 214, .05) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(160deg, #e9eef6, #f6f8fb); display: grid; place-items: center; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-road { position: absolute; background: #ffffff; box-shadow: 0 0 0 1px #dfe5ee; }
.map-road.r1 { left: -10%; right: -10%; top: 38%; height: 14px; transform: rotate(-8deg); }
.map-road.r2 { top: -10%; bottom: -10%; left: 62%; width: 12px; transform: rotate(12deg); }
.map-road.r3 { left: -10%; right: 30%; top: 72%; height: 8px; transform: rotate(4deg); }
.map-pin { position: relative; display: grid; justify-items: center; gap: 10px; text-align: center; padding: 20px; }
.map-pin .pin { width: 44px; height: 44px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--blue); box-shadow: 0 10px 20px -8px rgba(29, 91, 214, .6); display: grid; place-items: center; }
.map-pin .pin::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.map-pin b { font: 700 1.0625rem/1.3 var(--f-sans); }
.map-pin > span { font: 500 12px/1.4 var(--f-mono); color: var(--muted); max-width: 36ch; }
.map-note { position: absolute; left: 12px; bottom: 12px; right: 12px; font-size: 12px; color: var(--muted); text-align: center; }
@media (max-width: 900px) { .contact-grid, .plants-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
  .channel { grid-template-columns: 40px minmax(0, 1fr); }
  .channel .copy-btn, .channel .go { grid-column: 2; justify-self: start; }
}

/* ================= Life at PAKO ================= */
.head-photo { position: relative; }
.head-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 16px; }
.head-photo figcaption { position: absolute; left: 16px; bottom: 16px; padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .94); font: 600 13px/1 var(--f-sans); box-shadow: 0 8px 20px -10px var(--shadow); }

.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 240px 240px; gap: 12px; grid-template-areas: "a a b c" "a a d d"; }
.tile { position: relative; display: grid; align-content: end; border-radius: 14px; overflow: hidden; isolation: isolate; color: #fff; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(31, 39, 51, 0) 40%, rgba(31, 39, 51, .88) 100%); }
.tile:hover img { transform: scale(1.04); }
.tile-body { display: grid; gap: 4px; padding: 18px 20px; }
.tile-body .eyebrow { color: var(--blue-soft); font-size: 11px; }
.tile-body h3 { font-size: 1.25rem; font-weight: 800; color: #fff; }
.tile-body p { font-size: 14px; line-height: 1.5; color: var(--on-dark); max-width: 36ch; }
.t-a { grid-area: a; } .t-b { grid-area: b; } .t-c { grid-area: c; } .t-d { grid-area: d; }
.t-a .tile-body h3 { font-size: var(--step-2); }

.voices { background: var(--steel); }
.voice { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: end; padding: clamp(24px, 4vw, 40px) clamp(24px, 4vw, 48px) 0; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.voice-photo img { width: 100%; aspect-ratio: 1; object-fit: contain; object-position: bottom; }
.voice-body { display: grid; gap: 20px; padding-bottom: clamp(24px, 4vw, 40px); align-self: center; }
.voice-body .mark { width: 40px; height: 40px; color: var(--blue); }
.voice-body blockquote { font: 500 clamp(1.125rem, 1rem + .6vw, 1.375rem)/1.55 var(--f-sans); letter-spacing: -0.01em; }
.who { display: grid; gap: 2px; }
.who b { font: 700 1.0625rem/1.3 var(--f-sans); }
.who span { font-size: 14px; color: var(--muted); }
.switch { display: flex; gap: 10px; align-items: center; }
.avatar { width: 52px; height: 52px; padding: 0; border-radius: 50%; border: 2px solid var(--line); background: var(--steel); overflow: hidden; cursor: pointer; transition: border-color .2s, transform .2s; }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.avatar:hover { transform: translateY(-2px); }
.avatar[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 0 0 3px var(--ring); }

.join-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.join-grid h2 { font-size: var(--step-3); font-weight: 800; color: #fff; max-width: 20ch; }
.join-grid p { margin-top: 10px; color: var(--on-dark-muted); max-width: 36rem; }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 280px 200px 200px; grid-template-areas: "a a" "b c" "d d"; }
  .voice { grid-template-columns: 1fr; }
  .voice-photo { order: 2; max-width: 240px; justify-self: center; }
}
@media (max-width: 520px) {
  .bento { grid-template-columns: 1fr; grid-template-rows: repeat(4, 220px); grid-template-areas: "a" "b" "c" "d"; }
}

/* ---------- Errors ---------- */
.error-page { padding-block: clamp(80px, 12vw, 160px); text-align: center; display: grid; justify-items: center; gap: 16px; }
.error-page .code { font: 800 clamp(4rem, 3rem + 6vw, 7rem)/1 var(--f-sans); color: var(--blue); letter-spacing: -0.04em; }
.error-page h1 { font-size: var(--step-3); font-weight: 800; }
.error-page p { color: var(--muted); max-width: 36rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
