/* =========================================================
   Jitka Hrůzová — portfolio
   Editorial / monochrome, &Walsh-inspired
   ========================================================= */

:root {
  --bg: #f4f2ee;        /* warm off-white paper */
  --ink: #111111;       /* near-black */
  --ink-soft: #6b6b6b;  /* muted grey */
  --line: #d8d5cf;      /* hairline */
  --accent: #111111;    /* keep monochrome; change for a pop of colour */
  --maxw: 1600px;
  --pad: clamp(20px, 5vw, 64px);
  --header-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

/* ============================ HEADER ============================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--pad);
  mix-blend-mode: difference;   /* wordmark stays legible over hero + paper */
  color: #ffffff;
}
.site-header a, .site-header button { color: #ffffff; }

.wordmark {
  font-weight: 800;
  font-size: clamp(16px, 1.4vw, 20px);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: clamp(18px, 3vw, 48px);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.nav a { position: relative; padding: 4px 0; }
.nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.nav a:hover::after { transform: scaleX(1); }

.lang-toggle {
  background: none;
  border: 1px solid currentColor;
  border-radius: 100px;
  color: inherit;
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .02em;
  padding: 6px 12px;
  cursor: pointer;
  display: inline-flex;
  gap: 4px;
  align-items: center;
  transition: opacity .2s;
}
.lang-toggle:hover { opacity: .7; }
.lang-sep { opacity: .4; }
/* active language is bold, the other dimmed — set via [data-lang] on <html> */
html[data-lang="cs"] .lang-en { opacity: .4; }
html[data-lang="en"] .lang-cs { opacity: .4; }

/* ============================ HERO ============================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: calc(var(--header-h) + 24px) var(--pad) 96px;
  overflow: hidden;
}

/* marquee ticker */
.hero-marquee {
  position: absolute;
  top: calc(var(--header-h) + 8px);
  left: 0; right: 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  opacity: .85;
}
.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  will-change: transform;
  animation: marquee 32s linear infinite;
}
.marquee-track span {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 0 22px;
  color: var(--ink-soft);
}
@keyframes marquee { to { transform: translateX(-50%); } }

.hero-stage {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  display: grid;
  place-items: center;
  text-align: center;
}

.hero-title {
  position: relative;
  z-index: 2;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.92;
  font-size: clamp(44px, 11vw, 190px);
  text-transform: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.hero-amp {
  font-weight: 400;
  font-style: italic;
  font-size: 0.62em;
  line-height: 0.6;
  margin: -0.04em 0;
  color: var(--ink-soft);
}

/* walking brain sits behind/among the type */
.hero-video-wrap {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.hero-video {
  width: clamp(220px, 34vw, 460px);
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  mix-blend-mode: multiply;   /* drops white video bg onto the paper */
}

.hero-caption {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin-top: clamp(28px, 5vw, 56px);
  text-align: center;
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--ink-soft);
  letter-spacing: -0.01em;
}

.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
}
.scroll-arrow { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(5px)} }

/* ============================ SECTION SHELL ============================ */
.work, .info, .contact { padding: clamp(64px, 10vw, 140px) var(--pad); }
.work, .info { max-width: var(--maxw); margin: 0 auto; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: clamp(28px, 4vw, 56px);
}
.section-title {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(28px, 4.5vw, 56px);
}
.section-count {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ============================ WORK GRID ============================ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 48px);
}
@media (max-width: 720px) { .work-grid { grid-template-columns: 1fr; } }

.work-item { display: block; cursor: pointer; }
.work-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e7e4de;
  border-radius: 2px;
}
.work-thumb img,
.work-thumb video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
}
.work-item:hover .work-thumb img,
.work-item:hover .work-thumb video { transform: scale(1.04); }

.work-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}
.work-name {
  font-weight: 700;
  font-size: clamp(18px, 1.8vw, 24px);
  letter-spacing: -0.02em;
}
.work-name .amp { color: var(--ink-soft); font-weight: 400; font-style: italic; }
.work-tag {
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: .02em;
  white-space: nowrap;
}

/* placeholder tiles (shown while projects are empty) */
.work-item.placeholder { cursor: default; }
.work-item.placeholder .work-thumb {
  display: grid; place-items: center;
  border: 1px dashed var(--line);
  background: transparent;
}
.placeholder-mark {
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 300;
  color: var(--line);
  line-height: 1;
}
.work-item.placeholder .work-name { color: var(--ink-soft); font-weight: 500; }

/* ============================ INFO ============================ */
.info-inner { max-width: 1100px; }
.info-lead {
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  font-size: clamp(24px, 3.4vw, 44px);
  margin-bottom: clamp(40px, 6vw, 80px);
}
.info-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 80px);
}
@media (max-width: 720px) { .info-cols { grid-template-columns: 1fr; } }
.info-col h3 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.info-list { list-style: none; }
.info-list li {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.info-list li:last-child { border-bottom: 1px solid var(--line); }
.info-col p { font-size: clamp(16px, 1.6vw, 20px); color: var(--ink); line-height: 1.5; }

/* ============================ CONTACT / FOOTER ============================ */
.contact {
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  border-radius: 24px 24px 0 0;
}
.contact-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .6;
  margin-bottom: 28px;
}
.contact-mail {
  display: inline-block;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: clamp(28px, 7vw, 96px);
  line-height: 1;
  transition: opacity .25s;
  word-break: break-word;
}
.contact-mail:hover { opacity: .6; }
.contact-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: clamp(56px, 9vw, 120px);
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.18);
}
.social { list-style: none; display: flex; gap: 22px; font-weight: 500; }
.social a { position: relative; }
.social a:hover { opacity: .6; }
.colophon { font-size: 14px; opacity: .6; }

/* ============================ MOTION SAFE ============================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .scroll-arrow { animation: none; }
}
