/* ===========================
   PETR NOHEL — STYLES
   =========================== */

:root {
  --bg: #0A0A0A;
  --bg-2: #0E0E0E;
  --light: #FFFFFF;
  --light-bg: #FFFFFF;
  --text: #E9E9EC;
  --text-dim: #B6B7BC;
  --text-dimmer: #8A8B91;
  --text-dark: #0A0A0A;
  --text-dark-dim: #5A5B61;
  --accent: #1E5BFF;
  --accent-hover: #3F76FF;
  --border: rgba(255, 255, 255, 0.12);
  --border-dark: rgba(0, 0, 0, 0.1);

  --font-display: "Saira Condensed", "Arial Narrow", sans-serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1280px;
  --pad-x: clamp(20px, 5vw, 80px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

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

/* ===========================
   TYPOGRAPHY HELPERS
   =========================== */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.005em;
  line-height: 0.95;
  text-transform: uppercase;
  margin: 0 0 28px;
  color: var(--light);
}
.section--light .display { color: var(--text-dark); }
.display { font-size: clamp(48px, 7vw, 92px); }
.display--md { font-size: clamp(38px, 5vw, 64px); }
.display--lg { font-size: clamp(48px, 6.5vw, 88px); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 20px;
}
.eyebrow--accent { color: var(--accent); }
.eyebrow--center { text-align: center; }
.section--light .eyebrow { color: var(--text-dark-dim); }
.section--light .eyebrow--accent { color: var(--accent); }

p { margin: 0 0 16px; color: var(--text-dim); }
.section--light p { color: var(--text-dark-dim); }

/* ===========================
   LAYOUT
   =========================== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  position: relative;
  z-index: 1;
}

.section {
  position: relative;
  padding: clamp(80px, 12vw, 160px) 0;
  overflow: hidden;
}
.section--dark { background: var(--bg); }
.section--light { background: var(--light-bg); color: var(--text-dark); }
.section--no-top { padding-top: 0; }

/* PN watermark */
.watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-family: var(--font-display);
  font-size: clamp(400px, 60vw, 900px);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.025);
  pointer-events: none;
  user-select: none;
  line-height: 1;
  letter-spacing: -0.05em;
  z-index: 0;
  padding-right: -10vw;
  transform: translateX(15%);
}
.watermark--light { color: rgba(0, 0, 0, 0.04); }

/* ===========================
   NAV
   =========================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, padding 0.3s ease;
}
.nav.is-scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav__logo {
  display: flex;
  align-items: center;
  color: var(--light);
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}
.nav__logo:hover { opacity: 0.85; }
.nav__logo img {
  height: 38px;
  width: auto;
  filter: brightness(0) invert(1); /* force pure white regardless of source SVG fill */
  transition: height 0.3s ease;
}
.nav.is-scrolled .nav__logo img { height: 32px; }

.nav__links {
  display: flex;
  gap: 36px;
  margin: 0 auto;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}
.nav__links a:hover { color: var(--light); }
.nav__links a:hover::after { width: 100%; }

.nav__contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.nav__contact-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
}
.nav__contact:hover {
  border-color: var(--accent);
  background: rgba(30, 91, 255, 0.08);
}

.nav__toggle {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  margin-left: auto;
}
.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--light);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn--ghost {
  border: 1px solid var(--accent);
  color: var(--light);
  background: transparent;
}
.btn--ghost:hover {
  background: var(--accent);
  color: var(--light);
  transform: translateY(-2px);
}
.btn--sm { padding: 12px 28px; font-size: 13px; }
.btn__arrow { transition: transform 0.2s ease; }
.btn:hover .btn__arrow { transform: translateY(2px); }

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-top: 120px;
  padding-bottom: 80px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.35) 40%, rgba(10,10,10,0.85) 100%),
    linear-gradient(to right, rgba(10,10,10,0.6) 0%, rgba(10,10,10,0.1) 60%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: end;
}
.hero__content { max-width: 720px; }
.hero .display { margin-bottom: 36px; }
.hero__copy { padding-bottom: 12px; }
.hero__copy p { color: var(--text); font-size: 14.5px; line-height: 1.7; }

/* ===========================
   GRID-2 (About / Athlete)
   =========================== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.grid-2--reverse .grid-2__media { order: 1; }
.grid-2--reverse .grid-2__text { order: 2; }
.grid-2__text { max-width: 560px; }
.grid-2__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
}
.grid-2__text .btn { margin-top: 16px; }

/* ===========================
   PHILOSOPHY
   =========================== */
.section--light .philosophy__copy {
  max-width: 760px;
}
.section--light .philosophy__copy p {
  font-size: 15px;
}

/* ===========================
   PROJECTS
   =========================== */
.projects__head { text-align: center; margin-bottom: 64px; }
.projects__title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}
.projects__title {
  margin: 0;
  text-align: center;
  flex: 0 1 auto;
}
.slider-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}
.slider-btn svg { width: 22px; height: 22px; }
.slider-btn:hover { border-color: var(--light); transform: translateY(-2px); }
.slider-btn--accent {
  background: var(--accent);
  border-color: var(--accent);
}
.slider-btn--accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* Carousel viewport: hides overflow, lets the grid slide horizontally */
.projects__viewport {
  overflow: hidden;
  margin: 0 -8px;
  padding: 8px;
}

.projects__grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 32px) / 2);
  gap: 32px;
  transition: transform 0.6s var(--ease-out);
}

.project-card {
  min-width: 0; /* prevents grid blow-out */
}
.project-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: 24px;
  border-radius: 2px;
}
.project-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.project-card:hover .project-card__media img { transform: scale(1.04); }
.project-card__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--light);
  margin: 0 0 12px;
}
.project-card p { font-size: 14px; max-width: 520px; }

/* "Coming Soon" placeholder cards (no image yet) */
.project-card__media--placeholder {
  position: relative;
  background:
    linear-gradient(135deg, rgba(30, 91, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-card__media--placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 14px, rgba(255, 255, 255, 0.018) 14px, rgba(255, 255, 255, 0.018) 28px);
  pointer-events: none;
}
.project-card__badge {
  position: relative;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 10px 18px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(4px);
}
.project-card--soon .project-card__title { opacity: 0.85; }

/* Disabled state for slider buttons (when at start or end) */
.slider-btn:disabled,
.slider-btn[aria-disabled="true"] {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* Dot indicators */
.projects__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 48px;
}
.projects__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s var(--ease-out), transform 0.3s var(--ease-out), width 0.3s var(--ease-out);
}
.projects__dot:hover { background: rgba(255, 255, 255, 0.45); }
.projects__dot.is-active {
  background: var(--accent);
  width: 28px;
  border-radius: 4px;
}

/* ===========================
   BLOG
   =========================== */
.blog__head { text-align: center; margin-bottom: 56px; }
.blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.post-card__media {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin-bottom: 22px;
  border-radius: 2px;
}
.post-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.post-card:hover .post-card__media img { transform: scale(1.04); }
.post-card__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--light);
  margin: 0 0 10px;
}
.post-card p { font-size: 14px; margin-bottom: 14px; }
.post-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--light);
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.post-card__link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Text-only editorial variant */
.post-card--text {
  position: relative;
  padding: 36px 32px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.015);
  display: flex;
  flex-direction: column;
  min-height: 280px;
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.post-card--text::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 32px;
  height: 1px;
  background: var(--accent);
  transition: width 0.4s var(--ease-out);
}
.post-card--text:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.025);
  transform: translateY(-3px);
}
.post-card--text:hover::before { width: 100%; }

.post-card__date {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.post-card--text .post-card__title {
  font-size: 26px;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  line-height: 1.1;
}
.post-card__excerpt {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-dim);
  margin-bottom: 28px;
  flex: 1;
}
.post-card--text .post-card__link {
  align-self: flex-start;
  border-bottom: none;
  color: var(--text);
  padding-bottom: 0;
}
.post-card--text .post-card__link span {
  display: inline-block;
  transition: transform 0.25s var(--ease-out);
}
.post-card--text .post-card__link:hover {
  color: var(--accent);
}
.post-card--text .post-card__link:hover span {
  transform: translate(3px, -3px);
}

/* ===========================
   FOOTER
   =========================== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
}
.footer__email {
  font-size: 14px;
  color: var(--text-dim);
  transition: color 0.2s ease;
}
.footer__email:hover { color: var(--accent); }

.footer__center {
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer__mark { height: 28px; width: auto; }
.footer__tagline {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

.footer__social {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
.footer__social a {
  position: relative;
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--light);
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}
.footer__social a:hover { background: var(--accent-hover); transform: translateY(-2px); }
.footer__social svg { width: 16px; height: 16px; }

/* Tiny EN/CZ language pill on the YouTube icons */
.footer__social-tag {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: var(--bg);
  color: var(--light);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 5px;
  border-radius: 10px;
  border: 1px solid var(--accent);
  line-height: 1;
}

/* "Coming soon" state for the Czech channel before it's live */
.footer__social-pending {
  background: rgba(30, 91, 255, 0.35) !important;
  cursor: not-allowed;
}
.footer__social-pending:hover {
  background: rgba(30, 91, 255, 0.35) !important;
  transform: none !important;
}
.footer__social-pending .footer__social-tag {
  border-color: var(--text-dimmer);
  color: var(--text-dim);
}

.footer__bottom {
  text-align: center;
  font-size: 12px;
  color: var(--text-dimmer);
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ===========================
   REVEAL ANIMATIONS
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
  .nav__contact { display: none; }

  .nav__inner.is-open .nav__links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    padding: 24px var(--pad-x) 32px;
    gap: 20px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .nav__inner.is-open .nav__contact {
    display: inline-flex;
    position: absolute;
    top: calc(100% + 220px);
    left: var(--pad-x);
    z-index: 2;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-2--reverse .grid-2__media { order: 0; }
  .grid-2--reverse .grid-2__text { order: 0; }

  .projects__grid { grid-auto-columns: 100%; }
  .blog__grid { grid-template-columns: 1fr; gap: 40px; }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
  .footer__social { justify-content: center; }
}

@media (max-width: 600px) {
  .hero { min-height: 90vh; padding-top: 100px; }
  .hero .display { font-size: 44px; }
  .display--md { font-size: 36px; }
  .display--lg { font-size: 48px; }

  .nav__logo img { height: 30px; }
  .nav.is-scrolled .nav__logo img { height: 26px; }

  .projects__title-row { gap: 20px; }
  .slider-btn { width: 44px; height: 44px; }
  .projects__title { width: 100%; order: -1; }
}
