@import url("https://fonts.googleapis.com/css2?family=Geist:wght@100..900&display=swap");

/* =========================================================
   KINSKY DESIGN / PREMIUM PORTFOLIO SYSTEM
   ========================================================= */

:root {
  --bg: #090909;
  --surface: #111111;
  --surface-2: #171717;
  --paper: #f2efe8;
  --text: #f2efe8;
  --muted: #99968e;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.28);
  --accent: #c10d19;
  --accent-light: #c10d19;
  --accent-soft: rgba(193, 13, 25, 0.12);
  --ink: #0a0a0a;

  --shell: min(1420px, calc(100% - 48px));
  --section-space: clamp(104px, 12vw, 184px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 260ms;
  --radius: 2px;
}

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

html {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  overscroll-behavior-x: none;
  scroll-behavior: smooth;
  scroll-snap-type: none !important;
}

body {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  margin: 0;
  overflow-x: clip;
  overscroll-behavior-x: none;
  touch-action: pan-y pinch-zoom;
  background:
    radial-gradient(circle at 90% 6%, rgba(193, 13, 25, 0.07), transparent 27%),
    var(--bg);
  color: var(--text);
  font-family: "Geist", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

main > *,
main > section {
  scroll-snap-align: none !important;
  scroll-snap-stop: normal !important;
}

.back-to-top {
  position: fixed;
  right: clamp(14px, 2vw, 28px);
  bottom: clamp(14px, 2vw, 28px);
  z-index: 2500;
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  gap: 22px;
  padding: 0 17px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(16px);
  transition:
    opacity 280ms ease,
    visibility 280ms ease,
    transform 380ms var(--ease),
    background-color 280ms ease,
    color 280ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--ink);
  color: var(--accent);
  transform: translateY(-3px);
}

.back-to-top span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.back-to-top strong {
  font-family: Arial, sans-serif;
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
  -webkit-text-stroke: 0.35px currentColor;
}

body.menu-open .back-to-top,
body.sport-lightbox-open .back-to-top {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 580px) {
  .back-to-top {
    width: 50px;
    min-height: 50px;
    justify-content: center;
    padding: 0;
  }

  .back-to-top span {
    display: none;
  }
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

.arrow-up-right {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  background-color: currentColor;
  vertical-align: -0.08em;
  -webkit-mask: url("assets/icons/arrow-up-right.svg") center / contain no-repeat;
  mask: url("assets/icons/arrow-up-right.svg") center / contain no-repeat;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

::selection {
  background: var(--accent);
  color: white;
}

.shell {
  width: var(--shell);
  max-width: 100%;
  margin-inline: auto;
}

main,
section,
header,
footer,
nav,
aside {
  min-width: 0;
}

main {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  html,
  body,
  main {
    overflow-x: hidden;
  }
}

.section {
  padding-block: var(--section-space);
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: 100;
  opacity: 0.028;
  pointer-events: none;
  background-image:
    repeating-radial-gradient(circle at 0 0, transparent 0, #fff 1px, transparent 2px);
  background-size: 7px 7px;
  mix-blend-mode: soft-light;
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 480px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(193, 13, 25, 0.085), transparent 66%);
  transform: translate3d(-50%, -50%, 0);
  pointer-events: none;
  will-change: transform;
}

.eyebrow,
.section-index,
.hero__meta,
.hero__footer,
.desktop-nav,
.header-contact,
.brand__word,
.project-card__info,
.service__number,
.service__tag,
.site-footer,
.page-intro__meta,
.case-hero__meta,
.case-back {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 1001;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(1490px, calc(100% - 30px));
  min-height: 68px;
  padding: 13px 17px;
  border: 0;
  background: transparent;
  transform: translateX(-50%);
}

.site-header::before {
  content: "";
  position: absolute;
  inset-block: 0;
  left: 50%;
  z-index: -1;
  width: 100dvw;
  max-width: 100dvw;
  background: rgba(9, 9, 9, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
  transition:
    background-color var(--fast) ease,
    border-color var(--fast) ease;
}

.site-header.is-scrolled {
  top: 0;
  background: transparent;
}

.site-header.is-scrolled::before {
  background: rgba(9, 9, 9, 0.97);
  border-bottom-color: var(--line);
}

.brand {
  display: block;
  justify-self: start;
  width: clamp(190px, 16vw, 255px);
  line-height: 0;
}

.brand__logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition:
    opacity var(--fast) ease,
    transform 340ms var(--ease),
    filter var(--fast) ease;
}

.brand:hover .brand__logo {
  opacity: 0.92;
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.desktop-nav a,
.header-contact {
  position: relative;
  color: #fff;
  transition: color var(--fast) ease;
}

.desktop-nav a::after,
.header-contact::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 340ms var(--ease);
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.header-contact:hover {
  color: #fff;
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after,
.header-contact:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-contact {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 14px;
}

.header-cv {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--ink);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition:
    background-color var(--fast) ease,
    border-color var(--fast) ease,
    transform 330ms var(--ease);
}

.header-cv:hover {
  border-color: var(--accent-light);
  background: var(--accent-light);
  transform: translateY(-2px);
}

.header-cv span {
  font-size: 15px;
  font-weight: 900;
  -webkit-text-stroke: 0.3px currentColor;
}

.menu-button {
  display: none;
  width: 43px;
  height: 43px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}

.menu-button span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
  transition: transform var(--fast) var(--ease);
}

.menu-button.is-open span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.menu-button.is-open span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  isolation: isolate;
  display: grid;
  align-content: space-between;
  padding: 112px 24px 32px;
  background: var(--accent);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-16px);
  transition:
    opacity 300ms ease,
    visibility 300ms ease,
    transform 450ms var(--ease);
}

.mobile-menu > :not(.mobile-menu__mark) {
  position: relative;
  z-index: 2;
}

.mobile-menu__mark {
  position: absolute;
  z-index: 1;
  display: block;
  width: clamp(170px, 54vw, 340px);
  aspect-ratio: 305.49 / 260.99;
  background: url("assets/branding/logo-kinsky-symbol.png") center / contain no-repeat;
  filter: brightness(0);
  opacity: 0.1;
  pointer-events: none;
}

.mobile-menu__mark--one {
  top: 10%;
  right: -18%;
  transform: rotate(-13deg);
}

.mobile-menu__mark--two {
  top: 43%;
  left: -24%;
  width: clamp(150px, 47vw, 280px);
  opacity: 0.08;
  transform: rotate(18deg);
}

.mobile-menu__mark--three {
  right: 10%;
  bottom: 9%;
  width: clamp(95px, 32vw, 180px);
  opacity: 0.075;
  transform: rotate(-28deg);
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-menu nav {
  display: grid;
}

.mobile-menu nav a {
  padding-block: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  font-size: clamp(32px, 9vw, 56px);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.mobile-menu__footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.22);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-menu__footer span {
  color: var(--ink);
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.12em;
}

.mobile-menu__bottom {
  display: grid;
  gap: 18px;
}

.mobile-menu__cv {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 18px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mobile-menu__cv span:last-child {
  font-family: Arial, sans-serif;
  font-size: 21px;
  -webkit-text-stroke: 0.35px currentColor;
}

.mobile-menu__contacts {
  display: grid;
  gap: 7px;
  font-size: clamp(16px, 4vw, 20px);
  font-weight: 780;
  letter-spacing: 0.025em;
  line-height: 1.12;
  text-transform: none;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100svh;
  grid-template-rows: auto 1fr auto;
  padding-top: 158px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 14% auto auto 4%;
  z-index: 0;
  width: min(36vw, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(193, 13, 25, 0.16), rgba(193, 13, 25, 0.03) 45%, transparent 72%);
  filter: blur(28px);
  pointer-events: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero__meta {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 0;
  color: var(--muted);
}

.hero__meta span:nth-child(2) {
  justify-self: center;
}

.hero__meta span:last-child {
  justify-self: end;
  color: var(--accent);
}

.hero__mobile-role {
  display: none;
}

.hero__mobile-role span {
  display: block;
}

.hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(520px, 0.92fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding-block: clamp(54px, 7vw, 100px);
}

.hero__copy {
  max-width: 1000px;
}

.hero__copy .hero__section-index {
  margin-bottom: clamp(24px, 3vw, 40px);
}

.eyebrow {
  margin: 0 0 26px;
  color: var(--accent);
}

@media (max-width: 580px) {
  .hero__copy > .eyebrow {
    margin-bottom: 8px;
    font-size: 12px;
    letter-spacing: 0.15em;
    text-align: center;
  }
}

.hero__title {
  margin: 0;
  font-size: clamp(60px, 8.4vw, 136px);
  font-weight: 620;
  letter-spacing: -0.068em;
  line-height: 0.86;
}

.hero__title span {
  display: block;
  margin-left: clamp(0px, 7vw, 105px);
  color: var(--muted);
  font-weight: 430;
}

.hero__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 760px;
  margin: clamp(38px, 5vw, 74px) 0 0 clamp(0px, 8vw, 120px);
}

.hero__description {
  max-width: 560px;
  margin: 0;
  color: #cac7c0;
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.5;
}

.hero__actions {
  display: grid;
  grid-template-columns: minmax(190px, 0.72fr) minmax(300px, 1.28fr);
  gap: 9px;
  margin-top: 26px;
}

.hero__actions .button {
  min-width: 0;
  justify-content: flex-start;
  gap: 15px;
}

.button__icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.button__icon--fill {
  fill: currentColor;
  stroke: none;
}

.hero__contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
}

.hero__contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-block: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition:
    color var(--fast) ease,
    transform var(--fast) ease;
}

.hero__contact-links a:hover {
  color: var(--text);
  transform: translateY(-2px);
}

.hero__contact-links svg {
  width: 15px;
  height: 15px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.hero__contact-links .hero__contact-icon--fill {
  fill: currentColor;
  stroke: none;
}

.hero__contact-links .hero__contact-dot {
  fill: currentColor;
  stroke: none;
}

.button {
  display: inline-flex;
  min-width: 210px;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 0 19px;
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition:
    color var(--fast) ease,
    background-color var(--fast) ease,
    border-color var(--fast) ease,
    transform 330ms var(--ease);
}

.button:hover {
  transform: translateY(-3px);
}

.button::after {
  content: "";
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-left: auto;
  background-color: currentColor;
  -webkit-mask: url("assets/icons/arrow-up-right.svg") center / contain no-repeat;
  mask: url("assets/icons/arrow-up-right.svg") center / contain no-repeat;
  transition: transform 330ms var(--ease);
}

.button:hover::after {
  transform: translate(2px, -2px);
}

.button--accent {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.button--accent:hover {
  border-color: var(--accent-light);
  background: var(--accent-light);
}

.button--outline:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.hero-art {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 12px;
  align-self: center;
  width: 100%;
  min-height: 0;
  aspect-ratio: 78 / 100;
  transform-style: preserve-3d;
  transition: transform 650ms var(--ease);
}

.hero-art__frame {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--surface);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.38);
  transition:
    border-color var(--fast) ease,
    box-shadow 420ms ease,
    transform 520ms var(--ease);
}

.hero-art__frame--main {
  grid-column: 1 / -1;
}

.hero-art__frame--main img {
  transform: scale(1.08);
}

.hero-art__frame:hover,
.hero-art__frame:focus-visible {
  z-index: 6;
  border-color: rgba(193, 13, 25, 0.78);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.5);
  outline: none;
  transform: translateY(-4px);
}

.hero-art__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter 600ms ease;
}

.hero-art__frame:hover img,
.hero-art__frame:focus-visible img {
  transform: scale(1.035);
  filter: contrast(1.05);
}

.hero-art__frame--main:hover img,
.hero-art__frame--main:focus-visible img {
  transform: scale(1.12);
}

.hero__footer {
  position: fixed;
  top: var(--scroll-indicator-top, 96px);
  left: 50%;
  z-index: 1000;
  isolation: isolate;
  display: flex;
  width: min(1490px, calc(100% - 30px));
  min-height: 34px;
  align-items: center;
  gap: 18px;
  padding: 8px 17px;
  border: 0;
  background: transparent;
  color: var(--muted);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition:
    background-color var(--fast) ease,
    border-color var(--fast) ease;
}

.hero__footer::before {
  content: "";
  position: absolute;
  inset-block: 0;
  left: 50%;
  z-index: -1;
  width: 100dvw;
  max-width: 100dvw;
  background: rgba(9, 9, 9, 0.96);
  border-bottom: 1px solid var(--line);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.scroll-progress {
  position: relative;
  flex: 1;
  min-width: 40px;
  height: 2px;
  overflow: hidden;
  background: var(--line);
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(193, 13, 25, 0.62);
  transform: scaleX(var(--page-scroll-progress, 0));
  transform-origin: left center;
  transition: transform 70ms linear;
  will-change: transform;
}


.site-scroll-indicator {
  position: fixed;
  top: var(--scroll-indicator-top, 68px);
  left: 50%;
  z-index: 1000;
  width: min(1490px, calc(100% - 30px));
  transform: translateX(-50%);
}

body.menu-open .site-scroll-indicator {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* =========================================================
   MARQUEE
   ========================================================= */

.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}

.marquee__track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 28px;
  padding-block: 17px;
  animation: marquee 26s linear infinite;
}

.marquee span {
  font-size: clamp(17px, 2vw, 26px);
  font-weight: 850;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.marquee i {
  color: var(--accent);
  font-style: normal;
}

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

/* =========================================================
   SECTION HEADER
   ========================================================= */

.section-header {
  display: grid;
  grid-template-columns: minmax(130px, 0.25fr) minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: clamp(28px, 5vw, 82px);
  align-items: start;
  margin-bottom: clamp(48px, 7vw, 90px);
}

.section-index {
  margin: 7px 0 0;
  color: var(--accent);
}

.section-index--stat {
  display: grid;
  width: fit-content;
  gap: 7px;
  align-content: start;
  justify-items: start;
  margin-top: 0;
  text-align: left;
  text-transform: uppercase;
}

.section-index__number {
  display: block;
  color: currentColor;
  font-size: clamp(52px, 6.5vw, 110px);
  font-weight: 820;
  letter-spacing: -0.08em;
  line-height: 0.82;
  white-space: nowrap;
}

.section-index__label {
  display: block;
  max-width: 170px;
  color: currentColor;
  font-size: clamp(10px, 0.85vw, 13px);
  font-weight: 850;
  letter-spacing: 0.12em;
  line-height: 1.05;
  text-align: left;
}

.contact__top .section-index--stat {
  justify-items: start;
  text-align: left;
}

.contact__top .section-index__number {
  color: #fff;
}

.section-header h2,
.statement h2,
.about-preview h2,
.bio h2,
.deliverables h2 {
  margin: 0;
  font-size: clamp(44px, 6vw, 90px);
  font-weight: 520;
  letter-spacing: -0.058em;
  line-height: 0.94;
}

.section-header__side {
  padding-top: 7px;
}

.section-header__side p {
  max-width: 45ch;
  margin: 0 0 24px;
  color: var(--muted);
}

.work.section {
  padding-top: 90px;
}

.portfolio-header__content {
  grid-column: 2 / -1;
  max-width: 860px;
}

.portfolio-header__description {
  max-width: 720px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.55;
}

.portfolio-header__button {
  width: fit-content;
  margin-top: 26px;
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}

.portfolio-header__button:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}

.portfolio-mobile-actions {
  display: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color var(--fast) ease, color var(--fast) ease;
}

.text-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* =========================================================
   PROJECT GRID
   ========================================================= */

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.project-card {
  min-width: 0;
  content-visibility: auto;
  contain-intrinsic-size: 520px;
}

.project-card__link {
  display: block;
}

.project-card__visual {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.project-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 760ms var(--ease),
    filter 420ms ease;
}

.project-card:hover .project-card__visual img {
  transform: scale(1.045);
  filter: contrast(1.04);
}

.project-card__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid transparent;
  pointer-events: none;
  transition: border-color var(--fast) ease;
}

.project-card:hover .project-card__visual::after {
  border-color: rgba(193, 13, 25, 0.7);
}

.project-card__click-icon {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--ink);
  opacity: 1;
  transition:
    opacity var(--fast) ease,
    transform 360ms var(--ease),
    color var(--fast) ease,
    background-color var(--fast) ease,
    border-color var(--fast) ease;
}

.project-card__click-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.project-card:hover .project-card__click-icon {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  opacity: 0.78;
  backdrop-filter: blur(8px);
  transform: translate(2px, -2px);
}

.project-card__hover {
  position: absolute;
  right: auto;
  bottom: 14px;
  left: 14px;
  z-index: 3;
  display: inline-flex;
  width: auto;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 12px;
  background: var(--accent);
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28);
  transition:
    opacity 260ms ease,
    transform 360ms var(--ease),
    background-color var(--fast) ease;
}

.project-card__hover span {
  max-width: none;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  white-space: nowrap;
}

.project-card__hover strong {
  font-size: 13px;
  line-height: 1;
}

.project-card:hover .project-card__hover {
  opacity: 1;
  transform: translateY(0);
}

.project-card__hover:hover {
  background: var(--accent-light);
}

.project-card__info {
  padding: 14px 2px 30px;
}

.project-card__info h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-size: clamp(22px, 2.1vw, 35px);
  font-weight: 540;
  letter-spacing: -0.045em;
  line-height: 1;
  text-overflow: ellipsis;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color var(--fast) ease;
}

.project-card:hover .project-card__info h3 {
  color: var(--accent);
}

/* =========================================================
   STATEMENT
   ========================================================= */

.statement {
  background: var(--paper);
  color: var(--ink);
}

.statement__inner {
  display: grid;
  grid-template-columns: minmax(130px, 0.25fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 82px);
}

.statement .section-index {
  color: var(--accent);
}

.statement__lead {
  margin: 0 0 23px;
  color: #6f6d68;
  font-size: clamp(18px, 2vw, 26px);
}

.statement h2 {
  max-width: 1150px;
}

.statement__details {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) auto;
  gap: 40px;
  align-items: end;
  margin: clamp(45px, 6vw, 88px) 0 0 clamp(0px, 14vw, 215px);
}

.statement__details p {
  max-width: 55ch;
  margin: 0;
  color: #66635d;
}

/* =========================================================
   SERVICES
   ========================================================= */

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

.service {
  display: grid;
  grid-template-columns: 70px minmax(240px, 0.42fr) minmax(280px, 0.58fr) auto;
  gap: 30px;
  align-items: center;
  min-height: 150px;
  border-bottom: 1px solid var(--line);
  transition: none;
}

.service:hover {
  padding-inline: 0;
  background: transparent;
}

.service__number,
.service__tag {
  color: var(--muted);
}

.service h3 {
  margin: 0;
  font-size: clamp(28px, 4vw, 58px);
  font-weight: 500;
  letter-spacing: -0.052em;
  line-height: 0.92;
}

.service p {
  max-width: 50ch;
  margin: 0;
  color: var(--muted);
}

.service__body {
  min-width: 0;
}

.service__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.service__button {
  min-width: 154px;
  min-height: 46px;
  border-color: var(--accent);
  background: var(--accent);
  color: var(--ink);
}

.service__button:hover {
  border-color: var(--accent-light);
  background: var(--accent-light);
  color: var(--ink);
}

.service__tag {
  padding: 8px 10px;
  border: 1px solid var(--line);
  font-size: 9px;
}

.service--expanded {
  padding-block: 34px;
}

.sport-gallery {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
}

.sport-gallery__thumb:focus-visible,
.sport-gallery__control:focus-visible,
.sport-lightbox button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.sport-gallery__carousel {
  min-width: 0;
}

.sport-gallery__thumbs {
  display: grid;
  grid-auto-columns: clamp(220px, 24vw, 360px);
  grid-auto-flow: column;
  gap: 12px;
  overflow-x: auto;
  padding: 3px 0 14px;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scrollbar-color: var(--accent) var(--surface);
  scrollbar-width: thin;
}

.sport-gallery__thumbs::-webkit-scrollbar {
  height: 7px;
}

.sport-gallery__thumbs::-webkit-scrollbar-track {
  background: var(--surface);
}

.sport-gallery__thumbs::-webkit-scrollbar-thumb {
  border: 1px solid var(--surface);
  background: var(--accent);
}

.sport-gallery__thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  opacity: 0.76;
  filter: saturate(0.78);
  transition:
    opacity 300ms ease,
    filter 300ms ease,
    border-color 300ms ease,
    transform 420ms var(--ease);
}

.sport-gallery__thumb::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  background: var(--accent);
  color: var(--ink);
  transition:
    background-color 300ms ease,
    color 300ms ease,
    transform 420ms var(--ease);
}

.sport-gallery__thumb::before {
  content: "";
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  width: 20px;
  height: 20px;
  background-color: var(--ink);
  pointer-events: none;
  -webkit-mask: url("assets/icons/arrow-up-right.svg") center / contain no-repeat;
  mask: url("assets/icons/arrow-up-right.svg") center / contain no-repeat;
  transition:
    background-color 300ms ease,
    transform 420ms var(--ease);
}

.sport-gallery__thumb:hover,
.sport-gallery__thumb.is-active {
  border-color: var(--accent);
  opacity: 1;
  filter: saturate(1);
}

.sport-gallery__thumb.is-active {
  transform: translateY(-2px);
}

.sport-gallery__thumb:hover::after {
  background: var(--ink);
  transform: translate(2px, -2px);
}

.sport-gallery__thumb:hover::before {
  background-color: var(--accent);
  transform: translate(2px, -2px);
}

.sport-gallery__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sport-gallery__controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.sport-gallery__controls > span {
  min-width: 72px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-align: center;
}

.sport-gallery__control {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-family: Arial, sans-serif;
  font-size: 20px;
  cursor: pointer;
  transition:
    background-color 300ms ease,
    color 300ms ease,
    transform 300ms var(--ease);
}

.sport-gallery__control:hover {
  background: var(--accent);
  color: var(--ink);
}

@media (min-width: 821px) {
  .sport-gallery__controls {
    display: none;
  }
}

body.sport-lightbox-open {
  overflow: hidden;
}

.sport-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 18px;
  padding: 28px;
  background: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(16px);
}

.sport-lightbox[hidden] {
  display: none;
}

.sport-lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--ink);
  font-size: 31px;
  line-height: 1;
  cursor: pointer;
}

.sport-lightbox__nav {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-family: Arial, sans-serif;
  font-size: 25px;
  cursor: pointer;
  transition:
    background-color 300ms ease,
    color 300ms ease,
    transform 300ms var(--ease);
}

.sport-lightbox__nav:hover {
  background: var(--accent);
  color: var(--ink);
}

.sport-lightbox__nav--prev:hover {
  transform: translateX(-3px);
}

.sport-lightbox__nav--next:hover {
  transform: translateX(3px);
}

.sport-lightbox__figure {
  display: grid;
  min-width: 0;
  height: calc(100dvh - 56px);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  place-items: center;
  margin: 0;
}

.sport-lightbox__figure img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 108px);
  object-fit: contain;
}

.sport-lightbox__figure figcaption {
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.16em;
}

/* =========================================================
   ABOUT PREVIEW
   ========================================================= */

.about-preview {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(50px, 9vw, 145px);
  align-items: center;
}

.portrait-placeholder {
  position: relative;
  display: grid;
  min-height: 640px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, transparent 0 43%, rgba(193, 13, 25, 0.8) 43% 55%, transparent 55%),
    radial-gradient(circle at 30% 20%, #2b2b2b, transparent 33%),
    var(--surface);
}

.portrait-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(25% - 1px),
      rgba(255, 255, 255, 0.08) 25%
    );
  pointer-events: none;
}

.portrait-placeholder__mono {
  z-index: 1;
  font-size: clamp(130px, 18vw, 270px);
  font-weight: 900;
  letter-spacing: -0.12em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
}

.portrait-placeholder__line {
  position: absolute;
  top: 24px;
  right: 24px;
  bottom: 24px;
  width: 1px;
  background: var(--accent);
}

.portrait-placeholder__caption {
  position: absolute;
  bottom: 22px;
  left: 22px;
  z-index: 2;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.about-preview__copy {
  display: grid;
  align-content: center;
}

.about-preview__copy .section-index + h2 {
  margin-top: 18px;
}

.about-preview__lead {
  max-width: 720px;
  margin: 38px 0 0 clamp(0px, 8vw, 112px);
  color: var(--muted);
  font-size: clamp(17px, 1.6vw, 23px);
}

.about-preview__facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 48px 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.about-preview__facts div {
  display: grid;
  gap: 11px;
  min-height: 115px;
  align-content: center;
  padding: 20px;
  background: var(--bg);
}

.about-preview__facts span {
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.about-preview__facts strong {
  font-size: 14px;
}


.portrait-photo {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.portrait-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.68), transparent 38%),
    linear-gradient(135deg, transparent 55%, rgba(193, 13, 25, 0.13));
  pointer-events: none;
}

.portrait-photo img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center 38%;
  filter: saturate(0.82) contrast(1.04);
  transition:
    transform 900ms var(--ease),
    filter 500ms ease;
}

.portrait-photo:hover img {
  transform: scale(1.025);
  filter: saturate(0.98) contrast(1.05);
}

.portrait-photo__caption {
  position: absolute;
  right: 20px;
  bottom: 18px;
  left: 20px;
  z-index: 2;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portrait-photo--large {
  min-height: 720px;
}

.portrait-photo--new img {
  object-position: center 18%;
  filter: saturate(0.92) contrast(1.08) brightness(0.96);
}

.portrait-photo--preview {
  min-height: 610px;
}

.portrait-photo--preview.portrait-photo--new img {
  object-position: center 16%;
}

.portrait-photo--hero.portrait-photo--new img {
  object-position: center 20%;
}

/* =========================================================
   CONTACT
   ========================================================= */

.contact__panel {
  display: grid;
  min-height: 650px;
  align-content: space-between;
  padding: clamp(34px, 6vw, 82px);
  background: var(--accent);
  color: #fff;
}

.contact__top,
.contact__bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.contact__top .section-index {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
}

.contact__top > span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.contact h2 {
  margin: 55px 0;
  font-size: clamp(64px, 10vw, 152px);
  font-weight: 580;
  letter-spacing: -0.075em;
  line-height: 0.84;
}

.contact h2 em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.contact__primary {
  display: grid;
  justify-items: start;
  gap: 22px;
}

.contact__email {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  font-size: clamp(20px, 3vw, 42px);
  font-weight: 550;
  letter-spacing: -0.04em;
}

.contact__phone {
  display: grid;
  grid-template-columns: auto auto auto;
  align-items: center;
  gap: 13px;
  padding: 10px 0 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.52);
}

.contact__phone > span:first-child {
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.contact__phone strong {
  font-size: clamp(19px, 2vw, 30px);
  font-weight: 620;
  letter-spacing: -0.035em;
}

.contact__phone > span:last-child {
  font-size: 17px;
}

.contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact__links a {
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.contact--compact .contact__panel {
  min-height: 520px;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  position: relative;
  isolation: isolate;
  width: 100%;
  color: var(--ink);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  left: 50%;
  z-index: -1;
  width: 100dvw;
  max-width: 100dvw;
  background: var(--accent);
  transform: translateX(-50%);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.4fr) auto;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  min-height: 150px;
  padding-block: 32px;
}

.site-footer__brand {
  display: grid;
  gap: 6px;
}

.site-footer__brand strong {
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 900;
  letter-spacing: -0.045em;
}

.site-footer__brand span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.site-footer__socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.site-footer__social {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid rgba(10, 10, 10, 0.34);
  color: var(--ink);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition:
    background-color var(--fast) ease,
    color var(--fast) ease,
    transform var(--fast) ease;
}

.site-footer__social svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: currentColor;
}

.site-footer__social:hover {
  background: var(--ink);
  color: var(--accent);
  transform: translateY(-2px);
}

.site-footer__top {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: 12px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.site-footer__top span {
  font-size: 18px;
}

.site-footer__top:hover {
  opacity: 0.62;
}

@media (max-width: 820px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: auto;
    padding-block: 30px;
  }

  .site-footer__socials {
    justify-content: flex-start;
  }

  .site-footer__top {
    justify-self: start;
  }
}

@media (max-width: 580px) {
  .site-footer__social {
    min-height: 38px;
    padding: 8px 10px;
  }

  .site-footer__social span {
    font-size: 8px;
  }
}

/* =========================================================
   SUBPAGE / WORK
   ========================================================= */

.subpage {
  padding-top: 139px;
}

.page-intro {
  padding-top: clamp(60px, 9vw, 130px);
}

.page-intro__meta {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.page-intro h1 {
  margin: clamp(55px, 8vw, 105px) 0;
  font-size: clamp(66px, 10vw, 158px);
  font-weight: 570;
  letter-spacing: -0.076em;
  line-height: 0.82;
}

.page-intro h1 span {
  display: block;
  margin-left: clamp(0px, 11vw, 170px);
  color: var(--muted);
  font-weight: 410;
}

.page-intro__bottom {
  display: grid;
  grid-template-columns: minmax(280px, 0.55fr) auto;
  gap: 40px;
  align-items: end;
  max-width: 880px;
  margin-left: auto;
  padding-bottom: 40px;
}

.page-intro__bottom p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 22px);
}

.page-intro__bottom span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}


/* =========================================================
   ABOUT PAGE
   ========================================================= */

.about-hero {
  padding-top: clamp(55px, 8vw, 120px);
}

.about-hero__meta {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.about-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: clamp(48px, 8vw, 130px);
  align-items: center;
  padding-block: clamp(60px, 8vw, 110px);
}

.about-hero h1 {
  margin: 0;
  font-size: clamp(75px, 11vw, 168px);
  font-weight: 570;
  letter-spacing: -0.078em;
  line-height: 0.82;
}

.about-hero h1 span {
  display: block;
  margin-left: clamp(0px, 8vw, 125px);
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.about-hero__copy > p {
  max-width: 690px;
  margin: 55px 0 0 clamp(0px, 8vw, 125px);
  color: var(--muted);
  font-size: clamp(18px, 1.6vw, 24px);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  max-width: 690px;
  margin: 42px 0 0 clamp(0px, 8vw, 125px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-stats > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  min-height: 112px;
  padding: 18px 22px 18px 0;
}

.about-stats > div + div {
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.about-stats strong {
  color: var(--accent);
  font-size: clamp(54px, 5vw, 76px);
  font-weight: 560;
  letter-spacing: -0.07em;
  line-height: 0.8;
}

.about-stats span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.35;
}

.portrait-placeholder--large {
  min-height: 720px;
}

.bio {
  display: grid;
  grid-template-columns: minmax(130px, 0.25fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 82px);
  border-top: 1px solid var(--line);
}

.bio__columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(30px, 7vw, 100px);
  margin: 55px 0 0 clamp(0px, 10vw, 145px);
}

.bio__columns p {
  margin: 0;
  color: var(--muted);
}

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

.timeline__item {
  display: grid;
  grid-template-columns: minmax(120px, 0.2fr) minmax(240px, 0.4fr) minmax(260px, 0.4fr);
  gap: 35px;
  align-items: center;
  min-height: 145px;
  border-bottom: 1px solid var(--line);
}

.timeline__item > span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.timeline__item h3 {
  margin: 0;
  font-size: clamp(27px, 3.4vw, 50px);
  font-weight: 510;
  letter-spacing: -0.05em;
}

.timeline__item p {
  max-width: 50ch;
  margin: 0;
  color: var(--muted);
}

.tools {
  display: grid;
  grid-template-columns: minmax(130px, 0.25fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 82px);
}

.tools--impact {
  position: relative;
  isolation: isolate;
  background: var(--accent);
  box-shadow: 0 0 0 100vmax var(--accent);
  clip-path: inset(0 -100vmax);
  color: var(--ink);
}

.tools--impact .section-logo-mark {
  width: clamp(330px, 40vw, 720px);
  opacity: 0.09;
  filter: brightness(0);
}

.tools--impact .section-index,
.tools--impact .tool-card span,
.tools--impact .tool-card p {
  color: var(--ink);
}

.tools--impact .tools__grid {
  border-color: rgba(0, 0, 0, 0.48);
}

.tools--impact .tool-card {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.48);
}

.tools--impact .tool-card:hover {
  background: rgba(0, 0, 0, 0.1);
}

.tools__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.tool-card {
  display: grid;
  min-height: 260px;
  align-content: end;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color var(--fast) ease;
}

.tool-card:hover {
  background: var(--surface);
}

.tool-card span {
  align-self: start;
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.tool-card strong {
  margin-top: 95px;
  font-size: clamp(24px, 3vw, 42px);
  letter-spacing: -0.045em;
}

.tool-card p {
  max-width: 42ch;
  margin: 10px 0 0;
  color: var(--muted);
}

.credentials {
  display: grid;
  grid-template-columns: minmax(130px, 0.25fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 82px);
}

.credentials--paper {
  position: relative;
  isolation: isolate;
  background: var(--paper);
  box-shadow: 0 0 0 100vmax var(--paper);
  clip-path: inset(0 -100vmax);
  color: var(--ink);
}

.credentials--paper .section-logo-mark {
  opacity: 0.08;
}

.credentials--paper .credentials__grid {
  gap: 0;
  padding: 0;
  border-top: 1px solid rgba(10, 10, 10, 0.7);
  border-left: 1px solid rgba(10, 10, 10, 0.7);
  background: transparent;
}

.credentials--paper .credential-card {
  background: transparent;
  border-right: 1px solid rgba(10, 10, 10, 0.7);
  border-bottom: 1px solid rgba(10, 10, 10, 0.7);
  border-left: 0;
}

.credentials--paper .credential-card__label small {
  margin-top: 3px;
}

.credentials--paper .credential-card p {
  color: #5f5c56;
}

.credentials__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.credential-card {
  min-height: 260px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.credential-card:nth-child(odd) {
  border-left: 1px solid var(--line);
}

.credential-card:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.credential-card:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
  border-left: 1px solid var(--line);
}

.credential-card:nth-child(3) {
  grid-column: 2;
  grid-row: 1;
  border-left: 0;
}

.credential-card:nth-child(4) {
  grid-column: 2;
  grid-row: 2;
}

.credential-card > span {
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.credential-card__label small {
  display: block;
  margin-top: 7px;
  color: inherit;
  font: inherit;
}

.credential-card h3 {
  margin: 78px 0 0;
  font-size: clamp(23px, 2.4vw, 36px);
  font-weight: 520;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.credential-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

/* =========================================================
   CASE STUDY
   ========================================================= */

.case-hero {
  padding-top: clamp(48px, 7vw, 105px);
}

.case-back {
  display: inline-block;
  margin-bottom: 65px;
  color: var(--muted);
  transition: color var(--fast) ease;
}

.case-back:hover {
  color: var(--accent);
}

.case-hero__meta {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.case-hero h1 {
  max-width: 1280px;
  margin: clamp(50px, 8vw, 100px) 0;
  font-size: clamp(70px, 10vw, 152px);
  font-weight: 560;
  letter-spacing: -0.075em;
  line-height: 0.84;
}

.case-hero__intro {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto auto;
  gap: clamp(35px, 7vw, 110px);
  align-items: start;
  max-width: 1120px;
  margin-left: auto;
  padding-bottom: 45px;
}

.case-hero__intro > p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 22px);
}

.case-hero__intro div {
  display: grid;
  gap: 10px;
}

.case-hero__intro span {
  color: var(--accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.case-hero__intro strong {
  max-width: 180px;
  font-size: 12px;
}

.case-cover {
  overflow: hidden;
  background: var(--surface);
}

.case-cover img {
  width: 100%;
  max-height: 880px;
  object-fit: cover;
}

.case-story {
  display: grid;
  grid-template-columns: minmax(130px, 0.25fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 82px);
}

.case-story__index {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.case-story__index span {
  color: var(--accent);
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
}

.case-story__index p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.case-story__copy h2 {
  max-width: 1000px;
  margin: 0;
  font-size: clamp(45px, 6vw, 92px);
  font-weight: 520;
  letter-spacing: -0.06em;
  line-height: 0.96;
}

.case-story__copy p {
  max-width: 650px;
  margin: 45px 0 0 clamp(0px, 10vw, 150px);
  color: var(--muted);
  font-size: clamp(17px, 1.4vw, 21px);
}

.case-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.case-gallery[hidden] {
  display: none;
}

.case-gallery__item {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.case-gallery__item--wide {
  grid-column: 1 / -1;
}

.case-gallery__item--half {
  grid-column: span 6;
}

.case-gallery__item--tall {
  grid-column: span 5;
}

.case-gallery__item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition:
    transform 800ms var(--ease),
    filter 400ms ease;
}

.case-gallery__item:hover img {
  transform: scale(1.015);
  filter: contrast(1.025);
}

.case-story--solution {
  padding-top: clamp(88px, 10vw, 150px);
}

.deliverables {
  display: grid;
  grid-template-columns: minmax(300px, 0.45fr) minmax(0, 0.55fr);
  gap: clamp(45px, 9vw, 130px);
  align-items: start;
}

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

.deliverable {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 25px;
  align-items: center;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
}

.deliverable span {
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
}

.deliverable strong {
  font-size: clamp(20px, 2.3vw, 32px);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.next-project__link {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 30px;
  align-items: center;
  min-height: 210px;
  padding-inline: 30px;
  border-block: 1px solid var(--line);
  transition:
    background-color 350ms ease,
    padding-inline 450ms var(--ease);
}

.next-project__link:hover {
  padding-inline: 46px;
  background: var(--accent);
}

.next-project__link > span:first-child {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.next-project__link:hover > span:first-child {
  color: rgba(255, 255, 255, 0.7);
}

.next-project__link strong {
  font-size: clamp(35px, 6vw, 82px);
  font-weight: 510;
  letter-spacing: -0.058em;
  line-height: 1;
}

.next-project__link > span:last-child {
  font-size: 38px;
}

/* =========================================================
   REVEAL SYSTEM
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 820ms var(--ease),
    transform 820ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1080px) {
  :root {
    --shell: min(100% - 34px, 980px);
  }

  .hero__layout,
  .about-hero__layout {
    grid-template-columns: 1fr;
  }

  .hero-art {
    display: block;
    min-height: 700px;
  }

  .hero-art__frame {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 660px;
    transform: none;
  }

  .hero-art__frame--secondary {
    display: none;
  }

  .section-header {
    grid-template-columns: minmax(120px, 0.25fr) 1fr;
  }

  .section-header__side {
    grid-column: 2;
  }

  .project-card,
  .project-card--large,
  .project-card:nth-child(4n + 2),
  .project-card:nth-child(4n + 3) {
    grid-column: span 6;
  }

  .service {
    grid-template-columns: 55px minmax(220px, 0.45fr) minmax(240px, 0.55fr);
  }

  .service__tag {
    display: none;
  }

  .about-preview {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 55px;
  }

  .portrait-placeholder {
    min-height: 580px;
  }
}

@media (max-width: 820px) {
  :root {
    --shell: calc(100% - 24px);
    --section-space: 92px;
  }

  .site-scroll-indicator,
  .hero__footer {
    display: none !important;
  }

  .hero {
    padding-top: 78px;
  }

  .subpage {
    padding-top: 78px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    width: calc(100% - 16px);
  }

  .desktop-nav,
  .header-actions {
    display: none;
  }

  .brand {
    width: 195px;
  }

  .menu-button {
    display: block;
    justify-self: end;
  }

  .hero {
    min-height: auto;
    padding-top: 96px;
  }

  .hero__meta {
    grid-template-columns: 1fr;
    justify-items: center;
    border-bottom: 1px solid var(--line);
    text-align: center;
  }

  .hero__meta span:first-child,
  .hero__meta span:nth-child(2) {
    display: none;
  }

  .hero__title {
    font-size: clamp(54px, 14vw, 92px);
    line-height: 0.9;
  }

  .hero__title span {
    margin: 7px 0 0;
  }

  .hero__bottom {
    grid-template-columns: 1fr;
    margin-left: 0;
  }

  .hero__actions {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-art {
    min-height: 610px;
  }

  .hero-art__frame {
    min-height: 570px;
  }

  .section-header,
  .statement__inner,
  .bio,
  .tools,
  .case-story {
    grid-template-columns: 1fr;
  }

  .section-header__side {
    grid-column: auto;
  }

  .portfolio-header__content {
    grid-column: auto;
  }

  .statement__details {
    margin-left: 0;
  }

  .service {
    grid-template-columns: 45px 1fr;
    gap: 20px;
    padding-block: 28px;
  }

  .service p {
    grid-column: 2;
  }

  .about-preview {
    grid-template-columns: 1fr;
  }

  .about-preview__lead {
    margin-left: 0;
  }

  .contact__bottom {
    display: grid;
  }

  .contact__primary {
    width: 100%;
  }

  .contact__phone {
    width: 100%;
    grid-template-columns: auto 1fr auto;
  }

  .contact__links {
    justify-content: flex-start;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .site-footer span:nth-child(2) {
    display: none;
  }

  .page-intro__bottom,
  .case-hero__intro {
    grid-template-columns: 1fr;
    margin-left: 0;
  }

  .about-hero__visual {
    order: -1;
  }

  .portrait-placeholder--large {
    min-height: 650px;
  }

  .bio__columns {
    margin-left: 0;
  }

  .timeline__item {
    grid-template-columns: 100px 1fr;
    padding-block: 25px;
  }

  .timeline__item p {
    grid-column: 2;
  }

  .case-gallery {
    grid-template-columns: 1fr;
  }

  .case-gallery__item--wide,
  .case-gallery__item--half,
  .case-gallery__item--tall {
    grid-column: 1;
  }

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

@media (max-width: 580px) {
  .brand {
    width: 158px;
  }

  .mobile-menu__footer {
    display: grid;
    gap: 5px;
  }

  .hero__meta {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .hero__meta span:last-child {
    display: flex;
    justify-self: center;
    width: 100dvw;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    margin-right: calc(50% - 50dvw);
    margin-left: calc(50% - 50dvw);
    padding: 10px 14px;
    background: var(--accent);
    color: var(--ink);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.13em;
    text-align: center;
  }

  .hero__mobile-role {
    display: grid;
    gap: 6px;
    width: min(100%, 310px);
    margin: 0 auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--muted);
    line-height: 1.2;
    text-align: center;
  }

  .hero__mobile-role span:first-child {
    color: var(--text);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.16em;
  }

  .hero__mobile-role span:last-child {
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.14em;
  }

  .hero__title {
    margin-top: 20px;
  }

  .hero__layout {
    gap: 50px;
    padding-block: 58px;
  }

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

  .button {
    width: 100%;
  }

  .hero-art,
  .hero-art__frame {
    min-height: 500px;
  }

  .hero__footer span:first-child {
    display: none;
  }

  .project-grid {
    display: block;
  }

  .project-card {
    margin-bottom: 24px;
  }

  .project-card__visual,
  .project-card--large .project-card__visual {
    aspect-ratio: 1 / 0.82;
  }

  .project-card__hover {
    display: none;
  }

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

  .about-preview__facts {
    grid-template-columns: 1fr;
  }

  .contact__panel {
    min-height: 580px;
    padding: 28px 22px;
  }

  .contact__top {
    display: grid;
  }

  .contact h2 {
    margin-block: 45px;
    font-size: clamp(55px, 19vw, 92px);
  }

  .contact__email {
    font-size: 21px;
  }

  .page-intro h1 {
    font-size: clamp(58px, 19vw, 100px);
  }

  .page-intro h1 span {
    margin-left: 0;
  }


  .about-hero__meta,
  .page-intro__meta {
    display: grid;
  }

  .about-hero h1 {
    font-size: clamp(67px, 22vw, 110px);
  }

  .about-hero h1 span,
  .about-hero__copy > p {
    margin-left: 0;
  }

  .portrait-placeholder,
  .portrait-placeholder--large {
    min-height: 520px;
  }

  .bio__columns,
  .tools__grid {
    grid-template-columns: 1fr;
  }

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

  .timeline__item p {
    grid-column: auto;
  }

  .case-hero h1 {
    font-size: clamp(58px, 18vw, 100px);
  }


  .next-project__link {
    grid-template-columns: 1fr auto;
    padding-inline: 0;
  }

  .next-project__link > span:first-child {
    grid-column: 1 / -1;
  }

  .next-project__link:hover {
    padding-inline: 18px;
  }

  .cursor-glow {
    display: none;
  }
}


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

.about-actions .button {
  width: auto;
}

.about-actions--hero {
  margin: 34px 0 0 clamp(0px, 8vw, 125px);
}

@media (max-width: 820px) {
  .about-actions--hero {
    margin-left: 0;
  }
}

@media (max-width: 580px) {
  .about-actions {
    display: grid;
  }

  .about-actions .button {
    width: 100%;
  }
}


.dtp-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 4;
  display: inline-flex;
  min-width: 58px;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28);
}

.dtp-badge--case {
  right: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 28px);
  min-width: 76px;
  min-height: 38px;
  padding: 8px 16px;
  font-size: 12px;
}

.case-cover {
  position: relative;
}

@media (max-width: 580px) {
  .dtp-badge {
    right: 10px;
    bottom: 10px;
    min-width: 52px;
    min-height: 27px;
    padding: 5px 10px;
    font-size: 9px;
  }

  .dtp-badge--case {
    right: 12px;
    bottom: 12px;
    min-width: 62px;
    min-height: 32px;
    font-size: 10px;
  }
}


/* =========================================================
   IMPACT / 100+ REALIZACJI
   ========================================================= */

.impact-section {
  background: var(--accent);
  color: var(--ink);
}

.impact-section__inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(0, 1.38fr);
  gap: clamp(48px, 8vw, 130px);
  align-items: end;
  min-height: clamp(560px, 72vw, 820px);
  padding-block: clamp(70px, 10vw, 135px);
}

.impact-section__number {
  align-self: stretch;
  display: grid;
  align-content: start;
  gap: 10px;
  padding-right: clamp(24px, 4vw, 64px);
  border-right: 0;
}

.impact-section__number strong {
  display: block;
  max-width: 100%;
  font-size: clamp(104px, 13vw, 220px);
  font-weight: 820;
  letter-spacing: -0.08em;
  line-height: 0.82;
  white-space: nowrap;
}

.impact-section__number span {
  max-width: 280px;
  font-size: clamp(20px, 2.2vw, 34px);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.impact-section__copy {
  align-self: end;
}

.impact-section__eyebrow {
  margin: 0 0 26px;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.impact-section__copy h2 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(47px, 6.8vw, 104px);
  font-weight: 590;
  letter-spacing: -0.065em;
  line-height: 0.9;
}

.impact-section__copy > p:not(.impact-section__eyebrow) {
  max-width: 660px;
  margin: 40px 0 0;
  font-size: clamp(17px, 1.55vw, 23px);
  line-height: 1.45;
}

.impact-section__competencies-title {
  margin: 44px 0 18px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.38em;
  line-height: 1.3;
  text-transform: uppercase;
}

.impact-section__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.impact-section__tags span {
  padding: 11px 14px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.impact-section__experience {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
  max-width: 980px;
  margin-inline: auto;
  padding-top: clamp(34px, 5vw, 62px);
  padding-bottom: clamp(28px, 4vw, 50px);
  border-top: 1px solid rgba(0, 0, 0, 0.28);
  text-align: center;
}

.impact-stat {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.impact-stat strong {
  font-size: clamp(74px, 8vw, 132px);
  font-weight: 820;
  letter-spacing: -0.075em;
  line-height: 0.82;
}

.impact-stat span {
  max-width: 280px;
  font-size: clamp(12px, 1.25vw, 18px);
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.15;
}

.impact-stat__divider {
  width: 1px;
  height: 94px;
  background: rgba(0, 0, 0, 0.28);
}

.impact-section__references {
  display: flex;
  justify-content: center;
  padding-bottom: clamp(70px, 9vw, 120px);
}

.impact-section__references-button {
  width: fit-content;
  min-width: min(100%, 310px);
  border-color: var(--ink);
  background: var(--ink);
  color: var(--accent);
}

.impact-section__references-button:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--accent);
}

@media (max-width: 820px) {
  .impact-section__inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .impact-section__number {
    min-height: 340px;
    padding-right: 0;
    padding-bottom: 35px;
    border-right: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.28);
  }

  .impact-section__experience {
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 520px;
  }

  .impact-stat__divider {
    width: 74px;
    height: 1px;
  }

  .service__body {
    grid-column: 2;
  }

  .sport-gallery {
    grid-column: 1 / -1;
  }

  .sport-gallery__thumbs {
    grid-auto-columns: min(78vw, 300px);
  }

  .sport-lightbox {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 16px;
  }

  .sport-lightbox__figure {
    grid-row: 1;
    grid-column: 1 / -1;
    height: calc(100dvh - 94px);
  }

  .sport-lightbox__figure img {
    max-height: calc(100dvh - 138px);
  }

  .sport-lightbox__nav {
    grid-row: 2;
    width: 52px;
    height: 52px;
  }

  .sport-lightbox__nav--prev {
    grid-column: 1;
    justify-self: end;
  }

  .sport-lightbox__nav--next {
    grid-column: 2;
    justify-self: start;
  }

  .sport-lightbox__close {
    top: 14px;
    right: 14px;
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 580px) {
  :root {
    --shell: calc(100% - 24px);
  }

  .site-header {
    max-width: calc(100% - 12px);
  }

  .impact-section__inner {
    gap: 24px;
    padding-top: 28px;
    padding-bottom: 34px;
  }

  .impact-section__number {
    min-height: auto;
    align-content: start;
    gap: 8px;
    padding-bottom: 24px;
  }

  .impact-section__number strong {
    font-size: clamp(92px, 30vw, 122px);
    line-height: 0.76;
  }

  .impact-section__number span {
    max-width: 230px;
    font-size: 20px;
    line-height: 0.92;
  }

  .impact-section__copy {
    align-self: start;
  }

  .impact-section__eyebrow {
    margin-bottom: 16px;
    font-size: 8px;
    line-height: 1.35;
  }

  .impact-section__copy h2 {
    max-width: 100%;
    font-size: clamp(38px, 10.6vw, 45px);
    letter-spacing: -0.055em;
    line-height: 0.96;
    text-wrap: balance;
    overflow-wrap: normal;
    word-break: normal;
  }

  .impact-section__copy > p:not(.impact-section__eyebrow) {
    margin-top: 24px;
    font-size: 16px;
    line-height: 1.48;
  }

  .impact-section__competencies-title {
    margin-top: 26px;
    margin-bottom: 14px;
    font-size: 9px;
    letter-spacing: 0.3em;
  }

  .impact-section__experience {
    gap: 22px;
    padding-top: 28px;
    padding-bottom: 50px;
  }

  .impact-stat {
    gap: 8px;
  }

  .impact-stat strong {
    font-size: 68px;
  }

  .impact-stat span {
    max-width: 240px;
    font-size: 12px;
  }
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}


/* =========================================================
   PORTFOLIO GRID V4
   ========================================================= */

@media (max-width: 1120px) {
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card__info h3 {
    font-size: clamp(24px, 3.2vw, 38px);
  }
}

@media (max-width: 820px) {
  .project-grid--landing .project-card:nth-child(n + 8) {
    display: none;
  }

  .section-header--portfolio .portfolio-header__button {
    display: none;
  }

  .portfolio-mobile-actions {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 10px;
    margin-top: 12px;
  }

  .portfolio-mobile-actions .button {
    width: 100%;
    margin-top: 0;
  }

  .portfolio-mobile-actions__all {
    border-color: var(--text);
    background: var(--text);
    color: var(--ink);
  }

  .portfolio-mobile-actions__all:hover {
    border-color: var(--text);
    background: var(--text);
    color: var(--ink);
  }
}

@media (max-width: 680px) {
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card__visual {
    aspect-ratio: 16 / 11;
  }

  .project-card__info {
    gap: 6px 12px;
    padding: 12px 2px 20px;
  }

  .project-card__info h3 {
    font-size: clamp(18px, 5.8vw, 22px);
    line-height: 0.98;
    letter-spacing: -0.04em;
  }

  .portrait-photo,
  .portrait-photo--large {
    min-height: 560px;
  }
}


/* =========================================================
   MOBILE TYPOGRAPHY & SPACING AUDIT / V25
   ========================================================= */

@media (max-width: 820px) {
  :root {
    --section-space: 68px;
  }

  .section-header {
    gap: 22px;
    margin-bottom: 38px;
  }

  .section-header h2,
  .statement h2,
  .about-preview h2,
  .bio h2,
  .deliverables h2 {
    font-size: clamp(38px, 8.8vw, 58px);
  }

  .statement__inner,
  .bio,
  .tools,
  .case-story {
    gap: 24px;
  }

  .about-preview {
    gap: 42px;
  }

  .page-intro {
    padding-top: 42px;
  }

  .page-intro h1 {
    margin-block: 42px;
  }

  .about-hero__layout {
    gap: 38px;
    padding-block: 46px;
  }

  .case-hero {
    padding-top: 42px;
  }

  .case-back {
    margin-bottom: 38px;
  }

  .case-hero h1 {
    margin-block: 42px;
  }

  .contact.section {
    padding-top: 54px;
    padding-bottom: 30px;
  }

  .site-footer {
    padding-block: 24px 30px;
  }
}

@media (max-width: 580px) {
  :root {
    --section-space: 50px;
  }

  body {
    font-size: 15px;
  }

  .mobile-menu {
    padding: 92px 18px 24px;
  }

  .mobile-menu nav a {
    padding-block: 10px;
    font-size: clamp(24px, 6.6vw, 32px);
  }

  .hero {
    padding-top: 70px;
  }

  .hero__layout {
    gap: 32px;
    padding-block: 24px 44px;
  }

  .hero__title {
    font-size: clamp(42px, 11.2vw, 58px);
    line-height: 0.92;
  }

  .hero__bottom {
    gap: 20px;
    margin-top: 30px;
  }

  .hero-art,
  .hero-art__frame {
    min-height: 430px;
  }

  .section-header {
    gap: 16px;
    margin-bottom: 30px;
  }

  .section-header__side {
    padding-top: 0;
  }

  .section-header__side p {
    margin-bottom: 16px;
  }

  .section-header h2,
  .statement h2,
  .about-preview h2,
  .bio h2,
  .deliverables h2 {
    font-size: clamp(35px, 9.6vw, 46px);
    line-height: 0.98;
  }

  .statement__lead {
    margin-bottom: 16px;
    font-size: 17px;
  }

  .statement__details {
    gap: 18px;
    margin-top: 28px;
  }

  .service {
    gap: 16px;
    min-height: auto;
    padding-block: 22px;
  }

  .service h3 {
    font-size: clamp(27px, 8vw, 36px);
    line-height: 1;
  }

  .service p {
    font-size: 14px;
    line-height: 1.45;
  }

  .about-preview {
    gap: 42px;
  }

  .portrait-photo,
  .portrait-photo--large,
  .portrait-placeholder,
  .portrait-placeholder--large {
    min-height: 450px;
  }

  .about-preview__lead {
    margin: 24px 0 0;
    font-size: 16px;
  }

  .about-preview__facts {
    margin-block: 28px;
  }

  .about-preview__facts div {
    min-height: 88px;
    padding: 16px;
  }

  .about-actions {
    gap: 8px;
  }

  .page-intro {
    padding-top: 28px;
  }

  .page-intro h1 {
    margin-block: 30px;
    font-size: clamp(48px, 15vw, 66px);
    line-height: 0.88;
  }

  .page-intro__bottom {
    gap: 18px;
    padding-bottom: 24px;
  }

  html.about-page .subpage {
    padding-top: 68px;
  }

  .about-hero {
    padding-top: 0;
  }

  .about-hero__meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    justify-items: center;
    gap: 26px;
    padding-bottom: 22px;
    text-align: center;
  }

  .about-hero__meta span {
    width: 100%;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0.16em;
  }

  .about-hero__meta span:first-child {
    width: 100dvw;
    margin-inline: calc(50% - 50dvw);
    padding: 13px 12px;
    background: var(--accent);
    color: var(--ink);
  }

  .about-hero__meta span:last-child {
    color: var(--text);
  }

  .about-hero__layout {
    gap: 28px;
    padding-block: 32px 42px;
  }

  .about-hero h1 {
    font-size: clamp(52px, 16vw, 72px);
    line-height: 0.88;
  }

  .about-hero__copy > p {
    margin-top: 26px;
    font-size: 16px;
  }

  .bio__columns {
    gap: 20px;
    margin-top: 28px;
  }

  .timeline__item {
    gap: 12px;
    min-height: auto;
    padding-block: 22px;
  }

  .timeline__item h3 {
    font-size: 29px;
  }

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

  .tool-card {
    min-height: 180px;
    padding: 22px;
  }

  .tool-card strong {
    margin-top: 42px;
    font-size: 28px;
  }

  .case-hero {
    padding-top: 28px;
  }

  .case-back {
    margin-bottom: 26px;
  }

  .case-hero h1 {
    margin-block: 30px;
    font-size: clamp(48px, 14vw, 66px);
    line-height: 0.9;
  }

  .case-hero__intro {
    gap: 18px;
    padding-bottom: 26px;
  }

  .case-story__copy h2 {
    font-size: clamp(36px, 10vw, 48px);
  }

  .case-story__copy p {
    margin: 26px 0 0;
    font-size: 16px;
  }

  .case-story--solution {
    padding-top: 54px;
  }

  .deliverables {
    gap: 28px;
  }

  .deliverable {
    min-height: 72px;
  }

  .next-project__link {
    min-height: 140px;
    gap: 16px;
  }

  .next-project__link strong {
    font-size: clamp(32px, 9vw, 44px);
  }

  .contact.section {
    padding-top: 38px;
    padding-bottom: 18px;
  }

  .contact__panel,
  .contact--compact .contact__panel {
    min-height: auto;
    padding: 24px 18px;
  }

  .contact__top {
    gap: 20px;
  }

  .contact__top > span {
    font-size: 8px;
    line-height: 1.35;
  }

  .contact h2 {
    max-width: 100%;
    margin: 32px 0 34px;
    font-size: clamp(40px, 12vw, 52px);
    letter-spacing: -0.055em;
    line-height: 0.92;
    overflow-wrap: normal;
    word-break: normal;
  }

  .contact__bottom {
    gap: 24px;
  }

  .contact__primary {
    gap: 16px;
  }

  .contact__email {
    max-width: 100%;
    gap: 12px;
    font-size: 18px;
    letter-spacing: -0.025em;
  }

  .contact__phone {
    gap: 9px;
    padding-block: 8px 6px;
  }

  .contact__phone > span:first-child {
    font-size: 8px;
  }

  .contact__phone strong {
    font-size: 17px;
  }

  .contact__links {
    gap: 14px;
    font-size: 9px;
  }

  .site-footer {
    gap: 12px;
    padding-block: 20px 24px;
    font-size: 9px;
  }
}


/* =========================================================
   PROJECT TITLE CLAMP / V28
   ========================================================= */

.project-card__info h3 {
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}


/* =========================================================
   DESKTOP SECTION SNAP / V31
   Środek sekcji jest wyrównany do dostępnego obszaru pod
   headerem i paskiem postępu. Portfolio pozostaje swobodne.
   ========================================================= */

@media (min-width: 821px) {
  html.home-page,
  html.about-page {
    --desktop-snap-offset: 104px;
    --desktop-footer-height: 150px;
    --desktop-snap-height: calc(100dvh - var(--desktop-snap-offset));
    scroll-padding-top: var(--desktop-snap-offset);
    scroll-snap-type: none;
  }

  html.home-page body,
  html.about-page body {
    overscroll-behavior-y: none;
  }

  html.home-page main > .hero,
  html.home-page main > .impact-section,
  html.home-page main > .statement,
  html.home-page main > .services,
  html.home-page main > .about-preview,
  html.home-page main > .contact {
    min-height: var(--desktop-snap-height);
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  html.about-page main > .about-hero,
  html.about-page main > .bio,
  html.about-page main > .experience,
  html.about-page main > .tools,
  html.about-page main > .credentials,
  html.about-page main > .contact {
    min-height: var(--desktop-snap-height);
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }

  html.home-page main > .hero {
    min-height: 100dvh;
    scroll-snap-align: none;
  }

  html.home-page main > .impact-section {
    display: grid;
    align-content: center;
  }

  html.home-page .impact-section__inner {
    min-height: auto;
    padding-top: clamp(42px, 5vh, 68px);
    padding-bottom: 28px;
  }

  html.home-page .impact-section__experience {
    padding-top: 28px;
    padding-bottom: clamp(42px, 5vh, 68px);
  }

  html.home-page main > .statement,
  html.home-page main > .services {
    display: grid;
    align-content: center;
    padding-block: clamp(42px, 6vh, 72px);
  }

  html.home-page main > .contact {
    display: grid;
    min-height: calc(
      var(--desktop-snap-height) - var(--desktop-footer-height)
    );
    align-content: center;
    padding-block: clamp(24px, 3.5vh, 38px);
  }

  html.home-page .contact__panel {
    min-height: min(520px, calc(100dvh - 300px));
  }

  html.home-page .site-footer__inner {
    min-height: var(--desktop-footer-height);
  }

  html.home-page main > .about-preview {
    align-content: center;
    padding-block: clamp(42px, 6vh, 72px);
  }

  html.about-page main > .bio,
  html.about-page main > .experience,
  html.about-page main > .tools,
  html.about-page main > .credentials {
    display: grid;
    align-content: center;
    padding-block: clamp(42px, 6vh, 72px);
  }

  html.about-page main > .contact {
    display: grid;
    min-height: calc(
      var(--desktop-snap-height) - var(--desktop-footer-height)
    );
    align-content: center;
    padding-block: clamp(24px, 3.5vh, 38px);
  }

  html.about-page .contact__panel {
    min-height: min(520px, calc(100dvh - 300px));
  }

  html.about-page .site-footer__inner {
    min-height: var(--desktop-footer-height);
  }

  html.home-page main > .work,
  html.home-page main > .marquee {
    min-height: auto;
    scroll-snap-align: none;
    scroll-snap-stop: normal;
  }
}

@media (max-width: 820px) {
  html.home-page,
  html.about-page {
    scroll-snap-type: none;
    scroll-padding-top: 0;
  }
}


/* Finalne zabezpieczenie układu stopki V31 */
@media (max-width: 820px) {
  .site-footer {
    padding: 0;
    font-size: inherit;
  }

  .site-footer__inner {
    padding-block: 30px;
  }
}

@media (max-width: 580px) {
  .site-footer {
    gap: 0;
    padding: 0;
    font-size: inherit;
  }

  .site-footer__inner {
    gap: 22px;
    padding-block: 26px;
  }
}


/* Sterowane przejścia sekcja po sekcji V32 */
@media (min-width: 821px) {
  html.home-page,
  html.about-page {
    scroll-behavior: auto;
  }

  html.home-page main > .hero,
  html.home-page main > .impact-section,
  html.home-page main > .statement,
  html.home-page main > .services,
  html.home-page main > .about-preview,
  html.home-page main > .contact {
    scroll-snap-align: none;
  }

  html.about-page main > .about-hero,
  html.about-page main > .bio,
  html.about-page main > .experience,
  html.about-page main > .tools,
  html.about-page main > .credentials,
  html.about-page main > .contact {
    scroll-snap-align: none;
  }
}


/* =========================================================
   PORTFOLIO ENTRY SNAP / V35
   ========================================================= */

@media (min-width: 821px) {
  html.home-page main > .work {
    min-height: auto;
    scroll-snap-align: none;
  }

  html.home-page main > .work > .section-header {
    scroll-margin-top: var(--desktop-snap-offset);
  }
}


/* =========================================================
   KINSKY SVG SECTION MARKS / V36
   ========================================================= */

.has-section-logo {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.has-section-logo > :not(.section-logo-mark) {
  position: relative;
  z-index: 2;
}

.section-logo-mark {
  --section-logo-color: rgba(204, 7, 25, 0.095);
  position: absolute;
  z-index: 1;
  display: block;
  width: clamp(260px, 34vw, 610px);
  aspect-ratio: 305.49 / 260.99;
  background: var(--section-logo-color);
  opacity: 1;
  pointer-events: none;
  -webkit-mask:
    url("assets/branding/logo-kinsky-symbol.svg")
    center / contain no-repeat;
  mask:
    url("assets/branding/logo-kinsky-symbol.svg")
    center / contain no-repeat;
}

.section-logo-mark--accent {
  --section-logo-color: rgba(204, 7, 25, 0.105);
  filter: drop-shadow(0 0 40px rgba(204, 7, 25, 0.09));
}

.section-logo-mark--black {
  --section-logo-color: rgba(0, 0, 0, 0.085);
}

.section-logo-mark--image {
  --section-logo-color: rgba(204, 7, 25, 0.075);
  z-index: 3;
}

.section-logo-mark--left {
  top: 14%;
  left: -9%;
  transform: rotate(-14deg);
}

.section-logo-mark--right {
  right: -8%;
  bottom: 7%;
  transform: rotate(11deg);
}

.section-logo-mark--center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-7deg);
}

.section-logo-mark--bottom-left {
  bottom: -12%;
  left: 3%;
  transform: rotate(8deg);
}

.section-logo-mark--top-right {
  top: -9%;
  right: 3%;
  transform: rotate(-9deg);
}

.section-logo-mark--compact {
  width: clamp(110px, 13vw, 220px);
  opacity: 0.72;
}

/* Białe i czerwone tła — czarny znak */
.marquee .section-logo-mark,
.impact-section .section-logo-mark,
.statement .section-logo-mark,
.contact .section-logo-mark {
  --section-logo-color: rgba(0, 0, 0, 0.085);
}

/* Czerwona sekcja 100+ */
.impact-section .section-logo-mark {
  width: clamp(330px, 40vw, 720px);
}

/* Jasna sekcja tekstowa */
.statement .section-logo-mark {
  width: clamp(280px, 32vw, 560px);
}

/* Kontakt ma czerwony panel jako dziecko sekcji */
.contact .section-logo-mark {
  z-index: 3;
  width: clamp(250px, 30vw, 520px);
}

.contact__panel {
  position: relative;
  z-index: 2;
}

.contact__panel > * {
  position: relative;
  z-index: 4;
}

/* Logo nad zdjęciem, lecz pod ewentualnymi opisami */
.case-cover .section-logo-mark,
.case-gallery .section-logo-mark {
  z-index: 4;
}

.case-cover img,
.case-gallery > :not(.section-logo-mark) {
  position: relative;
  z-index: 2;
}

/* Portfolio jest długie — znak trzymamy przy nagłówku */
.work .section-logo-mark,
.work-browser .section-logo-mark {
  top: 38px;
  right: -5%;
  bottom: auto;
  left: auto;
  transform: rotate(10deg);
}

/* Stopka również otrzymuje czarny znak na czerwonym tle */
.site-footer::after {
  content: "";
  position: absolute;
  right: 3%;
  bottom: -24%;
  z-index: 0;
  width: clamp(180px, 22vw, 360px);
  aspect-ratio: 305.49 / 260.99;
  background: rgba(0, 0, 0, 0.09);
  pointer-events: none;
  transform: rotate(-10deg);
  -webkit-mask:
    url("assets/branding/logo-kinsky-symbol.svg")
    center / contain no-repeat;
  mask:
    url("assets/branding/logo-kinsky-symbol.svg")
    center / contain no-repeat;
}

.site-footer__inner {
  position: relative;
  z-index: 2;
}

@media (max-width: 820px) {
  .section-logo-mark {
    width: clamp(190px, 58vw, 360px);
    opacity: 0.72;
  }

  .section-logo-mark--compact {
    width: clamp(90px, 27vw, 150px);
  }

  .section-logo-mark--left {
    top: 18%;
    left: -22%;
  }

  .section-logo-mark--right {
    right: -20%;
    bottom: 8%;
  }

  .section-logo-mark--center {
    width: clamp(180px, 48vw, 300px);
  }

  .contact .section-logo-mark {
    top: 17%;
    right: -20%;
    width: 250px;
  }

  .site-footer::after {
    right: -16%;
    bottom: -5%;
    width: 230px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-logo-mark,
  .site-footer::after {
    filter: none;
  }
}


/* =========================================================
   HERO LOGO SVG / V37
   Przywrócony duży znak z wcześniejszej wersji hero.
   ========================================================= */

.hero > .section-logo-mark {
  top: 12%;
  right: auto;
  bottom: auto;
  left: -7vw;
  z-index: 1;
  width: min(50vw, 820px);
  aspect-ratio: 305.49 / 260.99;
  --section-logo-color: rgba(204, 7, 25, 0.145);
  opacity: 1;
  filter:
    blur(0.7px)
    drop-shadow(0 0 48px rgba(204, 7, 25, 0.18));
  transform: rotate(-14deg);
}

.hero > :not(.section-logo-mark) {
  position: relative;
  z-index: 2;
}

@media (max-width: 820px) {
  .hero > .section-logo-mark {
    top: 20%;
    left: -18%;
    width: min(84vw, 470px);
    --section-logo-color: rgba(204, 7, 25, 0.12);
    filter:
      blur(0.5px)
      drop-shadow(0 0 30px rgba(204, 7, 25, 0.14));
    transform: rotate(-12deg);
  }
}

@media (max-width: 580px) {
  .hero > .section-logo-mark {
    top: 16%;
    left: -28%;
    width: 92vw;
    --section-logo-color: rgba(204, 7, 25, 0.105);
  }
}


/* =========================================================
   PNG SECTION MARKS / V38
   Zwykłe obrazy PNG zamiast maskowania SVG.
   ========================================================= */

.section-logo-mark,
.site-footer::after {
  background-color: transparent !important;
  background-image: url("assets/branding/logo-kinsky-symbol.png") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  -webkit-mask: none !important;
  mask: none !important;
}

/* Ciemne tło — naturalny czerwony znak */
.section-logo-mark--accent {
  opacity: 0.13;
  filter:
    blur(0.35px)
    drop-shadow(0 0 38px rgba(194, 14, 26, 0.16));
}

/* Białe i czerwone tła — czarny znak */
.section-logo-mark--black,
.marquee .section-logo-mark,
.impact-section .section-logo-mark,
.statement .section-logo-mark,
.contact .section-logo-mark,
.site-footer::after {
  opacity: 0.09;
  filter: brightness(0);
}

.section-logo-mark--image {
  opacity: 0.08;
  filter: none;
}

/* Duży znak w hero — tak jak we wcześniejszej wersji */
.hero > .section-logo-mark {
  top: 12%;
  right: auto;
  bottom: auto;
  left: -7vw;
  z-index: 1;
  width: min(50vw, 820px);
  opacity: 0.145;
  filter:
    blur(0.45px)
    drop-shadow(0 0 52px rgba(194, 14, 26, 0.2));
  transform: rotate(-14deg);
}

/* Czerwone tło stopki musi sięgać do końca strony */
.site-footer {
  background: var(--accent);
  box-shadow: 0 100vh 0 100vh var(--accent);
}

.site-footer::before {
  background: var(--accent);
}

@media (max-width: 820px) {
  .hero > .section-logo-mark {
    top: 20%;
    left: -18%;
    width: min(84vw, 470px);
    opacity: 0.12;
  }
}

@media (max-width: 580px) {
  .hero > .section-logo-mark {
    top: 16%;
    left: -28%;
    width: 92vw;
    opacity: 0.105;
  }
}


/* =========================================================
   SECTION LOGO COMPOSITION / V39
   ========================================================= */

/* Znaki mogą wychodzić poza kontener sekcji. Brak lokalnego
   kontekstu warstw pozwala utrzymać wszystkie znaki globalnie
   pod fotografiami, kafelkami i treścią sąsiednich sekcji. */
.has-section-logo {
  isolation: auto !important;
  overflow: visible !important;
}

/* Znak zawsze pozostaje na najniższej warstwie sekcji. */
.section-logo-mark {
  z-index: 0 !important;
  pointer-events: none;
}

.has-section-logo > :not(.section-logo-mark) {
  position: relative;
  z-index: 2 !important;
}

/* Dawne wyjątki dla galerii i portfolio nie mogą wynosić znaku
   ponad fotografie lub kafelki. */
.section-logo-mark--image,
.case-cover .section-logo-mark,
.case-gallery .section-logo-mark,
.work .section-logo-mark,
.work-browser .section-logo-mark {
  z-index: 0 !important;
}

/* Biała sekcja — trzy różne znaki. Istniejący znak pozostaje,
   a dwa kolejne mają inną skalę, pozycję i obrót. */
.statement .section-logo-mark {
  z-index: 0 !important;
  filter: brightness(0);
}

.statement-logo-mark--secondary {
  top: 17%;
  right: auto;
  bottom: auto;
  left: -10vw;
  width: clamp(230px, 27vw, 520px);
  opacity: 0.065;
  transform: rotate(18deg);
}

.statement-logo-mark--tertiary {
  top: auto;
  right: 8vw;
  bottom: -18%;
  left: auto;
  width: clamp(150px, 18vw, 340px);
  opacity: 0.08;
  transform: rotate(-26deg);
}

/* Sekcja 100+ pozostaje bez zmian — nie nadpisujemy jej skali,
   pozycji ani przezroczystości. */

/* Kontakt bez znaku. */
.contact .section-logo-mark {
  display: none !important;
}

/* Stopka bez znaku. */
.site-footer::after {
  display: none !important;
  content: none !important;
  background-image: none !important;
}

/* Portfolio: znak pozostaje wyłącznie jako dekoracja tła
   i nigdy nie przykrywa kafelków. */
.work .project-grid,
.work-browser .project-grid,
.work .section-header,
.work-browser .section-header {
  position: relative;
  z-index: 2;
}

@media (max-width: 820px) {
  .statement-logo-mark--secondary {
    top: 12%;
    left: -32%;
    width: 72vw;
  }

  .statement-logo-mark--tertiary {
    right: -18%;
    bottom: -4%;
    width: 46vw;
  }
}


/* =========================================================
   MOBILE FULL-BLEED CONTACT + FOOTER / V40
   ========================================================= */

@media (max-width: 820px) {
  .contact.section {
    width: 100dvw;
    max-width: 100dvw;
    margin-right: calc(50% - 50dvw);
    margin-left: calc(50% - 50dvw);
    padding: 0 !important;
    background: var(--accent);
  }

  .contact__panel,
  .contact--compact .contact__panel {
    width: 100%;
    max-width: none;
    margin: 0;
    border: 0;
    background: var(--accent);
  }

  .site-footer {
    width: 100dvw;
    max-width: 100dvw;
    margin-top: 0;
    margin-right: calc(50% - 50dvw);
    margin-left: calc(50% - 50dvw);
    border-top: 0;
    background: var(--accent);
    box-shadow: none;
  }

  .site-footer::before {
    inset: -1px 0 -1px 50%;
    width: 100dvw;
    max-width: 100dvw;
    background: var(--accent);
  }

  .site-footer__inner {
    width: min(100% - 24px, 1490px);
    max-width: calc(100% - 24px);
    margin-inline: auto;
    padding-top: 28px;
  }

  main {
    padding-bottom: 0;
  }
}

@media (max-width: 580px) {
  .contact__panel,
  .contact--compact .contact__panel {
    padding: 28px 18px 26px;
  }

  .site-footer__inner {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    padding-top: 26px;
    padding-bottom: 28px;
  }
}

/* About page additions from the 2026 CV */
@media (max-width: 820px) {
  .credentials {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .credential-card {
    grid-column: auto;
    grid-row: auto;
    min-height: 200px;
    border-left: 1px solid var(--line);
  }

  .credential-card h3 {
    margin-top: 48px;
    line-height: 1.08;
  }
}

@media (max-width: 580px) {
  .about-stats {
    grid-template-columns: 1fr;
    margin: 30px 0 0;
  }

  .about-stats > div {
    min-height: 94px;
    padding: 16px 0;
  }

  .about-stats > div + div {
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .credential-card {
    min-height: 180px;
    padding: 22px;
  }

  .credential-card h3 {
    margin-top: 38px;
    font-size: clamp(25px, 7vw, 28px);
  }
}

@media (max-width: 820px) {
  .about-preview {
    gap: 30px;
  }
}

@media (max-width: 580px) {
  .about-preview__copy .section-index + h2 {
    margin-top: 24px;
  }
}


/* =========================================================
   COMPACT DESKTOP / FULL HD
   Keeps the desktop composition lighter on shorter screens.
   ========================================================= */

@media (min-width: 1081px) and (max-width: 1280px),
  (min-width: 1081px) and (max-width: 1920px) and (max-height: 1080px) {
  :root {
    --shell: min(1180px, calc(100% - 36px));
    --section-space: clamp(62px, 8vh, 92px);
  }

  html.home-page,
  html.about-page {
    --desktop-snap-offset: 96px;
    --desktop-footer-height: 118px;
    --desktop-snap-height: calc(100dvh - var(--desktop-snap-offset));
  }

  .site-header {
    min-height: 62px;
    padding: 10px 15px;
  }

  .brand {
    width: clamp(180px, 14vw, 220px);
  }

  .desktop-nav {
    gap: 24px;
  }

  .hero__footer {
    min-height: 31px;
    padding-block: 7px;
  }

  html.home-page main > .hero,
  html.home-page main > .impact-section,
  html.home-page main > .statement,
  html.home-page main > .services,
  html.home-page main > .about-preview,
  html.home-page main > .contact,
  html.about-page main > .about-hero,
  html.about-page main > .bio,
  html.about-page main > .experience,
  html.about-page main > .tools,
  html.about-page main > .credentials,
  html.about-page main > .contact {
    min-height: min(740px, var(--desktop-snap-height));
  }

  html.home-page main > .hero {
    min-height: 100dvh;
  }

  html.home-page main > .statement,
  html.home-page main > .services,
  html.home-page main > .about-preview,
  html.about-page main > .bio,
  html.about-page main > .experience,
  html.about-page main > .tools,
  html.about-page main > .credentials {
    padding-block: clamp(34px, 5vh, 58px);
  }

  .hero {
    padding-top: 128px;
  }

  .hero__meta,
  .about-hero__meta,
  .page-intro__meta,
  .case-hero__meta {
    padding-bottom: 15px;
  }

  .hero__layout {
    grid-template-columns: minmax(0, 1.12fr) minmax(430px, 0.88fr);
    gap: clamp(24px, 3vw, 42px);
    padding-block: clamp(28px, 5vh, 54px);
  }

  .hero__copy {
    max-width: 840px;
  }

  .eyebrow {
    margin-bottom: 18px;
  }

  .hero__title {
    font-size: clamp(60px, 7vw, 94px);
    letter-spacing: -0.062em;
    line-height: 0.88;
  }

  .hero__title span {
    margin-left: clamp(0px, 4.6vw, 58px);
  }

  .hero__bottom {
    grid-template-columns: minmax(0, 1fr);
    max-width: 720px;
    margin: clamp(26px, 4vh, 42px) 0 0 clamp(0px, 4.8vw, 64px);
  }

  .hero__description {
    font-size: clamp(16px, 1.25vw, 19px);
    line-height: 1.46;
  }

  .button {
    min-width: 188px;
    min-height: 48px;
    gap: 24px;
    padding-inline: 16px;
  }

  .hero-art {
    min-height: 0;
  }

  .section-header {
    grid-template-columns: minmax(100px, 0.22fr) minmax(0, 1fr) minmax(230px, 0.38fr);
    gap: clamp(22px, 4vw, 56px);
    margin-bottom: clamp(34px, 5vh, 58px);
  }

  .section-header h2,
  .statement h2,
  .about-preview h2,
  .bio h2,
  .deliverables h2 {
    font-size: clamp(40px, 4.8vw, 68px);
    letter-spacing: -0.052em;
    line-height: 0.96;
  }

  .section-header__side p,
  .statement__details p,
  .service p,
  .timeline__item p,
  .tool-card p,
  .credential-card p {
    font-size: 15px;
    line-height: 1.45;
  }

  .project-grid {
    gap: clamp(14px, 1.6vw, 22px);
  }

  .project-card__info {
    padding-bottom: 22px;
  }

  .project-card__info h3 {
    font-size: clamp(21px, 1.9vw, 28px);
  }

  .statement__lead {
    margin-bottom: 16px;
    font-size: clamp(17px, 1.45vw, 21px);
  }

  .statement__details {
    gap: 28px;
    margin-top: clamp(28px, 5vh, 48px);
    margin-left: clamp(0px, 8vw, 110px);
  }

  .service {
    grid-template-columns: 56px minmax(210px, 0.4fr) minmax(250px, 0.6fr) auto;
    gap: 22px;
    min-height: 118px;
  }

  .service h3 {
    font-size: clamp(27px, 3vw, 40px);
    letter-spacing: -0.048em;
  }

  .about-preview {
    grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1.32fr);
    gap: clamp(34px, 5vw, 68px);
  }

  .about-preview__lead {
    max-width: 620px;
    margin-top: 26px;
    margin-left: clamp(0px, 5vw, 70px);
    font-size: clamp(16px, 1.3vw, 19px);
  }

  .about-preview__facts {
    margin-block: 32px;
  }

  .about-preview__facts div {
    min-height: 92px;
    padding: 16px;
  }

  .portrait-photo,
  .portrait-photo--large {
    min-height: clamp(500px, 64vh, 610px);
  }

  .portrait-photo--preview {
    min-height: clamp(440px, 58vh, 520px);
  }

  .contact__panel,
  .contact--compact .contact__panel {
    min-height: min(470px, calc(100dvh - 248px));
    padding: clamp(28px, 4vw, 52px);
  }

  .contact h2 {
    margin: clamp(34px, 5vh, 48px) 0;
    font-size: clamp(58px, 7.4vw, 104px);
    letter-spacing: -0.068em;
    line-height: 0.86;
  }

  .contact__email {
    font-size: clamp(20px, 2.2vw, 30px);
  }

  .site-footer__inner {
    min-height: 118px;
    padding-block: 24px;
  }

  .site-footer__brand strong {
    font-size: clamp(21px, 2vw, 28px);
  }

  .subpage {
    padding-top: 116px;
  }

  .page-intro,
  .about-hero,
  .case-hero {
    padding-top: clamp(36px, 5vh, 62px);
  }

  .page-intro h1,
  .case-hero h1 {
    margin-block: clamp(36px, 6vh, 58px);
    font-size: clamp(62px, 7.8vw, 108px);
    letter-spacing: -0.068em;
    line-height: 0.86;
  }

  .page-intro h1 span {
    margin-left: clamp(0px, 7vw, 98px);
  }

  .page-intro__bottom,
  .case-hero__intro {
    gap: 30px;
    padding-bottom: 30px;
  }

  .about-hero__layout {
    grid-template-columns: minmax(0, 1.16fr) minmax(290px, 0.84fr);
    gap: clamp(34px, 5vw, 70px);
    padding-block: clamp(36px, 5.5vh, 62px);
  }

  .about-hero h1 {
    font-size: clamp(66px, 8.4vw, 112px);
    letter-spacing: -0.07em;
    line-height: 0.86;
  }

  .about-hero h1 span,
  .about-hero__copy > p,
  .about-stats {
    margin-left: clamp(0px, 5vw, 72px);
  }

  .about-hero__copy > p {
    margin-top: 34px;
    font-size: clamp(16px, 1.3vw, 19px);
    line-height: 1.47;
  }

  .about-stats {
    margin-top: 30px;
  }

  .about-stats > div {
    min-height: 88px;
    padding-block: 14px;
  }

  .about-stats strong {
    font-size: clamp(48px, 4.6vw, 62px);
  }

  .bio__columns {
    gap: clamp(26px, 5vw, 58px);
    margin-top: 36px;
    margin-left: clamp(0px, 6vw, 86px);
  }

  .timeline__item {
    grid-template-columns: minmax(100px, 0.2fr) minmax(220px, 0.38fr) minmax(240px, 0.42fr);
    gap: 24px;
    min-height: 112px;
  }

  .timeline__item h3 {
    font-size: clamp(26px, 2.8vw, 38px);
  }

  .tool-card,
  .credential-card {
    min-height: 210px;
    padding: 22px;
  }

  .tool-card strong {
    margin-top: 58px;
    font-size: clamp(23px, 2.35vw, 32px);
  }

  .credential-card h3 {
    margin-top: 54px;
    font-size: clamp(22px, 2.1vw, 30px);
  }

  .impact-section__inner {
    grid-template-columns: minmax(240px, 0.52fr) minmax(0, 1.48fr);
    gap: clamp(32px, 5vw, 70px);
    min-height: auto;
    padding-block: clamp(36px, 5.5vh, 62px) 24px;
  }

  .impact-section__number strong {
    font-size: clamp(96px, 10vw, 146px);
  }

  .impact-section__number span {
    max-width: 230px;
    font-size: clamp(18px, 1.8vw, 24px);
  }

  .impact-section__eyebrow {
    margin-bottom: 18px;
  }

  .impact-section__copy h2 {
    max-width: 760px;
    font-size: clamp(42px, 5.1vw, 72px);
    letter-spacing: -0.058em;
    line-height: 0.93;
  }

  .impact-section__copy > p:not(.impact-section__eyebrow) {
    max-width: 580px;
    margin-top: 24px;
    font-size: clamp(16px, 1.3vw, 19px);
  }

  .impact-section__competencies-title {
    margin-top: 28px;
  }

  .impact-section__experience {
    max-width: 820px;
    padding-top: 24px;
    padding-bottom: clamp(34px, 5vh, 54px);
  }

  .impact-stat strong {
    font-size: clamp(62px, 6.2vw, 88px);
  }

  .impact-stat__divider {
    height: 68px;
  }

  .case-cover img {
    max-height: 720px;
  }

  .case-story--solution {
    padding-top: clamp(54px, 7vh, 82px);
  }

  .case-story__copy h2 {
    font-size: clamp(40px, 4.8vw, 68px);
  }

  .case-story__copy p {
    margin-top: 30px;
    margin-left: clamp(0px, 7vw, 92px);
  }

  .deliverable {
    min-height: 78px;
  }

  .next-project__link {
    min-height: 158px;
  }

  .next-project__link strong {
    font-size: clamp(34px, 4.8vw, 62px);
  }
}

/* =========================================================
   FREE-SCROLL SECTION SPACING
   ========================================================= */

.section-header {
  margin-bottom: 45px;
}

html.home-page main > .services {
  padding-bottom: 45px;
}

html.home-page main > .about-preview {
  min-height: auto !important;
  padding-top: 0 !important;
}

/* =========================================================
   MOBILE CTA, POLISH COPY AND SHARED CONTACT BACKGROUND
   ========================================================= */

@media (max-width: 820px) {
  .hero__contact-links {
    justify-content: center;
    width: 100%;
  }

  .sport-gallery__controls {
    display: none;
  }

  .service__actions {
    position: relative;
    left: -65px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: calc(100dvw - 24px);
    max-width: calc(100dvw - 24px);
  }

  .service__button {
    width: 100%;
    min-width: 0;
  }

  html.home-page main > .work.section {
    padding-top: 35px;
  }

  .contact__panel,
  .contact--compact .contact__panel {
    min-height: auto;
  }
}

@media (max-width: 580px) {
  .service__actions {
    left: -61px;
  }

  .section-index--stat {
    gap: 6px;
  }

  .section-index__number {
    font-size: clamp(48px, 14vw, 58px);
  }

  .section-index__label {
    max-width: 150px;
    font-size: 10px;
  }

  .contact h2 {
    margin-block: 30px;
  }
}

@media (min-width: 821px) {
  .contact.section {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding: 0;
    background: var(--accent);
  }

  .contact__panel,
  .contact--compact .contact__panel {
    width: var(--shell);
    max-width: 100%;
    margin-inline: auto;
    background: transparent;
  }

  .site-footer {
    margin-top: 0;
    border-top: 0;
    background: var(--accent);
  }
}

/* =========================================================
   HERO SPACING + CONTACT ARTWORK
   ========================================================= */

.contact.section {
  position: relative;
  isolation: isolate;
  overflow: hidden !important;
  background: var(--accent);
}

.contact.section::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  background: url("assets/branding/siema!.png") center bottom 64px / 70% auto no-repeat;
  opacity: 0.15;
  pointer-events: none;
}

.contact__panel,
.contact--compact .contact__panel {
  position: relative;
  z-index: 1;
  background: transparent;
}

@media (max-width: 820px) {
  .hero__layout {
    padding-top: 12px;
  }

  .contact.section::before {
    background-position: center bottom 40px;
  }
}

@media (min-width: 821px) {
  .hero__layout {
    padding-top: 22px;
  }
}

/* Footer actions */
.site-footer__social,
.site-footer__top {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
}

.site-footer__social:hover,
.site-footer__top:hover {
  background: var(--ink);
  color: #fff;
  opacity: 1;
  transform: translateY(-2px);
}

.site-footer__top {
  display: none !important;
}

/* 100+ section artwork */
.impact-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.impact-section::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  content: "";
  background: url("assets/branding/kinskydesign.png") center / 78% auto no-repeat;
  opacity: 0.15;
  pointer-events: none;
}

.impact-section > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 820px) {
  .impact-section::before {
    background-size: 92% auto;
  }
}

@media (min-width: 821px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: clamp(24px, 3vw, 48px);
  }

  .desktop-nav {
    justify-self: start;
  }
}

/* =========================================================
   404 / ERROR PAGE
   ========================================================= */

html.error-page,
html.error-page body {
  min-height: 100%;
}

html.error-page body {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 76% 46%, rgba(193, 13, 25, 0.13), transparent 34%),
    var(--bg);
}

.error-page .site-header {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.error-nav {
  justify-self: center !important;
  color: var(--muted);
  pointer-events: none;
}

.error-arrow--back {
  transform: rotate(225deg);
}

.error-404 {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100dvh;
  overflow: hidden;
  padding-top: 68px;
}

.error-404__mark {
  position: absolute;
  top: 50%;
  left: 67%;
  z-index: 0;
  width: min(58vw, 920px);
  aspect-ratio: 1223 / 1045;
  background: url("assets/branding/logo-kinsky-symbol.png") center / contain no-repeat;
  opacity: 0.12;
  filter:
    blur(0.35px)
    drop-shadow(0 0 52px rgba(193, 13, 25, 0.2));
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-10deg);
}

.error-404__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(270px, 0.75fr);
  grid-template-rows: 1fr;
  min-height: calc(100dvh - 68px);
  padding-block: clamp(24px, 4vh, 52px) clamp(20px, 3vh, 38px);
}

.error-404__content {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 760px;
  padding-block: clamp(52px, 8vh, 96px);
}

.error-404__index {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 clamp(20px, 3vh, 34px);
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.error-404__index::before {
  width: 34px;
  height: 2px;
  background: currentColor;
  content: "";
}

.error-404 h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(88px, 11vw, 190px);
  font-weight: 850;
  letter-spacing: -0.085em;
  line-height: 0.78;
  text-transform: uppercase;
}

.error-404 h1 span {
  color: var(--accent);
}

.error-404__description {
  max-width: 540px;
  margin: clamp(34px, 5vh, 62px) 0 0;
  color: #c7c3ba;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.55;
}

.error-404__button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 38px;
  margin-top: clamp(28px, 4vh, 46px);
  padding: 0 18px 0 22px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    color 260ms ease,
    background-color 260ms ease,
    transform 340ms var(--ease);
}

.error-404__button:hover {
  background: transparent;
  color: var(--accent);
  transform: translateY(-3px);
}

.error-404__button-icon {
  font-family: Arial, sans-serif;
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
  transition: transform 340ms var(--ease);
}

.error-404__button:hover .error-404__button-icon {
  transform: translateX(-5px);
}

.error-404__number {
  position: absolute;
  top: clamp(82px, 11vh, 130px);
  right: 0;
  z-index: 1;
  margin: 0;
  color: transparent;
  font-size: clamp(150px, 23vw, 390px);
  font-weight: 900;
  letter-spacing: 0.015em;
  line-height: 0.72;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12);
  user-select: none;
}

@media (max-width: 820px) {
  .error-page .site-header {
    grid-template-columns: 1fr;
  }

  .error-page .brand {
    width: 190px;
  }

  .error-404 {
    padding-top: 68px;
  }

  .error-404__mark {
    top: 43%;
    left: 72%;
    width: min(116vw, 680px);
    opacity: 0.105;
  }

  .error-404__grid {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    min-height: calc(100dvh - 68px);
    padding-block: 20px;
  }

  .error-404__content {
    align-self: center;
    padding-block: 48px 32px;
  }

  .error-404 h1 {
    font-size: clamp(78px, 23vw, 132px);
  }

  .error-404__description {
    max-width: 460px;
  }

  .error-404__button {
    width: 100%;
  }

  .error-404__number {
    top: 78px;
    right: -0.02em;
    margin: 0;
    font-size: clamp(116px, 38vw, 210px);
    opacity: 0.78;
  }
}

@media (max-width: 580px) {
  .error-404__grid {
    width: calc(100% - 28px);
  }

  .error-404__content {
    padding-block: 38px 28px;
  }

  .error-404__index {
    margin-bottom: 22px;
  }

  .error-404__description {
    margin-top: 28px;
    font-size: 15px;
  }

  .error-404__button {
    min-height: 56px;
    margin-top: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .error-404__button,
  .error-404__button-icon {
    transition: none;
  }
}
