/* Generated from Figma variables. Do not edit by hand — re-sync & regenerate from the Tokens tab. */

:root {
  /* Colors */
  --brand: "#e62b25","White":"#ffffff","16px Text":"Font(family: \"Poppins\", style: Regular, size: 16, weight: 400, lineHeight: 22.399999618530273, letterSpacing: 0)","Light2":"#e7eaee","32px Title":"Font(family: \"Alumni Sans\", style: SemiBold, size: 32, weight: 600, lineHeight: 1, letterSpacing: 0)","Black3":"#1a1b21","Border-radius":"0","icon-color":"#e62b25","Black2":"#2a2a30","14px Text":"Font(family: \"Poppins\", style: Regular, size: 14, weight: 400, lineHeight: 21, letterSpacing: 0)","Dark2":"#2a2928","Gigant Text":"Font(family: \"Alumni Sans\", style: ExtraBold, size: 135, weight: 800, lineHeight: 102, letterSpacing: -2)","28px Title":"Font(family: \"Poppins\", style: Bold, size: 28, weight: 700, lineHeight: 27.399999618530273, letterSpacing: -3)","Black1":"#5c606b","Light3":"#99a0a8","18 PX BUTTON":"Font(family: \"Alumni Sans\", style: Bold, size: 24, weight: 700, lineHeight: 23.399999618530273, letterSpacing: 2)","40px Title":"Font(family: \"Poppins\", style: Bold, size: 38, weight: 700, lineHeight: 48, letterSpacing: -3.5)","24px Title":"Font(family: \"Poppins\", style: SemiBold, size: 24, weight: 600, lineHeight: 31.200000762939453, letterSpacing: -2)","padding-horizontal":"32","padding-vertical":"32","section-gap":"36","Light1":"#eaedf2","80px Title":"Font(family: \"Alumni Sans\", style: ExtraBold, size: 88, weight: 800, lineHeight: 1, letterSpacing: -1)","cards-gap":"20","section-padding":"110","18px Text":"Font(family: \"Poppins\", style: Regular, size: 18, weight: 400, lineHeight: 23.399999618530273, letterSpacing: 0)","Dark-graphite":"#252525"};
}

/* Section vertical rhythm — the ONE canonical top/bottom padding every <section>
   uses (padding-block: var(--section-pad-block)). A single site-wide ladder keeps
   the gaps between sections identical and steps them down on tablet/phone. Desktop
   seeds from the Figma --section-padding token when present, else 96px. */
:root { --section-pad-block: var(--section-padding, 96px); }
@media (max-width: 1023px) { :root { --section-pad-block: calc(var(--section-padding, 96px) * 0.7); } }
@media (max-width: 767px)  { :root { --section-pad-block: calc(var(--section-padding, 96px) * 0.5); } }

/* UI signature - derived from the design; every component honours these:
   1) Hard-square geometry: 0px radius on buttons, cards, inputs, icon tiles and badges.
      The only round shape in the whole design is the tiny process connector dot.
   2) Primary CTA = a solid red block (Figma --brand #e62b25), 58px tall, 24px inline padding,
      Alumni Sans Bold 24px UPPERCASE label (+0.02em tracking) and a 16px white curved
      "forward" arrow trailing at a 16px gap. Flat: no shadow, no gradient.
   3) Secondary = a 1px red hairline FRAME on transparent with a DARK (--black3) label and
      32px inline padding. Red lives only in the frame, never in the fill, until hover.
   4) Icons always sit in solid SQUARE tiles: a graphite (--black2) tile with a red glyph
      (hero badges, why-us list), or a 36px red tile with a white block arrow pinned 16px
      into the top-left corner of every clickable image card.
   5) Red works as a LINE as much as a fill (the short red bar under every heading): nav and
      text links grow a 2px red bar from the left on hover, inputs focus with a 2px red edge,
      the focus ring is a 2px red outline. Surfaces are flat tone steps (white / light1,
      black3 band / black2 card); depth is one quiet ink-tinted shadow, never a glow. */

:root {
  /* ── Accent: the PRIMARY CTA fill read off the design ("Free Quote", nav phone button,
     card arrow badges) = Figma --brand #e62b25. Pinned to the literal on purpose: the
     generated tokens.css currently collapses ALL Figma variables into one malformed --brand
     value, so var(--brand) resolves to an invalid colour. Re-point to var(--brand) once the
     Tokens tab is re-synced. Every other palette token is read as var(--token, <figma hex>). */
  --accent: #e62b25;
  --accent-2: var(--accent);                /* solid CTA - no gradient end */
  --accent-contrast: var(--white, #ffffff); /* label on the accent */
  --accent-hover: color-mix(in srgb, var(--accent) 88%, var(--black3, #1a1b21));
  --accent-active: color-mix(in srgb, var(--accent) 80%, var(--black3, #1a1b21));
  --btn-shadow: none;                       /* the design's CTA is flat */
  --focus-ring: var(--accent);

  /* ── Colour roles (palette tokens by name, Figma value as fallback) ── */
  --ink: var(--black3, #1a1b21);            /* button labels, card titles, field text */
  --ink-2: var(--black2, #2a2a30);          /* section headings */
  --ink-soft: var(--black1, #5c606b);       /* body copy */
  --muted: var(--light3, #99a0a8);          /* placeholders, meta, copy on dark */
  --on-dark: var(--white, #ffffff);
  --on-dark-soft: var(--light3, #99a0a8);
  --surface: var(--white, #ffffff);
  --surface-2: var(--light1, #eaedf2);      /* light tone step (panels, disabled) */
  --surface-dark: var(--black3, #1a1b21);   /* dark band */
  --surface-dark-2: var(--black2, #2a2a30); /* card / icon tile on a dark band */
  --border: var(--light2, #e7eaee);         /* the one neutral hairline */
  --border-strong: var(--light3, #99a0a8);  /* hairline under the pointer */
  --border-width: 1px;                      /* ONE border width site-wide */

  /* ── Radius scale: the design is hard-square everywhere (Figma Border-radius = 0) ── */
  --radius-sm: 0px;      /* inputs, badges, icon tiles */
  --radius-md: 0px;      /* cards */
  --radius-lg: 0px;      /* large panels (hero form, about panel) */
  --radius-pill: 999px;  /* ONLY genuinely round marks (process connector dots) */
  --btn-radius: 0px;     /* the primary button's real radius - also shapes Slider arrows */

  /* ── Button geometry (from the Figma CTA: h 58, pad 16/24, Alumni Sans Bold 24) ── */
  --btn-height: 58px;
  --btn-height-sm: 46px;
  --btn-pad-inline: 24px;
  --btn-pad-inline-secondary: 32px;
  --btn-gap: 16px;
  --btn-font-size: 24px;
  --btn-weight: 700;
  --btn-arrow-size: 16px;
  --btn-icon-size: 48px;

  /* ── Depth: flat surfaces; ONE soft, ink-tinted, two-layer shadow family, light from above ── */
  --shadow-sm: 0 1px 2px color-mix(in srgb, var(--ink) 4%, transparent),
    0 4px 22px -2px color-mix(in srgb, var(--ink) 8%, transparent);   /* floating panel at rest */
  --shadow-md: 0 2px 4px color-mix(in srgb, var(--ink) 6%, transparent),
    0 8px 22px -4px color-mix(in srgb, var(--ink) 14%, transparent);  /* hover / raised */
  --shadow-lg: 0 4px 8px color-mix(in srgb, var(--ink) 6%, transparent),
    0 18px 40px -8px color-mix(in srgb, var(--ink) 16%, transparent); /* overlay / popup */

  /* ── Motion ── */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-in: 180ms;
  --dur-out: 140ms;
}

/* Per-band colour: a section marks its band with data-tone and the primitives recolour
   themselves (low-specificity :where, so a section's own --btn-* override still wins). */
:where([data-tone="dark"]) {
  --btn-fg: var(--on-dark);
  --btn-ghost-hover: var(--on-dark);
  --card-bg: var(--surface-dark-2);
  --panel-bg: var(--surface-dark-2);
  --card-fg: var(--on-dark);
  --card-pad-start: 24px;
  --card-hover-shadow: 0 0 0 1px color-mix(in srgb, var(--on-dark) 16%, transparent);
}
:where([data-tone="accent"]) {
  --btn-bg: var(--surface-dark);
  --btn-fg: var(--on-dark);
  --btn-accent: var(--on-dark);
  --btn-hover-fg: var(--ink);
  --btn-ghost-hover: var(--on-dark);
  --focus-ring: var(--on-dark);
}

/* ============================== BUTTONS ============================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--btn-gap, 16px);
  box-sizing: border-box;
  min-height: var(--btn-height, 58px); /* height is fixed here - never re-derived from padding */
  padding-block: 0;
  padding-inline: var(--btn-pad-inline, 24px);
  margin: 0;
  border: var(--border-width, 1px) solid transparent; /* reserved so hover never reflows */
  border-radius: var(--btn-radius, 0px);
  font-family: var(--btn-font, var(--font-heading, "Alumni Sans", sans-serif));
  font-size: var(--btn-font-size, var(--btn-size, 24px));
  font-weight: var(--btn-weight, 700);
  font-style: normal;
  line-height: 1;
  text-transform: var(--btn-transform, uppercase);
  letter-spacing: var(--btn-letter-spacing, var(--btn-tracking, 0.02em));
  font-variant-caps: var(--btn-caps, normal);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-out) ease-out, color var(--dur-out) ease-out,
    border-color var(--dur-out) ease-out, transform var(--dur-out) var(--ease-out);
}
.btn:focus-visible {
  outline: 2px solid var(--focus-ring, var(--accent));
  outline-offset: 2px;
}
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
/* Trailing CTA arrow: the Figma curved "forward" arrow, drawn 16px. <Button> sizes the
   captured SVG at 0.85em, so the font-size here makes 0.85em = --btn-arrow-size. */
.btn .arrow {
  display: inline-flex;
  flex: none;
  font-size: calc(var(--btn-arrow-size, 16px) / 0.85);
  line-height: 0;
}

/* Primary - solid red block, white label, flat. Hover: 2px lift + 12% darker fill. */
.btn-primary {
  background-color: var(--btn-bg, var(--accent));
  color: var(--btn-fg, var(--accent-contrast));
  box-shadow: var(--btn-shadow, none);
}
@media (hover: hover) {
  .btn-primary:hover {
    transform: translateY(-2px);
    background-color: color-mix(in srgb, var(--btn-bg, var(--accent)) 88%, var(--black3, #1a1b21));
    transition-duration: var(--dur-in);
  }
}
.btn-primary:active {
  transform: translateY(0);
  background-color: color-mix(in srgb, var(--btn-bg, var(--accent)) 80%, var(--black3, #1a1b21));
  transition-duration: 100ms;
}

/* Secondary - 1px red frame, dark label, transparent. Hover: the frame fills. */
.btn-secondary {
  padding-inline: var(--btn-pad-inline-secondary, 32px);
  background-color: transparent;
  color: var(--btn-fg, var(--ink));
  border-color: var(--btn-accent, var(--accent));
}
@media (hover: hover) {
  .btn-secondary:hover {
    background-color: var(--btn-accent, var(--accent));
    color: var(--btn-hover-fg, var(--accent-contrast));
    transition-duration: var(--dur-in);
  }
}
.btn-secondary:active {
  background-color: color-mix(in srgb, var(--btn-accent, var(--accent)) 88%, var(--black3, #1a1b21));
  color: var(--btn-hover-fg, var(--accent-contrast));
  transition-duration: 100ms;
}

/* Ghost / text - no chrome at rest; hover = faint tint + red label. */
.btn-ghost {
  padding-inline: 16px;
  background-color: transparent;
  color: var(--btn-fg, var(--ink));
}
@media (hover: hover) {
  .btn-ghost:hover {
    background-color: color-mix(in srgb, currentColor 8%, transparent);
    color: var(--btn-ghost-hover, var(--btn-accent, var(--accent)));
    transition-duration: var(--dur-in);
  }
}
.btn-ghost:active {
  background-color: color-mix(in srgb, currentColor 14%, transparent);
  transition-duration: 100ms;
}

/* Icon button - a SQUARE red tile (slider arrows, lightbox close), same vocabulary as primary. */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-sizing: border-box;
  width: var(--btn-icon-size, 48px);
  height: var(--btn-icon-size, 48px);
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: var(--btn-radius, 0px);
  background-color: var(--btn-bg, var(--accent));
  color: var(--btn-fg, var(--accent-contrast));
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color var(--dur-out) ease-out, transform var(--dur-out) var(--ease-out);
}
.btn-icon > svg,
.btn-icon > img {
  width: 42%;
  height: 42%;
  display: block;
}
@media (hover: hover) {
  .btn-icon:hover {
    transform: translateY(-2px);
    background-color: color-mix(in srgb, var(--btn-bg, var(--accent)) 88%, var(--black3, #1a1b21));
    transition-duration: var(--dur-in);
  }
}
.btn-icon:active {
  transform: translateY(0);
  background-color: color-mix(in srgb, var(--btn-bg, var(--accent)) 80%, var(--black3, #1a1b21));
  transition-duration: 100ms;
}
.btn-icon:focus-visible {
  outline: 2px solid var(--focus-ring, var(--accent));
  outline-offset: 2px;
}
.btn-icon:disabled,
.btn-icon[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Small - the ONE deliberate compact size: only height + inline padding shrink. */
.btn--sm {
  min-height: var(--btn-height-sm, 46px);
  padding-inline: 18px;
}

/* ============================== LINKS ============================== */
/* Inline text link / "read more": a 2px red bar grows from the left (signature 5). */
.link-underline {
  color: var(--link-color, inherit);
  font-weight: 600;
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 2px;
  padding-bottom: 2px;
  transition: background-size var(--dur-out) ease-out, color var(--dur-out) ease-out;
}
@media (hover: hover) {
  .link-underline:hover {
    background-size: 100% 2px;
    color: var(--link-hover, var(--accent));
    transition-duration: var(--dur-in);
  }
}
.link-underline:active {
  background-size: 100% 2px;
  color: var(--accent-active);
}
.link-underline:focus-visible {
  background-size: 100% 2px;
  outline: 2px solid var(--focus-ring, var(--accent));
  outline-offset: 2px;
}
.link-underline[aria-current="page"] {
  background-size: 100% 2px;
}
.link-underline-center {
  background-position: 50% 100%;
}

/* Menu link - Poppins 16 light2 on the dark header, white + red bar from the left on hover;
   the current page keeps the bar. A header section writes NO :hover/::after for these. */
.menu-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-body, "Poppins", sans-serif);
  font-size: 16px;
  font-weight: 400;
  line-height: 22.4px;
  text-transform: var(--nav-transform, none);
  letter-spacing: var(--nav-tracking, normal);
  font-variant-caps: var(--nav-caps, normal);
  color: var(--nav-color, var(--light2, #e7eaee));
  text-decoration: none;
  transition: color var(--dur-out) ease-out;
}
.menu-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 2px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-out) var(--ease-out);
  pointer-events: none;
}
@media (hover: hover) {
  .menu-link:hover {
    color: var(--nav-color-active, var(--white, #ffffff));
    transition-duration: var(--dur-in);
  }
  .menu-link:hover::after {
    transform: scaleX(1);
    transition-duration: var(--dur-in);
  }
}
.menu-link:active {
  color: var(--nav-color-active, var(--white, #ffffff));
}
.menu-link[aria-current="page"] {
  color: var(--nav-color-active, var(--white, #ffffff));
}
.menu-link[aria-current="page"]::after {
  transform: scaleX(1);
}
.menu-link:focus-visible {
  outline: 2px solid var(--focus-ring, var(--accent));
  outline-offset: 2px;
}

/* ============================== CARDS ============================== */
/* Media card (services, blog, projects): flat, square, photo flush to the edges, text set
   on the photo's left edge (design: pl 0, pr 24, py 24). No border, no shadow at rest. */
.card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  background: var(--card-bg, var(--surface)); /* solid - occludes section decorations */
  color: var(--card-fg, inherit);
  border-radius: var(--radius-md, 0px);
  overflow: hidden;
  text-decoration: none;
  transition: transform var(--dur-out) var(--ease-out), box-shadow var(--dur-out) ease-out;
}
.card-media {
  position: relative;
  display: block;
  overflow: hidden; /* clips the zoom so it never paints over the text below */
}
.card-media img,
.card .media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease-out;
}
.card-body {
  flex: 1 1 auto;
  padding: var(--card-pad-block, 24px) var(--card-pad-end, 24px) var(--card-pad-block, 24px)
    var(--card-pad-start, 0px);
}
/* Panel card (process steps, about panel, any text-only card): a padded tone step.
   A card with no media becomes a panel automatically. */
.card--panel,
.card:not(:has(img, picture, video, [class*="media"])) {
  --card-pad-block: var(--padding-vertical, 32px);
  --card-pad-start: var(--padding-horizontal, 32px);
  --card-pad-end: var(--padding-horizontal, 32px);
  background: var(--panel-bg, var(--surface-2));
}
/* Whole-card link: put .card-link on the main <a>; its ::after stretches over the card.
   Other links inside the card need position: relative; z-index: 2. */
.card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.card .arrow {
  transition: transform var(--dur-out) var(--ease-out);
}
/* One hover owner: the clickable card lifts 4px onto the raised shadow, its photo zooms
   inside the clipped frame, its arrow nudges - all from the SAME :hover. */
@media (hover: hover) {
  a.card:hover,
  .card:has(a[href]):hover {
    transform: translateY(-4px);
    box-shadow: var(--card-hover-shadow, var(--shadow-md));
    transition-duration: var(--dur-in);
  }
  a.card:hover :is(.card-media, .media) img,
  .card:has(a[href]):hover :is(.card-media, .media) img {
    transform: scale(1.05);
  }
  a.card:hover .arrow,
  .card:has(a[href]):hover .arrow {
    transform: var(--arrow-nudge, translateX(4px));
    transition-duration: var(--dur-in);
  }
  a.card:active,
  .card:has(a[href]):active {
    transform: translateY(-2px);
    transition-duration: 100ms;
  }
}
@media (hover: none) {
  a.card:active,
  .card:has(a[href]):active {
    transform: scale(0.99);
    transition-duration: 100ms;
  }
}
a.card:focus-visible,
.card:has(.card-link:focus-visible) {
  outline: 2px solid var(--focus-ring, var(--accent));
  outline-offset: 2px;
}
.card .card-link:focus-visible {
  outline: none; /* the ring is drawn on the whole card (rule above) */
}

/* Arrow badge - the 36px red square with a white block arrow, pinned 16px into the top-left
   of a clickable image card (signature 4). Markup:
   <span class="arrow-badge" aria-hidden="true"><span class="arrow"></span></span> */
.arrow-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm, 0px);
  background-color: var(--accent);
  color: var(--accent-contrast);
  pointer-events: none;
}
.arrow-badge > .arrow {
  display: block;
  width: 16px;
  height: 16px;
}
.arrow-badge > .arrow:empty {
  background-color: currentColor;
  -webkit-mask: var(--badge-arrow, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 6h7V2l7 6-7 6v-4H1z'/%3E%3C/svg%3E")) center / contain no-repeat;
  mask: var(--badge-arrow, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 6h7V2l7 6-7 6v-4H1z'/%3E%3C/svg%3E")) center / contain no-repeat;
}

/* ============================== ICONS ============================== */
/* Square icon tile (signature 4): graphite tile, red glyph. Hero badge = 40px, why-us = 64px. */
.icon-tile {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: var(--tile-size, 40px);
  height: var(--tile-size, 40px);
  border-radius: var(--radius-sm, 0px);
  background-color: var(--tile-bg, var(--surface-dark-2));
}
.icon-tile--lg {
  --tile-size: 64px;
}
.icon-tile--light {
  --tile-bg: var(--surface);
}
.icon-tile > .svc-icon,
.icon-tile > svg,
.icon-tile > img {
  width: var(--tile-icon, 60%);
  height: var(--tile-icon, 60%);
}
/* Monochrome content icon as a CSS mask; recolour ONLY via --icon-color. */
.svc-icon {
  display: inline-block;
  flex: none;
  width: 32px;
  height: 32px;
  background-color: var(--icon-color, var(--accent));
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
  transition: background-color var(--dur-out) ease-out;
}

/* Step number (process cards: "01" in Poppins SemiBold 24, --black1). */
.step-badge {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm, 0px);
  background-color: var(--surface-dark-2);
  color: var(--on-dark);
}
.step-num {
  font-family: var(--font-body, "Poppins", sans-serif);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: lining-nums tabular-nums;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

/* ============================== INPUTS ============================== */
/* Hero quote form: boxed, square, white, 1px light2 hairline, label above. */
.field-label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-body, "Poppins", sans-serif);
  font-size: 14px;
  line-height: 21px;
  color: var(--ink);
}
.field {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px 16px;
  border: var(--border-width, 1px) solid var(--field-border, var(--border));
  border-radius: var(--radius-sm, 0px);
  background-color: var(--field-bg, var(--surface));
  color: var(--ink);
  font-family: var(--font-body, "Poppins", sans-serif);
  font-size: 14px;
  line-height: 21px;
  transition: border-color var(--dur-out) ease-out, box-shadow var(--dur-out) ease-out;
}
textarea.field {
  min-height: 120px;
  resize: vertical;
}
.field::placeholder {
  color: var(--muted);
  opacity: 1;
}
.field:hover {
  border-color: var(--border-strong);
  transition-duration: var(--dur-in);
}
.field:focus,
.field:focus-visible {
  outline: none; /* replaced by the 2px red edge below (signature 5) */
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.field:user-invalid {
  border-color: var(--accent);
  background-color: color-mix(in srgb, var(--accent) 4%, var(--surface));
}
.field:disabled {
  border-color: var(--border);
  background-color: var(--surface-2);
  color: var(--muted);
  cursor: not-allowed;
}
.field-check {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
  border-radius: var(--radius-sm, 0px);
  accent-color: var(--accent);
  cursor: pointer;
}
.field-check:focus-visible {
  outline: 2px solid var(--focus-ring, var(--accent));
  outline-offset: 2px;
}

/* ============================== HOVER UTILITIES ============================== */
/* 1. Powiekszenie - scale. ONLY for media/icons, never a box that holds text. */
.hover-scale {
  transition: transform var(--dur-out) ease-out;
}
@media (hover: hover) {
  .hover-scale:hover {
    transform: scale(1.04);
    transition-duration: var(--dur-in);
  }
}
.hover-scale:active {
  transform: scale(0.99);
  transition-duration: 100ms;
}
.media {
  overflow: hidden;
  border-radius: var(--radius-md, 0px);
}
.media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease-out;
}
@media (hover: hover) {
  .media:hover img {
    transform: scale(1.05);
  }
}

/* 2. Uniesienie - lift 4px + the raised shadow. */
.hover-lift {
  transition: transform var(--dur-out) var(--ease-out), box-shadow var(--dur-out) ease-out;
}
@media (hover: hover) {
  .hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    transition-duration: var(--dur-in);
  }
  .hover-lift:active {
    transform: translateY(-2px);
    transition-duration: 100ms;
  }
}

/* 3. Zmiana koloru - fill swap (chips, rows, small tiles - never a big panel). */
.hover-fill {
  transition: background-color var(--dur-out) ease-out, color var(--dur-out) ease-out;
}
@media (hover: hover) {
  .hover-fill:hover {
    background-color: var(--accent);
    color: var(--accent-contrast);
    transition-duration: var(--dur-in);
  }
}
.hover-fill:active {
  background-color: var(--accent-active);
  color: var(--accent-contrast);
}
/* Border + text swap (outline chips). The border must already exist at rest. */
.hover-tint {
  transition: color var(--dur-out) ease-out, border-color var(--dur-out) ease-out;
}
@media (hover: hover) {
  .hover-tint:hover {
    color: var(--accent);
    border-color: var(--accent);
    transition-duration: var(--dur-in);
  }
}
.hover-tint:active {
  color: var(--accent-active);
  border-color: var(--accent-active);
}

/* 4. Ruchoma strzalka - the arrow nudges the way it POINTS (default: right). */
.with-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn.with-arrow {
  gap: var(--btn-gap, 16px);
}
.with-arrow .arrow {
  transition: transform var(--dur-out) var(--ease-out);
}
@media (hover: hover) {
  .with-arrow:hover .arrow {
    transform: var(--arrow-nudge, translateX(4px));
    transition-duration: var(--dur-in);
  }
}
.with-arrow:focus-visible .arrow {
  transform: var(--arrow-nudge, translateX(4px));
}
.with-arrow:active .arrow {
  transform: translateX(0);
}
.arrow-loop {
  animation: arrow-nudge 1.4s ease-in-out infinite;
}
@keyframes arrow-nudge {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(6px);
  }
}

/* Keyboard twin for every utility. */
:is(.hover-scale, .hover-lift, .hover-fill, .hover-tint, .with-arrow):focus-visible {
  outline: 2px solid var(--focus-ring, var(--accent));
  outline-offset: 2px;
}

/* ============================== MISC ============================== */
.data-placeholder {
  opacity: 0.55;
  font-style: italic;
  font-weight: inherit;
}

/* ============================== MOBILE ============================== */
@media (max-width: 640px) {
  :root {
    --btn-height: 52px;
    --btn-font-size: 22px;
    --btn-pad-inline: 20px;
    --btn-pad-inline-secondary: 24px;
  }
  .field {
    font-size: 16px; /* no iOS zoom-on-focus */
  }
}

/* ============================== REDUCED MOTION ============================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* hub: straż poziomu — nic nie poszerza strony w bok (base-stylesheet.ts) */
html, body { overflow-x: clip; }
