/* ==========================================================================
   inka88: shared styles (tokens, layout, components, motion)
   Tokens mirror the Figma variables (Untitled UI names, Tailwind scales).
   ========================================================================== */
:root {
  /* Brand / Granat */
  --brand-25: #f7f9fc;
  --brand-50: #eff3f8;
  --brand-100: #dfe6f0;
  --brand-200: #c1cde0;
  --brand-300: #93a6c6;
  --brand-400: #5e77a2;
  --brand-500: #34507f;
  --brand-600: #14284b;
  --brand-700: #0f2040;
  --brand-800: #0b1934;
  --brand-900: #081329;
  --brand-950: #050c1c;

  /* Gray / cool neutral */
  --gray-25: #fbfcfd;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --gray-950: #020617;

  --error-300: #fda29b;
  --error-500: #f04438;
  --error-600: #d92d20;
  --success-600: #079455;
  --success-50: #ecfdf3;
  --error-50: #fef3f2;

  /* Semantic colours */
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-700);
  --text-secondary-hover: var(--gray-800);
  --text-tertiary: var(--gray-600);
  --text-quaternary: var(--gray-500);
  --text-placeholder: var(--gray-500);
  --text-disabled: var(--gray-500);
  --text-brand-primary: var(--brand-900);
  --text-primary-on-brand: #fff;
  --text-secondary-on-brand: var(--brand-200);
  --text-error-primary: var(--error-600);
  --text-success-primary: var(--success-600);

  --bg-primary: #fff;
  --bg-primary-hover: var(--gray-50);
  --bg-secondary: var(--gray-50);
  --bg-secondary-hover: var(--gray-100);
  --bg-disabled: var(--gray-50);
  --bg-brand-solid: var(--brand-600);
  --bg-brand-solid-hover: var(--brand-700);
  --bg-brand-section: var(--brand-800);
  --bg-brand-primary: var(--brand-50);
  --bg-success-primary: var(--success-50);
  --bg-error-primary: var(--error-50);

  --fg-primary: var(--gray-900);
  --fg-tertiary: var(--gray-600);
  --fg-quaternary: var(--gray-500);
  --fg-quinary: var(--gray-400);
  --fg-disabled-subtle: var(--gray-300);
  --fg-brand-primary: var(--brand-600);

  --border-primary: var(--gray-300);
  --border-secondary: var(--gray-200);
  --border-brand-alt: var(--brand-500);
  --border-error: var(--error-500);

  --focus-ring: var(--brand-500);

  --button-primary-bg: var(--brand-600);
  --button-primary-bg-hover: var(--brand-700);
  --button-primary-fg: #fff;
  --button-secondary-bg: #fff;
  --button-secondary-bg-hover: var(--gray-50);
  --button-secondary-fg: var(--gray-700);
  --button-secondary-fg-hover: var(--gray-800);
  --button-secondary-border: var(--gray-300);

  /* Spacing (multiples of 4; xxs only inside DS buttons) */
  --sp-xxs: 2px;
  --sp-xs: 4px;
  --sp-sm: 6px;
  --sp-md: 8px;
  --sp-lg: 12px;
  --sp-xl: 16px;
  --sp-2xl: 20px;
  --sp-3xl: 24px;
  --sp-4xl: 32px;
  --sp-5xl: 40px;
  --sp-6xl: 48px;
  --sp-7xl: 64px;
  --sp-8xl: 80px;
  --sp-10xl: 120px;

  --radius-md: 4px;

  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-skeuo-inner: inset 0 0 0 1px rgba(16, 24, 40, .18), inset 0 -2px 0 rgba(16, 24, 40, .05);
  --focus-ring-shadow: 0 0 0 2px var(--bg-primary), 0 0 0 4px var(--focus-ring);

  /* Layout */
  --container: 1280px;
  --gutter: var(--sp-8xl);          /* page side margin */
  --container-inset: var(--sp-5xl); /* content inset from the rails */
  --section-py: var(--sp-10xl);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

@media (max-width: 1023px) {
  :root { --gutter: var(--sp-4xl); --container-inset: 0px; --section-py: var(--sp-7xl); }
}
@media (max-width: 767px) {
  :root { --gutter: var(--sp-xl); }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--focus-ring-shadow); }
.only-mobile { display: none; }
@media (max-width: 767px) {
  .only-desktop { display: none; }
  .only-mobile { display: inline; }
}
.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; }

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

/* Width-limited wrapper: 1280 max, page gutter on the sides */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
/* Content inside the rails sits 40px in (desktop only) */
.container--inset { padding-inline: calc(var(--gutter) + var(--container-inset)); max-width: calc(var(--container) + 2 * var(--gutter)); }

.section { position: relative; padding-block: var(--section-py); }
.section--secondary { background: var(--bg-secondary); }
.section--bordered { border-top: 1px solid var(--border-secondary); }

/* --------------------------------------------------------------------------
   Rails: 1px container edges with "+" markers at the section boundary (V2)
   -------------------------------------------------------------------------- */
.rails {
  position: absolute;
  inset: 0 auto 0 50%;
  width: min(var(--container), 100% - 2 * var(--gutter));
  translate: -50% 0;
  border-inline: 1px solid var(--border-secondary);
  pointer-events: none;
  z-index: 1;
}
/* DS media/rail-marker: 6px square centred on the rail and the section's top border
   (offsets match Figma's 16px marker box at x-8 / y-8) */
.rails::before, .rails::after {
  content: "";
  position: absolute;
  top: -4px;
  width: 6px;
  height: 6px;
  background: var(--fg-tertiary);
}
.rails::before { left: -4px; }
.rails::after { right: -4px; }
@media (max-width: 1023px) { .rails { display: none; } }

/* --------------------------------------------------------------------------
   Typography (DS text styles)
   -------------------------------------------------------------------------- */
.display-xl { font-family: var(--font-display); font-size: 56px; line-height: 64px; font-weight: 500; letter-spacing: -.02em; }
.display-lg { font-family: var(--font-display); font-size: 48px; line-height: 56px; font-weight: 500; letter-spacing: -.02em; }
.display-sm { font-family: var(--font-display); font-size: 32px; line-height: 40px; font-weight: 500; }
.display-xs { font-family: var(--font-display); font-size: 24px; line-height: 32px; font-weight: 500; }
.text-xl { font-size: 20px; line-height: 28px; }
.text-lg { font-size: 18px; line-height: 26px; }
.text-md { font-size: 16px; line-height: 24px; }
.text-sm { font-size: 14px; line-height: 20px; }

.h-section { color: var(--text-primary); }
.lead { color: var(--text-tertiary); }

@media (max-width: 1023px) {
  .display-lg, .display-xl.display--responsive { font-size: 32px; line-height: 40px; letter-spacing: 0; }
  .lead.text-lg, .lead.text-xl { font-size: 16px; line-height: 24px; }
}

/* Eyebrow: label + 4px square */
.eyebrow {
  display: inline-flex;
  align-items: baseline;
  gap: var(--sp-xs);
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  white-space: nowrap;
}
.eyebrow::after { content: ""; flex: none; width: 4px; height: 4px; background: var(--fg-tertiary); }
.eyebrow--on-brand { color: var(--text-secondary-on-brand); }
.eyebrow--on-brand::after { background: var(--fg-disabled-subtle); }

/* --------------------------------------------------------------------------
   Logo (Concept A Precision, Positive)
   -------------------------------------------------------------------------- */
.logo { display: inline-flex; align-items: flex-end; gap: var(--sp-xs); color: var(--fg-brand-primary); }
.logo__word { font-family: 'Sora', var(--font-display); font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -.04em; }
.logo__dot { width: 4px; height: 4px; margin-bottom: var(--sp-md); background: currentColor; }

/* --------------------------------------------------------------------------
   Buttons (DS button/*): fill rises from the bottom on hover, arrow nudges
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--button-primary-bg);
  --btn-fill: var(--button-primary-bg-hover);
  --btn-fg: var(--button-primary-fg);
  --btn-fg-hover: var(--btn-fg);
  --btn-border: inset 0 0 0 2px rgba(255, 255, 255, .12);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: var(--sp-lg) 18px;
  border-radius: var(--radius-md);
  color: var(--btn-fg);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  white-space: nowrap;
  background: linear-gradient(var(--btn-fill), var(--btn-fill)) bottom / 100% 0% no-repeat, var(--btn-bg);
  box-shadow: var(--shadow-xs), var(--btn-border), var(--shadow-skeuo-inner);
  transition: background-size .5s cubic-bezier(.65, 0, .35, 1), color .2s ease, box-shadow .2s ease;
}
.btn__label { padding-inline: var(--sp-xxs); }
.btn__icon { flex: none; width: 20px; height: 20px; transition: translate .45s var(--ease-out); }
.btn:hover, .btn:focus-visible { background-size: 100% 100%, auto; color: var(--btn-fg-hover); }
.btn:hover .btn__icon, .btn:focus-visible .btn__icon { translate: 4px 0; }
.btn:focus-visible { box-shadow: var(--shadow-xs), var(--btn-border), var(--shadow-skeuo-inner), var(--focus-ring-shadow); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

.btn--sm { gap: var(--sp-xs); padding: 10px 14px; font-size: 14px; line-height: 20px; }
.btn--secondary {
  --btn-bg: var(--button-secondary-bg);
  --btn-fill: var(--button-secondary-bg-hover);
  --btn-fg: var(--button-secondary-fg);
  --btn-fg-hover: var(--button-secondary-fg-hover);
  --btn-border: inset 0 0 0 1px var(--button-secondary-border);
}
.btn--block { width: 100%; }
@media (max-width: 767px) { .btn--block-mobile { width: 100%; } }


/* --------------------------------------------------------------------------
   Nav (DS nav/header): hides while scrolling down, back on scroll up,
   compact + translucent once the page is scrolled (see script.js)
   -------------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-secondary);
  transition: transform .3s ease-out, background-color .3s ease-out;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
}
.nav.is-hidden { transform: translateY(-100%); }
/* Full-width bar (Figma nav/header: 24px side padding at any width) */
.nav__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: none;
  padding: var(--sp-2xl) var(--sp-3xl);
}
.nav__actions { display: flex; align-items: center; gap: var(--sp-5xl); }
.nav__links { display: flex; align-items: center; gap: var(--sp-4xl); }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  padding-block: var(--sp-md);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: inset 0 -1px 0 transparent;
  transition: color .2s ease, box-shadow .2s ease;
}
.nav-link:hover { color: var(--text-primary); }
.nav-link[aria-current="page"] { color: var(--text-primary); box-shadow: inset 0 -1px 0 var(--fg-brand-primary); }

/* Language switch (DS nav/lang-switch) */
.lang { display: flex; align-items: center; gap: var(--sp-xs); padding-block: var(--sp-md); font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text-quaternary); white-space: nowrap; }
.lang [aria-current] { color: var(--text-primary); font-weight: 600; }
.lang a:not([aria-current]) { transition: color .2s ease; }
.lang a:not([aria-current]):hover { color: var(--text-primary); }

/* Burger -> X (DS menu-01 / x-close, 24px) */
.nav__menu-btn { display: none; place-items: center; width: 44px; height: 44px; }
.burger { position: relative; width: 24px; height: 24px; }
.burger span {
  position: absolute;
  left: 3px;
  top: 11px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--fg-primary);
  transition: transform .45s var(--ease-out), opacity .2s ease;
}
.burger span:nth-child(1) { transform: translateY(-6px); }
.burger span:nth-child(3) { transform: translateY(6px); }
.nav.menu-visible .burger span:nth-child(1) { transform: rotate(45deg) scaleX(.94); }
.nav.menu-visible .burger span:nth-child(2) { opacity: 0; }
.nav.menu-visible .burger span:nth-child(3) { transform: rotate(-45deg) scaleX(.94); }

/* Mobile menu: full-screen sheet unrolling from under the header (DS State=Open) */
.nav.is-open {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  transform: none;
  background: transparent;
  border-bottom: 0;
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
}
.nav.is-open .nav__bar { width: 100%; max-width: none; background: var(--bg-primary); border-bottom: 1px solid var(--border-secondary); }
.nav__mobile {
  flex: 1 0 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4xl);
  padding: var(--sp-xl) var(--gutter) var(--sp-4xl);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg-primary);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .4s cubic-bezier(.7, 0, .84, 0);
}
.nav__mobile[hidden] { display: none; }
.nav.menu-visible .nav__mobile { clip-path: inset(0 0 0 0); transition: clip-path .6s var(--ease-out); }
.nav__mobile-links li, .nav__mobile-cta { opacity: 0; transition: opacity .2s ease; }
.nav.menu-visible .nav__mobile-links li, .nav.menu-visible .nav__mobile-cta { opacity: 1; transition: opacity .5s ease; }
.nav.menu-visible .nav__mobile-links li:nth-child(1) { transition-delay: .12s; }
.nav.menu-visible .nav__mobile-links li:nth-child(2) { transition-delay: .17s; }
.nav.menu-visible .nav__mobile-links li:nth-child(3) { transition-delay: .22s; }
.nav.menu-visible .nav__mobile-links li:nth-child(4) { transition-delay: .27s; }
.nav.menu-visible .nav__mobile-cta { transition-delay: .34s; }
.nav__mobile-links a {
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
  padding-block: var(--sp-xl);
  border-top: 1px solid var(--border-secondary);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 32px;
  font-weight: 500;
  color: var(--text-primary);
}
.nav__mobile-links a span { flex: 1 0 0; min-width: 0; }
.nav__mobile-links img { flex: none; width: 20px; height: 20px; transition: translate .3s var(--ease-out); }
.nav__mobile-links a:hover img, .nav__mobile-links a:focus-visible img { translate: 4px 0; }
.nav__mobile-cta { padding: 10px var(--sp-xl); }
html.menu-open { overflow: hidden; }

@media (max-width: 1023px) {
  .nav__bar { padding-block: var(--sp-lg); }
  .nav__actions { gap: var(--sp-xl); }
  .nav__links, .nav__cta { display: none; }
  .nav__menu-btn { display: grid; }
}
@media (max-width: 767px) { .nav__bar { padding-inline: var(--sp-xl); } }

/* --------------------------------------------------------------------------
   Section headers
   -------------------------------------------------------------------------- */
.section-head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-3xl); }
.section-head--center { align-items: center; text-align: center; }
/* Title left (608) + intro right, intro pushed 40px down */
.section-split { display: flex; gap: var(--sp-7xl); align-items: flex-start; }
.section-split > .section-head { flex: 0 0 608px; }
.section-split__intro { flex: 1 0 0; min-width: 0; padding-top: var(--sp-5xl); }

@media (max-width: 1023px) {
  .section-head { gap: var(--sp-xl); }
  .section-split { flex-direction: column; gap: var(--sp-xl); }
  .section-split > .section-head { flex: none; width: 100%; }
  .section-split__intro { padding-top: 0; }
}

/* --------------------------------------------------------------------------
   Home: hero (DS section/home-hero)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  container-type: inline-size;
  padding: var(--sp-8xl) 0 var(--sp-10xl);
  background: linear-gradient(129.45deg, rgba(203, 213, 225, 0) 35.714%, var(--gray-300) 100%);
}
/* Packshot (image fill in Figma): sized off the 1440 frame, anchored to the centred container */
.hero__media {
  --hw: min(100cqw, 1440px);
  position: absolute;
  left: calc(50% - var(--hw) / 2 + var(--hw) * .382);
  top: calc(var(--hw) * -.056);
  width: calc(var(--hw) * .731);
  height: calc(var(--hw) * .731);
  max-width: none;
  pointer-events: none;
  user-select: none;
}
.hero__inner { position: relative; }
/* Keeps the Figma 700px frame when the copy is shorter (EN), so the packshot isn't cropped */
@media (min-width: 1024px) { .hero { min-height: 700px; } }
.hero__content { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-4xl); width: 720px; max-width: 100%; }
.hero__lead { max-width: 640px; }
.hero__spacer { display: none; }

@media (max-width: 1023px) {
  .hero {
    padding: var(--sp-4xl) 0 0;
    background: linear-gradient(184.78deg, rgba(203, 213, 225, 0) 48.46%, var(--gray-300) 98.896%);
  }
  .hero__content { align-items: center; gap: var(--sp-3xl); width: 100%; max-width: 560px; margin-inline: auto; text-align: center; }
  .hero__title { font-size: 32px; line-height: 40px; letter-spacing: 0; }
  .hero__lead.lead { font-size: 18px; line-height: 26px; }
  .hero__spacer { display: block; height: 280px; margin-top: var(--sp-6xl); }
  .hero__media {
    --hw: min(100cqw, 560px);
    left: 50%;
    top: auto;
    bottom: calc(var(--hw) * -.459);
    width: calc(var(--hw) * 1.397);
    height: calc(var(--hw) * 1.397);
    translate: -50% 0;
  }
}
@media (max-width: 767px) { .hero__cta { width: 100%; } }

/* --------------------------------------------------------------------------
   Home: manufacturing steps (DS card/step)
   -------------------------------------------------------------------------- */
.manufacturing__inner { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-8xl); }
.steps { display: flex; gap: var(--sp-8xl); width: 100%; }
.step { flex: 1 0 0; min-width: 0; display: flex; flex-direction: column; gap: var(--sp-xl); padding-top: var(--sp-4xl); border-top: 1px solid var(--border-secondary); }
.step__index { font-family: var(--font-display); font-size: 56px; line-height: 64px; font-weight: 400; letter-spacing: -.02em; color: var(--text-brand-primary); }
.step__text { display: flex; flex-direction: column; gap: var(--sp-lg); padding-top: var(--sp-3xl); }
.step__title { font-family: var(--font-display); font-size: 24px; line-height: 32px; font-weight: 500; }
.step__desc { color: var(--text-tertiary); }

@media (max-width: 1023px) {
  .manufacturing__inner { gap: var(--sp-6xl); }
  .steps { flex-direction: column; gap: var(--sp-5xl); }
  .step { gap: var(--sp-lg); padding-top: var(--sp-3xl); }
  .step__index { font-size: 36px; line-height: 44px; }
  .step__text { display: contents; }
  .step__title { font-family: var(--font-body); font-size: 20px; line-height: 28px; }
}
@media (max-width: 767px) { .section-cta { width: 100%; } }

/* --------------------------------------------------------------------------
   Home: products (DS card/product-area Layout=Media / Media Stacked)
   -------------------------------------------------------------------------- */
.products__inner { display: flex; flex-direction: column; align-items: center; gap: var(--sp-7xl); }
.products__head { width: 768px; max-width: 100%; }
.products__head .stack { display: flex; flex-direction: column; gap: var(--sp-xl); }
.product-grid { display: flex; gap: var(--sp-3xl); width: 100%; }

.product-card {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5xl);
  padding: var(--sp-5xl);
  background: var(--bg-primary);
  border: 1px solid var(--border-secondary);
  transition: background-color .3s ease;
}
.product-card:hover { background: var(--bg-primary-hover); }
/* Header grows so both cards' attribute lists line up */
.product-card__header { flex: 1 0 auto; display: flex; gap: var(--sp-xl); }
.product-card__heading { flex: 0 0 320px; display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-5xl); }
.product-card__text { display: flex; flex-direction: column; gap: var(--sp-md); }
.product-card__title { font-family: var(--font-display); font-size: 32px; line-height: 40px; font-weight: 500; }
.product-card__desc { color: var(--text-tertiary); }
.product-card__media {
  position: relative;
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: var(--sp-xl);
  overflow: hidden;
}
.product-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-card__shadow { position: relative; width: 64px; height: 4px; overflow: visible; }
.product-card__shadow img { position: absolute; inset: -12px -12px; width: 88px; height: 28px; max-width: none; }

/* Hover: the shirt slowly lifts and keeps floating, the shadow shrinks under it.
   Lift and float amplitude are transitioned custom properties, so the shirt eases
   in and settles back down from wherever it is instead of snapping. */
@property --lift { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --float-amp { syntax: "<length>"; inherits: false; initial-value: 0px; }
@property --float-phase { syntax: "<number>"; inherits: false; initial-value: 0; }
@keyframes levitate {
  0%, 100% { --float-phase: 0; }
  50% { --float-phase: 1; }
}
.levitate__img, .levitate__shadow {
  transition: --lift 1.4s cubic-bezier(.33, 1, .68, 1), --float-amp 2s cubic-bezier(.33, 1, .68, 1);
}
.levitate__img {
  translate: 0 calc(var(--lift) - var(--float-phase) * var(--float-amp));
  animation: levitate 4.8s cubic-bezier(.37, 0, .63, 1) infinite paused;
}
.levitate__shadow {
  scale: calc(1 + var(--lift) / 60px);
  opacity: calc(1 + var(--lift) / 40px);
}
@media (hover: hover) {
  .levitate:hover :is(.levitate__img, .levitate__shadow) { --lift: -10px; --float-amp: 6px; }
  .levitate:hover .levitate__img { animation-play-state: running; }
}

.attr-list { display: flex; flex-direction: column; }
.attr-list li {
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
  padding-block: var(--sp-lg);
  border-top: 1px solid var(--border-secondary);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}
.attr-list li:first-child { color: var(--text-primary); }
.attr-list li::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--fg-primary); }

@media (max-width: 1023px) {
  .products__inner { gap: var(--sp-5xl); }
  .products__head { gap: var(--sp-xl); }
  .product-grid { flex-direction: column; gap: var(--sp-xl); }
  .product-card { flex: none; gap: var(--sp-3xl); padding: var(--sp-3xl); }
  .product-card__header { flex-direction: column-reverse; gap: var(--sp-3xl); }
  .product-card__heading { flex: none; gap: var(--sp-xl); }
  .product-card__title { font-size: 24px; line-height: 32px; }
  .product-card__media { flex: none; height: 200px; }
}

/* --------------------------------------------------------------------------
   Home: control (DS card/feature), hover one shade darker
   -------------------------------------------------------------------------- */
.control__inner { display: flex; gap: var(--sp-7xl); align-items: flex-start; }
.control__head { flex: 0 0 448px; }
.feature-grid { flex: 1 0 0; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3xl); }
.feature-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3xl);
  padding: var(--sp-3xl);
  background: var(--bg-secondary);
  transition: background-color .3s ease;
}
.feature-card:hover { background: var(--bg-secondary-hover); }
.feature-card__icon { width: 32px; height: 32px; }
.feature-card__text { display: flex; flex-direction: column; gap: var(--sp-md); }
.feature-card__title { font-size: 20px; line-height: 28px; font-weight: 500; }
/* -1px: browser Inter measures a hair wider than Figma, keeps Figma's line breaks */
.feature-card__desc { margin-right: -1px; color: var(--text-tertiary); }

@media (max-width: 1023px) {
  .control__inner { flex-direction: column; gap: var(--sp-5xl); }
  .control__head { flex: none; width: 100%; }
  .feature-grid { width: 100%; grid-template-columns: 1fr; gap: var(--sp-xl); }
}
@media (min-width: 768px) and (max-width: 1023px) { .feature-grid { grid-template-columns: 1fr 1fr; } }

/* --------------------------------------------------------------------------
   Timeline (DS list/timeline-step)
   -------------------------------------------------------------------------- */
.development__inner { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-8xl); }
.timeline { display: flex; width: 100%; }
.timeline__step { flex: 1 0 0; min-width: 0; display: flex; flex-direction: column; gap: var(--sp-2xl); }
.timeline__track { display: flex; align-items: center; }
.timeline__track::before { content: ""; flex: none; width: 12px; height: 12px; background: var(--bg-brand-solid); }
.timeline__track::after { content: ""; flex: 1 0 0; height: 1px; background: var(--border-secondary); }
.timeline__step:last-child .timeline__track::after { display: none; }
.timeline__text { display: flex; flex-direction: column; gap: var(--sp-md); padding-right: var(--sp-xl); }
.timeline__index { font-family: var(--font-display); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text-quaternary); }
.timeline__title { font-size: 18px; line-height: 26px; font-weight: 600; }
.timeline__desc { font-size: 14px; line-height: 20px; color: var(--text-tertiary); }

@media (max-width: 1023px) {
  .development__inner { gap: var(--sp-5xl); }
  .timeline { flex-direction: column; }
  .timeline__step { flex: none; flex-direction: row; gap: var(--sp-xl); }
  .timeline__track { flex-direction: column; align-self: stretch; }
  .timeline__track::after { width: 1px; height: auto; }
  .timeline__text { flex: 1 0 0; min-width: 0; padding: 0 0 var(--sp-4xl); }
}

/* --------------------------------------------------------------------------
   CTA inquiry (DS section/cta-inquiry Variant=Contained)
   -------------------------------------------------------------------------- */
.cta { position: relative; padding-block: var(--sp-10xl); background: var(--bg-primary); border-top: 1px solid var(--border-secondary); }
.cta__box {
  position: relative;
  overflow: hidden;
  display: flex;
  margin-inline: var(--sp-8xl);
  padding: var(--sp-8xl);
  background: var(--bg-brand-section);
  isolation: isolate;
}
.cta__media {
  position: absolute;
  left: 48.12%;
  top: -37.01%;
  width: 100%;
  height: 278.26%;
  max-width: none;
  z-index: -1;
  pointer-events: none;
  user-select: none;
}
.cta__content { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-3xl); width: 560px; max-width: 100%; }
.cta__text { display: flex; flex-direction: column; gap: var(--sp-xl); }
.cta__title { color: var(--text-primary-on-brand); }
.cta__lead { color: var(--text-secondary-on-brand); }

/* Mobile: centred copy, packshot cropped into the bottom of the box */
@media (max-width: 1023px) {
  .cta { padding-block: var(--sp-7xl); }
  .cta .container { padding-inline: var(--sp-4xl); }
  .cta__box { margin-inline: 0; padding: var(--sp-6xl) var(--sp-3xl) 240px; }
  .cta__media { left: -16.68%; top: 52.4%; width: 131.33%; height: 73.99%; }
  .cta__content { align-items: center; gap: var(--sp-xl); width: 100%; text-align: center; }
  .cta__text { gap: var(--sp-md); }
  .cta__title.display-lg { font-size: 24px; line-height: 32px; }
  .cta__lead.text-lg { font-size: 16px; line-height: 24px; }
  .cta__btn { width: 100%; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .cta__box { padding-bottom: 320px; }
  .cta__media { left: 50%; top: auto; bottom: -240px; width: 560px; height: 560px; translate: -50% 0; }
  .cta__content { max-width: 560px; margin-inline: auto; }
  .cta__btn { width: auto; }
}

/* --------------------------------------------------------------------------
   Footer (DS footer/main): uncovered from below like Kombinatorium
   -------------------------------------------------------------------------- */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border-secondary); }
.footer__inner { display: flex; flex-direction: column; gap: var(--sp-7xl); padding-top: var(--sp-8xl); padding-bottom: var(--sp-5xl); }
.footer__top { display: flex; justify-content: space-between; gap: var(--sp-7xl); }
.footer__brand { flex: 0 0 384px; display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-xl); }
.footer__tagline { font-size: 14px; line-height: 20px; color: var(--text-tertiary); }
.footer__cols { display: flex; gap: var(--sp-7xl); }
.footer__col { width: 192px; display: flex; flex-direction: column; gap: var(--sp-lg); font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text-secondary); }
.footer__col-title { font-family: var(--font-display); font-size: 12px; line-height: 16px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-quaternary); }
.footer__col a { align-self: flex-start; display: inline-flex; align-items: center; gap: var(--sp-xs); transition: color .2s ease; }
.footer__col a:hover, .footer__col a:focus-visible { color: var(--text-primary); }

/* Links (Kombinatorium): the arrow unfolds next to the label and takes real
   space, so the neighbouring links move with it and the gaps stay constant */
.link-arrow {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 0;
  margin-left: calc(-1 * var(--sp-xs)); /* cancels the link's gap while folded */
  overflow: hidden;
  transition: width .6s cubic-bezier(.22, 1, .36, 1), margin-left .6s cubic-bezier(.22, 1, .36, 1);
}
.link-arrow img {
  flex: none;
  width: 16px;
  height: 16px;
  max-width: none;
  opacity: 0;
  translate: -6px 0;
  transition: opacity .45s ease, translate .6s cubic-bezier(.22, 1, .36, 1);
}
@media (hover: hover) {
  :is(.nav-link, .footer__col a):is(:hover, :focus-visible) .link-arrow { width: 16px; margin-left: 0; }
  :is(.nav-link, .footer__col a):is(:hover, :focus-visible) .link-arrow img { opacity: 1; translate: 0 0; transition-delay: .05s; }
}
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-3xl);
  border-top: 1px solid var(--border-secondary);
  font-size: 14px;
  line-height: 20px;
  color: var(--text-quaternary);
}

@media (max-width: 1023px) {
  .footer__inner { gap: var(--sp-6xl); padding-top: var(--sp-6xl); padding-bottom: var(--sp-4xl); }
  .footer__top { flex-direction: column; gap: var(--sp-5xl); }
  .footer__brand { flex: none; }
  .footer__cols { flex-wrap: wrap; gap: var(--sp-4xl); }
  .footer__col { width: calc(50% - var(--sp-4xl) / 2); }
}
@media (min-width: 768px) and (max-width: 1023px) { .footer__col { width: 192px; } }

/* ==========================================================================
   Subpages
   ========================================================================== */

/* Page hero (DS section/page-hero) */
.page-hero { position: relative; overflow: hidden; padding: var(--sp-8xl) 0 var(--sp-10xl); background: var(--bg-primary); }
/* Packshot placed on the 1440 frame (image fill of the section in Figma), anchored to the page centre */
.page-hero__media {
  position: absolute;
  left: calc(50% - 720px + var(--ph-x));
  top: var(--ph-y);
  width: var(--ph-size);
  height: var(--ph-size);
  max-width: none;
  pointer-events: none;
  user-select: none;
}
.page-hero--production { --ph-x: 820px; --ph-y: 0px; --ph-size: 544px; --ph-mh: 351px; }
.page-hero--products { --ph-x: 793px; --ph-y: -30px; --ph-size: 616px; --ph-mh: 340px; }
.page-hero--development { --ph-x: 787px; --ph-y: -21px; --ph-size: 625px; --ph-mh: 375px; }
.page-hero__inner { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-4xl); }
.page-hero__text { align-self: stretch; display: flex; flex-direction: column; gap: var(--sp-xl); }
.page-hero .page-hero__title { width: 720px; max-width: 100%; }
.page-hero .page-hero__lead { width: 560px; max-width: 100%; }
.page-hero__lead > p:not(:last-child) { margin-bottom: 1em; }
.lead--narrow { max-width: 560px; }

@media (max-width: 1023px) {
  .page-hero { padding: var(--sp-4xl) 0 400px; }
  .page-hero__media { left: 50%; top: auto; bottom: 0; width: min(100%, 375px); height: var(--ph-mh); translate: -50% 0; object-fit: cover; }
  .page-hero__inner { gap: var(--sp-3xl); }
  .page-hero__title { font-size: 36px; line-height: 44px; }
  .page-hero .page-hero__title.display-xl { font-size: 32px; line-height: 40px; letter-spacing: 0; }
  .page-hero__lead.lead { font-size: 18px; line-height: 26px; }
}
@media (max-width: 767px) { .page-hero__actions, .page-hero__actions .btn { width: 100%; } }

/* Parameter table (DS table/spec-row Default 160 / Compact 112) */
.spec-table { display: flex; flex-direction: column; gap: var(--sp-lg); width: 100%; }
.spec-table__title { font-size: 18px; line-height: 26px; font-weight: 500; }
.spec-table__rows { border-bottom: 1px solid var(--border-secondary); }
.spec-table__row { display: flex; align-items: center; gap: var(--sp-3xl); padding-block: var(--sp-xl); border-top: 1px solid var(--border-secondary); }
.spec-table__label {
  flex: 0 0 160px;
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-quaternary);
}
.spec-table__value { flex: 1 0 0; min-width: 0; font-weight: 500; }
/* Mobile: DS table/spec-row Size=Stacked, label above the value */
@media (max-width: 1023px) {
  .spec-table__row { flex-direction: column; align-items: stretch; gap: var(--sp-xs); }
  .spec-table__label, .spec-table__value { flex: none; }
}

/* Spec list (DS list/spec-row Layout=Row / Stacked / Stacked Mobile) */
.spec-list { width: 100%; border-bottom: 1px solid var(--border-secondary); }
.spec-row { display: flex; align-items: flex-start; gap: var(--sp-4xl); padding-block: var(--sp-4xl); border-top: 1px solid var(--border-secondary); }
.spec-row__index { flex: 0 0 64px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text-quaternary); }
.spec-row__icon { flex: none; width: 24px; height: 24px; }
.spec-row__text { display: contents; }
.spec-row__title { flex: 0 0 352px; font-family: var(--font-display); font-size: 24px; line-height: 32px; font-weight: 500; }
.spec-row__desc { flex: 1 0 0; min-width: 0; color: var(--text-tertiary); }
.spec-list--stacked .spec-row,
.spec-row--stacked { flex-direction: column; gap: var(--sp-3xl); padding-block: var(--sp-3xl); }
.spec-list--stacked .spec-row__text,
.spec-row--stacked .spec-row__text { display: flex; flex-direction: column; gap: var(--sp-md); width: 100%; }
.spec-list--stacked .spec-row > *, .spec-list--stacked .spec-row__text > *,
.spec-row--stacked > *, .spec-row--stacked .spec-row__text > * { flex: none; }
@media (max-width: 1023px) {
  .spec-row { flex-direction: column; gap: var(--sp-3xl); padding-block: var(--sp-3xl); }
  .spec-row__text { display: flex; flex-direction: column; gap: var(--sp-md); width: 100%; }
  .spec-row > *, .spec-row__text > * { flex: none; }
  .spec-row__title { font-family: var(--font-body); font-size: 20px; line-height: 28px; }
}

/* Process (Produkcja): four icon rows side by side, DS list/spec-row Show icon */
.process { display: flex; gap: var(--sp-6xl); width: 100%; }
.process .spec-row { flex: 1 0 0; min-width: 0; }
.process__intro { display: flex; gap: var(--sp-10xl); align-items: flex-start; width: 100%; }
.process__intro > * { flex: 1 0 0; min-width: 0; }
.process__intro .spec-table { padding-top: var(--sp-5xl); }
.section-head__text { display: flex; flex-direction: column; gap: var(--sp-xl); }
@media (max-width: 1023px) {
  .process { flex-direction: column; gap: 0; }
  .process__intro { flex-direction: column; gap: var(--sp-4xl); }
  .process__intro > * { flex: none; width: 100%; }
  .section-stack.section-stack--process { gap: var(--sp-6xl); }
  .process__intro .spec-table { padding-top: 0; }
}

/* Split layout: aside 448 + content */
.split { display: flex; gap: var(--sp-7xl); align-items: flex-start; }
.split__aside { flex: 0 0 448px; display: flex; flex-direction: column; gap: var(--sp-6xl); }
.split__aside--wide { flex-basis: 512px; gap: var(--sp-4xl); }
.split__content { flex: 1 0 0; min-width: 0; display: flex; flex-direction: column; gap: var(--sp-6xl); }
.split--wide { gap: var(--sp-10xl); }
.split--wide .accordion { padding-top: var(--sp-5xl); }
@media (max-width: 1023px) {
  .split--wide .accordion { padding-top: 0; }
  .split { flex-direction: column; gap: var(--sp-5xl); }
  .split__aside, .split__aside--wide { flex: none; width: 100%; gap: var(--sp-4xl); }
  .split__aside--wide { gap: var(--sp-xl); }
  .split__content { width: 100%; gap: var(--sp-4xl); }
}

/* Columns (DS card/column) */
.section-stack { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-7xl); }
.section-head--narrow { max-width: 768px; }
.columns { display: flex; gap: var(--sp-6xl); width: 100%; }
.column { flex: 1 0 0; min-width: 0; display: flex; flex-direction: column; gap: var(--sp-3xl); padding-top: var(--sp-4xl); border-top: 1px solid var(--border-secondary); }
.column__text { display: flex; flex-direction: column; gap: var(--sp-lg); }
@media (max-width: 1023px) {
  .section-stack { gap: var(--sp-5xl); }
  .columns { flex-direction: column; gap: var(--sp-3xl); }
  .column { gap: var(--sp-lg); padding-top: var(--sp-3xl); }
}

/* Product area (products page): copy + list | packshot, parameters, CTA */
.product-area__inner { display: flex; gap: var(--sp-10xl); align-items: stretch; }
.product-area__content, .product-area__aside { flex: 1 0 0; min-width: 0; display: flex; flex-direction: column; gap: var(--sp-7xl); }
.product-area__content .lead { max-width: 400px; }
.product-area__media {
  position: relative;
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: var(--sp-xl);
}
.product-area__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.product-area__shadow { position: relative; width: 104px; height: 5px; }
.product-area__shadow img { position: absolute; inset: -12px; width: 128px; height: 29px; max-width: none; }
@media (max-width: 1023px) {
  .product-area__inner { flex-direction: column; gap: var(--sp-6xl); }
  .product-area__content { flex: none; gap: var(--sp-5xl); }
  .product-area__aside { flex: none; gap: var(--sp-5xl); }
  .product-area__media { flex: none; aspect-ratio: 1; max-height: 560px; }
  .product-area__content .lead { max-width: none; }
}


/* Accordion (DS list/accordion-item) */
.accordion { flex: 1 0 0; min-width: 0; border-bottom: 1px solid var(--border-secondary); }
.accordion__item { border-top: 1px solid var(--border-secondary); transition: background-color .25s ease; }
.accordion__item:has(.accordion__trigger:hover) { background: var(--bg-secondary); }
.accordion__trigger {
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
  width: 100%;
  padding-block: var(--sp-2xl);
  text-align: left;
}
.accordion__index { flex: 0 0 64px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text-quaternary); transition: color .25s ease; }
.accordion__title { flex: 1 0 0; min-width: 0; font-family: var(--font-display); font-size: 24px; line-height: 32px; font-weight: 500; transition: color .25s ease; }
.accordion__trigger:hover .accordion__index, .accordion__trigger:hover .accordion__title,
.accordion__trigger[aria-expanded="true"] .accordion__index { color: var(--text-brand-primary); }
/* Plus -> minus: the vertical bar folds away */
.accordion__icon { position: relative; flex: none; width: 44px; height: 44px; }
.accordion__icon::before, .accordion__icon::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 21px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--fg-quaternary);
  transition: transform .4s var(--ease-out), background-color .25s ease;
}
.accordion__icon::after { transform: rotate(90deg); }
.accordion__trigger[aria-expanded="true"] .accordion__icon::before,
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { background: var(--fg-brand-primary); }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: rotate(0deg); }
.accordion__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
.accordion__panel > div { min-height: 0; overflow: hidden; }
.accordion__panel p { padding: 0 var(--sp-7xl) var(--sp-3xl) var(--sp-8xl); color: var(--text-tertiary); opacity: 0; transition: opacity .3s ease; }
.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion__item.is-open .accordion__panel p { opacity: 1; transition-delay: .1s; }
@media (max-width: 767px) {
  .accordion { width: 100%; }
  .accordion__trigger { gap: var(--sp-lg); }
  .accordion__index { flex-basis: 20px; }
  .accordion__title { font-family: var(--font-body); font-size: 18px; line-height: 26px; font-weight: 600; }
  .accordion__icon { height: 24px; }
  .accordion__icon::before, .accordion__icon::after { left: 25px; top: 11px; }
  .accordion__panel p { padding: 0 0 var(--sp-3xl) var(--sp-4xl); }
}
@media (max-width: 1023px) { .accordion { flex: none; width: 100%; } }

/* --------------------------------------------------------------------------
   Contact + form (DS input/*, feedback/form-status)
   -------------------------------------------------------------------------- */
.contact { padding: var(--sp-5xl) 0 var(--sp-10xl); background: var(--bg-secondary); }
.contact .split__aside { gap: var(--sp-3xl); }
.contact .spec-table { gap: var(--sp-lg); padding-top: var(--sp-xl); }
.contact .spec-table__rows { border-bottom: 0; }
.form {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-xl);
  padding: var(--sp-5xl);
  background: var(--bg-primary);
  border: 1px solid var(--border-secondary);
}
.form__row { display: flex; gap: var(--sp-xl); }
.form__row > .field { flex: 1 0 0; min-width: 0; }
.form__privacy { font-size: 14px; line-height: 20px; color: var(--text-tertiary); }
.form__privacy a { text-underline-offset: 2px; }
.form__privacy a:hover { text-decoration: underline; }
.form__actions { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-xl); }
.form__submit { width: 100%; }
@media (max-width: 1023px) {
  .contact { padding: var(--sp-4xl) 0 var(--sp-7xl); }
  .contact .page-hero__title { font-size: 36px; line-height: 44px; }
  /* Figma mobile: eyebrow 24, title-lead 16, lead-table 40 */
  .contact .split__aside { gap: var(--sp-xl); }
  .contact .split__aside > .eyebrow { margin-bottom: var(--sp-md); }
  .contact .spec-table { padding-top: 0; margin-top: var(--sp-3xl); }
  .form { flex: none; width: 100%; padding: 0; background: none; border: 0; }
}
@media (max-width: 767px) {
  .form__row { flex-direction: column; }
  .form__submit { width: 100%; }
}

.field { display: flex; flex-direction: column; gap: var(--sp-md); }
.field__label { display: flex; gap: var(--sp-xs); font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text-secondary); }
.field__optional { font-weight: 400; color: var(--text-quaternary); }
.field__hint { font-size: 14px; line-height: 20px; color: var(--text-tertiary); }
.field__error { display: none; font-size: 14px; line-height: 20px; color: var(--text-error-primary); }
.field.is-invalid .field__hint { display: none; }
.field.is-invalid .field__error { display: block; }

.control {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-lg) var(--sp-xl);
  background: var(--bg-primary);
  border: 1px solid var(--fg-quaternary);
  border-radius: var(--radius-md);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.control:hover { border-color: var(--gray-700); }
.control:focus-within { border-color: var(--fg-brand-primary); box-shadow: var(--focus-ring-shadow); }
.field.is-invalid .control { border-color: var(--border-error); }
.field.is-invalid .control:focus-within { box-shadow: 0 0 0 2px var(--bg-primary), 0 0 0 4px var(--error-300); }
.control input, .control select, .control textarea {
  flex: 1 0 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: none;
  color: var(--text-primary);
  font: inherit;
  font-size: 16px;
  line-height: 24px;
  appearance: none;
}
/* The ring sits on .control (DS Focused), never on the bare element inside */
.control :focus-visible { box-shadow: none; }
.control input::placeholder, .control textarea::placeholder { color: var(--text-placeholder); opacity: 1; }
.control select { cursor: pointer; padding-right: 28px; margin-right: -28px; }
.control select:invalid { color: var(--text-placeholder); }
.control__chevron { flex: none; width: 20px; height: 20px; pointer-events: none; transition: rotate .3s var(--ease-out); }
.control__alert { display: none; flex: none; width: 16px; height: 16px; }
.field.is-invalid .control__alert { display: block; }

/* Select (enhanced by kontakt.js): trigger + listbox 8px under the field */
.control--select.is-enhanced { cursor: pointer; }
.control--select.is-enhanced select { position: absolute; inset: 0; width: 100%; margin: 0; padding: 0; opacity: 0; pointer-events: none; }
.select-trigger { flex: 1 0 0; min-width: 0; text-align: left; font-size: 16px; line-height: 24px; color: var(--text-primary); }
.select-trigger.is-placeholder { color: var(--text-placeholder); }
.select-trigger:disabled { color: var(--text-tertiary); cursor: not-allowed; }
.control:has(.select-trigger[aria-expanded="true"]) .control__chevron { rotate: 180deg; }
.select-menu {
  position: absolute;
  top: calc(100% + 1px + var(--sp-md)); /* 8px below the field border */
  left: -1px;
  right: -1px;
  z-index: 20;
  padding: var(--sp-xs);
  background: var(--bg-primary);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 16px -4px rgba(16, 24, 40, .08), 0 4px 6px -2px rgba(16, 24, 40, .03);
  opacity: 0;
  visibility: hidden;
  translate: 0 -4px;
  transition: opacity .2s ease, translate .2s var(--ease-out), visibility 0s linear .2s;
}
.select-menu.is-open { opacity: 1; visibility: visible; translate: 0 0; transition: opacity .2s ease, translate .2s var(--ease-out); }
.select-option {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-md) var(--sp-lg);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 24px;
  cursor: pointer;
  transition: background-color .15s ease;
}
.select-option span { flex: 1 0 0; min-width: 0; }
.select-option::after { content: ""; flex: none; width: 20px; height: 20px; background: url("assets/icon-check.svg") center / 20px no-repeat; opacity: 0; }
.select-option[aria-selected="true"]::after { opacity: 1; }
.select-option:hover, .select-option.is-active { background: var(--bg-primary-hover); }
.select-option[aria-selected="true"] { background: var(--bg-secondary); }
.control--textarea { align-items: flex-start; height: 144px; }
.control--textarea textarea { height: 100%; resize: none; }
/* Disabled + Disabled-active */
.control:has(> :is(input, select, textarea):disabled) { background: var(--bg-secondary); border-color: var(--gray-300); box-shadow: none; }
.control > :disabled { color: var(--text-tertiary); cursor: not-allowed; }
.control > :disabled::placeholder { color: var(--text-disabled); }
.field:has(.control > :disabled) :is(.field__label, .field__optional, .field__hint) { color: var(--text-disabled); }

/* File dropzone */
.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-3xl) var(--sp-xl);
  background: var(--bg-secondary);
  border: 1px dashed var(--fg-quaternary);
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}
.dropzone:hover, .dropzone.is-dragover { background: var(--bg-brand-primary); border-color: var(--fg-brand-primary); }
.dropzone:focus-within { box-shadow: var(--focus-ring-shadow); }
.dropzone[hidden] { display: none; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone__icon { width: 24px; height: 24px; }
.dropzone__icon--error { display: none; }
.dropzone__title { font-size: 14px; line-height: 20px; font-weight: 500; }
.dropzone__meta { font-size: 12px; line-height: 16px; color: var(--text-tertiary); }
.field.is-invalid .dropzone { border-color: var(--border-error); background: var(--bg-secondary); }
.field.is-invalid .dropzone__icon { display: none; }
.field.is-invalid .dropzone__icon--error { display: block; }
.file-item {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
  padding: var(--sp-xs) var(--sp-xs) var(--sp-xs) var(--sp-xl);
  border: 1px solid var(--fg-quaternary);
  border-radius: var(--radius-md);
}
.file-item[hidden] { display: none; }
.file-item__icon { flex: none; width: 24px; height: 24px; }
.file-item__meta { flex: 1 0 0; min-width: 0; display: flex; flex-direction: column; }
.file-item__name { overflow: hidden; font-size: 14px; line-height: 20px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.file-item__size { font-size: 12px; line-height: 16px; color: var(--text-tertiary); }
.file-item__remove { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: var(--radius-md); transition: background-color .2s ease; }
.file-item__remove:hover { background: var(--bg-secondary); }
.file-item__remove img { width: 20px; height: 20px; }

/* Form status (DS feedback/form-status) */
.form-status {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-lg);
  width: 100%;
  max-width: 520px;
  padding: var(--sp-xl);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  font-size: 14px;
  line-height: 20px;
}
.form-status[hidden] { display: none; }
.form-status img { flex: none; width: 20px; height: 20px; }
.form-status__text { display: flex; flex-direction: column; gap: var(--sp-xs); }
.form-status__title { font-weight: 600; }
.form-status__body { color: var(--text-secondary); }
.form-status--sending img { animation: spin 1s linear infinite; }
.form-status--success { background: var(--bg-success-primary); border-color: var(--success-600); }
.form-status--success .form-status__title { color: var(--text-success-primary); }
.form-status--error { background: var(--bg-error-primary); border-color: var(--border-error); }
.form-status--error .form-status__title { color: var(--text-error-primary); }
@keyframes spin { to { rotate: 360deg; } }

/* ==========================================================================
   Motion
   ========================================================================== */
/* Content fades in (opacity 0 -> 1) as it enters the viewport; html.js set in <head> */
.js [data-reveal] { opacity: 0; transition: opacity .9s var(--ease-out) var(--reveal-delay, 0ms), background-color .3s ease; }
.js [data-reveal].is-in { opacity: 1; }

/* Footer sits behind the page and is uncovered from below */
main { position: relative; z-index: 1; background: var(--bg-primary); }
@media (min-height: 640px) {
  .footer { position: sticky; bottom: 0; z-index: 0; }
  .js .footer__inner { opacity: calc(.35 + var(--footer-p, 1) * .65); }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; }
  .js .footer__inner { opacity: 1; }
}
