:root {
  --bg: #080c0e;
  --bg-2: #10171a;
  --bg-3: #182125;
  --paper: #e6eee8;
  --paper-dim: #a9b6b0;
  --fog: #6d8284;
  --ember: #e45a1c;
  --ember-hot: #ff7a32;
  --ink: #0b1012;
  --line: rgba(230, 238, 232, 0.12);
  --line-strong: rgba(230, 238, 232, 0.22);
  --serif: "Fraunces", "Palatino Linotype", Palatino, serif;
  --sans: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 2px;
  --header: 64px;
  --dock: 0px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 14px);
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--sans);
  font-optical-sizing: auto;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  text-rendering: optimizeLegibility;
  padding-bottom: var(--dock);
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--ember-hot);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--ember);
  color: var(--ink);
}

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

.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip:focus {
  position: fixed;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
  overflow: visible;
  top: 12px;
  left: 12px;
  z-index: 80;
  background: var(--ember);
  color: var(--ink);
  padding: 8px 12px;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 2;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  max-width: 100%;
  margin-inline: auto;
}

.wrap-wide {
  width: min(1360px, calc(100% - 24px));
  max-width: 100%;
  margin-inline: auto;
}

.kicker {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0 0 12px;
}

/* Header */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--header);
  display: flex;
  align-items: center;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}

.header.is-solid {
  background: rgba(8, 12, 14, 0.86);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.header-inner {
  width: min(1360px, calc(100% - 28px));
  max-width: 100%;
  min-width: 0;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--paper);
}

.brand:hover {
  color: var(--paper);
}

.brand svg {
  width: 28px;
  height: 28px;
  display: block;
}

.brand-name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.brand-name span {
  color: var(--paper-dim);
  font-weight: 400;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  text-decoration: none;
  font-size: 14px;
  color: var(--paper-dim);
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--paper);
}

.nav-cta {
  margin-left: 6px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  flex-shrink: 0;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(230, 238, 232, 0.45);
  background: rgba(8, 12, 14, 0.72);
  color: var(--paper);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-ember {
  background: var(--ember);
  color: var(--ink);
  border-color: var(--ember);
}

.btn-ember:hover,
.btn-ember:focus-visible {
  background: var(--ember-hot);
  color: var(--ink);
  border-color: var(--ember-hot);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--line-strong);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--paper);
  color: var(--paper);
  background: rgba(230, 238, 232, 0.06);
}

.btn[disabled] {
  opacity: 0.55;
  cursor: wait;
  transform: none;
}

/* Hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  isolation: isolate;
  min-width: 0;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.06);
  transform-origin: 50% 40%;
}

.hero.is-ready .hero-media img {
  animation: ken 22s ease-out forwards;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 12, 14, 0.18) 0%, rgba(8, 12, 14, 0.15) 38%, rgba(8, 12, 14, 0.72) 72%, var(--bg) 100%),
    linear-gradient(90deg, rgba(8, 12, 14, 0.45) 0%, transparent 42%);
}

.hero-copy {
  width: min(1180px, 100%);
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: calc(var(--header) + 24px) 16px 36px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 8.4vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
  max-width: min(12ch, 100%);
  overflow-wrap: anywhere;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: #f3f7f4;
}

.hero-lead {
  max-width: min(38em, 100%);
  width: 100%;
  color: var(--paper-dim);
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  margin: 0 0 26px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions .btn {
  max-width: 100%;
}

.spine {
  display: none;
}

.ticker {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  border-block: 1px solid var(--line);
  background: var(--bg);
}

.ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 46s linear infinite;
}

.ticker span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fog);
  padding: 12px 28px 12px 0;
  white-space: nowrap;
}

.ticker span::after {
  content: "·";
  margin-left: 28px;
  color: var(--ember);
}

/* Sections */

.section {
  padding: 72px 0;
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.section h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 4.4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0;
}

.lede {
  max-width: 42em;
  color: var(--paper-dim);
  margin: 0;
  font-size: 1.05rem;
}

.split {
  display: grid;
  gap: 28px;
  min-width: 0;
}

.figure {
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  min-width: 0;
  max-width: 100%;
}

.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fog);
  padding: 10px 0 0;
}

.caption b {
  color: var(--paper-dim);
  font-weight: 500;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
}

.status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ember);
  display: block;
  box-shadow: 0 0 0 0 rgba(228, 90, 28, 0.7);
  animation: pulse 2.2s ease-out infinite;
}

.prose p {
  color: var(--paper-dim);
  margin: 0 0 14px;
  max-width: 40em;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* Studio */

.studio-grid {
  display: grid;
  gap: 32px;
}

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.facts div {
  background: var(--bg);
  padding: 18px 16px;
}

.facts dt {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fog);
  margin: 0 0 8px;
}

.facts dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

/* Game stills */

.stills {
  display: grid;
  gap: 14px;
}

.still-wide img {
  aspect-ratio: 16 / 9;
}

.still-pair {
  display: grid;
  gap: 14px;
}

.still-pair img {
  aspect-ratio: 4 / 3;
}

/* Jobs / zlecenia */

.file-list {
  border-top: 1px solid var(--line);
}

.file {
  display: grid;
  gap: 8px;
  padding: 22px 0 22px 16px;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, padding-left 0.2s ease;
}

a.file:hover,
a.file:focus-visible {
  border-left-color: var(--ember);
  padding-left: 22px;
  color: inherit;
  background: linear-gradient(90deg, rgba(228, 90, 28, 0.07), transparent 55%);
}

.file h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 550;
  letter-spacing: -0.02em;
}

.file p {
  margin: 0;
  color: var(--paper-dim);
  max-width: 46em;
}

.file-code {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ember);
}

/* Contact */

.contact {
  background:
    linear-gradient(180deg, transparent, rgba(228, 90, 28, 0.05) 40%, transparent),
    var(--bg);
}

.contact-grid {
  display: grid;
  gap: 36px;
}

.contact-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 22px;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.contact-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-row:first-child {
  padding-top: 0;
}

.contact-row small {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fog);
  margin-bottom: 6px;
}

.contact-row a.plain {
  text-decoration: none;
  color: var(--paper);
  font-size: 1.05rem;
}

.contact-row a.plain:hover {
  color: var(--ember-hot);
}

.icon-btn {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--paper);
  border-radius: var(--radius);
}

.icon-btn:hover,
.icon-btn:focus-visible {
  border-color: var(--ember);
  color: var(--ember-hot);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.channels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

/* Form */

.form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fog);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  min-height: 46px;
  padding: 10px 12px;
  color: var(--paper);
  caret-color: var(--ember);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.45;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--paper-dim);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ember);
}

.field.is-bad input,
.field.is-bad select,
.field.is-bad textarea {
  border-color: #e24b4b;
}

.err {
  min-height: 1.1em;
  font-size: 13px;
  color: #ff8d86;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--paper-dim);
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--ember);
}

.form-status {
  display: none;
  padding: 14px 16px;
  border: 1px solid var(--line);
}

.form-status.is-ok {
  display: block;
  border-color: var(--ember);
  color: var(--paper);
}

.form-status.is-fail {
  display: block;
  border-color: #e24b4b;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.spin {
  width: 14px;
  height: 14px;
  border: 2px solid var(--ink);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* Footer */

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--fog);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  gap: 18px;
}

.footer a {
  color: var(--paper-dim);
}

.legal {
  font-size: 12px;
  line-height: 1.55;
  max-width: 62em;
}

/* Dock */

.dock {
  display: flex;
  gap: 8px;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 45;
}

.dock .btn {
  flex: 1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 86px;
  transform: translateX(-50%) translateY(10px);
  background: var(--paper);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  z-index: 60;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Reveals */

.reveal-clip img {
  transform: scale(1.06);
  filter: saturate(0.72) contrast(1.05);
  transition: transform 1.15s cubic-bezier(0.16, 0.84, 0.32, 1), filter 1.1s ease;
}

.reveal-clip.is-in img {
  transform: none;
  filter: none;
}

.reveal-shift {
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 0.84, 0.32, 1);
}

.reveal-shift.is-in {
  opacity: 1;
  transform: none;
}

.page-404,
.page-legal {
  padding: calc(var(--header) + 48px) 0 80px;
}

.page-404 h1,
.page-legal h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.page-legal h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin: 28px 0 8px;
}

.page-legal p,
.page-legal li {
  color: var(--paper-dim);
  max-width: 44em;
}

@keyframes ken {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(228, 90, 28, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(228, 90, 28, 0); }
  100% { box-shadow: 0 0 0 0 rgba(228, 90, 28, 0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (min-width: 760px) {
  .section {
    padding: 96px 0;
  }

  .split {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
  }

  .split.reverse {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .split.reverse .figure {
    order: 2;
  }

  .still-pair {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
  }

  .studio-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 56px;
    align-items: start;
  }

  .contact-grid {
    grid-template-columns: 0.92fr 1.08fr;
    gap: 48px;
    align-items: start;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .spine {
    display: block;
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    writing-mode: vertical-rl;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(230, 238, 232, 0.45);
  }

  .dock {
    display: none;
  }

  .toast {
    bottom: 28px;
  }

  :root {
    --dock: 0px;
  }
}

@media (max-width: 759px) {
  :root {
    --dock: 72px;
    --header: 58px;
  }

  html,
  body,
  main,
  .header,
  .header-inner,
  .hero,
  .hero-copy,
  .wrap,
  .dock {
    max-width: 100%;
  }

  .nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    background: rgba(8, 12, 14, 0.96);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 18px;
    gap: 4px;
  }

  .header.is-open .nav {
    display: flex;
  }

  .nav a,
  .nav .btn {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .nav-cta {
    margin: 8px 0 0;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .hero {
    min-height: calc(100svh - var(--dock));
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(1.85rem, 9.2vw, 2.55rem);
  }

  .hero h1 em {
    display: block;
  }

  .hero-lead {
    font-size: 0.94rem;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero-copy {
    overflow: hidden;
    padding: calc(var(--header) + 16px) 16px 20px;
  }

  .split,
  .studio-grid,
  .contact-grid,
  .still-pair,
  .facts,
  .figure,
  .figure img {
    min-width: 0;
    max-width: 100%;
  }

  .brand-name span {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .dock .btn-ghost {
    background: var(--bg-2);
  }

  .facts {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero-media img,
  .reveal-clip img,
  .reveal-shift {
    transform: none;
    filter: none;
    opacity: 1;
  }

  .status i {
    box-shadow: none;
  }
}
