/* =========================================================
   STUB STUDIO — style.css
   Paleta: grafit + mosiądz. Typografia: IBM Plex.
   ========================================================= */

:root {
  --ink:        #080c0e;
  --ink-2:      #0b1113;
  --panel:      #101a1d;
  --panel-2:    #0d1417;
  --line:       #1d282c;
  --line-brass: rgba(201, 163, 91, .22);
  --brass:      #c9a35b;
  --brass-hi:   #e4c88a;
  --text:       #e7e9e6;
  --muted:      #8fa09a;
  --danger:     #d98a6a;

  --f-display: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  --f-body:    "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --f-mono:    "IBM Plex Mono", "Courier New", monospace;

  --pad-x: clamp(1.25rem, 6vw, 7rem);
  --maxw: 1240px;

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(255,255,255,.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.016) 1px, transparent 1px);
  background-size: 56px 56px;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--brass); text-decoration: none; }
a:hover { color: var(--brass-hi); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1100;
  background: var(--brass);
  color: #12140f;
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .8rem 1.2rem;
}
.skip:focus { left: 0; color: #12140f; }

:focus-visible {
  outline: 2px solid var(--brass-hi);
  outline-offset: 3px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; }

/* --- typografia ------------------------------------------------ */

h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.05;
  margin: 0;
}

h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.22rem; letter-spacing: 0; line-height: 1.25; }

p { margin: 0 0 1.1em; color: var(--muted); }
p.lead { color: #c3ccc8; font-size: clamp(1.05rem, 1.5vw, 1.22rem); }

.eyebrow {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: .8rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--brass);
  flex: none;
}

/* --- nagłówek --------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem var(--pad-x);
  background: rgba(8, 12, 14, .88);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--line);
}

.site-header .brand img { height: 34px; width: auto; }

.site-nav { display: flex; gap: 2rem; }
.site-nav a {
  font-family: var(--f-mono);
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text);
  padding: .35rem 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--brass); border-bottom-color: var(--line-brass); }

.lang-header {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.lang-header button {
  background: none;
  border: 0;
  color: var(--text);
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  padding: .2rem .3rem;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.lang-header button:hover { color: var(--brass); }
.lang-header button[aria-pressed="true"] { color: var(--brass); border-bottom-color: var(--brass); }
.lang-header span { color: var(--line); }

/* --- sekcje ----------------------------------------------------- */

.section {
  padding: clamp(4.5rem, 9vw, 7.5rem) var(--pad-x);
  border-top: 1px solid var(--line);
}
.section--alt { background: var(--ink-2); }

.section-head { max-width: 760px; margin-bottom: 3rem; }
.section-head p { margin-bottom: 0; }

/* --- hero ------------------------------------------------------- */

.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: clamp(7rem, 14vh, 10rem) var(--pad-x) clamp(3.5rem, 7vw, 5rem);
  border-top: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  width: 100%;
}
.hero h1 { margin-bottom: 1.4rem; text-wrap: balance; }
.hero h1 em {
  font-style: normal;
  color: var(--brass);
}
.hero p { max-width: 46ch; }

/* rysunek sygnaturowy: odcinek dopasowujący */
.schematic { width: 100%; height: auto; }
.schematic .trace   { stroke: var(--brass); stroke-width: 3; fill: none; stroke-linecap: square; }
.schematic .trace-2 { stroke: var(--brass); stroke-width: 3; fill: none; opacity: .55; }
.schematic .hair    { stroke: var(--line); stroke-width: 1; fill: none; }
.schematic .pad     { fill: var(--ink); stroke: var(--brass); stroke-width: 2.5; }
.schematic .dim     { stroke: var(--muted); stroke-width: 1; fill: none; }
.schematic text {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .12em;
  fill: var(--muted);
  text-transform: uppercase;
}
.schematic text.hi { fill: var(--brass); }

/* --- o firmie --------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.about-copy p:last-child { margin-bottom: 0; }
.about-copy .callout {
  border-left: 2px solid var(--brass);
  padding: .2rem 0 .2rem 1.2rem;
  margin: 2rem 0 0;
  color: #c3ccc8;
}

.photo-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.photo {
  position: relative;
  border: 1px solid var(--line);
  background: var(--panel-2);
  overflow: hidden;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption {
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: .6rem .8rem;
  border-top: 1px solid var(--line);
  background: var(--panel-2);
}
.photo--tall img { aspect-ratio: 4 / 5; }
.photo--wide img { aspect-ratio: 16 / 10; }
.photo-gallery .photo--tall { grid-row: span 2; }
.photo-gallery .photo img { width: 100%; height: 100%; object-fit: cover; }

/* --- kompetencje ------------------------------------------------ */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.card {
  background: var(--panel);
  padding: 2rem 1.75rem 2.1rem;
  transition: background .25s ease, transform .25s ease;
}
.card:hover { background: #141f23; }
.card .tag {
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .22em;
  color: var(--brass);
  display: block;
  margin-bottom: 1.4rem;
}
.card h3 { margin-bottom: .9rem; }
.card p { font-size: .96rem; margin-bottom: 0; }

/* --- dlaczego --------------------------------------------------- */

.reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.4rem 3rem;
  margin-top: .5rem;
}
.reason { border-top: 1px solid var(--line-brass); padding-top: 1.2rem; }
.reason h3 { font-size: 1.06rem; margin-bottom: .55rem; }
.reason p { font-size: .95rem; margin-bottom: 0; }

/* --- kontakt ---------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.direct { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 2rem; }
.direct a {
  background: var(--panel);
  padding: 1.15rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--text);
  transition: background .2s ease;
}
.direct a:hover { background: #141f23; color: var(--text); }
.direct .label {
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
}
.direct .value { font-size: 1rem; }
.direct .arrow { color: var(--brass); font-family: var(--f-mono); }

.form {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2.4rem);
}
.field { margin-bottom: 1.35rem; }
.field label,
.choice legend {
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: .5rem;
  padding: 0;
}
.field input,
.field select {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1rem;
  padding: .8rem .9rem;
  border-radius: 0;
  transition: border-color .2s ease;
}
.field input:focus,
.field select:focus { border-color: var(--brass); outline: none; }
.field input::placeholder { color: #5d6d68; }

.choice { border: 0; padding: 0; margin: 0 0 1.35rem; }
.choice .options { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.choice label {
  background: var(--ink);
  padding: .8rem .6rem;
  text-align: center;
  cursor: pointer;
  font-family: var(--f-mono);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  transition: background .2s ease, color .2s ease;
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice input:checked + label { background: var(--brass); color: #12140f; }
.choice input:focus-visible + label { outline: 2px solid var(--brass-hi); outline-offset: -2px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .95rem 1.7rem;
  border: 1px solid var(--brass);
  background: transparent;
  color: var(--brass);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.btn:hover { background: var(--brass); color: #12140f; }
.btn--solid { background: var(--brass); color: #12140f; }
.btn--solid:hover { background: var(--brass-hi); border-color: var(--brass-hi); }
.btn--block { width: 100%; justify-content: center; }

.form-note { font-size: .84rem; color: var(--muted); margin: 1rem 0 0; }
.form-status {
  font-family: var(--f-mono);
  font-size: .8rem;
  letter-spacing: .06em;
  margin-top: 1rem;
  min-height: 1.2em;
}
.form-status[data-state="ok"]  { color: var(--brass-hi); }
.form-status[data-state="err"] { color: var(--danger); }

/* --- stopka ----------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: #050809;
  padding: clamp(2.8rem, 5vw, 4rem) var(--pad-x) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, .85fr));
  gap: 2.5rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid var(--line);
}
.footer-grid img { height: 30px; width: auto; margin-bottom: 1rem; }
.footer-grid p { font-size: .9rem; margin-bottom: 0; max-width: 34ch; }
.footer-col h4 {
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1rem;
  font-weight: 400;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-col a { color: var(--text); font-size: .92rem; }
.footer-col a:hover { color: var(--brass); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.6rem;
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}


.footer-bottom .replay {
  background: none; border: 0; color: var(--muted); font: inherit;
  cursor: pointer; text-transform: uppercase;
}
.footer-bottom .replay:hover { color: var(--brass); }

/* --- baner urodzinowy ------------------------------------------- */

.birthday {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(4, 6, 8, .93);
  backdrop-filter: blur(4px);
}
.birthday[hidden] { display: none; }

.birthday-card {
  position: relative;
  width: min(560px, 100%);
  padding: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 4vw, 2.75rem) 2.25rem;
  text-align: center;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255,255,255,.022) 0 2px,
      transparent 2px 4px
    ),
    linear-gradient(165deg, #1a1230 0%, #120e21 55%, #0b0a14 100%);
  border: 1px solid rgba(201, 163, 91, .5);
  box-shadow: 0 0 0 1px rgba(123, 92, 214, .28), 0 24px 60px rgba(0, 0, 0, .6);
}
.birthday-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(123, 92, 214, .3);
  pointer-events: none;
}
.birthday-card img { width: min(300px, 78%); margin: 0 auto 1.6rem; }
.birthday-card .stamp {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--brass-hi);
  margin: 0 0 .9rem;
}
.birthday-card h2 {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  color: var(--text);
  margin-bottom: .9rem;
}
.birthday-card p {
  font-size: .95rem;
  max-width: 40ch;
  margin: 0 auto 1.7rem;
  color: #b7b2cc;
}
.birthday-close {
  position: absolute;
  top: .6rem;
  right: .7rem;
  background: none;
  border: 0;
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 1.1rem;
  line-height: 1;
  padding: .5rem .6rem;
  cursor: pointer;
}
.birthday-close:hover { color: var(--brass-hi); }
.birthday-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,163,91,.7), transparent);
  margin: 0 auto 1.5rem;
  width: 70%;
}

/* --- pojawianie się przy scrollu -------------------------------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* --- responsywność ---------------------------------------------- */

@media (max-width: 900px) {
  .site-header { gap: .8rem; }
  .lang-header { order: 3; flex-basis: 100%; justify-content: center; font-size: .68rem; }
  .hero-grid,
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-figure { max-width: 520px; }
  .photo-gallery { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .photo-gallery .photo--tall { grid-row: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header {
    flex-direction: column;
    align-items: center;
    gap: .55rem;
    padding: .7rem 1.1rem .5rem;
  }
  .site-header .brand img { height: 26px; }
  .site-nav { gap: 1.15rem; flex-wrap: wrap; justify-content: center; }
  .site-nav a { font-size: .68rem; letter-spacing: .08em; }
  .hero { padding-top: 9.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .choice .options { grid-template-columns: 1fr; }
}
