/* CraftYou — site styles
   Display: Archivo (extended, heavy) echoes the wide logo wordmark. Body: Figtree (shared with numba.pl).
   Colour: ink + white, brand orange only for primary actions. */

@font-face { font-family: "Archivo Variable"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-ext-standard-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Archivo Variable"; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%;
  src: url(../fonts/archivo-latin-standard-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Figtree Variable"; font-style: normal; font-display: swap; font-weight: 300 900;
  src: url(../fonts/figtree-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Figtree Variable"; font-style: normal; font-display: swap; font-weight: 300 900;
  src: url(../fonts/figtree-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Figtree Variable"; font-style: italic; font-display: swap; font-weight: 300 900;
  src: url(../fonts/figtree-latin-ext-wght-italic.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Figtree Variable"; font-style: italic; font-display: swap; font-weight: 300 900;
  src: url(../fonts/figtree-latin-wght-italic.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --ink: #14171d;
  --ink-2: #2c313b;
  --muted: #5a6272;
  --line: #dfe2e7;
  --line-strong: #c4c9d1;
  --mist: #f1f2f4;
  --paper: #ffffff;
  --orange: #ff5f1a;
  --orange-hover: #ff7a3f;
  --orange-ink: #b33c06;
  --numba: #0038c3;

  --display: "Archivo Variable", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --body: "Figtree Variable", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --max: 1280px;
  --gutter: clamp(20px, 4.2vw, 56px);
  --gap: clamp(16px, 2.2vw, 32px);
  --section: clamp(72px, 9vw, 136px);
  --radius: 2px;
  --header-h: 80px;
  --tint: #f5f6f8;
  --navy: #10141c;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.62; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p, ul, ol, dl, figure, blockquote, h1, h2, h3, h4 { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
button { font: inherit; color: inherit; }
strong { font-weight: 650; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 2px; }
::selection { background: #ffd2bd; }

.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: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: calc(760px + 2 * var(--gutter)); }

/* ---------- type ---------- */
.display-1, .display-2, .display-3, .display-4, .footer-title {
  font-family: var(--display); color: var(--ink); text-wrap: balance;
  font-optical-sizing: auto; hyphens: manual;
}
.display-1 { font-size: clamp(2.2rem, 1.3rem + 3.2vw, 4.1rem); line-height: 1.04; font-weight: 700; font-stretch: 102%; letter-spacing: -.022em; }
.display-2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.55rem); line-height: 1.1; font-weight: 680; font-stretch: 100%; letter-spacing: -.018em; }
.display-3 { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.55rem); line-height: 1.2; font-weight: 660; font-stretch: 100%; letter-spacing: -.01em; }
.display-4 { font-size: 1.1rem; line-height: 1.3; font-weight: 660; font-stretch: 100%; letter-spacing: -.005em; }
.eyebrow { font-size: .75rem; line-height: 1.3; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-ink); margin-bottom: 14px; }
.eyebrow-light { color: #ffb48f; }
.lead { font-size: clamp(1.125rem, 1rem + .38vw, 1.35rem); line-height: 1.52; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; }

.link, .more {
  display: inline-flex; align-items: center; gap: .7em;
  font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); text-decoration: none;
}
.link::after { content: ""; width: 20px; height: 12px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 12'%3E%3Cpath d='M1 6h17M13 1l5 5-5 5' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 12'%3E%3Cpath d='M1 6h17M13 1l5 5-5 5' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform .2s ease; }
.more .i-arrow { width: 20px; height: 12px; transition: transform .2s ease; }
.more .i-ext { width: 12px; height: 12px; margin: 0; }
a.link:hover, a.more:hover, .project:hover .more, .path-item:hover .link, .news-item:hover .more { color: var(--orange-ink); }
a.link:hover::after, a.more:hover .i-arrow, .project:hover .more .i-arrow, .path-item:hover .link::after { transform: translateX(4px); }
.i { width: 1.05em; height: 1.05em; flex: none; }
.i-ext { width: .8em; height: .8em; margin-left: .25em; display: inline-block; vertical-align: .02em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 50px; padding: .8em 1.6em; border-radius: var(--radius); border: 1.5px solid transparent;
  font-weight: 700; font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #ffe7dc; }
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: var(--orange-hover); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2f3540; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm { min-height: 42px; padding: .55em 1.15em; font-size: .75rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ---------- top bar + header ---------- */
.topbar { background: var(--navy); color: #c9ced6; font-size: .8125rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 38px; }
.topbar-tag { letter-spacing: .02em; }
.topbar-links { display: flex; gap: 28px; }
.topbar-links a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: #e4e7eb; }
.topbar-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: .25em; }
.topbar-links .i { width: 14px; height: 14px; opacity: .8; }
@media (max-width: 960px) { .topbar-tag { display: none; } .topbar-inner { justify-content: flex-start; } .topbar-links { gap: 18px; } .topbar-links li:last-child { display: none; } }
@media (max-width: 480px) { .topbar-links li:nth-child(2) { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 50; background: #fff;
  border-bottom: 1px solid var(--line); transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(16,20,28,.18); }
.header-inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { display: block; color: var(--ink); flex: none; }
.brand .logo { height: 44px; width: auto; }
.primary-nav { margin-left: auto; display: flex; align-items: center; }
.menu { display: flex; align-items: stretch; gap: 4px; }
.menu-item { position: relative; display: flex; }
.menu-item > a, .menu-btn {
  display: inline-flex; align-items: center; gap: 6px; height: var(--header-h); padding: 0 12px; background: none; border: 0; cursor: pointer;
  font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--ink);
  box-shadow: inset 0 -3px 0 transparent; transition: box-shadow .15s ease, color .15s ease;
}
.menu-item > a:hover, .menu-btn:hover, .menu-btn[aria-expanded="true"] { box-shadow: inset 0 -3px 0 var(--line-strong); }
.menu-item > a[aria-current="page"], .menu-item.is-current > .menu-btn { box-shadow: inset 0 -3px 0 var(--orange); }
.chev { width: 11px; height: 11px; transition: transform .2s ease; }
.menu-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.submenu {
  position: absolute; top: 100%; left: 0; min-width: 370px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--orange);
  box-shadow: 0 18px 40px -18px rgba(16,20,28,.28); padding: 8px; display: none; z-index: 5;
}
.menu-btn[aria-expanded="true"] + .submenu { display: block; }
@media (hover: hover) and (min-width: 961px) { .has-sub:hover > .submenu { display: block; } }
.submenu a { display: grid; gap: 2px; padding: 12px 14px; text-decoration: none; border-radius: var(--radius); }
.submenu a:hover { background: var(--tint); }
.submenu a[aria-current="page"] .sub-label { color: var(--orange-ink); }
.sub-label { font-weight: 650; font-size: .98rem; }
.sub-note { font-size: .875rem; color: var(--muted); }
.header-cta { min-height: 44px; }
.nav-cta { display: none; }
.nav-toggle { display: none; }

@media (max-width: 1180px) and (min-width: 961px) { .menu-item > a, .menu-btn { padding: 0 8px; letter-spacing: .07em; } .header-inner { gap: 16px; } }
@media (max-width: 960px) {
  :root { --header-h: 66px; }
  .brand .logo { height: 38px; }
  .header-cta { display: none; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; margin-left: auto; min-height: 44px; padding: 0 14px;
    border: 1.5px solid var(--ink); border-radius: var(--radius); background: none; cursor: pointer;
    font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  }
  .nav-toggle-bars, .nav-toggle-bars::before { display: block; width: 16px; height: 2px; background: currentColor; position: relative; transition: transform .2s ease; }
  .nav-toggle-bars::before { content: ""; position: absolute; top: 5px; left: 0; }
  .nav-toggle-bars { transform: translateY(-2.5px); }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100dvh - var(--header-h)); background: #fff; overflow-y: auto; margin: 0;
    padding: 8px var(--gutter) 88px; display: none; flex-direction: column; align-items: stretch; border-top: 1px solid var(--line);
  }
  .nav-open .primary-nav { display: flex; }
  .nav-open { overflow: hidden; }
  .menu { flex-direction: column; gap: 0; }
  .menu-item { flex-direction: column; border-bottom: 1px solid var(--line); }
  .menu-item > a, .menu-btn { height: auto; padding: 18px 0; font-size: .875rem; justify-content: space-between; width: 100%; box-shadow: none !important; }
  .menu-item > a[aria-current="page"], .menu-item.is-current > .menu-btn { color: var(--orange-ink); }
  .submenu { position: static; display: none; min-width: 0; border: 0; box-shadow: none; padding: 0 0 12px; }
  .submenu a { padding: 10px 0 10px 14px; border-left: 2px solid var(--line); border-radius: 0; }
  .nav-cta { display: inline-flex; margin-top: 24px; }
  .nav-open .nav-toggle-bars { transform: rotate(45deg); }
  .nav-open .nav-toggle-bars::before { transform: translateY(-5px) rotate(-90deg); }
}

/* ---------- generic sections ---------- */
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(40px, 5vw, 72px); }
.section-mist { background: var(--mist); }
.section:not(.section-mist) + .section:not(.section-mist):not(.section-tight) { padding-top: 0; }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.split { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; }
.section-head.split > :first-child { grid-column: 1 / 7; }
.section-head.split > .lead { grid-column: 8 / 13; }
.section-foot { margin-top: 40px; }
@media (max-width: 860px) {
  .section-head.split { display: block; }
  .section-head.split > .lead { margin-top: 16px; }
}

.split-text { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.split-text > h2 { grid-column: 1 / 5; }
.split-text > :last-child { grid-column: 6 / 12; }
@media (max-width: 860px) { .split-text { display: block; } .split-text > h2 { margin-bottom: 24px; } }

/* ---------- page banners (every inner page) ---------- */
.banner { position: relative; isolation: isolate; overflow: hidden; }
.banner-plain { background: var(--tint); border-bottom: 1px solid var(--line); }
.banner-image { background: var(--navy); color: #fff; min-height: clamp(380px, 50vh, 540px); display: flex; }
.banner-bg { position: absolute; inset: 0; z-index: -1; }
.banner-bg img { width: 100%; height: 100%; object-fit: cover; }
.banner-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,20,28,.88) 0%, rgba(16,20,28,.66) 42%, rgba(16,20,28,.18) 78%, rgba(16,20,28,.05) 100%); }
.banner-inner { padding-top: clamp(28px, 4vw, 44px); padding-bottom: clamp(44px, 6vw, 80px); }
.banner-image .banner-inner { display: flex; flex-direction: column; }
.banner-title { font-family: var(--display); font-size: clamp(2.1rem, 1.3rem + 2.8vw, 3.75rem); line-height: 1.06; font-weight: 700; letter-spacing: -.022em; max-width: 20ch; text-wrap: balance; color: var(--ink); margin-top: clamp(28px, 4vw, 48px); }
.banner-image .banner-title { color: #fff; margin-top: auto; padding-top: clamp(72px, 12vh, 150px); }
.banner-lead { margin-top: 20px; font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 56ch; }
.banner-image .banner-lead { color: rgba(255,255,255,.88); }
.banner .actions { margin-top: 30px; }
@media (max-width: 760px) { .banner-bg::after { background: linear-gradient(0deg, rgba(16,20,28,.92) 0%, rgba(16,20,28,.6) 60%, rgba(16,20,28,.35) 100%); } }

.page-head { padding-top: clamp(48px, 7vw, 104px); padding-bottom: clamp(36px, 5vw, 64px); }
.page-head .display-1 { max-width: 15ch; }
.page-head .lead { margin-top: 24px; max-width: 52ch; }
.page-media + .section { padding-top: 0; }

.crumbs { font-size: .8125rem; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.crumbs li + li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); margin: 0 10px 1px 0; opacity: .6; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .25em; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.banner-image .crumbs { color: rgba(255,255,255,.75); }
.banner-image .crumbs a:hover, .banner-image .crumbs [aria-current] { color: #fff; }
.crumbs-page { padding-top: 28px; }

.tabs { margin-top: 0; border-bottom: 1px solid var(--line); overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.tabs ul { display: flex; gap: 32px; }
.tabs a {
  display: inline-flex; align-items: center; min-height: 58px; white-space: nowrap; text-decoration: none;
  font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  box-shadow: inset 0 -3px 0 transparent;
}
.tabs a:hover { color: var(--ink); box-shadow: inset 0 -3px 0 var(--line-strong); }
.tabs a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--orange); }
.tabs + .note { margin-top: 32px; }

/* ---------- home: full-width hero ---------- */
.hero-full { position: relative; isolation: isolate; color: #fff; min-height: min(86vh, 820px); display: flex; overflow: hidden; background: var(--navy); }
.hero-full > .hero-bg { position: absolute; inset: 0; z-index: -1; border-radius: 0; }
.hero-bg video { object-position: 50% 35%; }
.hero-bg::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(16,20,28,.86) 0%, rgba(16,20,28,.62) 38%, rgba(16,20,28,.12) 70%, rgba(16,20,28,0) 100%), linear-gradient(0deg, rgba(16,20,28,.82) 0%, rgba(16,20,28,0) 38%); }
.hero-bg .video-toggle { z-index: 2; top: 20px; bottom: auto; right: var(--gutter); }
.hero-full-inner { display: flex; flex-direction: column; justify-content: flex-end; gap: clamp(40px, 7vh, 88px); padding-top: clamp(56px, 10vh, 120px); padding-bottom: 0; }
.hero-full-copy { max-width: 640px; }
.hero-title { font-family: var(--display); font-size: clamp(2.3rem, 1.4rem + 3.3vw, 4.25rem); line-height: 1.04; font-weight: 700; letter-spacing: -.024em; text-wrap: balance; color: #fff; }
.hero-lead { margin-top: 22px; font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); line-height: 1.55; color: rgba(255,255,255,.88); max-width: 50ch; }
.hero-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 var(--gap); }
.hero-links a { display: grid; gap: 10px; padding: 22px 0 30px; border-top: 2px solid rgba(255,255,255,.75); text-decoration: none; color: #fff; height: 100%; transition: border-color .2s ease; }
.hero-links a:hover { border-top-color: var(--orange); }
.hl-for { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.72); }
.hl-title { font-weight: 600; font-size: 1.05rem; line-height: 1.35; }
.hero-links a:hover .hl-title { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: .2em; }
@media (max-width: 960px) {
  .hero-full { min-height: 0; }
  .hero-bg::after { background: linear-gradient(0deg, rgba(16,20,28,.94) 0%, rgba(16,20,28,.7) 55%, rgba(16,20,28,.3) 100%); }
  .hero-links { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .hero-links { grid-template-columns: 1fr; } .hero-links a { padding: 16px 0 18px; } }

.video { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink); }
.video video { width: 100%; height: 100%; object-fit: cover; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.video-toggle {
  position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 999px; border: 0; background: rgba(20,23,29,.62); color: #fff; cursor: pointer;
}
.video-toggle:hover { background: rgba(20,23,29,.85); }
.video-toggle svg { width: 14px; height: 14px; }
.video-toggle svg + svg, .video-toggle[aria-pressed="true"] svg:first-child { display: none; }
.video-toggle[aria-pressed="true"] svg + svg { display: block; }

/* one orchestrated entrance on the home hero */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
  .reveal:nth-child(2) { animation-delay: .12s; }
  .reveal:nth-child(3) { animation-delay: .22s; }
  .hero-bg video { animation: fade 1.2s ease both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
}

/* ---------- partners ---------- */
/* Each logo gets its own width (--w, set in site.mjs) balanced for shape and visual weight; --ls scales the whole row. */
.partners { border-top: 1px solid var(--line); padding-block: 32px 8px; --ls: 1; }
.partners-title { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 30px; }
.partners-title:empty { display: none; }
.partners-list { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 40px; }
.partners-list li { display: flex; align-items: center; justify-content: center; min-width: 0; }
.partners-list img { display: block; width: calc(var(--w) * var(--ls) * 1px); max-width: 100%; height: auto; opacity: .82; }
.partners-large { border: 0; padding: 0; margin-top: 48px; --ls: 1.12; }
@media (max-width: 1100px) { .partners { --ls: .9; } .partners-large { --ls: 1; } .partners-list { justify-content: center; column-gap: 52px; } }
@media (max-width: 700px) { .partners, .partners-large { --ls: .72; } .partners-list { gap: 26px 34px; } }

/* ---------- home: projects ---------- */
.projects { border-bottom: 1px solid var(--line); }
.project { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: center; padding-block: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); }
.project-copy { grid-column: 1 / 6; }
.project-for { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.project-copy .display-3 { font-size: clamp(1.55rem, 1.2rem + 1.1vw, 2.2rem); line-height: 1.1; }
.project-copy p:not(.project-for) { margin-top: 16px; max-width: 46ch; color: var(--ink-2); }
.project-copy .more { margin-top: 28px; }
.project-media { grid-column: 7 / 13; }
.project-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.project-media { overflow: hidden; border-radius: var(--radius); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .project:hover .project-media img { transform: scale(1.025); } }
.project-numba .more, .project-numba:hover .more { color: var(--numba); }

/* ---------- Numba illustration (same artwork and motion as the numba.pl hero) ---------- */
.numba-panel {
  position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; display: grid; place-items: center;
  background: url(../numba/sky.svg) 50% 0 / cover no-repeat, linear-gradient(180deg, #0038c3 0%, #0a31b4 52%, #081e7a 100%);
}
.numba-stage { position: relative; width: 76%; aspect-ratio: 680 / 560; margin-top: -3%; }
.numba-stage__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.numba-bubble {
  position: absolute; left: 50%; top: 23%; padding: .6em 1em; border-radius: 16px; background: #fff; color: #1b2559;
  font: 800 clamp(11px, 1.05vw, 16px)/1.2 var(--body); white-space: nowrap; translate: -50% -100%; transform-origin: 50% 100%;
  animation: numba-bubble-in .5s cubic-bezier(.34, 1.56, .64, 1) 2.15s both;
}
.numba-bubble::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 13px; height: 13px; border-radius: 3px; background: #fff; transform: translateX(-50%) rotate(45deg); }
.numba-stage .rocket { transform-box: fill-box; transform-origin: 50% 50%; animation: numba-fly-in 1.9s cubic-bezier(.45, .05, .2, 1) .3s both; }
.numba-stage .rocket__bob { animation: numba-bob 2.6s ease-in-out 2.2s infinite alternate; }
.numba-stage .boost { transform-box: fill-box; transform-origin: 100% 50%; animation: numba-boost 1.9s ease-out .3s both; }
.numba-stage .flame { transform-box: fill-box; transform-origin: 100% 50%; animation: numba-flicker .14s ease-in-out infinite alternate; }
.numba-stage .pulse { transform-box: fill-box; transform-origin: 50% 50%; animation: numba-pulse 2.2s ease-out infinite; }
.numba-stage .rays { transform-box: fill-box; transform-origin: 50% 50%; animation: numba-spin 48s linear infinite; }
.numba-stage .wiggle { transform-box: fill-box; transform-origin: 50% 60%; animation: numba-wiggle 5s ease-in-out 3.4s infinite; }
/* wait until the panel scrolls into view, so the rocket flies in when people can see it */
.js .numba-panel:not(.is-in) .numba-stage *, .js .numba-panel:not(.is-in) .numba-bubble { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .numba-stage *, .numba-bubble { animation: none !important; }
}
@keyframes numba-fly-in { 0% { transform: translate(-250px, 22px) rotate(9deg); opacity: 0; } 10% { opacity: 1; } 46% { transform: translate(-124px, 40px) rotate(1deg); } 78% { transform: translate(-24px, 6px) rotate(-9deg); } 100% { transform: none; opacity: 1; } }
@keyframes numba-bob { 100% { transform: translateY(-7px); } }
@keyframes numba-boost { 0%, 75% { transform: scaleX(1.6); } 100% { transform: scaleX(1); } }
@keyframes numba-flicker { 0% { transform: scale(.86, .94); } 100% { transform: scale(1.06, 1.03); } }
@keyframes numba-pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.75); opacity: 0; } }
@keyframes numba-spin { 100% { transform: rotate(360deg); } }
@keyframes numba-wiggle { 0%, 82%, 100% { transform: rotate(0); } 85% { transform: rotate(-7deg); } 88% { transform: rotate(6deg); } 91% { transform: rotate(-4deg); } 94% { transform: rotate(2deg); } }
@keyframes numba-bubble-in { 0% { opacity: 0; scale: .5; } 100% { opacity: 1; scale: 1; } }
.stretched { text-decoration: none; }
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.stretched:focus-visible { outline: none; }
.stretched:focus-visible::after { outline: 3px solid var(--orange); outline-offset: 4px; border-radius: var(--radius); }
@media (max-width: 860px) {
  .project { display: flex; flex-direction: column-reverse; align-items: stretch; gap: 24px; }
}

/* ---------- home: mission band ---------- */
.mission { position: relative; color: #fff; min-height: min(88vh, 860px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.mission-bg { position: absolute; inset: 0; border-radius: 0; z-index: -1; }
.mission-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,23,29,.25) 0%, rgba(20,23,29,.55) 45%, rgba(20,23,29,.88) 100%); pointer-events: none; }
.mission-bg .video-toggle { z-index: 2; top: 20px; bottom: auto; right: var(--gutter); }
.mission-inner { padding-block: clamp(96px, 14vw, 180px) clamp(56px, 7vw, 96px); }
.mission-title { color: #fff; font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.4rem); max-width: 22ch; }
.mission-points { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: clamp(32px, 4vw, 56px); max-width: 920px; }
.mission-points p { color: rgba(255,255,255,.88); font-size: 1.125rem; border-top: 1px solid rgba(255,255,255,.35); padding-top: 18px; }
@media (max-width: 700px) { .mission-points { grid-template-columns: 1fr; } }

/* ---------- team / two-column media + text ---------- */
.team { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: center; }
.team-media { grid-column: 1 / 6; }
.team-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.team-copy { grid-column: 7 / 13; }
.team-copy .lead { margin-top: 24px; }
.team-copy > p:not(.lead) { margin-top: 16px; max-width: 54ch; color: var(--ink-2); }
.team-copy > .more { margin-top: 32px; }
.competences { margin-top: 36px; border-top: 1px solid var(--line); }
.competences > div { display: grid; grid-template-columns: minmax(0, 15rem) 1fr; gap: 8px 32px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.competences dt { font-weight: 700; }
.competences dd { margin: 0; color: var(--ink-2); }
@media (max-width: 860px) {
  .team { display: block; }
  .team-media { margin-bottom: 36px; }
  .team-media img { aspect-ratio: 4 / 3; }
  .competences > div { grid-template-columns: 1fr; }
}

/* ---------- evidence mosaic ---------- */
.evidence { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(90px, 9vw, 130px); gap: 12px; }
.ev { position: relative; overflow: hidden; border-radius: var(--radius); }
.ev img { width: 100%; height: 100%; object-fit: cover; }
.ev-a { grid-column: 1 / 6; grid-row: 1 / 4; }
.ev-b { grid-column: 6 / 9; grid-row: 1 / 4; }
.ev-c { grid-column: 9 / 13; grid-row: 1 / 3; }
.ev-quote { grid-column: 9 / 13; grid-row: 3 / 6; background: var(--paper); padding: clamp(20px, 2.4vw, 32px); display: flex; flex-direction: column; justify-content: space-between; }
.ev-d { grid-column: 1 / 6; grid-row: 4 / 6; }
.ev-e { grid-column: 6 / 9; grid-row: 4 / 6; }
.ev-quote p { font-family: var(--display); font-stretch: 104%; font-weight: 600; font-size: clamp(1.05rem, .9rem + .45vw, 1.3rem); line-height: 1.35; }
.ev-quote footer { margin-top: 16px; font-size: .9rem; color: var(--muted); }
@media (max-width: 860px) {
  .evidence { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .ev { grid-column: auto !important; grid-row: auto !important; aspect-ratio: 4 / 3; }
  .ev-a, .ev-d, .ev-quote, .ev-e { grid-column: 1 / -1 !important; }
  .ev-e { aspect-ratio: 16 / 9; }
  .ev-quote { aspect-ratio: auto; }
}

/* ---------- news list (home) ---------- */
.news-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.news { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.news-item { position: relative; padding: 26px 24px 32px; display: flex; flex-direction: column; gap: 14px; }
.news-item:first-child { padding-left: 0; }
.news-item + .news-item { border-left: 1px solid var(--line); }
.news-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.news-meta span:first-child { color: var(--orange-ink); }
.news-title { font-family: var(--display); font-weight: 650; font-size: 1.15rem; line-height: 1.3; letter-spacing: -.005em; text-wrap: pretty; }
.news-item:hover .news-title a { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.news-text { color: var(--muted); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1000px) { .news { grid-template-columns: 1fr 1fr; } .news-item:nth-child(3) { border-left: 0; padding-left: 0; } .news-item:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 600px) { .news { grid-template-columns: 1fr; } .news-item { padding: 22px 0 !important; border-left: 0 !important; } .news-item + .news-item { border-top: 1px solid var(--line); } .news-head { flex-direction: column; align-items: flex-start; } }
.partners-wrap { padding-bottom: clamp(48px, 6vw, 80px); }
.partners-wrap .partners { padding-top: 36px; }

/* ---------- blog cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(32px, 4vw, 56px) var(--gap); }
.card-post { position: relative; }
.card-media { overflow: hidden; border-radius: var(--radius); background: var(--mist); aspect-ratio: 3 / 2; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .card-post:hover .card-media img { transform: scale(1.03); } }
.card-cat { margin-top: 18px; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-ink); }
.card-title { margin-top: 6px; font-family: var(--display); font-stretch: 106%; font-weight: 720; font-size: 1.25rem; line-height: 1.2; letter-spacing: -.008em; text-wrap: balance; }
.card-post:hover .card-title a { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: .18em; }
.card-text { margin-top: 10px; color: var(--muted); font-size: .98rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 1000px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }

/* ---------- blog post ---------- */
.post-head { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(28px, 4vw, 48px); }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .9375rem; color: var(--muted); margin-bottom: 20px; }
.post-meta a { font-weight: 700; color: var(--orange-ink); text-decoration: none; }
.post-head .crumbs { margin-bottom: 28px; padding-top: 0; }
.post-meta a:hover { text-decoration: underline; }
.post-title { font-size: clamp(2.1rem, 1.2rem + 3.2vw, 4rem); max-width: 22ch; }
.post-hero img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 700px) { .post-hero img { aspect-ratio: 3 / 2; } }
.post-layout { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding-block: clamp(40px, 6vw, 80px); }
.post-layout .prose { grid-column: 1 / 9; }
.post-aside { grid-column: 10 / 13; align-self: start; position: sticky; top: calc(var(--header-h) + 24px); border-top: 2px solid var(--ink); padding-top: 18px; }
.aside-title { font-weight: 700; margin-bottom: 8px; }
.post-aside p:not(.aside-title) { color: var(--ink-2); font-size: .98rem; margin-bottom: 16px; }
.post-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-bottom: var(--section); }
.post-gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 860px) {
  .post-layout { display: block; }
  .post-aside { position: static; margin-top: 48px; }
  .post-gallery { grid-template-columns: 1fr 1fr; }
}

/* ---------- events (Wydarzenia) ---------- */
.card-media { position: relative; }
.card-media-art { background: #fff; border: 1px solid var(--line); }
.card-badge { position: absolute; left: 12px; top: 12px; padding: 7px 10px; border-radius: var(--radius); background: var(--orange); color: var(--ink); font-size: .6875rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; line-height: 1.2; }
.card-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.card-meta span { color: var(--muted); }
.event-title { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.4rem); max-width: 24ch; }
.prose .event-lead { font-size: clamp(1.125rem, 1rem + .38vw, 1.3rem); line-height: 1.52; color: var(--ink); font-weight: 500; text-wrap: pretty; }
.prose .event-figure { margin-block: 32px 36px; }
.event-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.event-figure-art img { border: 1px solid var(--line); }
.event-figure figcaption { margin-top: 10px; font-size: .8125rem; color: var(--muted); }
.prose .event-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 36px; }
.prose .event-gallery { align-items: start; }
.event-gallery img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.prose .event-notice { padding: 14px 18px; border-left: 3px solid var(--orange); background: var(--tint); font-weight: 600; margin-bottom: 28px; }
.event-notice a { color: var(--orange-ink); }
.prose .event-source { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.event-source-k { font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.event-source a { font-weight: 600; }
.event-facts { display: grid; margin-bottom: 24px; }
.event-facts > div { padding-block: 12px; border-bottom: 1px solid var(--line); }
.event-facts > div:first-child { padding-top: 4px; }
.event-facts dt { font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.event-facts dd { margin: 3px 0 0; font-size: .98rem; line-height: 1.45; color: var(--ink); }
.event-aside .btn { width: 100%; }
@media (max-width: 560px) { .prose .event-gallery { grid-template-columns: 1fr; } }

/* ---------- prose ---------- */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { font-family: var(--display); font-stretch: 108%; font-weight: 740; font-size: clamp(1.4rem, 1.15rem + .8vw, 1.85rem); line-height: 1.15; letter-spacing: -.012em; margin-top: 2em; text-wrap: balance; }
.prose h3 { font-family: var(--display); font-stretch: 104%; font-weight: 700; font-size: 1.2rem; line-height: 1.25; margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--orange-ink); }
.prose ol[type="a"] { list-style-type: lower-alpha; }
.prose a { text-decoration-color: var(--orange); text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
.prose a:hover { color: var(--orange-ink); }
.prose .lead { max-width: none; }

/* ---------- bands ---------- */
.band { padding-block: var(--section); }
.band-ink { background: var(--ink); color: #fff; }
.band-ink .display-2 { color: #fff; }
.band-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: center; }
.band-grid > div { grid-column: 1 / 7; }
.band-media { grid-column: 8 / 13; }
.band-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.band-points { margin-top: 40px; display: grid; gap: 20px; }
.band-points p { color: rgba(255,255,255,.86); border-top: 1px solid rgba(255,255,255,.28); padding-top: 18px; font-size: 1.1rem; max-width: 52ch; }
@media (max-width: 860px) { .band-grid { display: block; } .band-media { margin-top: 40px; } .band-media img { aspect-ratio: 4 / 3; } }

.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--gap); border-top: 1px solid var(--line); }
.principles > div { padding-block: 28px 32px; border-bottom: 1px solid var(--line); }
.principles dt { font-family: var(--display); font-stretch: 106%; font-weight: 720; font-size: 1.3rem; line-height: 1.2; }
.principles dd { margin: 10px 0 0; color: var(--ink-2); max-width: 46ch; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }

.company { display: grid; gap: 0; }
.company > div { display: grid; grid-template-columns: 7rem 1fr; gap: 16px; padding-block: 10px; border-bottom: 1px solid var(--line); }
.company dt { color: var(--muted); font-size: .9375rem; }
.company dd { margin: 0; font-variant-numeric: tabular-nums; }
.company-large { border-top: 1px solid var(--line); }
.company-large > div { padding-block: 16px; }
.company-contact { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 28px; }
.company-contact a { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; text-decoration: none; }
.company-contact a:hover { color: var(--orange-ink); }

/* ---------- modules (a real sequence: Mind → Path → Success) ---------- */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); counter-reset: m; }
.module { position: relative; padding-top: 28px; border-top: 2px solid var(--ink); }
.module-n { display: block; font-family: var(--display); font-weight: 800; font-stretch: 120%; font-size: 3.25rem; line-height: 1; color: var(--orange); margin-bottom: 20px; }
.module .display-3 { font-size: 1.55rem; }
.module-step { font-weight: 650; color: var(--muted); margin: 4px 0 14px; }
.module p:last-child { color: var(--ink-2); }
@media (max-width: 860px) { .modules { grid-template-columns: 1fr; gap: 40px; } }

/* ---------- feedback / quote ---------- */
.feedback { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: center; }
.feedback > div:first-child { grid-column: 1 / 7; }
.feedback-photos { grid-column: 8 / 13; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feedback-photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); }
.feedback .lead { margin-top: 24px; }
.quote { margin-top: 40px; padding-left: 24px; border-left: 3px solid var(--orange); }
.quote p { font-family: var(--display); font-stretch: 104%; font-weight: 600; font-size: clamp(1.15rem, 1rem + .5vw, 1.45rem); line-height: 1.38; max-width: 40ch; }
.quote footer { margin-top: 14px; color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .feedback { display: block; } .feedback-photos { margin-top: 40px; } }

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: 48px; }
.choice-item { border-top: 2px solid var(--ink); padding-top: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.choice-item p { color: var(--ink-2); max-width: 46ch; flex: 1; }
@media (max-width: 760px) { .choice { grid-template-columns: 1fr; gap: 48px; } }

.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.paths-2 { grid-template-columns: repeat(2, 1fr); }
.path-item { position: relative; }
.path-media { overflow: hidden; border-radius: var(--radius); margin-bottom: 22px; }
.path-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .path-item:hover .path-media img { transform: scale(1.03); } }
.path-item p { margin-top: 10px; color: var(--ink-2); }
.path-item .link { margin-top: 18px; }
@media (max-width: 860px) { .paths { grid-template-columns: 1fr; gap: 48px; } }

/* ---------- offer ---------- */
.note { border-left: 3px solid var(--orange); background: var(--mist); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; max-width: 820px; margin-bottom: 8px; }
.note a { text-decoration-color: var(--orange); text-underline-offset: .2em; }
.offer-section { border-top: 1px solid var(--line); }
.offer-section:first-of-type { border-top: 0; }
.offer-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: center; margin-bottom: 28px; }
.offer-media { grid-column: 1 / 4; }
.offer-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.offer-head > div { grid-column: 5 / 13; }
.offer-head h2 a { text-decoration: none; }
.offer-head h2 a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: .12em; }
.offer-head .lead { margin-top: 12px; }
.offer-list { border-top: 2px solid var(--ink); margin-top: 24px; }
.offer-row { display: grid; grid-template-columns: minmax(0, 1fr) 13rem 12rem 10rem; gap: 12px 32px; align-items: center; padding-block: 24px; border-bottom: 1px solid var(--line); }
.offer-name { font-family: var(--display); font-stretch: 106%; font-weight: 720; font-size: 1.25rem; line-height: 1.2; }
.offer-name a { text-decoration: none; }
.offer-name a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: .18em; }
.offer-main p { margin-top: 6px; color: var(--ink-2); max-width: 60ch; font-size: .98rem; }
.offer-unit { color: var(--muted); font-size: .9375rem; }
.price { font-variant-numeric: tabular-nums; }
.price strong { font-family: var(--display); font-stretch: 108%; font-weight: 760; font-size: 1.2rem; }
.price s { color: var(--muted); margin-right: 4px; }
.price small { display: block; color: var(--muted); font-size: .8125rem; line-height: 1.35; margin-top: 4px; }
.offer-cta { justify-self: end; }
@media (max-width: 960px) {
  .offer-row { grid-template-columns: 1fr auto; }
  .offer-main { grid-column: 1 / -1; }
  .offer-unit { grid-column: 1 / -1; margin-top: -4px; }
  .offer-cta { justify-self: end; }
  .offer-head { display: block; }
  .offer-media { max-width: 360px; margin-bottom: 24px; }
}

.product { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding-top: clamp(28px, 4vw, 56px); padding-bottom: var(--section); align-items: start; }
.product-media { grid-column: 1 / 6; position: sticky; top: calc(var(--header-h) + 24px); }
.product-media img { width: 100%; border-radius: var(--radius); }
.product-media.ratio-4x5 img { aspect-ratio: 4 / 5; object-fit: cover; }
.media-cover { background: var(--mist); border-radius: var(--radius); padding: clamp(28px, 5vw, 64px); display: grid; place-items: center; }
.media-cover img { max-width: 340px; box-shadow: 0 1px 2px rgba(20,23,29,.08), 0 18px 40px -12px rgba(20,23,29,.28); }
.product-info { grid-column: 7 / 13; }
.product-info .lead { margin-top: 18px; }
.buy { margin-block: 32px 40px; padding-block: 24px; border-block: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; align-items: center; }
.buy .price { grid-column: 1; }
.buy-unit { grid-column: 1; color: var(--muted); font-size: .95rem; }
.buy .btn { grid-column: 2; grid-row: 1 / span 2; }
.price-lg strong { font-size: 1.75rem; }
.details { margin-top: 36px; border-top: 1px solid var(--line); }
.details > div { display: grid; grid-template-columns: 8rem 1fr; gap: 16px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.details dt { color: var(--muted); }
.details dd { margin: 0; }
@media (max-width: 860px) {
  .product { display: block; }
  .product-media { position: static; margin-bottom: 36px; }
  .product-media.ratio-4x5 img { aspect-ratio: 4 / 3; }
  .buy { grid-template-columns: 1fr; }
  .buy .btn { grid-column: 1; grid-row: auto; margin-top: 16px; justify-self: start; }
}

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.facts .display-3 { margin-bottom: 20px; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding: 14px 0 14px 32px; border-top: 1px solid var(--line); color: var(--ink-2); }
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 21px; width: 14px; height: 8px; border-left: 2.5px solid var(--orange); border-bottom: 2.5px solid var(--orange); transform: rotate(-45deg); }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; gap: 48px; } }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 20px; }
.steps li::before { content: counter(step); display: block; font-family: var(--display); font-weight: 800; font-stretch: 120%; font-size: 2rem; line-height: 1; color: var(--orange); margin-bottom: 14px; }
.steps h3 { font-weight: 700; font-size: 1.1rem; }
.steps p { margin-top: 6px; color: var(--ink-2); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* ---------- forms ---------- */
.contact { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; }
.contact-form { grid-column: 1 / 8; }
.contact-aside { grid-column: 9 / 13; display: grid; gap: 32px; }
@media (max-width: 900px) { .contact { display: block; } .contact-aside { margin-top: 56px; } }
.form { display: grid; gap: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 650; font-size: .98rem; padding: 0; }
.opt { font-weight: 400; color: var(--muted); }
.hint { font-size: .9rem; color: var(--muted); margin-top: -4px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line-strong); border-radius: 8px;
  padding: 12px 14px; min-height: 50px; transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%2314171d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 42px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9aa1ac; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255,95,26,.35); }
.field [aria-invalid="true"] { border-color: #c2261b; }
.field-error { color: #b0221a; font-size: .9rem; font-weight: 600; }
.choice-field { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.choice-field legend { margin-bottom: 10px; width: 100%; }
.radio { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; }
.radio input, .field-check input { width: 20px; height: 20px; accent-color: var(--ink); margin: 0; flex: none; }
.field-check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--ink-2); }
.field-check input { margin-top: 2px; }
.field-check a { text-underline-offset: .2em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status:empty { display: none; }
.form-status { padding: 14px 16px; border-radius: 8px; background: var(--mist); border-left: 3px solid var(--ink); }
.form-status.is-ok { border-left-color: #1d7a46; background: #eaf6ef; }
.form-status.is-error { border-left-color: #b0221a; background: #fbecea; }

.contact-list { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.contact-list li { padding-block: 16px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.contact-k { font-size: .9rem; color: var(--muted); }
.contact-list a { font-family: var(--display); font-stretch: 106%; font-weight: 700; font-size: 1.2rem; text-decoration: none; }
.contact-list a:hover { color: var(--orange-ink); }
.contact-numba { background: var(--mist); border-radius: var(--radius); padding: 18px 20px; font-size: .98rem; }
.contact-numba a { text-underline-offset: .2em; text-decoration-color: var(--orange); }
.company-compact > div { grid-template-columns: 5.5rem 1fr; font-size: .95rem; }
.info-block { border-top: 2px solid var(--ink); padding-top: 18px; display: grid; gap: 12px; }
.info-block p { color: var(--ink-2); font-size: .98rem; }
.info-block a { text-underline-offset: .2em; text-decoration-color: var(--orange); }

/* ---------- gallery ---------- */
.gallery { columns: 3 320px; column-gap: 12px; }
.gallery li { break-inside: avoid; margin-bottom: 12px; }
.gallery a { display: block; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.gallery img { width: 100%; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .gallery a:hover img { transform: scale(1.02); } }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(10,12,16,.92); }
.lightbox figure { height: 100%; display: grid; place-items: center; padding: 64px 72px; }
.lightbox img { max-height: calc(100vh - 140px); width: auto; border-radius: var(--radius); }
.lightbox figcaption { color: #e6e8ec; margin-top: 12px; text-align: center; font-size: .95rem; }
.lb-btn { position: fixed; width: 48px; height: 48px; border-radius: 999px; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.lb-btn:hover { background: rgba(255,255,255,.24); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox figure { padding: 64px 12px; } .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; } }

/* ---------- legal ---------- */
.legal-scope { font-weight: 650; color: var(--orange-ink); margin-bottom: 16px; }
.page-legal .page-head .display-2 { max-width: 24ch; }
.legal { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); padding-top: clamp(40px, 5vw, 72px); padding-bottom: var(--section); align-items: start; }
.toc { grid-column: 1 / 4; position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; border-top: 2px solid var(--ink); padding-top: 16px; font-size: .9rem; }
.toc-title { font-weight: 700; margin-bottom: 10px; }
.toc li + li { margin-top: 8px; }
.toc a { color: var(--muted); text-decoration: none; display: block; line-height: 1.35; }
.toc a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }
.legal-body { grid-column: 5 / 13; font-size: 1rem; }
.legal-body h2 { font-size: 1.35rem; scroll-margin-top: calc(var(--header-h) + 16px); }
.legal-body h3 { font-size: 1.08rem; }
@media (max-width: 900px) {
  .legal { display: block; }
  .toc { position: static; max-height: none; margin-bottom: 40px; }
}

/* ---------- 404 ---------- */
.not-found { padding-bottom: var(--section); }
.nf-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 36px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #e9ebee; padding-top: clamp(64px, 8vw, 112px); }
.site-footer a { color: inherit; }
.footer-cta { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: end; padding-bottom: clamp(48px, 6vw, 88px); border-bottom: 1px solid rgba(255,255,255,.16); }
.footer-title { grid-column: 1 / 8; color: #fff; font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3rem); line-height: 1.08; font-weight: 700; letter-spacing: -.02em; max-width: 18ch; }
.footer-contact { grid-column: 8 / 13; display: grid; gap: 14px; justify-items: start; }
.footer-contact a:not(.btn) { display: inline-flex; align-items: center; gap: 12px; font-size: 1.2rem; font-weight: 600; text-decoration: none; }
.footer-contact a:not(.btn):hover { color: var(--orange); }
.footer-contact .btn { margin-top: 10px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 40px var(--gap); padding-block: 56px; }
.footer-brand .logo { height: 46px; width: auto; color: #fff; }
.footer-brand p { margin-top: 20px; color: #b8bdc6; max-width: 34ch; font-size: .98rem; }
.site-footer h3 { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.site-footer nav li + li { margin-top: 8px; }
.site-footer nav a { text-decoration: none; color: #c3c8d0; font-size: .98rem; }
.site-footer nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: .2em; text-decoration-color: var(--orange); }
.company-footer > div { border-color: rgba(255,255,255,.12); grid-template-columns: 4.5rem 1fr; padding-block: 7px; font-size: .9375rem; }
.company-footer dt { color: #9299a5; }
.company-footer dd { color: #d6d9de; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 24px 32px; border-top: 1px solid rgba(255,255,255,.16); font-size: .9rem; color: #9299a5; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
.no-footer-cta .footer-cta { display: none; }
.no-footer-cta .site-footer { padding-top: 8px; }
@media (max-width: 960px) {
  .footer-cta { display: block; }
  .footer-contact { margin-top: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

@media print {
  .site-header, .site-footer, .video-toggle, .toc, .post-aside { display: none !important; }
  body { font-size: 11pt; }
}
