/* ============================================================
   SiteVerse — layout.css
   Struktura sekcji i siatka strony.
   ============================================================ */

.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--maxw);
  width: 100%;
  margin-inline: auto;
  padding: clamp(84px, 10vh, 120px) var(--gutter) 28px;
  position: relative;
  z-index: 2;
}

.hero__globe {
  position: absolute;
  top: 50%;
  right: -12%;
  width: clamp(420px, 52vw, 860px);
  height: auto;
  transform: translateY(-56%);
  color: var(--ink);
  opacity: 0.16;
  z-index: 1;
  pointer-events: none;
}

.hero__meta {
  display: flex;
  gap: clamp(20px, 4vw, 56px);
  font-family: var(--font-mono);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.hero__meta--top { margin-bottom: clamp(20px, 3.2vh, 40px); }

.hero__title {
  /* Syne jest bardzo szeroki — rozmiar strojony pod „i zdobywają" */
  font-size: clamp(2.1rem, 5.6vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero__line { display: block; overflow: hidden; }
.hero__line-inner { display: block; }

@media (max-width: 720px) {
  .hero__title {
    white-space: normal;
    /* 8.1vw: „I ZDOBYWAJĄ" (Syne ≈ 1em/znak) musi zmieścić się w 335px */
    font-size: clamp(1.9rem, 8.1vw, 3.4rem);
    line-height: 1.02;
  }
}

.hero__line--serif {
  text-transform: none;
}

.hero__line--serif .hero__line-inner {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 420;
  letter-spacing: -0.015em;
  padding-right: 0.08em; /* kursywa ucina się na overflow:hidden bez zapasu */
}

.hero__dot { color: var(--muted); }

.hero__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-top: clamp(24px, 4vh, 48px);
}

.hero__sub {
  max-width: 46ch;
  color: var(--ink-2);
  font-size: var(--step-0);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Pasek kadrów przy dolnej krawędzi hero */
.hero__strip {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  padding-block: 14px;
  overflow: hidden;
}

.hero__strip-track {
  display: flex;
  gap: 14px;
  width: max-content;
}

.hero__strip img {
  height: clamp(56px, 8vw, 100px);
  width: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  filter: saturate(0.92);
}

/* ---------- Manifest ---------- */

.manifest {
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
}

.manifest__eyebrow { margin-bottom: clamp(28px, 4vw, 48px); }

.manifest__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-3);
  line-height: 1.14;
  letter-spacing: -0.015em;
  max-width: 26ch;
}

.manifest__text .w {
  opacity: 0.16;
  transition: opacity 0.3s linear;
}

/* ---------- Portfolio ---------- */

.work {
  padding-top: var(--section-y);
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}

.work__head { max-width: 62ch; }

.work__title {
  font-size: var(--step-4);
  text-transform: uppercase;
  margin-top: 22px;
}

.work__title em { text-transform: none; }

.work__lede {
  margin-top: 20px;
  color: var(--ink-2);
  max-width: 46ch;
}

.work__stack {
  margin-top: clamp(48px, 6vw, 96px);
}

.plate {
  position: sticky;
  top: 0;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(72px, 9vh, 110px) var(--gutter) clamp(28px, 4vh, 56px);
}

.plate__card {
  width: 100%;
  max-width: calc(var(--maxw) - 2 * var(--gutter));
  margin-inline: auto;
}

.work__foot {
  padding-block: clamp(40px, 6vw, 88px);
}

.work__foot-note {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.9;
}

/* ---------- Usługi ---------- */

.services {
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
}

.services__head { max-width: 64rem; }

.services__title {
  font-size: var(--step-3);
  text-transform: uppercase;
  margin-top: 22px;
  max-width: 20ch;
}

.services__title em { text-transform: none; }

.services__list {
  margin-top: clamp(44px, 6vw, 80px);
  border-top: 1px solid var(--line-strong);
}

/* ---------- Proces ---------- */

.process {
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}

.process__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 112px);
  align-items: start;
}

.process__sticky {
  position: sticky;
  top: clamp(96px, 14vh, 160px);
}

.process__title {
  font-size: var(--step-3);
  text-transform: uppercase;
  margin-top: 22px;
  max-width: 14ch;
}

.process__title em { text-transform: none; }

.process__note {
  margin-top: 20px;
  color: var(--ink-2);
  max-width: 34ch;
}

.process__steps {
  display: flex;
  flex-direction: column;
  counter-reset: step;
  border-left: 1px solid var(--line-strong);
}

/* ---------- Studio (dark) ---------- */

.studio {
  position: relative;
  padding-block: var(--section-y);
  background: var(--void);
  color: var(--paper-on-dark);
  overflow: hidden;
}

.studio__globe {
  position: absolute;
  bottom: -34%;
  left: -14%;
  width: clamp(420px, 46vw, 780px);
  height: auto;
  color: var(--paper-on-dark);
  opacity: 0.1;
  pointer-events: none;
}

.studio__head { position: relative; }

.studio__title {
  font-size: var(--step-4);
  text-transform: uppercase;
  margin-top: 22px;
}

.studio__title em { text-transform: none; }

.studio__points {
  position: relative;
  margin-top: clamp(48px, 6vw, 88px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
}

.studio__point {
  border-top: 1px solid var(--line-on-dark);
  padding-top: 22px;
}

.studio__point-num {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--muted-on-dark);
  display: block;
  margin-bottom: 16px;
}

.studio__point p {
  font-size: var(--step-1);
  line-height: 1.4;
  font-weight: 500;
  max-width: 30ch;
}

.studio__metrics {
  position: relative;
  margin-top: clamp(56px, 8vw, 112px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 6vw, 96px);
  border-top: 1px solid var(--line-on-dark);
  padding-top: clamp(28px, 4vw, 48px);
}

.studio__more {
  position: relative;
  margin-top: clamp(40px, 5vw, 72px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 36px;
}

.studio__more-link {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-on-dark);
}

.studio__more-link:hover { color: var(--paper-on-dark); }

/* Link „pełna oferta" pod listą usług */
.services__more {
  margin-top: clamp(32px, 4vw, 52px);
  display: flex;
}

/* ---------- Kontakt ---------- */

.contact {
  padding-block: var(--section-y);
  text-align: left;
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(48px, 6vw, 112px);
  align-items: start;
}

.contact__intro-sticky {
  position: sticky;
  top: clamp(96px, 14vh, 160px);
}

.contact__title {
  font-size: var(--step-3);
  text-transform: uppercase;
  margin-top: 22px;
  line-height: 1.02;
}

.contact__title em { text-transform: none; }

.contact__note {
  margin-top: clamp(24px, 3vw, 36px);
  color: var(--ink-2);
  max-width: 40ch;
}

.contact__alt {
  margin-top: clamp(32px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.contact__alt-label {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.contact__email {
  display: inline-block;
  position: relative;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--void);
  color: var(--paper-on-dark);
  padding: clamp(56px, 8vw, 112px) 0 32px;
}

.footer__top {
  display: flex;
  justify-content: center;
  padding-bottom: clamp(48px, 7vw, 96px);
}

.footer__logo {
  /* PNG logo jest jasny — na ciemnym tle bez filtrów */
  width: clamp(260px, 38vw, 560px);
  opacity: 0.95;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  justify-content: center;
  border-top: 1px solid var(--line-on-dark);
  padding-block: 26px 22px;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-on-dark);
}

.footer__nav a:hover { color: var(--paper-on-dark); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  justify-content: space-between;
  border-top: 1px solid var(--line-on-dark);
  padding-top: 26px;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-on-dark);
}

.footer__bottom a:hover { color: var(--paper-on-dark); }

/* ---------- Footer — newsletter (KROK 3) ---------- */

.footer__news {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: center;
  padding-bottom: clamp(48px, 7vw, 96px);
  border-bottom: 1px solid var(--line-on-dark);
}

.footer__news-title {
  font-size: var(--step-2);
  text-transform: uppercase;
  line-height: 1.06;
  margin-top: 16px;
  max-width: 18ch;
}

.footer__news-title em { text-transform: none; }

.footer__news-lede {
  margin-top: 16px;
  color: var(--muted-on-dark);
  max-width: 46ch;
}

.news { display: flex; flex-direction: column; gap: 18px; }

.news__label {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-on-dark);
  margin-bottom: 10px;
}

.news__control {
  display: flex;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line-on-dark);
  transition: border-color 0.3s var(--ease-out);
}

.news__control:focus-within { border-color: var(--paper-on-dark); }

/* Błąd: hairline przechodzi w przerywany — bez nowych kolorów (jak formularz) */
.news__field.is-error .news__control { border-bottom-style: dashed; }

.news__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--paper-on-dark);
  font-size: var(--step-0);
  padding: 12px 0;
}

.news__input::placeholder { color: var(--muted-on-dark); opacity: 0.75; }
.news__input:focus-visible { outline: none; }

.news__submit {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--paper-on-dark);
  padding: 12px 2px;
  white-space: nowrap;
  transition: opacity 0.2s var(--ease-out);
}

.news__submit:hover { opacity: 0.68; }
.news__submit .btn__arrow { transition: transform 0.3s var(--ease-out); }
.news__submit:hover .btn__arrow { transform: translateX(3px); }
.news__submit[disabled] { opacity: 0.55; cursor: default; }

.news__error {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--muted-on-dark);
  margin-top: 8px;
  min-height: 1.1em;
}

.news__field.is-error .news__error::before { content: "(!) "; }

.news__consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: var(--step--1);
  line-height: 1.5;
  color: var(--muted-on-dark);
  cursor: pointer;
}

.news__consent a {
  color: var(--paper-on-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.news__consent.is-error span { color: var(--paper-on-dark); }

.news__check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--paper-on-dark);
  cursor: pointer;
}

.news__hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.news__status {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  color: var(--paper-on-dark);
  padding: 10px 0;
}

.news__status[hidden] { display: none; }
.news__status.is-error { color: var(--muted-on-dark); }

/* ---------- Footer — rząd prawny (KROK 1/2) ---------- */

.footer__legal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line-on-dark);
  padding-block: 22px;
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  color: var(--muted-on-dark);
}

.footer__identity { letter-spacing: 0.02em; }

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer__legal a:hover { color: var(--paper-on-dark); }

/* ---------- Responsywność ---------- */

@media (max-width: 960px) {
  /* minmax(0,1fr) zamiast 1fr — goły 1fr ma floor min-content
     i szerokie słowa Syne rozpychają kolumnę poza viewport */
  .process__grid { grid-template-columns: minmax(0, 1fr); }
  .process__sticky { position: static; }
  .studio__points { grid-template-columns: minmax(0, 1fr); }
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .contact__intro-sticky { position: static; }
}

@media (max-width: 860px) {
  .footer__news { grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
}

@media (max-width: 720px) {
  .hero__globe {
    right: -42%;
    width: 130vw;
    opacity: 0.1;
  }
  .hero__meta--top span:last-child { display: none; }
  .services__title { font-size: clamp(1.7rem, 7.2vw, 2.6rem); }
  .plate {
    position: static;
    min-height: 0;
    padding-block: 20px 36px;
  }
}
