/* ============================================================
   Flat Format — main.css
   Production stylesheet. Vanilla CSS, mobile-first.
   Paleta i typografia z Phase 1 / 3A — bez zmian.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --ink: #0E0E0E;
  --ink-soft: rgba(14, 14, 14, 0.62);
  --ink-muted: rgba(14, 14, 14, 0.45);
  --paper: #F4F1EC;
  --paper-soft: rgba(244, 241, 236, 0.85);
  --bone: #E8E1D5;
  --stone: #A8A29A;
  --terracotta: #9E3F2A;
  --brick-deep: #5E2316;
  --white: #FFFFFF;
  --overlay: rgba(14, 14, 14, 0.35);

  --ff-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --ff-tight: 'Inter Tight', 'Inter', sans-serif;
  --ff-mono: 'JetBrains Mono', ui-monospace, monospace;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;

  --container-max: 1440px;
  --gutter: 24px;
}

/* ---------- Base reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

::selection { background: var(--terracotta); color: var(--paper); }

/* Focus state — globally Terracotta */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--ink);
  color: var(--paper);
  padding: 12px 18px;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 100;
  transition: top 120ms ease;
}
.skip-link:focus { top: 16px; }

/* Header transition tweaks for tablet — avoid logo cramping at 900–1023 */
@media (max-width: 1023px) {
  .site-header { padding-left: var(--gutter); padding-right: var(--gutter); }
  .nav-list { gap: 24px; }
}
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
@media (min-width: 768px)  { :root { --gutter: 48px; } }
@media (min-width: 1024px) { :root { --gutter: 80px; } }
@media (min-width: 1440px) { :root { --gutter: 96px; } }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--ff-tight);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}
h1 { font-size: clamp(40px, 7vw, 124px); letter-spacing: -0.045em; line-height: 0.98; }
h2 { font-size: clamp(34px, 4.6vw, 64px); letter-spacing: -0.04em; }
h3 { font-size: clamp(24px, 3vw, 40px); letter-spacing: -0.03em; }
h4 { font-size: clamp(18px, 2vw, 24px); letter-spacing: -0.02em; }
p  { margin: 0; }

.tdot { color: var(--terracotta); }

.eyebrow {
  font-family: var(--ff-mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
}
.eyebrow--t { color: var(--terracotta); }
.eyebrow--muted { color: var(--ink-muted); letter-spacing: 0.1em; }

.mono {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums; /* hotfix #24 — spójne szerokości cyfr w meta/dat/numeracji */
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  font-family: var(--ff-tight);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  /* hotfix #24 — spring motion (cubic-bezier z taste-skill) zamiast linear */
  transition: background 220ms cubic-bezier(0.32, 0.72, 0, 1),
              color 220ms cubic-bezier(0.32, 0.72, 0, 1),
              transform 220ms cubic-bezier(0.32, 0.72, 0, 1);
  text-align: left;
  line-height: 1;
  will-change: transform;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); } /* hotfix #24 — physical press feedback */
.btn--primary { background: var(--terracotta); color: var(--paper); }
.btn--primary:hover { background: var(--brick-deep); }
.btn--outline { border-color: currentColor; }
.btn--outline:hover { background: var(--paper); color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--brick-deep); }

.btn .icon { width: 18px; height: 18px; flex-shrink: 0; }

/* Arrow link (inline) */
.alink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-tight);
  font-weight: 500;
  font-size: 14px;
  color: var(--terracotta);
  transition: gap 160ms ease;
}
.alink:hover { gap: 12px; }
.alink .icon { width: 14px; height: 14px; }

/* ---------- Section frame ---------- */
.section {
  padding: 56px 0;
}
@media (min-width: 768px)  { .section { padding: 80px 0; } }
@media (min-width: 1024px) { .section { padding: 96px 0; } }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: 48px;
}
/* Title + filters w jednej linii dopiero od 1280px (gdzie filters mają miejsce na nowrap) */
@media (min-width: 1280px) {
  .section-head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
  }
  .section-head__main { max-width: 70%; }
}
.section-head h2 { margin-top: 8px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--paper);
  transition: background 200ms ease, color 200ms ease, padding 200ms ease, border-color 200ms ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: var(--paper);
  color: var(--ink);
  padding-top: 14px;
  padding-bottom: 14px;
  border-bottom-color: rgba(14, 14, 14, 0.08);
}
.site-header.is-inverted { color: var(--ink); }
.site-header.is-inverted.is-scrolled { color: var(--ink); }

.brandmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-tight);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.035em;
  color: inherit;
  white-space: nowrap;
  flex-shrink: 0;
}
.brandmark__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--terracotta);
}

.nav-list {
  display: none;
  align-items: center;
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 768px) { .nav-list { display: flex; } }
.nav-list a {
  font-family: var(--ff-tight);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.005em;
  color: inherit;
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms ease;
}
.nav-list a:hover::after,
.nav-list a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
}
@media (min-width: 768px) { .nav-toggle { display: none; } }
.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
  position: relative;
}
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
}
.nav-toggle__bar::before { top: -6px; }
.nav-toggle__bar::after  { top: 6px; }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--paper);
  color: var(--ink);
  z-index: 49;
  display: flex;
  flex-direction: column;
  padding: 96px var(--gutter) 48px;
  transform: translateY(-100%);
  transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mobile-menu a {
  font-family: var(--ff-tight);
  font-weight: 500;
  font-size: 32px;
  letter-spacing: -0.03em;
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid rgba(14, 14, 14, 0.1);
}

/* ========================================================
   A·01 — HERO
   ======================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  max-height: 1000px;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
  display: flex;
  align-items: center;
}
.hero__media,
.hero__media video,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 32% center; /* przesunięcie w lewo żeby zasłony zostały widoczne na laptopach */
}
@media (min-width: 1440px) {
  .hero__media video,
  .hero__media img { object-position: center; }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.10) 30%, rgba(0,0,0,0.55) 100%),
    linear-gradient(60deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.10) 45%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 96px var(--gutter) 96px;
}
@media (min-width: 768px)  { .hero__inner { padding: 112px var(--gutter) 112px; } }

.hero h1 {
  font-size: clamp(40px, 7.5vw, 124px);
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin-top: 16px;
  max-width: 16ch;
  overflow-wrap: break-word;
  word-break: keep-all;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero__meta {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 20px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  color: rgba(244, 241, 236, 0.7);
}
.hero__meta .mono { font-size: 10.5px; letter-spacing: 0.12em; }

.scroll-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  animation: scrollNudge 2.4s ease-in-out infinite;
}
@keyframes scrollNudge {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

/* ========================================================
   A·02 — PROCESS
   ======================================================== */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 768px) {
  .process-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}
@media (min-width: 1024px) {
  .process-grid { gap: 56px; }
}
.process-step { display: flex; flex-direction: column; gap: 20px; }
.process-step__num { color: var(--terracotta); font-size: 13px; letter-spacing: 0.1em; }
.process-step__rule { height: 1px; background: var(--ink); }
.process-step__icon { width: 36px; height: 36px; color: var(--ink); }
.process-step h3 { font-size: clamp(28px, 3vw, 40px); }
.process-step p { font-size: 16px; line-height: 1.6; max-width: 36ch; color: var(--ink); }

/* ========================================================
   A·03 — PORTFOLIO GRID
   ======================================================== */
.portfolio__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%; /* w column-stack section-head bierze pełną szerokość — filtry mają miejsce na jedną linię */
  font-family: var(--ff-tight);
  font-weight: 500;
  font-size: 13px;
}
/* Na ekranach ≥720px filtry mieszczą się w jednej linii (4 buttony × ~95px + 3 gaps = ~410px) */
@media (min-width: 720px) {
  .portfolio__filters { flex-wrap: nowrap; white-space: nowrap; }
}
/* Na 1280+ (row layout section-head) filtry kurczą się do content width, NIE 100% */
@media (min-width: 1280px) {
  .portfolio__filters { width: auto; }
}
.filter-btn {
  padding: 8px 14px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  line-height: 1;
  transition: background 160ms ease, color 160ms ease;
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  white-space: nowrap;
}
.filter-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.filter-btn:hover:not([aria-pressed="true"]) { background: var(--bone); }
.filter-btn--muted { color: var(--ink-muted); }

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px)  { .portfolio-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .portfolio-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1280px) { .portfolio-grid { grid-template-columns: repeat(4, 1fr); } }

.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--ink);
  transition: opacity 200ms ease, transform 200ms ease;
}
.card.is-hidden { display: none; }
.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bone);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.card:hover .card__media img { transform: scale(1.04); }
.card__tag {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 8px;
  background: rgba(244, 241, 236, 0.95);
  color: var(--terracotta);
  font-family: var(--ff-mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.card__credit {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 3px 7px;
  background: rgba(14, 14, 14, 0.55);
  backdrop-filter: blur(4px);
  color: rgba(244, 241, 236, 0.85);
  font-family: var(--ff-mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.card__title {
  font-family: var(--ff-tight);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-top: 4px;
}
.card__meta {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
}
.card__cta {
  color: var(--terracotta);
  font-family: var(--ff-tight);
  font-weight: 500;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card__cta .icon { width: 11px; height: 11px; }

.portfolio__footer {
  margin-top: 32px;
  padding-top: 14px;
  border-top: 1px solid rgba(14, 14, 14, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
@media (min-width: 768px) {
  .portfolio__footer { flex-direction: row; justify-content: space-between; }
}

/* ========================================================
   A·05 — VALUES (dark Brick Deep)
   ======================================================== */
.values {
  background: var(--brick-deep);
  color: var(--paper);
}
.values .eyebrow { color: var(--terracotta); }
.values h2 {
  font-size: clamp(36px, 5vw, 72px);
  margin-top: 16px;
  max-width: 20ch;
}
.values__intro {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.6;
  color: rgba(244, 241, 236, 0.82);
  max-width: 70ch;
  margin-top: 24px;
}
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 56px;
}
@media (min-width: 640px)  { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .values-grid { grid-template-columns: repeat(4, 1fr); } }
.value {
  border-top: 1px solid rgba(244, 241, 236, 0.22);
  padding-top: 18px;
}
.value__n {
  font-family: var(--ff-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--terracotta);
}
.value__t {
  font-family: var(--ff-tight);
  font-weight: 600;
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.025em;
  margin-top: 8px;
}
.value__b {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(244, 241, 236, 0.65);
  margin-top: 10px;
}

/* ========================================================
   A·05a — ABOUT MICHAŁ
   ======================================================== */
.about {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 900px)  { .about { grid-template-columns: 5fr 7fr; align-items: start; } }
.about__portrait { background: var(--bone); position: relative; aspect-ratio: 4 / 5; max-height: 70vh; overflow: hidden; }
@media (min-width: 640px)  { .about__portrait { aspect-ratio: 16 / 10; max-height: 60vh; } }
@media (min-width: 900px)  {
  .about__portrait {
    aspect-ratio: 4 / 5; /* zgodne z natural 1493×2000 portretu — bez rozciągania */
    max-height: 88vh;    /* nie więcej niż viewport */
    min-height: auto;
    height: auto;
    position: sticky;
    top: 80px;           /* offset pod header żeby nie ucinało */
    align-self: start;
  }
}
@media (min-width: 1440px) {
  .about__portrait { aspect-ratio: auto; height: 100vh; max-height: none; top: 0; }
}
.about__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%; /* twarz lekko nad środkiem */
  filter: grayscale(1);
}
.about__text {
  padding: 48px var(--gutter) 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 900px)  { .about__text { padding: 80px 56px; justify-content: flex-start; } }
@media (min-width: 1280px) { .about__text { padding: 112px 88px; } }
.about__text h2 {
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin-top: 14px;
}
.about__subhead {
  font-family: var(--ff-sans);
  font-weight: 500;
  font-size: clamp(18px, 1.4vw, 20px);
  color: var(--stone);
  line-height: 1.35;
  margin: 18px 0 22px;
}
.about__paragraphs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  max-width: 60ch;
}
.timeline { margin-top: 28px; max-width: 60ch; }
.timeline__head { color: var(--terracotta); }
.timeline__list {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.timeline__item {
  display: grid;
  grid-template-columns: 2px 1fr;
  gap: 14px;
}
.timeline__rule { background: var(--stone); align-self: stretch; }
.timeline__meta {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 4px;
}
.timeline__meta strong { color: var(--ink); font-weight: 500; }
.timeline__desc { font-size: 13px; line-height: 1.5; color: var(--ink); }
.linkedin-link {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-tight);
  font-weight: 500;
  font-size: 15px;
  color: var(--terracotta);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  align-self: flex-start;
}

/* ========================================================
   A·06 — CONTACT
   ======================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: 1.2fr 1fr; gap: 72px; }
}
.contact__intro {
  font-size: 15px;
  line-height: 1.55;
  max-width: 50ch;
  color: var(--ink-soft);
  margin: 16px 0 32px;
}

/* Form */
.form { display: flex; flex-direction: column; gap: 20px; max-width: 480px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.field__label .req { color: var(--terracotta); margin-left: 4px; }
.field input,
.field textarea {
  appearance: none;
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  padding: 8px 0;
  font-family: var(--ff-tight);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: -0.005em;
  color: var(--ink);
  border-radius: 0;
}
/* Placeholder — secondary visual hierarchy (Hotfix #34b)
   Mniejszy + mocniej muted + bez italic → nie konkuruje z label/value */
.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-muted);
  opacity: 0.55;                /* dodatkowe muting */
  font-family: var(--ff-tight);
  font-style: normal;            /* usunięto italic — cleaner */
  font-weight: 400;
  font-size: 13px;               /* vs 16px value — secondary */
  letter-spacing: 0.005em;
}
/* Placeholder cofa się gdy user skupia uwagę na polu — classy detail */
.field input:focus::placeholder,
.field textarea:focus::placeholder {
  opacity: 0.35;
  transition: opacity 0.25s ease;
}
.field input:focus,
.field textarea:focus {
  border-bottom-color: var(--terracotta);
  outline: none;
}
.field textarea { min-height: 80px; resize: vertical; line-height: 1.5; }
.field.is-invalid input,
.field.is-invalid textarea { border-bottom-color: var(--terracotta); }
.field__error {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
  min-height: 14px;
}
.form__honey { position: absolute; left: -9999px; top: 0; visibility: hidden; }
.form__status {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  min-height: 16px;
}
.form__status[data-state="success"] { color: var(--terracotta); }

/* Contact aside */
.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-rows {
  border-top: 1px solid var(--ink);
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-row {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(14, 14, 14, 0.08);
  margin-inline: -10px;
  padding-inline: 10px;
  border-radius: 4px;
  transition: background-color 0.45s cubic-bezier(0.32, 0.72, 0, 1);
}
.contact-row:hover {
  background-color: rgba(14, 14, 14, 0.018);
}
.contact-row:last-child { border-bottom: none; padding-bottom: 0; }
.contact-row .icon { width: 22px; height: 22px; color: var(--ink); }
.contact-row__label {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: block;
}
.contact-row__value {
  font-family: var(--ff-tight);
  font-weight: 500;
  font-size: 18px; /* 16→18 premium uplift */
  letter-spacing: -0.015em;
  margin-top: 4px;
  color: var(--ink);
  display: block;
}
a.contact-row__value:hover { color: var(--terracotta); }
/* ============================================================
   Contact map — Double-Bezel premium setup (Hotfix #30)
   Outer shell (paper padding) + inner core (warm-desat map)
   + 3-layer gradient overlay maskujący Google UI
   ============================================================ */
.contact__map {
  position: relative;
  aspect-ratio: 3 / 2; /* cinematic — premium (desktop) */
  background: var(--paper);
  padding: 8px; /* outer shell — Double-Bezel */
  border-radius: 24px; /* squircle */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),         /* top edge highlight */
    0 1px 0 rgba(14, 14, 14, 0.04),                  /* hairline */
    0 24px 48px -16px rgba(14, 14, 14, 0.12);        /* tinted ambient shadow */
  overflow: hidden;
  isolation: isolate; /* nowy stacking context dla ::before/::after */
}

/* Inner core — hairline + subtle inset highlight */
.contact__map::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 16px; /* outer 24px - padding 8px */
  box-shadow:
    inset 0 0 0 1px rgba(14, 14, 14, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  pointer-events: none;
  z-index: 3;
}

/* Hotfix #32: usunięto overlay ::after — Google UI (przycisk "Otwórz w Mapach",
   logo, attribution, zoom controller, thumbnail) zostają widoczne, ale w warm-tinted
   palecie po desaturacji wyglądają jak część mapy. Decyzja: nie ukrywamy elementów
   których nie da się wyłączyć w iframe Google'a — uczciwiej wizualnie. */

/* ============================================================
   Contact map — Leaflet + CARTO + custom terracotta pin
   Port wzorca WOMEB (MapBlock.tsx) — Hotfix #33
   ============================================================ */

/* Canvas Leaflet — wewnątrz Double-Bezel shell */
.contact__map-canvas {
  position: absolute;
  inset: 8px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bone);
  z-index: 1;
}

/* Leaflet container — typografia + tło dopasowane do palety FF */
.contact__map .leaflet-container {
  background: var(--bone);
  font-family: var(--ff-sans);
  border-radius: 16px;
}

/* Warm grade na tiles CARTO — port WOMEB filtr (cream warm, nie generyczny CARTO) */
.contact__map .leaflet-tile {
  filter: sepia(0.4) saturate(0.72) brightness(0.96) contrast(0.96) hue-rotate(-8deg);
}

/* Attribution — minimalne, paper background pill */
.contact__map .leaflet-control-attribution {
  background: rgba(253, 251, 247, 0.85);
  color: var(--ink-muted);
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.02em;
  padding: 2px 8px;
  border-radius: 0 0 16px 0;
}
.contact__map .leaflet-control-attribution a {
  color: var(--ink);
  text-decoration: none;
}
.contact__map .leaflet-control-attribution a:hover {
  color: var(--terracotta);
}

/* Zoom controls +/− — premium paper/ink, hover terracotta */
.contact__map .leaflet-control-zoom {
  border: 0;
  margin: 14px;
  box-shadow: 0 2px 12px rgba(14, 14, 14, 0.08);
  border-radius: 8px;
  overflow: hidden;
}
.contact__map .leaflet-control-zoom a {
  background: var(--paper);
  color: var(--ink);
  border-color: rgba(14, 14, 14, 0.08);
  font-family: var(--ff-mono);
  font-weight: 400;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.contact__map .leaflet-control-zoom a:hover {
  background: var(--bone);
  color: var(--terracotta);
}

/* Custom marker (terracotta teardrop SVG inline + pulse SMIL animation) */
.ff-pin {
  background: transparent;
  border: 0;
  cursor: pointer;
}
/* Hover scale + drop-shadow — premium tactile feel */
.ff-pin .ff-pin__svg {
  transition:
    transform 0.35s cubic-bezier(0.32, 0.72, 0, 1),
    filter 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  transform-origin: 50% 100%; /* anchor = base pinezki (crosshair tip) */
  filter: drop-shadow(0 2px 4px rgba(14, 14, 14, 0.18));
}
.ff-pin:hover .ff-pin__svg {
  transform: scale(1.12);
  filter: drop-shadow(0 6px 14px rgba(184, 92, 56, 0.35)); /* terracotta-tinted shadow */
}

/* Tooltip pinezki — TRUE GLASSMORPHISM (soft-skill: backdrop-blur + inner edge) */
.ff-pin-tooltip.leaflet-tooltip {
  background: rgba(253, 251, 247, 0.72);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  color: var(--ink);
  border: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),         /* top edge highlight */
    inset 0 0 0 1px rgba(14, 14, 14, 0.05),          /* hairline inner */
    0 6px 18px rgba(14, 14, 14, 0.12);               /* tinted ambient */
  border-radius: 6px;
  padding: 5px 11px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ff-pin-tooltip.leaflet-tooltip::before { display: none; } /* hide arrow */

/* Loading skeleton — paper background z shimmer (taste-skill: skeleton matching shape) */
.contact__map-skeleton {
  position: absolute;
  inset: 0;
  z-index: 500; /* nad tiles, pod controls */
  background: var(--bone);
  overflow: hidden;
  border-radius: 16px;
  transition: opacity 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  pointer-events: none;
}
.contact__map-skeleton::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(253, 251, 247, 0.6) 45%,
    rgba(253, 251, 247, 0.95) 50%,
    rgba(253, 251, 247, 0.6) 55%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: ff-map-shimmer 1.8s ease-in-out infinite;
}
.contact__map-skeleton.is-hidden { opacity: 0; }
@keyframes ff-map-shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* CTA "Wyznacz trasę" — prawy górny róg, paper pill, hover terracotta */
.contact__map-dir {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 14px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 4px 12px rgba(14, 14, 14, 0.12);
  text-decoration: none;
  transition:
    background-color 0.3s cubic-bezier(0.32, 0.72, 0, 1),
    color 0.3s ease;
}
.contact__map-dir:hover {
  background: var(--terracotta);
  color: var(--paper);
}

/* Arrow w circular wrapper — Button-in-Button magnetic hover (soft-skill 4B + 5B) */
.contact__map-dir__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(14, 14, 14, 0.06);
  color: var(--ink);
  transition:
    transform 0.4s cubic-bezier(0.32, 0.72, 0, 1),
    background-color 0.3s cubic-bezier(0.32, 0.72, 0, 1),
    color 0.3s ease;
}
.contact__map-dir__arrow svg {
  width: 12px;
  height: 12px;
}
.contact__map-dir:hover .contact__map-dir__arrow {
  background-color: var(--paper);
  color: var(--terracotta);
  transform: translate(2px, 0) scale(1.05);
}
.contact__map-dir:active .contact__map-dir__arrow {
  transform: translate(1px, 0) scale(0.98);
}

/* Współrzędne mono w lewym dolnym — premium architectural detail + live update */
.contact__map-coord {
  position: absolute;
  bottom: 18px;
  left: 22px;
  z-index: 1000;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: rgba(253, 251, 247, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: 4px;
  pointer-events: none;
  user-select: none;
  font-variant-numeric: tabular-nums; /* stałe szerokości cyfr — no shift przy update */
  transition: color 0.2s ease;
}

/* Mobile: portretowy aspect-ratio dla mniejszych ekranów (z Hotfix #30 — zachowane) */
@media (max-width: 768px) {
  .contact__map { aspect-ratio: 4 / 5; }
  .contact__map-dir { top: 14px; right: 14px; font-size: 9px; padding: 6px 6px 6px 12px; gap: 8px; }
  .contact__map-dir__arrow { width: 22px; height: 22px; }
  .contact__map-coord { bottom: 14px; left: 14px; font-size: 9px; }
}
.contact-row__hint {
  display: block;
  margin-top: 4px;
  font-family: var(--ff-sans);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-soft);
  letter-spacing: 0;
}

/* ========================================================
   A·07 — FOOTER
   ======================================================== */
.footer {
  background: var(--paper);
  color: var(--ink);
  padding: 64px 0 32px;
}
@media (min-width: 1024px) { .footer { padding: 96px 0 48px; } }
.footer__claim {
  font-size: clamp(40px, 7vw, 112px);
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 20px 0 56px;
  max-width: 16ch;
  overflow-wrap: break-word;
  word-break: keep-all;
}
.footer__nav {
  padding-top: 36px;
  border-top: 1px solid var(--ink);
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: flex-start;
}
@media (min-width: 640px)  { .footer__nav { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer__nav { grid-template-columns: 0.9fr 1.1fr 0.9fr 1.8fr; gap: 20px; } }
@media (min-width: 1440px) { .footer__nav { grid-template-columns: 1fr 1fr 1fr 1.4fr; gap: 24px; } }

.footer-col__title {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  display: block;
  margin-bottom: 14px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--ff-tight);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.footer-col a:hover { color: var(--terracotta); }

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
@media (min-width: 1024px) { .footer__brand { align-items: flex-end; text-align: right; } }
.footer__brand .monogram {
  font-family: var(--ff-tight);
  font-weight: 600;
  font-size: 48px;
  letter-spacing: -0.06em;
  line-height: 1;
  position: relative;
  padding-bottom: 8px;
}
.footer__brand .monogram::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--terracotta);
}
.footer__legal {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1.5;
  white-space: nowrap; /* każda linia danych firmy NIE łamie się — <br> w HTML dyktuje breaks */
}

/* ========================================================
   REALIZATION DETAIL PAGE (A·04)
   ======================================================== */
.real-page {
  padding-top: 96px;
}
.real-breadcrumb {
  padding: 24px 0 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.real-breadcrumb a:hover { color: var(--terracotta); }
.real-breadcrumb__current { color: var(--ink); }

.real-title {
  padding: 24px 0 20px;
  border-bottom: 1px solid var(--ink);
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 1024px) { .real-title { grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: flex-end; } }
.real-title h1 {
  font-size: clamp(40px, 6vw, 80px);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-top: 8px;
}
.real-title__sub {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.real-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 32px 0;
}
@media (min-width: 1024px) { .real-main { grid-template-columns: 1.86fr 1fr; gap: 32px; padding: 40px 0; } }

.real-hero {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bone);
}
.real-hero img { width: 100%; height: 100%; object-fit: cover; }

.real-gallery {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 640px) { .real-gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .real-gallery { grid-template-columns: repeat(6, 1fr); } }
.real-gallery__cell {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bone);
}
.real-gallery__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.real-gallery__cell:hover img { transform: scale(1.05); }

.real-facts {
  background: var(--bone);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: start;
}
.real-facts__head {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.real-facts dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.real-facts__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(14, 14, 14, 0.1);
  font-size: 13px;
}
.real-facts__row:last-child { border-bottom: none; padding-bottom: 0; }
.real-facts__row dt { color: var(--ink-muted); margin: 0; }
.real-facts__row dd {
  font-family: var(--ff-tight);
  font-weight: 500;
  margin: 0;
}

.real-text {
  padding: 24px 0 0;
  max-width: 70ch;
}
.real-text__head {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.real-text p { font-size: 15px; line-height: 1.6; margin-bottom: 12px; }
.real-text p:last-child { color: var(--ink-soft); font-size: 14px; }

.real-credits {
  margin-top: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--ink);
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 1024px) { .real-credits { grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: flex-start; } }
.real-credits__head { color: var(--terracotta); }
.real-credits__grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.real-credits__role {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.real-credits__name {
  font-family: var(--ff-tight);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
  margin-top: 4px;
}
.real-credits__name span { color: var(--ink-muted); font-weight: 400; }
.real-credits__link {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--terracotta);
  margin-top: 4px;
  display: inline-block;
}
.real-credits__note {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-top: 16px;
  line-height: 1.5;
  text-transform: uppercase;
}
.real-credits__cta {
  display: flex;
  justify-content: flex-start;
}
@media (min-width: 1024px) { .real-credits__cta { justify-content: flex-end; align-items: flex-end; } }

/* ========================================================
   Reveal animation (subtle)
   ======================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 700ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ========================================================
   Utilities
   ======================================================== */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
.icon { display: inline-block; vertical-align: middle; }

/* ============================================================
   iOS safe-area-inset patch (notch/dynamic-island iPhone Pro+)
   Dodane post-CD, 2026-05-20 — kompatybilne ze wszystkim above.
   ============================================================ */
@supports (padding: max(0px)) {
  .site-header {
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
    padding-top: max(20px, env(safe-area-inset-top));
  }
  .site-header.is-scrolled {
    padding-top: max(14px, env(safe-area-inset-top));
  }
  .footer {
    padding-left: max(var(--gutter), env(safe-area-inset-left));
    padding-right: max(var(--gutter), env(safe-area-inset-right));
    padding-bottom: max(32px, env(safe-area-inset-bottom));
  }
  .hero {
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Min touch target 44×44 (Apple HIG) — buttons + links w nav */
@media (pointer: coarse) {
  .nav-list a,
  .nav-toggle,
  .filter-btn,
  .btn,
  .field input,
  .field textarea {
    min-height: 44px;
  }
}

/* Force MP4 preload off na mobile, jeśli JS guard nie zadziała */
@media (max-width: 768px) {
  .hero__media video { display: none; }
  .hero__media {
    background-image: url('/img/hero-poster.jpg');
    background-size: cover;
    background-position: center;
  }
}

/* ============================================================
   Footer additions — legal links + brand-by ASI.STUDIO
   ============================================================ */
.footer__legal-links {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: nowrap; /* 3 pozycje zawsze w jednej linii — Pol. Pryw · Pol. Cookies · Regulamin */
  gap: 8px;
  font-size: 11px; /* zmniejszone z 13 → 11 żeby 3 elementy się mieściły w wąskiej kolumnie */
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted, #6e6e6e);
  justify-content: inherit;
}
.footer__legal-links li {
  white-space: nowrap; /* każda pozycja zawsze w 1 linii — bez łamania w środku */
}
@media (min-width: 1280px) {
  .footer__legal-links { font-size: 12px; gap: 10px; } /* lekko większy font na desktop */
}
@media (min-width: 1440px) {
  .footer__legal-links { font-size: 13px; gap: 12px; } /* pełen font na pełnym desktop */
}
.footer__legal-links li:not(:last-child)::after {
  content: "·";
  margin-left: 12px;
  color: var(--stone);
}
.footer__legal-links a {
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.footer__legal-links a:hover,
.footer__legal-links a:focus-visible {
  border-bottom-color: var(--terracotta);
}

/* footer__bottom — usunięty (Opcja A: ASI.STUDIO w prawej kolumnie pod legal links) */

/* ============================================================
   Legal pages (Polityka prywatności / Regulamin)
   ============================================================ */
.legal-page {
  padding: 140px 0 80px;
  background: var(--paper);
  min-height: 100vh;
}
.legal-page__inner {
  max-width: 760px;
  margin: 0 auto;
}
.legal-page .breadcrumb {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted, #6e6e6e);
  margin-bottom: 24px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.legal-page .breadcrumb a {
  color: var(--terracotta);
}
.legal-page h1 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.legal-page .lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-muted, #6e6e6e);
  margin: 0 0 48px;
}
.legal-page h2 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.01em;
  margin: 48px 0 16px;
  padding-top: 24px;
  border-top: 1px solid rgba(14, 14, 14, 0.08);
}
.legal-page h2:first-of-type { border-top: 0; padding-top: 0; }
.legal-page h3 {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  font-size: 18px;
  margin: 24px 0 8px;
}
.legal-page p, .legal-page li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
}
.legal-page ul, .legal-page ol { margin: 0 0 16px; padding-left: 24px; }
.legal-page ul li, .legal-page ol li { margin-bottom: 6px; }
.legal-page strong { font-weight: 600; }
.legal-page a {
  color: var(--terracotta);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.legal-page a:hover, .legal-page a:focus-visible { border-bottom-color: var(--terracotta); }
.legal-page__updated {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(14, 14, 14, 0.08);
  font-size: 14px;
  color: var(--ink-muted, #6e6e6e);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

/* ============================================================
   Lightbox — fullscreen modal galerii realizacji
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(14, 14, 14, 0.92);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: lightboxFadeIn 0.2s ease;
}
.lightbox.is-open { display: flex; }
@keyframes lightboxFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.lightbox__figure {
  margin: 0;
  max-width: min(90vw, 1400px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lightbox__img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  display: block;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.lightbox__counter {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover,
.lightbox__close:focus-visible,
.lightbox__nav:focus-visible {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.35);
  outline: none;
}
.lightbox__close {
  top: 16px;
  right: 16px;
  font-size: 24px;
}
.lightbox__nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 16px; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
  .lightbox { padding: 12px; }
  .lightbox__close,
  .lightbox__nav { width: 40px; height: 40px; font-size: 22px; }
  .lightbox__close { top: 8px; right: 8px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .lightbox__img { max-height: 80vh; }
}

/* Gallery cells — show pointer + subtle hint */
.real-gallery__cell { cursor: zoom-in; }

/* ============================================================
   Footer ASI.STUDIO — wersja minimalistyczna w szarościach
   ============================================================ */
/* Footer credits — wewnątrz prawej kolumny pod legal links, ten sam styl mono jak © 2026 */
.footer__credits {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--ink-muted);
  margin: 24px 0 0;
  font-weight: 400;
  text-align: inherit; /* dziedziczy z .footer__brand (right na desktop) */
}
.footer__credits a {
  color: var(--ink-soft);
  font-weight: 500;
  border-bottom: none;
  transition: color 0.2s ease;
}
.footer__credits a:hover,
.footer__credits a:focus-visible {
  color: var(--ink);
  outline: none;
}

/* ============================================================
   Icons z icons-package (Phase 3A · Iconography)
   ============================================================ */
.ff-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  vertical-align: -4px;
  flex-shrink: 0;
  /* SVG ma stroke="currentColor" → dziedziczy z parent */
}

/* Social column w stopce — ikona + label inline (ZAWSZE jedna linia) */
.footer-col__social { list-style: none; padding: 0; margin: 0; }
.footer-col__social li { margin: 0 0 8px; }
.footer-col__social a {
  display: flex; /* flex zamiast inline-flex — block-level link, ale ikona+label inline */
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap; /* label nie zawija się */
}
.footer-col__social a:hover,
.footer-col__social a:focus-visible {
  color: var(--terracotta);
}
.footer-col__social a span {
  display: inline; /* override jeśli inny CSS ustawia block */
  line-height: 1;
}
.footer-col__social .ff-icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  flex-shrink: 0; /* ikona nie kurczy się */
}

/* ============================================================
   Premium button states — loading spinner + success check
   ============================================================ */
.btn.is-loading,
.btn.is-success {
  cursor: default;
  pointer-events: none;
}
.btn.is-success {
  background: #1f8a4a; /* zielony confirmation — wyróżnik od terracotta primary */
  color: var(--paper);
}
.icon--spin {
  width: 18px;
  height: 18px;
  animation: ff-spin 0.8s linear infinite;
}
@keyframes ff-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Floating-like focused label (subtelne premium feedback) */
.field {
  position: relative;
  transition: border-color 0.2s ease;
}
.field__label {
  transition: color 0.2s ease;
}
.field:focus-within .field__label {
  color: var(--terracotta);
}
.field:focus-within input,
.field:focus-within textarea {
  border-bottom-width: 2px;
  padding-bottom: 7px; /* kompensacja 1px ekstra border */
}

/* Contact-row align top (dla nowych wierszy z hintami) */
.contact-row {
  align-items: flex-start;
  padding-top: 4px;
  padding-bottom: 16px;
}
.contact-row .icon { margin-top: 4px; }

/* ============================================================
   A·05 · Values icons (Phase 3A iconography)
   ============================================================ */
.value {
  position: relative;
}
.value__icon {
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  color: var(--terracotta); /* SVG ma stroke="currentColor" */
  opacity: 0.9;
}
.value__icon img,
img.value__icon { filter: brightness(0) saturate(100%) invert(28%) sepia(74%) saturate(1234%) hue-rotate(346deg) brightness(94%) contrast(86%); }
/* Hover: subtelna terracotta linia od dołu (premium feedback) */
.value::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 1px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.value:hover::after { transform: scaleX(0.4); }

/* ============================================================
   A·07 · Footer premium upgrades
   ============================================================ */
.footer__head {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 48px;
}
@media (min-width: 768px) {
  .footer__head {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
  }
}
.footer__claim {
  /* mniejszy claim — z clamp(34,4.6vw,64) (z h2 default) na bardziej elegancki rozmiar */
  font-size: clamp(40px, 4.2vw, 72px) !important;
  letter-spacing: -0.04em;
  line-height: 1.02;
}
.footer__cta {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
  transition: gap 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}
.footer__cta:hover,
.footer__cta:focus-visible {
  color: var(--terracotta);
  border-bottom-color: var(--terracotta);
  gap: 14px;
  outline: none;
}
.footer__signature {
  margin-top: 16px;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  opacity: 0.6;
}

/* Footer-col linki — hover w terracotta z animowanym underlinem */
.footer-col a {
  position: relative;
  transition: color 0.2s ease;
}
.footer-col a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--terracotta);
  outline: none;
}
.footer-col a:hover::after,
.footer-col a:focus-visible::after {
  transform: scaleX(1);
}
/* Social ikony — wyłączamy underline (mają własny styl) */
.footer-col__social a::after { display: none; }

/* ============================================================
   A·02 Proces — premium upgrades (hotfix #10)
   ============================================================ */
.process-step {
  position: relative;
}
.process-step__num {
  font-size: 14px !important; /* z 11px → 14px (premium uplift) */
  letter-spacing: 0.12em;
  color: var(--terracotta);
}
img.process-step__icon {
  width: 32px;
  height: 32px;
  display: block;
  margin-top: 12px;
  margin-bottom: 16px;
  /* SVG ma stroke=currentColor — przez filter zmieniamy na ink */
  filter: brightness(0) saturate(100%);
  opacity: 0.85;
}
/* Hover effect: terracotta linia od dołu (spójność z .value) */
.process-step::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 1px;
  background: var(--terracotta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.process-step:hover::after { transform: scaleX(0.4); }

/* ============================================================
   A·03 Realizacje — premium upgrades (hotfix #10)
   ============================================================ */
.card {
  position: relative;
  overflow: hidden;
}
.card__media {
  position: relative;
  overflow: hidden;
}
.card__media img {
  transition: transform 0.5s ease;
}
.card:hover .card__media img {
  transform: scale(1.03);
}
.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--terracotta);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.card:hover .card__media::after {
  opacity: 0.06; /* 6% terracotta overlay — subtle premium feedback */
}
.card__credit {
  /* Atrybucja Kasi — większy kontrast */
  background: rgba(14, 14, 14, 0.75) !important;
  color: rgba(244, 241, 236, 0.95) !important;
  font-weight: 500 !important;
  letter-spacing: 0.06em !important;
  backdrop-filter: blur(4px);
}

/* CTA pod portfolio gridem */
.portfolio__cta {
  display: flex;
  justify-content: center;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(14, 14, 14, 0.08);
}
.portfolio__cta-link {
  font-size: 18px !important;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid var(--terracotta);
  transition: gap 0.2s ease, padding-bottom 0.2s ease;
}
.portfolio__cta-link:hover {
  gap: 18px;
  padding-bottom: 18px;
}

/* ============================================================
   A·03 Realizacje — section intro paragraph (hotfix #22)
   ============================================================ */
.section-intro {
  max-width: 640px;
  margin: 16px 0 0;
  font-family: var(--ff-body);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.55;
  color: var(--ink-muted);
  text-wrap: balance;
}

/* ============================================================
   A·05a Założyciel — pull quote + timeline numerated (hotfix #10)
   ============================================================ */
.about__pullquote {
  margin: 32px 0 40px;
  padding: 24px 0 24px 24px;
  border-left: 2px solid var(--terracotta);
  max-width: 720px;
}
.about__pullquote p {
  font-family: var(--ff-tight);
  font-weight: 500;
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 12px;
  text-wrap: balance;
}
.about__pullquote cite {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
}

/* Timeline — numerated 01-04 + pogrubienie firm */
.timeline__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.timeline__item {
  position: relative;
  padding-left: 0;
  display: grid;
  grid-template-columns: auto 1px 1fr;
  gap: 16px;
  align-items: start;
  padding-bottom: 16px;
}
.timeline__num {
  font-size: 11px;
  color: var(--terracotta);
  letter-spacing: 0.14em;
  padding-top: 2px;
  min-width: 22px;
}
.timeline__year {
  color: var(--ink-muted);
}
.timeline__brand {
  font-family: var(--ff-mono);
  font-weight: 600; /* z 500 → 600 (pogrubienie) */
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink);
  text-transform: uppercase;
}
.timeline__role {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  text-transform: uppercase;
}
.timeline__desc a {
  color: var(--terracotta);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
  display: block;
  margin-top: 0.25em;
  width: fit-content;
}
.timeline__desc a:hover {
  border-bottom-color: var(--terracotta);
}

/* LinkedIn link — z ikoną z paczki CD */
.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  color: var(--terracotta);
  font-family: var(--ff-tight);
  font-weight: 500;
  font-size: 15px;
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
  transition: gap 0.2s ease, border-color 0.2s ease;
}
.linkedin-link:hover {
  gap: 14px;
  border-bottom-color: var(--terracotta);
}
.linkedin-link .ff-icon {
  width: 18px;
  height: 18px;
}
