/* ============================================================
   VOJTECHOKENKA.COM — values taken 1:1 from Figma (node 148:404)
   ============================================================ */

:root {
  --c-black: #000000;
  --c-white: #ffffff;
  --c-grey-text: #666666;
  --c-grey-border: #cccccc;
  --c-grey-chip: #e6e6e6;
  --c-grey-thumb: #f3f3f3;
  --c-blue: #0080f8;
  --c-pink: #b53a9a;
  --c-white-60: rgba(255, 255, 255, 0.6);
  --c-black-60: rgba(0, 0, 0, 0.6);

  --container-max: 1240px;
  --container-pad: 40px;

  --font: 'Google Sans Flex', 'Google Sans', 'Helvetica Neue', Arial, sans-serif;
}

/* ---- reset / base ---- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--c-white);
  color: var(--c-black);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

h1, h2, p {
  margin: 0;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

img, svg {
  display: block;
}

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

/* ---- Webflow-style chrome (deliberate part of the design) ---- */

.wf-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 18px;
  padding: 0 6px;
  background: var(--c-blue);
  border-radius: 4px 4px 0 0;
  color: var(--c-white);
  font-size: 10px;
  font-weight: 300;
  white-space: nowrap;
}

.wf-tag__icon {
  flex-shrink: 0;
}

.wf-tag__square {
  width: 10px;
  height: 10px;
  border: 1px solid var(--c-white);
  flex-shrink: 0;
}

.wf-outline {
  border: 1px solid var(--c-blue);
}

/* ---- navbar ---- */

.navbar {
  display: flex;
  justify-content: center;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  padding: var(--container-pad);
  white-space: nowrap;
}

.navbar__left {
  display: flex;
  gap: 40px;
}

.navbar__tagline {
  color: var(--c-grey-text);
}

.navbar__nav {
  display: flex;
  gap: 40px;
}

.navbar__nav a:hover {
  opacity: 0.6;
}

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

.hero {
  display: flex;
  justify-content: center;
}

.hero__container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
  max-width: var(--container-max);
  padding: 120px var(--container-pad) 80px;
}

.hero__heading-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.hero__box {
  width: 100%;
}

.hero__heading {
  font-size: 96px;
  font-weight: 400;
  line-height: 1.1;
}

.hero__buttons {
  display: flex;
  gap: 12px;
}

.button-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 54px;
  padding: 0 24px;
  font-size: 16px;
  white-space: nowrap;
}

.btn--primary {
  background: var(--c-black);
  color: var(--c-white);
}

.btn--primary:hover {
  background: #1a1a1a;
}

.btn--secondary {
  background: var(--c-grey-chip);
  color: var(--c-black);
}

.btn--secondary:hover {
  background: #dddddd;
}

.btn__arrow {
  transform: scaleX(-1);
}

/* ---- projects ---- */

.projects {
  display: flex;
  justify-content: center;
}

.projects__wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: var(--container-max);
}

.projects__box {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
  padding: 120px var(--container-pad) 80px;
}

.projects__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.control-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.control-group__label {
  font-size: 16px;
}

.control-group__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  min-width: 34px;
  padding: 0 12px;
  border: 1px solid var(--c-grey-border);
  border-radius: 4px;
  color: var(--c-grey-text);
  font-size: 12px;
  font-weight: 300;
  white-space: nowrap;
}

.chip:hover {
  border-color: #999999;
}

.chip.is-active {
  background: var(--c-grey-border);
  color: var(--c-black);
}

.projects__grid {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}

.grid-col {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.project-card {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.project-card__thumb {
  position: relative;
  display: block;
  width: 100%;
  background: var(--c-grey-thumb);
  overflow: hidden;
}

.project-card__tags {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  min-width: 34px;
  padding: 0 10px;
  background: var(--c-grey-chip);
  border-radius: 4px;
  color: var(--c-grey-text);
  font-size: 10px;
  font-weight: 300;
  white-space: nowrap;
}

.project-card__title-wrap {
  display: block;
  width: 100%;
  padding: 24px 12px 12px;
}

.project-card__title {
  display: block;
  font-size: 24px;
  line-height: 1.2;
  text-wrap: balance;
}

.project-card:hover .project-card__title {
  text-decoration: underline;
}

/* aspect-ratio utilities (thumbnail formats from Figma) */

.ar-5x4  { aspect-ratio: 5 / 4; }
.ar-4x5  { aspect-ratio: 4 / 5; }
.ar-16x9 { aspect-ratio: 16 / 9; }
.ar-1x1  { aspect-ratio: 1 / 1; }

/* ---- 120px gap note ---- */

.gap-note {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  background: rgba(181, 58, 154, 0.1);
  border-top: 1px solid var(--c-pink);
}

.gap-note__tag {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  background: var(--c-pink);
  border-radius: 4px;
  color: var(--c-white);
  font-size: 10px;
  font-weight: 300;
}

/* ---- footer ---- */

.footer {
  display: flex;
  justify-content: center;
  background: var(--c-black);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 80px;
  width: 100%;
  max-width: var(--container-max);
  padding: 120px var(--container-pad);
}

.footer__text {
  color: var(--c-white);
  font-size: 48px;
  line-height: 1.4;
}

.footer-link-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer__email {
  display: block;
  color: var(--c-white-60);
  font-size: 20px;
  line-height: 1.1;
}

.footer__email:hover {
  color: var(--c-white);
}

/* ---- project modal (right drawer) ---- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-backdrop.is-open {
  opacity: 1;
}

.modal {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 101;
  height: 100dvh;
  width: min(860px, 100%);
  background: var(--c-white);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.modal.is-open {
  transform: translateX(0);
}

.modal__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  padding: var(--container-pad);
}

.modal__close-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 24px;
  width: 100%;
}

.modal__close:hover svg path {
  fill: var(--c-black);
}

.modal__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}

.modal__title {
  font-size: 64px;
  font-weight: 400;
  line-height: 1.1;
  text-wrap: balance;
}

.modal__tags {
  display: flex;
  gap: 6px;
}

.modal__thumb {
  width: 100%;
  background: var(--c-grey-thumb);
  overflow: hidden;
}

.project-card__thumb img,
.modal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal__meta {
  display: flex;
  gap: 20px;
  width: 100%;
}

.meta-col {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-col__label {
  color: var(--c-black-60);
  font-size: 12px;
  line-height: 1.4;
}

.meta-col__value {
  font-size: 20px;
  line-height: 1.4;
}

.modal__desc {
  font-size: 32px;
  line-height: 1.4;
  text-wrap: pretty;
}

.modal__gallery {
  display: flex;
  gap: 20px;
  width: 100%;
}

.gallery-col {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal__cta-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.modal__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
  padding: 60px var(--container-pad);
  background: var(--c-grey-thumb);
}

.modal__cta-text {
  font-size: 36px;
  line-height: 1.4;
}

.modal__cta-email {
  color: var(--c-black-60);
  font-size: 20px;
  line-height: 1.1;
}

/* ============================================================
   Responsive (mobile-first adjustments below desktop design)
   ============================================================ */

@media (max-width: 1024px) {
  /* fluid inner padding: 40px at 1024px viewport, floors at 24px */
  :root {
    --container-pad: clamp(24px, 3.9vw, 40px);
  }

  .hero__heading {
    font-size: 72px;
  }

  .footer__text {
    font-size: 36px;
  }

  .modal__title {
    font-size: 48px;
  }

  .modal__desc {
    font-size: 28px;
  }

  .control-group--layout {
    display: none;
  }
}

@media (max-width: 767px) {
  /* fluid inner padding: caps at 24px, floors at 20px */
  :root {
    --container-pad: clamp(20px, 3.2vw, 24px);
  }

  .hero__container {
    padding-top: 80px;
    padding-bottom: 60px;
  }

  .hero__heading {
    font-size: 48px;
  }

  .projects__box {
    padding-top: 80px;
    padding-bottom: 60px;
  }

  .gap-note {
    height: 80px;
  }

  .footer__inner {
    padding-top: 80px;
    padding-bottom: 80px;
    gap: 60px;
  }

  .footer__text {
    font-size: 28px;
  }

  .modal__title {
    font-size: 40px;
  }

  .modal__desc {
    font-size: 24px;
  }

  .modal__cta {
    padding: 40px var(--container-pad);
  }

  .modal__cta-text {
    font-size: 28px;
  }
}

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

  .modal,
  .modal-backdrop {
    transition-duration: 0.01ms;
  }
}

@media (max-width: 560px) {
  .navbar__tagline {
    display: none;
  }

  .navbar__nav {
    gap: 24px;
  }

  /* no-JS fallback: stack the static 3-column markup (JS renders 1 col here anyway) */
  .projects__grid {
    flex-direction: column;
  }

  .hero__br {
    display: none;
  }

  .hero__heading {
    font-size: 40px;
  }

  .modal__gallery {
    flex-direction: column;
  }
}
