/* Pro-Plastik — production stylesheet
   Tokens transcribed from the design handoff; foreground scale brightened on request
   (backgrounds unchanged). Light theme is the primary experience. */

/* Light theme. The dark token set below is scoped to the brand blocks that stay dark
   (hero, materials hero, animation tiles, footer). */
:root {
  color-scheme: light;
  --bg: #F4F4F1;
  --bg-footer: #0B0C0F;
  --bg-hero: #07080A;
  --surface: #FFFFFF;
  --surface-2: #ECEDE9;
  --selected: #E3E5E0;
  --text: #111318;
  --text-2: #2A2E35;
  --text-3: #3A3F47;
  --text-4: #4A5059;
  --text-5: #1F2329;
  --muted: #5F666F;
  --muted-2: #646B74;   /* ≥ 4.5:1 on --bg for 12px labels */
  --accent: #F14E97;
  --logo-grey: #867B80;
  --molten: #FF6A2A;
  --line-06: rgba(17,19,24,0.07);
  --line-07: rgba(17,19,24,0.08);
  --line-08: rgba(17,19,24,0.10);
  --line-09: rgba(17,19,24,0.11);
  --line-10: rgba(17,19,24,0.13);
  --line-12: rgba(17,19,24,0.15);
  --line-14: rgba(17,19,24,0.18);
  --line-18: rgba(17,19,24,0.24);
  --line-20: rgba(17,19,24,0.28);
  --header-bg: rgba(244,244,241,0.78);
  --card-a: #FFFFFF;
  --card-b: #F8F8F6;
  --btn-hover: #000000;
  --ghost-bg: rgba(17,19,24,0.03);
  --ghost-bg-hover: rgba(17,19,24,0.06);
  --ghost-border-hover: rgba(17,19,24,0.45);
  --hover-line: rgba(17,19,24,0.35);
  --row-hover: rgba(17,19,24,0.03);
  --tab-selected: rgba(17,19,24,0.55);
  --card-top: rgba(17,19,24,0.04);
  --shadow: rgba(0,0,0,0.18);
  --card-shadow: 0 1px 2px rgba(17,19,24,0.04), 0 8px 24px -12px rgba(17,19,24,0.12);
  --ease: cubic-bezier(.2,.7,.2,1);
  --font: Geist, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container: 1320px;
  --gutter: clamp(20px, 4vw, 48px);
  --gutter-l: max(var(--gutter), env(safe-area-inset-left, 0px));
  --gutter-r: max(var(--gutter), env(safe-area-inset-right, 0px));
  --section: clamp(88px, 11vw, 160px);
  --header-h: 68px;
}

.hero, .mat-hero, .site-footer, .anim-box, .mat-viz {
  color: var(--text);   /* explicit: `color` is inherited as a computed value, so re-declared tokens alone would not apply */
  --bg: #0E1013;
  --surface: #15181C;
  --surface-2: #131519;
  --selected: #1B1F24;
  --text: #FAFAF8;
  --text-2: #E1E4E9;
  --text-3: #D5D9DF;
  --text-4: #C8CDD4;
  --text-5: #E6E8EC;
  --muted: #A5ABB4;
  --muted-2: #8B9199;
  --line-06: rgba(255,255,255,0.09);
  --line-07: rgba(255,255,255,0.10);
  --line-08: rgba(255,255,255,0.11);
  --line-09: rgba(255,255,255,0.12);
  --line-10: rgba(255,255,255,0.14);
  --line-12: rgba(255,255,255,0.16);
  --line-14: rgba(255,255,255,0.18);
  --line-18: rgba(255,255,255,0.22);
  --line-20: rgba(255,255,255,0.25);
  --header-bg: rgba(14,16,19,0.72);
  --card-a: #171A1E;
  --card-b: #121418;
  --btn-hover: #FFFFFF;
  --ghost-bg: rgba(255,255,255,0.03);
  --ghost-bg-hover: rgba(255,255,255,0.06);
  --ghost-border-hover: rgba(255,255,255,0.4);
  --hover-line: rgba(255,255,255,0.3);
  --row-hover: rgba(255,255,255,0.02);
  --tab-selected: rgba(243,242,239,0.55);
  --card-top: rgba(255,255,255,0.28);
  --shadow: rgba(0,0,0,0.5);
  --card-shadow: none;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; overflow-y: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html.menu-open, body.menu-open { overflow: hidden; }
body.menu-open { touch-action: none; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: rgba(17,19,24,0.06); }
img, svg, iframe { max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; }
input, textarea { font: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
p, li, dd { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.container { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  height: 44px; padding: 0 16px; display: flex; align-items: center;
  border-radius: 10px; background: var(--text); color: var(--bg); font-weight: 500;
  transition: top .2s var(--ease);
}
.skip:focus { top: 12px; }

@keyframes ppIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- buttons ---------- */
.btn {
  height: 52px; padding: 0 24px;
  display: inline-flex; align-items: center; gap: 10px;
  border: 0; border-radius: 10px; cursor: pointer;
  background: var(--text); color: var(--bg);
  font-weight: 500; font-size: 15px; line-height: 1; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s;
}
.btn:hover { background: var(--btn-hover); color: var(--bg); transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn--inset { box-shadow: inset 0 -1px 0 rgba(0,0,0,.12), 0 1px 0 rgba(255,255,255,.4) inset; }
.btn--sm { height: 48px; padding: 0 22px; }
.btn--ghost {
  background: var(--ghost-bg); color: var(--text);
  border: 1px solid var(--line-18);
  transition: border-color .2s, background .2s;
}
.btn--ghost:hover { background: var(--ghost-bg-hover); border-color: var(--ghost-border-hover); color: var(--text); transform: none; }
.btn--ghost:active { transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-07);
}
.site-nav {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.logo { display: flex; align-items: center; }
.logo img { height: 26px; width: auto; display: block; }

.desk-nav { display: none; align-items: center; gap: 36px; font-size: 14px; color: var(--text-4); }
.desk-nav a { color: var(--text-4); transition: color .25s; }
.desk-nav > a { padding: 12px 0; margin: -12px 0; }
.desk-nav a:hover, .desk-nav a[aria-current="page"] { color: var(--text); }

.lang {
  display: flex; overflow: hidden;
  border: 1px solid var(--line-14); border-radius: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em;
}
.lang a {
  height: 32px; min-width: 40px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-4); transition: color .2s, background .2s;
}
.lang a:hover { color: var(--text); }
.lang a[aria-current] { background: var(--text); color: var(--bg); }
.lang--lg { border-radius: 10px; font-size: 14px; letter-spacing: 0; align-self: flex-start; margin-top: 24px; }
.lang--lg a { height: 48px; min-width: 64px; }

.menu-btn {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 1px solid var(--line-12);
  background: transparent; color: var(--text); cursor: pointer;
}
.menu-btn svg { display: block; }
.menu-btn .ico-close { display: none; }
.menu-btn[aria-expanded="true"] .ico-open { display: none; }
.menu-btn[aria-expanded="true"] .ico-close { display: block; }

/* Lives OUTSIDE .site-header on purpose: the header's backdrop-filter would
   otherwise become the containing block for this fixed panel. */
.mob-menu {
  position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
  z-index: 49;
  background: var(--bg);
  padding: 24px var(--gutter-r) calc(24px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
  -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; gap: 4px;
  overflow-y: auto; overscroll-behavior: contain;
  animation: ppIn .35s var(--ease);
}
.mob-menu > a {
  font-size: clamp(26px, 7.5vw, 32px); font-weight: 500; letter-spacing: -0.02em;
  padding: 12px 0; min-height: 56px; border-bottom: 1px solid var(--line-08);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.mob-menu > a[aria-current="page"] { color: var(--text); }
.mob-contact {
  margin-top: auto; padding: 28px 0 16px;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 16px; color: var(--text-4);
}
.mob-contact a { display: inline-block; padding: 8px 0; overflow-wrap: anywhere; }
body.menu-open .site-header { background: var(--bg); }
/* Short phones: keep links, language and contact reachable without scrolling the menu. */
@media (max-height: 700px) {
  .mob-menu { padding-top: 12px; gap: 0; }
  .mob-menu > a { font-size: 24px; padding: 10px 0; min-height: 50px; }
  .lang--lg { margin-top: 16px; }
  .mob-contact { padding: 20px 0 12px; }
}

@media (min-width: 820px) {
  .desk-nav { display: flex; }
  .menu-btn, .mob-menu { display: none !important; }
}

/* ---------- page layout ---------- */
main.sub { padding-top: var(--header-h); }
.section { padding-top: var(--section); }

.page-head {
  padding-top: clamp(72px, 10vw, 140px); padding-bottom: clamp(48px, 6vw, 80px);
  display: flex; flex-direction: column; gap: 20px;
}
.page-head--contact { padding-bottom: clamp(40px, 5vw, 64px); }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: var(--muted); }
.page-head h1 {
  font-size: clamp(40px, 6vw, 84px); line-height: 1; letter-spacing: -0.04em; font-weight: 500;
  max-width: 900px; text-wrap: balance;
}
.page-head h1.wide { max-width: 980px; }
.page-head h1.narrow { max-width: 760px; }
.lead { font-size: clamp(17px, 1.4vw + 12px, 19px); line-height: 1.55; color: var(--text-4); max-width: 680px; text-wrap: pretty; }
.lead.narrow { max-width: 560px; }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-title { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.section-title h2 { font-size: clamp(30px, 3.6vw, 50px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 500; }
.section-title p { font-size: 17px; line-height: 1.6; color: var(--text-4); }
.link-more {
  font-size: 14px; color: var(--text-4); padding: 10px 0 4px; margin-top: -10px;
  border-bottom: 1px solid var(--line-20); transition: color .2s, border-color .2s;
}
.link-more:hover { color: var(--text); border-color: var(--text); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--bg-hero); border-bottom: 1px solid rgba(17,19,24,0.12);
  height: 100vh; height: 100svh; min-height: 620px;
}
@media (max-width: 819px) { .hero { min-height: 540px; } }
/* Video hero: poster underneath, two stacked <video>s that dissolve into each other at the loop point. */
.hero-media {
  position: absolute; inset: 0; overflow: hidden; background: var(--bg-hero);
  transform: scale(1); transition: transform .1s linear; will-change: transform, opacity;
}
.hero-poster, .hero-poster img, .hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none;
}
.hero-video { opacity: 0; transition: opacity 1.2s linear; background: transparent; }
.hero-video.is-on { opacity: 1; }
.hero-video.is-top { z-index: 2; }
@media (prefers-reduced-motion: reduce) { .hero-video { transition: none; } }
/* No-JS: the poster and the copy are shown immediately. */
.no-js .hero-copy { opacity: 1; transform: none; }
.hero-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 62%;
  background: linear-gradient(to top, var(--bg) 10%, rgba(14,16,19,0));
  pointer-events: none;
}
.hero-copy {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding-bottom: clamp(32px, 6vh, 72px);
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px;
  opacity: 0; transform: translateY(18px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.hero-copy.is-in { opacity: 1; transform: none; }
.hero-text { display: flex; flex-direction: column; gap: 18px; max-width: 640px; }
.hero-text h1 {
  font-size: clamp(36px, 5.4vw, 72px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 500;
  color: var(--text); text-wrap: balance;
}
.hero-text p { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.55; color: var(--text-3); max-width: 580px; text-wrap: pretty; }
/* Legibility over the brighter frames of the video (the copy sits on the sign itself on short viewports). */
.hero-text h1, .hero-text p { text-shadow: 0 1px 2px rgba(0,0,0,.28), 0 8px 32px rgba(0,0,0,.35); }

/* ---------- key facts ---------- */
.facts { padding-top: clamp(56px, 7vw, 96px); }
.facts-grid {
  display: grid; grid-template-columns: 1fr;
  border-top: 1px solid var(--line-10);
}
@media (min-width: 700px) { .facts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fact { padding: 28px 24px 28px 0; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--line-10); }
.fact-k { font-family: var(--mono); font-size: 12px; color: var(--muted-2); letter-spacing: .08em; }
.fact-v { font-size: 24px; letter-spacing: -0.02em; font-weight: 500; }
.fact-d { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* ---------- services (home cards) ---------- */
.services { display: flex; flex-direction: column; gap: 48px; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 16px; }
.svc-card {
  position: relative; overflow: hidden;
  border-radius: 16px; border: 1px solid var(--line-09);
  background: linear-gradient(180deg, var(--card-a) 0%, var(--card-b) 100%);
  box-shadow: var(--card-shadow);
  padding: clamp(24px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 28px;
  transition: border-color .35s, transform .45s var(--ease);
}
.svc-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--card-top), transparent);
}
.svc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.svc-head h3 { font-size: clamp(22px, 5vw + 6px, 28px); letter-spacing: -0.025em; font-weight: 500; }
.svc-head svg { flex-shrink: 0; }
.ico32 { color: var(--text-2); }
.ico44 { color: var(--muted); }
.anim-box {
  border-radius: 12px; overflow: hidden;
  background: radial-gradient(80% 90% at 50% 40%, #1D2126 0%, #101215 100%);
  border: 1px solid var(--line-06);
  aspect-ratio: 400 / 230;
}
.anim-box svg { width: 100%; height: 100%; display: block; }
.anim-frame {
  align-self: center;
  border-radius: 18px; border: 1px solid var(--line-09);
  background: linear-gradient(180deg, var(--card-a), var(--card-b));
  box-shadow: var(--card-shadow);
  padding: clamp(14px, 2vw, 22px);
}

/* ---------- process ---------- */
.process { display: flex; flex-direction: column; gap: 48px; }
.process-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-12);
}
@media (min-width: 640px) { .process-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .process-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.process-grid li {
  position: relative; padding: 28px 20px 32px 0;
  display: flex; flex-direction: column; gap: 14px;
  border-bottom: 1px solid var(--line-08); transition: background .3s;
}
.process-grid .dot { position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); }
.process-grid .dot--accent { background: var(--accent); }
.process-grid .n { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.process-grid h3 { font-size: 19px; font-weight: 500; letter-spacing: -0.015em; }

/* ---------- quality ---------- */
.quality {
  border-radius: 20px; border: 1px solid var(--line-09);
  background: radial-gradient(90% 120% at 100% 0%, var(--card-a) 0%, var(--card-b) 60%);
  box-shadow: var(--card-shadow);
  padding: clamp(28px, 5vw, 72px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(32px, 5vw, 72px);
}
.quality h2 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 500; text-wrap: balance; }
.quality-rows { display: flex; flex-direction: column; }
.quality-row { display: grid; grid-template-columns: 32px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line-08); }
.quality-row .n { font-family: var(--mono); font-size: 12px; color: var(--muted-2); padding-top: 4px; }
.quality-row div { display: flex; flex-direction: column; gap: 6px; }
.quality-row h3 { font-size: 18px; font-weight: 500; }
.quality-row p { font-size: 15px; line-height: 1.55; color: var(--text-4); }
@media (max-width: 420px) {
  .quality-row { grid-template-columns: 1fr; gap: 6px; }
  .quality-row .n { padding-top: 0; }
}

/* ---------- shared CTA ---------- */
.cta {
  padding-top: clamp(96px, 12vw, 180px); padding-bottom: clamp(72px, 9vw, 120px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 28px;
}
.cta h2 { font-size: clamp(32px, 4.4vw, 64px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 500; max-width: 880px; text-wrap: balance; }
.cta h2 span { color: var(--muted); }
.cta--mat { padding-top: clamp(96px, 12vw, 160px); gap: 24px; }
.cta--mat h2 { font-size: clamp(32px, 4.4vw, 60px); max-width: 860px; }
.cta--mat p { font-size: 18px; line-height: 1.55; color: var(--text-4); max-width: 600px; text-wrap: pretty; }

/* ---------- about ---------- */
.about-intro {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(32px, 5vw, 80px);
  border-top: 1px solid var(--line-10); padding-top: 48px;
}
.seal-col { display: flex; flex-direction: column; gap: 18px; align-items: center; justify-content: center; text-align: center; }
.seal-col .years { font-family: var(--mono); font-size: 13px; color: var(--muted-2); }
.seal { width: min(100%, 340px); height: auto; display: block; filter: drop-shadow(0 24px 40px var(--shadow)); }
.about-text { display: flex; flex-direction: column; gap: 22px; font-size: 17px; line-height: 1.7; color: var(--text-2); }
.values {
  padding-top: clamp(72px, 9vw, 120px);
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 900px) { .values { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.value-card {
  border-radius: 16px; border: 1px solid var(--line-09); background: var(--surface);
  box-shadow: var(--card-shadow);
  padding: 28px; display: flex; flex-direction: column; gap: 14px;
}
.value-card h2 { font-size: 20px; font-weight: 500; letter-spacing: -0.015em; }
.value-card p { font-size: 15px; line-height: 1.6; color: var(--text-4); }
.how { padding-top: clamp(72px, 9vw, 120px); display: flex; flex-direction: column; gap: 40px; }
.how h2 { font-size: clamp(28px, 3.4vw, 46px); letter-spacing: -0.03em; font-weight: 500; max-width: 820px; text-wrap: balance; }
.how-grid { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line-12); }
@media (min-width: 600px) { .how-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .how-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.how-grid li { padding: 28px 24px 32px 0; display: flex; flex-direction: column; gap: 12px; border-bottom: 1px solid var(--line-08); }
.how-grid .n { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.how-grid h3 { font-size: 20px; font-weight: 500; }
.how-grid p { font-size: 15px; line-height: 1.55; color: var(--text-4); }

/* ---------- services page ---------- */
.service {
  padding-top: 56px; padding-bottom: 56px;
  border-top: 1px solid var(--line-10);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(32px, 5vw, 80px);
}
.service-text { display: flex; flex-direction: column; gap: 18px; }
.service-text h2 { font-size: clamp(28px, 3.2vw, 42px); letter-spacing: -0.03em; font-weight: 500; }
.service-text p { font-size: 17px; line-height: 1.6; color: var(--text-2); }
.service-text p + p { color: var(--text-4); }
.points { margin-top: 8px; display: flex; flex-direction: column; }
.points li {
  display: flex; gap: 14px; align-items: baseline; padding: 12px 0;
  border-bottom: 1px solid var(--line-07); font-size: 15px; color: var(--text-5);
}
.points li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--logo-grey); flex-shrink: 0; transform: translateY(-2px); }

/* ---------- materials ---------- */
.mat-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-08); background: var(--bg); color: var(--text); }
.mat-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.mat-hero-inner {
  position: relative;
  padding-top: clamp(80px, 11vw, 160px); padding-bottom: clamp(64px, 8vw, 112px);
  display: flex; flex-direction: column; gap: 20px;
}
.mat-select { padding-top: clamp(48px, 6vw, 80px); display: flex; flex-direction: column; gap: 14px; }
.mat-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
/* Phones: one swipeable row, bleeding to the viewport edges so the next tab peeks in. */
@media (max-width: 639px) {
  .mat-tabs {
    display: flex; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter-l) var(--gutter-r);
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin-left: calc(-1 * var(--gutter-l)); margin-right: calc(-1 * var(--gutter-r));
    padding: 6px var(--gutter-r) 8px var(--gutter-l);
  }
  .mat-tabs::-webkit-scrollbar { display: none; }
  .mat-tab { flex: 0 0 auto; width: 148px; scroll-snap-align: start; }
}
.mat-tab {
  text-align: left; cursor: pointer; border-radius: 12px;
  border: 1px solid var(--line-09); background: var(--surface-2); color: var(--text);
  padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px;
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.mat-tab[aria-selected="true"] { border-color: var(--tab-selected); background: var(--selected); }
.mat-tab-top { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.mat-tab-abbr { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; }
.mat-tab .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-18); flex-shrink: 0; transition: background .3s; }
.mat-tab[aria-selected="true"] .dot { background: var(--accent); }
.mat-tab-name { font-size: 13px; color: var(--muted); line-height: 1.35; }
.pe-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 0 0; animation: ppIn .4s var(--ease); }
.pe-tabs .pe-label { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--muted-2); align-self: center; padding-right: 6px; }
.pe-tab {
  height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-12); background: transparent; color: var(--text);
  font-weight: 500; font-size: 14px; display: flex; align-items: center; gap: 8px;
  transition: border-color .25s, background .25s;
}
.pe-tab[aria-selected="true"] { border-color: var(--tab-selected); background: var(--selected); }
.pe-tab span { font-weight: 400; color: var(--muted); font-size: 13px; }

.mat-detail { padding-top: 24px; }
.mat-panel {
  border-radius: 20px; border: 1px solid var(--line-09); overflow: hidden;
  background: linear-gradient(180deg, var(--card-a) 0%, var(--card-b) 100%);
  box-shadow: var(--card-shadow);
}
.mat-panel-top { display: grid; grid-template-columns: 1fr; }
@media (min-width: 920px) { .mat-panel-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mat-panel-copy { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: 18px; }
.mat-abbr-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.mat-abbr { font-size: clamp(48px, 6vw, 72px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.mat-family { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--muted-2); }
.mat-panel-copy h2 { font-size: 22px; font-weight: 500; letter-spacing: -0.015em; }
.mat-panel-copy p { font-size: 16px; line-height: 1.6; color: var(--text-3); max-width: 520px; text-wrap: pretty; }
.mat-viz {
  position: relative; min-height: 260px;
  border-top: 1px solid var(--line-06);
  background: radial-gradient(70% 80% at 50% 50%, #1C2025 0%, #121418 100%);
}
@media (min-width: 920px) { .mat-viz { border-top: 0; border-left: 1px solid var(--line-06); } }
.mat-viz svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mat-viz-label { position: absolute; left: 18px; bottom: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--muted-2); }
.mat-panel-bottom { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line-08); }
.mat-cell { padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px; }
.mat-cell + .mat-cell { border-top: 1px solid var(--line-06); }
@media (min-width: 820px) {
  .mat-panel-bottom { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mat-cell + .mat-cell { border-top: 0; border-left: 1px solid var(--line-06); }
}
.mat-cell h3 { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--muted); font-weight: 400; }
.mat-chars { display: flex; flex-direction: column; }
.mat-chars li {
  display: flex; gap: 12px; align-items: baseline; padding: 10px 0;
  border-bottom: 1px solid var(--line-06); font-size: 15px; color: var(--text-5);
}
.mat-chars li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--text-2); flex-shrink: 0; transform: translateY(-2px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span {
  height: 34px; padding: 0 14px; display: flex; align-items: center;
  border-radius: 999px; border: 1px solid var(--line-12); font-size: 14px; color: var(--text-5);
}
/* ---------- contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: clamp(24px, 4vw, 56px); align-items: start;
}
.contact-list { display: flex; flex-direction: column; border-top: 1px solid var(--line-10); }
.contact-row { padding: 20px 0; border-bottom: 1px solid var(--line-08); display: grid; grid-template-columns: 130px 1fr; gap: 16px; }
.contact-row dt { font-family: var(--mono); font-size: 12px; color: var(--muted-2); letter-spacing: .06em; padding-top: 3px; }
.contact-row dd { font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
.contact-row dd a { display: inline-block; padding: 6px 0; margin: -6px 0; color: var(--text); transition: color .2s; }
.contact-row dd a:hover { color: var(--accent); }
@media (max-width: 420px) {
  .contact-row { grid-template-columns: 1fr; gap: 6px; }
}
.form {
  border-radius: 18px; border: 1px solid var(--line-10); background: var(--surface);
  padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; gap: 18px;
  container-type: inline-size;
}
.form h2 { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.form-status {
  border-radius: 10px; padding: 14px 16px; font-size: 15px; line-height: 1.5;
  border: 1px solid rgba(241,78,151,0.4); background: rgba(241,78,151,0.08);
}
.form-status.is-error { border-color: rgba(255,106,42,0.45); background: rgba(255,106,42,0.08); }
.form-fields { display: grid; grid-template-columns: 1fr; gap: 14px; }
@container (min-width: 440px) { .form-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--text-4); }
.field input, .field textarea {
  width: 100%; border-radius: 10px; border: 1px solid var(--line-12);
  background: var(--surface); color: var(--text); font-size: 16px; outline: none;
  -webkit-appearance: none; appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input { height: 48px; padding: 0 14px; }
.field textarea { padding: 12px 14px; resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { border-color: var(--text); box-shadow: 0 0 0 3px var(--line-08); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; justify-content: center; }
.form .btn[disabled] { opacity: .7; cursor: progress; transform: none; }

.map-section { padding-top: clamp(72px, 9vw, 120px); display: flex; flex-direction: column; gap: 24px; }
.map-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.map-head h2 { font-size: clamp(28px, 3.4vw, 46px); letter-spacing: -0.03em; font-weight: 500; }
.map-frame { border-radius: 18px; overflow: hidden; border: 1px solid var(--line-10); height: clamp(320px, 45vw, 480px); background: var(--surface-2); }
.map-frame { position: relative; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; position: relative; z-index: 1; opacity: 0; transition: opacity .5s; }
.map-frame.is-loaded iframe, .no-js .map-frame iframe { opacity: 1; }
.map-placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: var(--text-4); font-family: var(--mono); font-size: 13px; letter-spacing: .04em;
  background:
    linear-gradient(var(--line-07) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--line-07) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--surface-2);
}
.map-placeholder svg { color: var(--accent, #F14E97); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line-08); background: var(--bg-footer); color: var(--text); }
.footer-top {
  padding-top: 36px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 40px;
}
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.footer-brand img { height: 24px; width: auto; display: block; }
.footer-tagline { font-size: 13px; color: var(--muted-2); padding-left: 24px; border-left: 1px solid var(--line-10); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-nav a { font-size: 14px; color: var(--text-4); padding: 10px 0; margin: -10px 0; transition: color .2s; }
.footer-nav a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 28px; padding: 18px 0 24px; border-top: 1px solid var(--line-07);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px;
  font-size: 13px; color: var(--muted-2);
}
.footer-bottom a { display: inline-block; color: var(--text-2); border-bottom: 1px solid var(--line-20); padding: 6px 0 1px; margin-top: -6px; transition: color .2s, border-color .2s; }
.footer-bottom a:hover { color: var(--text); border-color: var(--text); }
@media (max-width: 560px) {
  .footer-tagline { padding-left: 0; border-left: 0; }
}

/* ---------- 404 ---------- */
.nf { min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); display: flex; flex-direction: column; justify-content: center; }

/* ---------- hover only on devices that hover ---------- */
@media (hover: hover) {
  .svc-card:hover { border-color: var(--hover-line); transform: translateY(-3px); }
  .process-grid li:hover { background: var(--row-hover); }
  .mat-tab:hover { border-color: var(--hover-line); transform: translateY(-2px); }
  .pe-tab:hover { border-color: var(--hover-line); }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-copy { opacity: 1; transform: none; }
}
