/* Klaseno — layout concept: light gallery panels on white, one school-yellow signal colour,
   a giant expanded-type slogan band and a dark scroll-driven film of the making process. */
:root {
  --white: #ffffff;
  --mist: #eef0ef;          /* panel grey, slightly green-biased like classroom walls */
  --line: #d9dddb;
  --ink: #1f2326;           /* logo charcoal */
  --ink-soft: #545b5f;
  --yellow: #ffc61a;        /* school signal yellow */
  --yellow-deep: #e9a900;
  --yellow-soft: #fff4cc;
  --night: #15181a;

  --f-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Instrument Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --radius: 18px;
  --maxw: 1320px;
  --header-h: 76px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--white);
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--yellow-deep); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
@media (max-width: 600px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
}

.eyebrow {
  font-family: var(--f-mono); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 0.6em;
}
.eyebrow::before { content: ""; width: 0.7em; height: 0.7em; background: var(--yellow); border-radius: 2px; }

.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  font-family: var(--f-body); font-weight: 600; font-size: 0.98rem;
  padding: 0.95em 1.5em; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 1.1em; height: 1.1em; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--yellow-deep); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #000; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255,255,255,0.92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .25s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 22px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  text-decoration: none; font-weight: 500; font-size: 0.97rem; padding: 0.55em 0.95em; border-radius: 999px;
  color: var(--ink-soft); transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--ink); background: var(--mist); }
.main-nav a[aria-current="page"] { color: var(--ink); background: var(--yellow-soft); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .btn { padding: 0.75em 1.25em; font-size: 0.92rem; }
.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white);
  align-items: center; justify-content: center; cursor: pointer; color: var(--ink);
}
.menu-toggle svg { width: 20px; height: 20px; }
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .header-cta .btn { display: none; }
  .main-nav {
    position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px; background: var(--white);
    padding: 16px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px));
    border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(0,0,0,.2);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .main-nav a { font-size: 1.15rem; padding: 0.8em 1em; }
  .main-nav .nav-quote { display: block; background: var(--yellow); color: var(--ink); text-align: center; margin-top: 8px; font-weight: 600; }
  body.nav-open .main-nav { opacity: 1; transform: none; pointer-events: auto; }
}
@media (min-width: 961px) { .main-nav .nav-quote { display: none; } }

/* ---------- Hero ---------- */
.hero { padding-block: 12px 0; }
.hero-panel {
  background: var(--mist); border-radius: calc(var(--radius) + 10px);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(24px, 4vw, 64px);
  padding: clamp(28px, 5vw, 72px); align-items: center; overflow: hidden; position: relative;
}
.hero-copy { display: grid; gap: 26px; min-width: 0; }
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.6rem); font-weight: 700; font-stretch: 112%;
  letter-spacing: -0.025em;
}
.hero h1 mark { background: none; color: inherit; position: relative; white-space: nowrap; }
.hero h1 mark::after {
  content: ""; position: absolute; left: -0.06em; right: -0.06em; bottom: 0.06em; height: 0.32em;
  background: var(--yellow); z-index: -1; border-radius: 3px;
}
.hero h1 mark { z-index: 0; isolation: isolate; }
.hero-lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-soft); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.chip {
  font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 0.5em 0.95em; color: var(--ink);
}

.slider { position: relative; aspect-ratio: 4 / 5; max-height: 640px; width: 100%; max-width: 100%; justify-self: end; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide figcaption {
  position: absolute; left: 16px; bottom: 16px; background: var(--white); color: var(--ink);
  font-size: 0.85rem; font-weight: 600; padding: 0.55em 0.95em; border-radius: 999px;
}
.slider-dots { position: absolute; right: 16px; bottom: 18px; display: flex; gap: 6px; }
.slider-dots button {
  width: 28px; height: 6px; border-radius: 3px; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,0.6); transition: background .3s, width .3s;
}
.slider-dots button[aria-current="true"] { background: var(--yellow); width: 44px; }
.hero-badge {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  width: 112px; height: 112px; border-radius: 50%; background: var(--yellow); color: var(--ink);
  display: grid; place-items: center; text-align: center; font-family: var(--f-display); font-weight: 800;
  font-size: 0.82rem; line-height: 1.1; font-stretch: 112%; text-transform: uppercase; letter-spacing: 0.02em;
  transform: rotate(-8deg); box-shadow: 0 10px 30px -10px rgba(0,0,0,.25);
}
@media (max-width: 860px) {
  .hero-panel { grid-template-columns: 1fr; padding: 28px 20px 20px; }
  .slider { justify-self: stretch; aspect-ratio: 4 / 4.2; }
  .hero-badge { width: 92px; height: 92px; font-size: 0.7rem; }
}

/* ---------- Slogan ---------- */
.slogan { padding-block: clamp(56px, 8vw, 110px) clamp(40px, 6vw, 80px); }
.slogan-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 32px; align-items: end; }
.slogan h2 {
  font-size: clamp(2.6rem, 9.2vw, 9.4rem); font-weight: 900; font-stretch: 125%;
  line-height: 0.88; letter-spacing: -0.035em; text-transform: uppercase; min-width: 0;
}
.slogan h2 span { display: block; }
.slogan h2 .hl {
  background: var(--yellow); width: fit-content; max-width: 100%; padding: 0.04em 0.12em 0.02em; margin-left: -0.12em; border-radius: 0.08em;
}
.slogan h2 .outline { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.slogan-note { font-size: 1rem; color: var(--ink-soft); border-top: 2px solid var(--ink); padding-top: 16px; }
.slogan-note strong { color: var(--ink); }
@media (max-width: 900px) { .slogan-grid { grid-template-columns: 1fr; } .slogan h2 .outline { -webkit-text-stroke-width: 1.5px; } }

/* ---------- Yellow band ---------- */
.band { background: var(--yellow); }
.band-row { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)); gap: 0; }
.band-intro { padding: 36px 32px 36px 0; display: grid; align-content: center; gap: 8px; }
.band-intro h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 800; font-stretch: 112%; }
.band-item { padding: 36px 28px; border-left: 2px solid rgba(31,35,38,.18); display: grid; gap: 6px; align-content: start; }
.band-item b { font-family: var(--f-display); font-size: 1.25rem; font-stretch: 112%; }
.band-item span { font-size: 0.95rem; color: #3b3a2f; }
.band-item i { font-style: normal; font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: .1em; }
@media (max-width: 900px) {
  .band-row { grid-template-columns: 1fr; }
  .band-intro { padding: 32px 0 12px; }
  .band-item { border-left: 0; border-top: 2px solid rgba(31,35,38,.18); padding: 20px 0; }
}

/* ---------- Section heads ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 32px; align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 800; font-stretch: 112%; letter-spacing: -0.025em; margin-top: 14px; }
.section-head p { color: var(--ink-soft); }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* ---------- Product bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(260px, 26vw, 360px); gap: 16px; }
.p-card {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--mist);
  text-decoration: none; color: var(--ink); isolation: isolate;
}
.p-card.wide { grid-column: span 2; }
.p-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .6s ease, transform .9s ease; }
.p-card img.alt { opacity: 0; }
.p-card:hover img { transform: scale(1.04); }
.p-card:hover img.alt { opacity: 1; }
.p-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.28)); z-index: 1; pointer-events: none; }
.p-tag {
  position: absolute; top: 14px; left: 14px; z-index: 2; font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: .08em;
  text-transform: uppercase; background: var(--yellow); padding: 0.45em 0.8em; border-radius: 999px;
}
.p-label {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2;
  background: var(--white); border-radius: 14px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.p-label h3 { font-size: 1.12rem; font-weight: 700; font-stretch: 108%; }
.p-label .arrow {
  flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--mist); display: grid; place-items: center; transition: background .2s, transform .3s;
}
.p-card:hover .arrow { background: var(--yellow); transform: rotate(-45deg); }
.p-label .arrow svg { width: 18px; height: 18px; }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 300px; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; grid-auto-rows: 280px; } .p-card.wide { grid-column: auto; } }

/* ---------- Process film ---------- */
.film { position: relative; height: 460vh; background: var(--night); color: var(--white); }
.film-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,12,13,.82) 0%, rgba(10,12,13,.45) 45%, rgba(10,12,13,.05) 75%), linear-gradient(0deg, rgba(10,12,13,.6), rgba(10,12,13,0) 40%); }
.film-inner { position: relative; z-index: 2; height: 100%; display: grid; grid-template-rows: auto 1fr auto; padding-block: calc(var(--header-h) + 28px) 36px; }
.film-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.film-top .eyebrow { color: rgba(255,255,255,.75); }
.film-count { font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: .1em; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
.chapters { position: relative; align-self: center; max-width: 620px; min-height: 18rem; }
.chapter {
  position: absolute; inset: 0 0 auto 0; display: grid; gap: 18px;
  opacity: 0; transform: translateY(24px); transition: opacity .5s ease, transform .5s ease; pointer-events: none;
}
.chapter.is-active { opacity: 1; transform: none; pointer-events: auto; }
.chapter .num { font-family: var(--f-mono); color: var(--yellow); font-size: 0.85rem; letter-spacing: .14em; }
.chapter h3 { font-size: clamp(2.4rem, 5.6vw, 5rem); font-weight: 800; font-stretch: 118%; letter-spacing: -0.03em; }
.chapter p { font-size: clamp(1rem, 1.3vw, 1.15rem); color: rgba(255,255,255,.82); max-width: 32em; }
.chapter.final h3 { color: var(--yellow); }
.film-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.rail-seg { display: grid; gap: 10px; font-size: 0.82rem; color: rgba(255,255,255,.6); min-width: 0; }
.rail-seg .bar { height: 3px; background: rgba(255,255,255,.2); border-radius: 2px; overflow: hidden; }
.rail-seg .fill { height: 100%; width: 0%; background: var(--yellow); }
.rail-seg.is-active { color: var(--white); }
.rail-seg span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 700px) {
  .film-shade { background: linear-gradient(0deg, rgba(10,12,13,.88) 10%, rgba(10,12,13,.35) 60%, rgba(10,12,13,.2)); }
  .chapters { align-self: end; margin-bottom: 28px; min-height: 15rem; }
  .chapter { inset: auto 0 0 0; }
  .rail-seg span { font-size: 0.7rem; }
}

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.why-item { background: var(--mist); border-radius: var(--radius); padding: 28px 24px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.why-item .ico { width: 48px; height: 48px; border-radius: 12px; background: var(--yellow); display: grid; place-items: center; }
.why-item .ico svg { width: 24px; height: 24px; }
.why-item h3 { font-size: 1.25rem; font-weight: 700; font-stretch: 108%; }
.why-item p { color: var(--ink-soft); font-size: 0.98rem; }
@media (max-width: 1000px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .why-grid { grid-template-columns: 1fr; } }

.sizes { margin-top: 16px; background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.sizes h3 { font-size: 1.3rem; font-stretch: 110%; }
.sizes p { color: rgba(255,255,255,.7); font-size: 0.95rem; margin-top: 6px; max-width: 40em; }
.size-marks { display: flex; flex-wrap: wrap; gap: 8px; }
.size-marks span {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--f-mono); font-size: 0.85rem; font-weight: 500;
  border: 2px solid rgba(255,255,255,.25);
}
@media (max-width: 760px) { .sizes { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta-panel {
  background: var(--yellow); border-radius: calc(var(--radius) + 10px); padding: clamp(32px, 6vw, 80px);
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: end; position: relative; overflow: hidden;
}
.cta-panel h2 { font-size: clamp(2rem, 4.4vw, 3.8rem); font-weight: 900; font-stretch: 118%; letter-spacing: -0.03em; }
.cta-panel p { font-size: 1.05rem; color: #3b3a2f; margin-bottom: 20px; }
@media (max-width: 860px) { .cta-panel { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: rgba(255,255,255,.75); margin-top: clamp(64px, 8vw, 110px); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 72px 40px; }
.footer-grid img { height: 22px; width: auto; margin-bottom: 18px; }
.footer-grid h4 { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow); margin-bottom: 14px; font-weight: 500; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; color: rgba(255,255,255,.8); }
.footer-grid a:hover { color: var(--yellow); }
.footer-grid p { font-size: 0.95rem; max-width: 26em; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- Inner page hero ---------- */
.page-hero { padding-block: 12px 0; }
.page-hero .panel { background: var(--mist); border-radius: calc(var(--radius) + 10px); padding: clamp(32px, 6vw, 80px); display: grid; gap: 20px; }
.page-hero .panel > * { min-width: 0; }
.page-hero h1 { font-size: clamp(1.9rem, 6vw, 5.4rem); font-weight: 900; font-stretch: 122%; letter-spacing: -0.035em; text-transform: uppercase; line-height: 0.92; }
.page-hero p { color: var(--ink-soft); font-size: 1.15rem; max-width: 40em; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.jump a { text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 0.55em 1em; font-size: 0.92rem; font-weight: 500; transition: background .2s, border-color .2s; }
.jump a:hover { background: var(--yellow); border-color: var(--yellow); }

/* ---------- Product detail rows ---------- */
.cat { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding-block: clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.cat:nth-child(even) .cat-media { order: 2; }
.cat-media { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.cat-media img { width: 100%; height: clamp(260px, 32vw, 460px); object-fit: cover; border-radius: var(--radius); background: var(--mist); }
.cat-media img:last-child { margin-top: 48px; height: clamp(220px, 26vw, 380px); }
.cat-body { display: grid; gap: 18px; min-width: 0; }
.cat-body h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 800; font-stretch: 114%; letter-spacing: -0.025em; }
.cat-body > p { color: var(--ink-soft); }
.cat-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-top: 6px; }
.cat-lists h4 { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--ink-soft); margin-bottom: 10px; }
.cat-lists ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 0.97rem; }
.cat-lists li { display: flex; gap: 10px; align-items: baseline; }
.cat-lists li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--yellow); transform: translateY(-1px); }
@media (max-width: 860px) {
  .cat { grid-template-columns: 1fr; }
  .cat:nth-child(even) .cat-media { order: 0; }
  .cat-lists { grid-template-columns: 1fr; }
}

/* ---------- Services ---------- */
.svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding-block: clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.svc:nth-child(even) .svc-media { order: 2; }
.svc-media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; max-width: 100%; background: var(--ink); }
.svc-media video { width: 100%; height: 100%; object-fit: cover; }
.svc-media .num { position: absolute; top: 16px; left: 16px; background: var(--yellow); font-family: var(--f-mono); font-size: 0.8rem; padding: 0.45em 0.8em; border-radius: 999px; }
.svc-body { display: grid; gap: 18px; min-width: 0; }
.svc-body h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 800; font-stretch: 114%; letter-spacing: -0.025em; }
.svc-body > p { color: var(--ink-soft); }
.svc-body ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.svc-body li { display: flex; gap: 12px; align-items: baseline; }
.svc-body li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--yellow); transform: translateY(-1px); }
@media (max-width: 860px) { .svc { grid-template-columns: 1fr; } .svc:nth-child(even) .svc-media { order: 0; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 32px; align-items: start; }
.form { background: var(--mist); border-radius: calc(var(--radius) + 6px); padding: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; width: 100%; padding: 0.85em 1em; border-radius: 12px; border: 1px solid var(--line); background: var(--white); color: var(--ink);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--yellow); outline-offset: 0; border-color: var(--yellow-deep); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { font-weight: 500; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 0.5em 0.9em; cursor: pointer; }
.checks input { accent-color: var(--ink); width: auto; }
.form-status { grid-column: 1 / -1; font-size: 0.95rem; background: var(--yellow-soft); border-radius: 12px; padding: 14px 16px; }
.aside { display: grid; gap: 16px; }
.aside-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; }
.aside-card h3 { font-size: 1.15rem; font-stretch: 108%; }
.aside-card p { color: var(--ink-soft); font-size: 0.97rem; }
.copy-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.copy-row code { font-family: var(--f-mono); font-size: 0.95rem; background: var(--mist); padding: 0.4em 0.7em; border-radius: 8px; user-select: all; }
.copy-row button { font: inherit; font-size: 0.85rem; font-weight: 600; border: 1px solid var(--ink); background: transparent; border-radius: 999px; padding: 0.4em 0.9em; cursor: pointer; color: var(--ink); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 12px; font-size: 0.97rem; color: var(--ink-soft); }
.steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; font-family: var(--f-mono); font-size: 0.85rem; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .form { grid-template-columns: 1fr; } }

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

/* ---------- Language switcher ---------- */
h1, h2, h3 { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.slogan h2 { hyphens: manual; }
.lang { position: relative; }
.lang summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--white);
  font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: .06em; color: var(--ink); user-select: none;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 16px; height: 16px; }
.lang summary svg:last-child { width: 14px; height: 14px; transition: transform .2s; }
.lang[open] summary svg:last-child { transform: rotate(180deg); }
.lang summary:hover { border-color: var(--ink); }
.lang ul {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 70; list-style: none; margin: 0; padding: 6px;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; min-width: 190px;
  box-shadow: 0 24px 40px -20px rgba(0,0,0,.25); display: grid; gap: 2px;
}
.lang a { display: flex; gap: 12px; align-items: center; text-decoration: none; padding: 0.6em 0.8em; border-radius: 10px; font-size: 0.95rem; }
.lang a b { font-family: var(--f-mono); font-weight: 500; font-size: 0.75rem; width: 1.8em; color: var(--ink-soft); }
.lang a:hover { background: var(--mist); }
.lang a[aria-current="true"] { background: var(--yellow-soft); }
@media (max-width: 350px) { .lang summary span { display: none; } }

/* ---------- Slogan: each line scaled to fit its column (JS sets font-size) ---------- */
.slogan-grid > * { min-width: 0; }
.slogan h2 {
  font-size: clamp(2rem, 8vw, 8.6rem); hyphens: none; -webkit-hyphens: none; overflow-wrap: normal; word-break: keep-all;
  text-wrap: nowrap; white-space: nowrap; container-type: normal;
}
.slogan h2 span { display: block; width: fit-content; max-width: none; }
.slogan h2 .hl { margin-left: 0; padding: 0.02em 0.1em 0; max-width: none; }
.slogan h2.is-fitted { visibility: visible; }

/* Slide captions: only the active one shows, so they never overlap mid-fade */
.slide figcaption { opacity: 0; transition: opacity .3s ease; }
.slide.is-active figcaption { opacity: 1; transition: opacity .4s ease .6s; }

/* ---------- Certifications ---------- */
.certs { padding-top: 0; }
.cert-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.cert { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; display: grid; gap: 16px; align-content: start; min-width: 0; background: var(--white); }
.seal {
  width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  border: 2px solid var(--ink); position: relative; background: var(--yellow);
  box-shadow: inset 0 0 0 6px var(--yellow), inset 0 0 0 7px var(--ink);
}
.seal b { font-family: var(--f-display); font-weight: 800; font-stretch: 100%; font-size: 0.9rem; line-height: 1.05; letter-spacing: 0.01em; max-width: 64px; }
.cert h3 { font-size: 1.08rem; font-weight: 700; font-stretch: 106%; margin-bottom: 6px; }
.cert p { color: var(--ink-soft); font-size: 0.93rem; }
.cert-foot { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; border-top: 2px solid var(--ink); padding-top: 20px; }
.cert-foot p { color: var(--ink-soft); max-width: 46em; }
@media (max-width: 1100px) { .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cert:last-child { grid-column: 1 / -1; } }
@media (max-width: 1100px) { .cert { grid-template-columns: auto minmax(0, 1fr); align-items: start; } .seal { width: 76px; height: 76px; } .seal b { font-size: 0.78rem; max-width: 54px; } }
@media (max-width: 600px) { .cert-grid { grid-template-columns: 1fr; } }

/* ---------- Sticky category bar (products & services) ---------- */
.jump-bar {
  position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 40;
  background: rgba(255,255,255,0.94); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line); padding-block: 12px; margin-top: 12px;
}
.jump-bar .jump {
  margin: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity; padding-bottom: 2px;
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 32px), transparent);
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 32px), transparent);
}
.jump-bar .jump::-webkit-scrollbar { display: none; }
.jump-bar .jump a { flex: none; white-space: nowrap; scroll-snap-align: start; }
.jump-bar .jump a.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.cat, .svc { scroll-margin-top: calc(var(--header-h) + 84px); }
@media (min-width: 1100px) {
  .jump-bar .jump { flex-wrap: wrap; overflow: visible; mask-image: none; -webkit-mask-image: none; }
  .cat, .svc { scroll-margin-top: calc(var(--header-h) + 130px); }
}

/* ---------- Process film: autoplay player ---------- */
.film { height: auto; }
.film-sticky { position: relative; top: auto; height: min(100vh, 860px); height: min(100svh, 860px); min-height: 600px; }
.film-toggle {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.25);
  color: var(--white); display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.film-toggle:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.film-toggle svg { width: 18px; height: 18px; }
.film-toggle .i-play { display: none; }
.film.is-paused .film-toggle .i-play { display: block; }
.film.is-paused .film-toggle .i-pause { display: none; }
.rail-seg { font: inherit; text-align: left; background: none; border: 0; padding: 10px 0 4px; cursor: pointer; color: rgba(255,255,255,.6); }
.rail-seg .bar { display: block; }
.rail-seg .fill { display: block; }
.rail-seg .lbl { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.85rem; }
.rail-seg:hover { color: var(--white); }
.rail-seg:hover .bar { background: rgba(255,255,255,.4); }
@media (max-width: 700px) {
  .film-sticky { height: auto; min-height: 640px; }
  .film-inner { min-height: 640px; }
  .rail-seg .lbl { font-size: 0.72rem; }
}

/* ---------- Hero: photos first (left on desktop, top on mobile) ---------- */
@media (min-width: 861px) { .hero-panel { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); } }
.hero-panel .slider { order: -1; justify-self: start; }
@media (max-width: 860px) { .hero-panel .slider { justify-self: stretch; } }

/* Hero badge carries the slogan; captions link to their category */
.hero-badge { width: 132px; height: 132px; font-size: 0.7rem; line-height: 1.15; letter-spacing: 0.01em; padding: 10px; }
.slide figcaption a { text-decoration: none; color: inherit; }
.slide figcaption a:hover { text-decoration: underline; }
.slider-dots { gap: 5px; }
.slider-dots button { width: 18px; }
.slider-dots button[aria-current="true"] { width: 34px; }
@media (max-width: 860px) { .hero-badge { width: 108px; height: 108px; font-size: 0.6rem; } }
@media (max-width: 860px) {
  .slider-dots { top: 18px; left: 16px; right: auto; bottom: auto; }
  .slider-dots button { width: 12px; background: rgba(255,255,255,.75); }
  .slider-dots button[aria-current="true"] { width: 24px; }
}
.hero-badge { font-size: 0.95rem; line-height: 1.1; }
@media (max-width: 860px) { .hero-badge { font-size: 0.8rem; } }

/* ---------- Hero dock: iOS-style glass icons (replaces the yellow badge) ---------- */
.hero-badge { display: none; }
.hero-dock {
  position: absolute; top: 16px; right: 16px; z-index: 3;
  display: flex; gap: 10px; padding: 10px 10px 8px; border-radius: 26px;
  background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.06));
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.25);
}
.app { display: grid; justify-items: center; gap: 5px; }
.app-ico {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; color: #f4f2ef;
  background: linear-gradient(165deg, rgba(92,80,68,.72) 0%, rgba(36,31,27,.78) 100%);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.32), inset 0 -2px 6px rgba(0,0,0,.28), 0 6px 14px -6px rgba(0,0,0,.55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.app-ico svg { width: 28px; height: 28px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.4)); }
.app-lbl { font-size: 0.68rem; font-weight: 600; color: #fff; letter-spacing: 0.01em; text-shadow: 0 1px 2px rgba(0,0,0,.55); }
@media (max-width: 860px) {
  .hero-dock { top: 12px; right: 12px; gap: 8px; padding: 8px 8px 6px; border-radius: 22px; }
  .app-ico { width: 46px; height: 46px; border-radius: 13px; }
  .app-ico svg { width: 24px; height: 24px; }
  .app-lbl { font-size: 0.62rem; }
  /* dots under the caption, both on the left */
  .slider-dots { top: auto; bottom: 14px; left: 18px; right: auto; }
  .slide figcaption { bottom: 30px; }
  .slider-dots button { width: 8px; height: 5px; }
  .slider-dots button[aria-current="true"] { width: 20px; }
}

/* ---------- Dock icons: cheerful yellow app icons ---------- */
.app-ico {
  color: var(--ink); border: 1px solid rgba(255,255,255,.55); position: relative; overflow: hidden;
  background: linear-gradient(160deg, #ffe680 0%, #ffc61a 55%, #f2a900 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), inset 0 -3px 8px rgba(176,110,0,.28), 0 8px 16px -6px rgba(120,80,0,.45);
}
.app:nth-child(2) .app-ico { background: linear-gradient(160deg, #ffd84d 0%, #ffb800 55%, #ee9a00 100%); }
.app:nth-child(3) .app-ico { background: linear-gradient(160deg, #fff3b0 0%, #ffd94a 55%, #f7b900 100%); }
.app-ico::before {
  content: ""; position: absolute; left: -10%; right: -10%; top: -35%; height: 70%;
  background: radial-gradient(ellipse at 50% 100%, rgba(255,255,255,.55), rgba(255,255,255,0) 70%); pointer-events: none;
}
.app-ico svg { position: relative; stroke-width: 2; filter: drop-shadow(0 1px 0 rgba(255,255,255,.45)); }

/* ---------- How we work: 4 video cards (hover to play) ---------- */
.vsec { background: var(--night); color: var(--white); padding-block: clamp(64px, 9vw, 120px); }
.vsec .eyebrow { color: rgba(255,255,255,.7); }
.vsec .section-head p { color: rgba(255,255,255,.72); }
.vgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.vcard {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4.2; max-width: 100%;
  background: #000; color: var(--white); text-decoration: none; isolation: isolate;
  transition: transform .4s ease, box-shadow .4s ease;
}
.vcard video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.55) brightness(.78); transform: scale(1.02); transition: filter .5s ease, transform .8s ease; }
.vshade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, rgba(10,12,13,.9) 0%, rgba(10,12,13,.35) 45%, rgba(10,12,13,.05) 70%); transition: opacity .4s ease; }
.vnum { position: absolute; top: 14px; left: 14px; z-index: 2; background: var(--yellow); color: var(--ink); font-family: var(--f-mono); font-size: 0.78rem; padding: 0.4em 0.75em; border-radius: 999px; }
.vplay {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: opacity .3s ease, transform .3s ease;
}
.vplay svg { width: 16px; height: 16px; margin-left: 2px; }
.vtext { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 20px; display: grid; gap: 8px; }
.vname { font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); }
.vtext h3 { font-size: clamp(1.25rem, 1.7vw, 1.6rem); font-weight: 800; font-stretch: 110%; letter-spacing: -0.015em; }
.vtext p { font-size: 0.92rem; color: rgba(255,255,255,.82); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s ease, opacity .4s ease; }
.vcard.is-playing video { filter: none; transform: scale(1.06); }
.vcard.is-playing .vplay { opacity: 0; transform: scale(.8); }
.vcard.is-playing .vtext p { max-height: 12em; opacity: 1; }
.vcard:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .vcard:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(0,0,0,.8); } }
@media (max-width: 1000px) { .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .vgrid { grid-template-columns: 1fr; }
  .vcard { aspect-ratio: 4 / 4.4; }
  .vtext p { max-height: 12em; opacity: 1; }
}

/* ---------- Language flags ---------- */
.lang .flag, .lang summary svg.flag { width: 21px; height: 14px; flex: none; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); display: block; }
.lang a .flag { width: 24px; height: 16px; }

/* ---------- Contact form anchor: land at the top of the form, below the sticky header ---------- */
#quote-form { scroll-margin-top: calc(var(--header-h) + 24px); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); z-index: 60;
  width: 52px; height: 52px; border-radius: 999px; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--yellow); color: var(--ink);
  box-shadow: 0 14px 30px -12px rgba(0,0,0,.45);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s, background .2s;
}
.to-top[hidden] { display: grid; }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--ink); color: var(--yellow); }
.to-top:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.to-top svg { width: 22px; height: 22px; }
@media (min-width: 900px) { .to-top { right: 28px; bottom: 28px; } }

/* ---------- Slogan: room for diacritics (ț, ș, ö) in translated slogans ---------- */
html[lang="de"] .slogan h2 { line-height: 1.02; }
html[lang="ro"] .slogan h2 { line-height: 1.02; }
html[lang="ro"] .slogan h2 span + span { margin-top: 0.3em; }

/* ---------- Contact form: anti-spam & status ---------- */
.hp-field { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form [aria-invalid="true"] { border-color: #c0262d !important; box-shadow: 0 0 0 3px rgba(192,38,45,.15); }
.form-status[data-kind="error"] { color: #a31d23; }
.form-status[data-kind="ok"] { color: #1d6b37; }
.form button[type="submit"][disabled] { opacity: .6; cursor: progress; }
