:root {
  --graphite: #242321; --graphite-soft: #302d2a; --graphite-card: #2e2b28;
  --paper: #e8ddc9; --paper-light: #f2eadb; --paper-deep: #d8c9ae; --paper-muted: #c9bda6;
  --rust: #a64f2b; --rust-dark: #6b2e2a; --rust-light: #e2a07a;
  --green: #315e52; --steel: #477a8c; --mustard: #b78545;
  --line-dark: #3d3934; --line-paper: #cdbfa5;
  --text-dark: #e8ddc9; --text-dark-soft: #c9bda6; --text-paper: #242321; --text-paper-soft: #3f3a35;
  --maxw: 1200px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--graphite); color: var(--text-dark); font-family: "IBM Plex Sans", sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.section { width: 100%; padding: 104px 72px; }
.section.dark { background: var(--graphite); }
.section.paper { background: var(--paper); color: var(--text-paper); }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; }
.h1, .h2, .h3 { font-family: "Fraunces", serif; font-weight: 400; text-wrap: balance; }
.h1 { font-size: clamp(44px, 6.2vw, 78px); line-height: .98; letter-spacing: -.025em; }
.h2 { font-size: clamp(34px, 4.5vw, 56px); line-height: 1.06; letter-spacing: -.018em; }
.lead { font-size: clamp(18px, 2vw, 22px); line-height: 1.58; text-wrap: pretty; }
.small-copy { font-size: 14px; line-height: 1.55; }
.eyebrow { display: inline-flex; align-items: center; width: fit-content; padding: 5px 12px; border: 1px solid currentColor; border-radius: 999px; color: var(--rust-dark); font-size: 12px; font-weight: 600; letter-spacing: .12em; line-height: 1.2; text-transform: uppercase; }
.dark .eyebrow { color: var(--rust-light); }
.kicker { color: var(--rust-dark); font-size: 12px; font-weight: 600; letter-spacing: .12em; line-height: 1.35; text-transform: uppercase; }
.dark .kicker { color: var(--rust-light); }
.btn, .btn-secondary { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 14px 24px; border-radius: 4px; font-size: 16px; font-weight: 600; text-decoration: none; transition: background-color .18s ease, color .18s ease, border-color .18s ease; }
.btn { background: #8c4224; border: 1px solid #8c4224; color: var(--paper-light); }
.btn:hover { background: var(--rust-dark); border-color: var(--rust-dark); }
.btn-secondary { border: 1px solid var(--paper-muted); color: var(--paper); }
.btn-secondary:hover { background: var(--paper); color: var(--graphite); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Shared navigation */
.nav { position: sticky; top: 0; z-index: 50; width: 100%; min-height: 83px; padding: 15px 24px; display: flex; align-items: center; justify-content: space-between; background: rgba(36,35,33,.92); border-bottom: 1px solid var(--line-dark); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-text { font-family: "Fraunces", serif; font-size: 19px; }
.nav-right { display: flex; align-items: center; gap: 26px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--paper-muted); font-size: 14px; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--rust-light); }
.nav-cta { padding: 11px 17px; border-radius: 4px; background: #8c4224; color: var(--paper-light); font-size: 14px; font-weight: 600; text-decoration: none; }
.nav-cta-short { display: none; }
.nav-hamburger { display: none; width: 44px; height: 44px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--line-dark); border-radius: 4px; background: transparent; }
.nav-hamburger span { width: 19px; height: 2px; background: var(--paper); }
.nav-mobile { display: none; }
.nav-mobile[hidden] { display: none; }
.nav-mobile.is-open { position: fixed; inset: 70px 0 auto; z-index: 49; display: flex; flex-direction: column; padding: 14px 20px 22px; background: rgba(36,35,33,.99); border-bottom: 1px solid var(--line-dark); }
.nav-mobile a { padding: 13px 8px; color: var(--paper-muted); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.05); }
.nav-mobile a[aria-current="page"] { color: var(--rust-light); }

/* Final artifact first */
.hero-report { position: relative; min-height: calc(100svh - 83px); overflow: hidden; display: flex; align-items: center; }
.hero-report::before { content: ""; position: absolute; inset: -4%; background: linear-gradient(90deg, rgba(36,35,33,.98) 0%, rgba(36,35,33,.92) 42%, rgba(36,35,33,.46) 74%, rgba(36,35,33,.72) 100%), image-set(url("screen-01-okladka.webp") type("image/webp"), url("screen-01-okladka.jpg") type("image/jpeg")) center / cover no-repeat; transform: scale(1.03); }
.hero-report::after { content: ""; position: absolute; inset: auto 0 0; height: 140px; background: linear-gradient(transparent, var(--graphite)); }
.hero-content { position: relative; z-index: 1; max-width: 780px; display: grid; gap: 28px; }
.hero-content .lead { max-width: 710px; color: var(--paper-muted); }
.hero-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; max-width: 780px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.hero-proof-item { min-height: 112px; padding: 18px; background: rgba(46,43,40,.9); }
.hero-proof-num { display: block; margin-bottom: 9px; color: var(--rust-light); font-size: 11px; font-weight: 600; letter-spacing: .12em; }
.hero-proof-text { color: var(--paper); font-size: 15px; line-height: 1.45; text-wrap: pretty; }

/* Four-step overview */
.process-overview { border-bottom: 1px solid var(--line-paper); }
.section-heading { display: grid; gap: 20px; max-width: 810px; margin-bottom: 56px; }
.section-heading .lead { color: var(--text-paper-soft); }
.overview-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; border-top: 1px solid var(--line-paper); border-left: 1px solid var(--line-paper); }
.overview-step { min-height: 300px; padding: 28px 24px 24px; display: flex; flex-direction: column; border-right: 1px solid var(--line-paper); border-bottom: 1px solid var(--line-paper); }
.overview-num { margin-bottom: 42px; color: var(--rust-dark); font-family: "Fraunces", serif; font-size: 28px; line-height: 1; }
.overview-step h3 { margin-bottom: 14px; font-family: "Fraunces", serif; font-size: 28px; font-weight: 400; line-height: 1.08; text-wrap: balance; }
.overview-step p { color: var(--text-paper-soft); font-size: 15px; line-height: 1.58; text-wrap: pretty; }
.overview-step a { width: fit-content; margin-top: auto; padding-top: 22px; color: var(--rust-dark); font-size: 13px; font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 5px; }

/* Four visible stages */
.field-process { padding-top: 118px; padding-bottom: 118px; }
.process-heading { display: grid; grid-template-columns: minmax(0, .92fr) minmax(360px, .72fr); gap: 72px; align-items: end; margin-bottom: 72px; }
.process-heading > div { display: grid; gap: 20px; }
.process-heading .lead { color: var(--paper-muted); }
.journey-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); margin-top: 32px; border: 1px solid var(--line-dark); background: var(--paper); color: var(--text-paper); scroll-margin-top: 110px; }
.journey-stage-reverse .journey-photo { order: 2; }
.journey-stage-reverse .journey-copy { order: 1; }
.journey-photo { position: relative; min-height: 580px; overflow: hidden; background: var(--graphite-soft); }
.journey-photo::after { content: ""; position: absolute; inset: 55% 0 0; pointer-events: none; background: linear-gradient(transparent, rgba(20,18,16,.66)); }
.journey-photo img { width: 100%; height: 100%; min-height: 580px; object-fit: cover; }
.journey-photo figcaption { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 20px; color: var(--paper-light); font-size: 11px; font-weight: 600; letter-spacing: .08em; line-height: 1.45; text-transform: uppercase; }
.journey-copy { position: relative; padding: clamp(38px, 5vw, 66px); display: flex; flex-direction: column; align-items: flex-start; }
.stage-number { position: absolute; top: 30px; right: 34px; color: rgba(107,46,42,.18); font-family: "Fraunces", serif; font-size: 82px; line-height: 1; }
.journey-copy h3 { max-width: 520px; margin-top: 13px; font-family: "Fraunces", serif; font-size: clamp(34px, 4vw, 50px); font-weight: 400; line-height: 1.04; letter-spacing: -.018em; text-wrap: balance; }
.journey-lead { margin-top: 20px; color: var(--text-paper-soft); font-size: 18px; line-height: 1.58; text-wrap: pretty; }
.stage-list { display: grid; gap: 11px; margin-top: 30px; list-style: none; }
.stage-list li { position: relative; padding-left: 22px; color: var(--text-paper-soft); font-size: 15px; line-height: 1.5; text-wrap: pretty; }
.stage-list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 9px; height: 1px; background: var(--rust); }
.stage-result { width: 100%; margin-top: auto; padding: 24px 0 0; border-top: 1px solid var(--line-paper); }
.stage-result span { display: block; margin-bottom: 8px; color: var(--rust-dark); font-size: 10px; font-weight: 600; letter-spacing: .12em; }
.stage-result strong { display: block; max-width: 520px; color: var(--text-paper); font-family: "Fraunces", serif; font-size: 20px; font-weight: 400; line-height: 1.35; text-wrap: pretty; }

/* Advanced automation examples */
.workshop-stage { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
.advanced-cards { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr)); gap: 1px; padding: 1px; background: var(--line-dark); border-top: 1px solid var(--line-dark); }
.advanced-cards-intro, .automation-card { background: var(--graphite-card); color: var(--paper); }
.advanced-cards-intro { padding: 30px; display: grid; align-content: center; gap: 10px; }
.advanced-cards-intro h4 { font-family: "Fraunces", serif; font-size: 27px; font-weight: 400; line-height: 1.1; text-wrap: balance; }
.advanced-cards-intro p { color: var(--paper-muted); font-size: 14px; line-height: 1.55; text-wrap: pretty; }
.automation-card { min-height: 300px; padding: 22px; display: flex; flex-direction: column; }
.automation-card img { width: 100%; height: 152px; margin-bottom: 18px; object-fit: contain; object-position: center; }
.automation-card span { margin-bottom: 8px; color: var(--rust-light); font-size: 10px; font-weight: 600; letter-spacing: .11em; }
.automation-card strong { font-size: 15px; line-height: 1.42; text-wrap: pretty; }

/* Final report and implementation choice */
.report-handoff { padding-top: 118px; padding-bottom: 118px; }
.handoff-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .78fr); gap: 72px; align-items: end; margin-bottom: 56px; }
.handoff-heading > div { display: grid; gap: 20px; }
.handoff-heading .lead { color: var(--text-paper-soft); }
.handoff-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 20px; align-items: stretch; }
.instruction-list { display: grid; gap: 10px; }
.instruction-item { display: grid; grid-template-columns: 42px 1fr; gap: 16px; padding: 22px; border: 1px solid var(--line-paper); background: rgba(255,255,255,.22); }
.instruction-item strong { display: block; margin-bottom: 5px; color: var(--text-paper); font-family: "Fraunces", serif; font-size: 22px; font-weight: 400; }
.instruction-item p { color: var(--text-paper-soft); font-size: 14px; line-height: 1.55; text-wrap: pretty; }
.instruction-check { padding-top: 3px; color: var(--rust-dark); font-family: "Fraunces", serif; font-size: 18px; }
.handoff-options { padding: 32px; display: grid; align-content: start; background: var(--graphite); color: var(--paper); }
.handoff-options > .kicker { margin-bottom: 12px; color: var(--rust-light); }
.handoff-option { padding: 22px 0; border-top: 1px solid var(--line-dark); }
.handoff-option:first-of-type { border-top: 0; }
.handoff-option strong { display: block; margin-bottom: 7px; font-family: "Fraunces", serif; font-size: 24px; font-weight: 400; }
.handoff-option p { color: var(--paper-muted); font-size: 14px; line-height: 1.55; text-wrap: pretty; }
.report-preview-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 68px; }
.report-preview { overflow: hidden; padding: 10px; border: 1px solid var(--line-paper); border-radius: 8px; background: var(--paper-light); }
.report-frame { width: 100%; display: block; border: 0; border-radius: 4px; background: var(--paper); }
.report-frame[src*="karta-ustalenia"] { aspect-ratio: 163 / 100; }
.report-frame[src*="tabela-decyzji"] { aspect-ratio: 168 / 100; }
.photo-caption { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 24px; color: var(--rust-dark); font-size: 11px; font-weight: 600; letter-spacing: .12em; line-height: 1.5; text-transform: uppercase; }
.photo-caption span:last-child { color: var(--text-paper-soft); text-align: right; }
.evidence-strip { margin-top: 68px; padding-top: 34px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .78fr); gap: 72px; border-top: 1px solid var(--line-paper); }
.evidence-strip > div { display: grid; gap: 12px; }
.evidence-strip h3 { font-family: "Fraunces", serif; font-size: clamp(26px, 3vw, 38px); font-weight: 400; line-height: 1.13; text-wrap: balance; }
.evidence-strip > p { color: var(--text-paper-soft); font-size: 16px; line-height: 1.65; text-wrap: pretty; }

.closing { position: relative; overflow: hidden; text-align: center; }
.closing::before { content: ""; position: absolute; inset: 0; opacity: .08; background: url("rekon-kanwa-warsztat-hero.jpg") center / cover no-repeat; }
.closing-inner { position: relative; max-width: 760px; margin: 0 auto; display: grid; justify-items: center; gap: 28px; }
.closing .lead { color: var(--paper-muted); }

/* Footer */
.footer { padding-top: 68px; padding-bottom: 72px; border-top: 1px solid var(--line-dark); }
.footer-inner { display: grid; gap: 36px; justify-items: center; text-align: center; }
.footer-brand { display: grid; justify-items: center; gap: 10px; }
.footer-brand-name { font-family: "Fraunces", serif; font-size: 20px; }
.footer-brand p { color: var(--paper-muted); }
.footer-contacts { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.footer-col { padding: 20px; display: grid; gap: 7px; background: var(--graphite); }
.footer-lbl { color: var(--rust-light); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.footer-val { color: var(--paper-muted); font-size: 14px; line-height: 1.55; }
.footer-legal { width: 100%; display: flex; justify-content: space-between; gap: 20px; align-items: center; color: #9e9589; font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.footer-priv { color: var(--paper-muted); text-decoration: none; }
.footer-priv:hover { color: var(--paper); }
.mobile-call-bar { display: none; }
.reveal { transition: opacity .6s ease, transform .6s ease; }
.reveal.is-hidden { opacity: 0; transform: translateY(18px); }

@media (max-width: 1100px) {
  .nav-links { display: none; } .nav-hamburger { display: flex; }
  .overview-steps { grid-template-columns: repeat(2, 1fr); }
  .process-heading, .handoff-heading, .evidence-strip { grid-template-columns: 1fr; gap: 34px; }
  .journey-stage, .workshop-stage { grid-template-columns: 1fr; }
  .journey-stage-reverse .journey-photo, .journey-stage-reverse .journey-copy { order: initial; }
  .journey-photo, .journey-photo img { min-height: 500px; }
  .advanced-cards { grid-template-columns: repeat(3, 1fr); }
  .advanced-cards-intro { grid-column: 1 / -1; }
}
@media (max-width: 780px) {
  .section { padding: 72px 24px; }
  .hero-report { min-height: auto; padding-top: 96px; padding-bottom: 92px; }
  .hero-report::before { background-position: 62% center; }
  .hero-content { max-width: 100%; }
  .hero-proof { grid-template-columns: 1fr; }
  .hero-proof-item { min-height: auto; }
  .section-heading { margin-bottom: 38px; }
  .overview-steps { grid-template-columns: 1fr; }
  .overview-step { min-height: auto; }
  .overview-num { margin-bottom: 22px; }
  .overview-step a { margin-top: 24px; }
  .field-process, .report-handoff { padding-top: 82px; padding-bottom: 82px; }
  .process-heading { margin-bottom: 44px; }
  .journey-photo, .journey-photo img { min-height: 390px; }
  .journey-copy { padding: 38px 26px; }
  .stage-number { top: 24px; right: 24px; font-size: 64px; }
  .stage-result { margin-top: 34px; }
  .advanced-cards { grid-template-columns: 1fr; }
  .automation-card { min-height: auto; display: grid; grid-template-columns: 108px 1fr; grid-template-rows: auto 1fr; column-gap: 18px; align-items: center; }
  .automation-card img { grid-row: 1 / 3; width: 108px; height: 108px; margin: 0; }
  .handoff-grid, .report-preview-stack { grid-template-columns: 1fr; }
  .report-preview-stack { margin-top: 48px; }
  .photo-caption { grid-column: 1; flex-direction: column; gap: 4px; }
  .photo-caption span:last-child { text-align: left; }
  .report-frame[src*="karta-ustalenia"], .report-frame[src*="tabela-decyzji"] { aspect-ratio: 3 / 6.4; }
  .evidence-strip { margin-top: 48px; }
  .footer-contacts { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
@media (max-width: 540px) {
  .nav { min-height: 70px; padding: 12px 16px; }
  .nav-cta-long { display: none; } .nav-cta-short { display: inline; } .nav-right { gap: 9px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .h1 { font-size: 43px; }
  .journey-photo, .journey-photo img { min-height: 320px; }
  .journey-photo figcaption { left: 18px; right: 18px; bottom: 15px; }
  .journey-copy h3 { font-size: 34px; }
  .automation-card { grid-template-columns: 88px 1fr; }
  .automation-card img { width: 88px; height: 88px; }
  .handoff-options { padding: 26px; }
  .mobile-call-bar { position: fixed; z-index: 48; left: 14px; right: 14px; bottom: 14px; min-height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 4px; background: #8c4224; color: var(--paper-light); font-weight: 600; text-decoration: none; box-shadow: 0 10px 32px rgba(0,0,0,.28); }
  body { padding-bottom: 70px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .btn-secondary, .reveal, .reveal.is-hidden { transition: none; opacity: 1; transform: none; } }
