/* ==========================================================================
   Petra Mandelíková — agency-style single page
   Warm cream, chunky sans, colorful rounded cards, playful accents.
   ========================================================================== */

:root {
  /* surfaces */
  --bg:           #efece3;
  --bg-soft:      #e6e2d6;
  --bg-deep:      #dcd7c6;
  --ink:          #141415;
  --ink-soft:     #5d5a52;
  --muted:        #8b857a;
  --line:         #141415;

  /* cards / accents */
  --c-clay:       #e9835a;   /* terracotta */
  --c-clay-deep:  #b04a26;
  --c-peach:      #f3c9a7;
  --c-cream:      #faf5e9;
  --c-sage:       #b7c3a1;
  --c-sage-deep:  #8b9a76;
  --c-pink:       #e8b3c0;
  --c-blue:       #8fa6c9;
  --c-yellow:     #f2da35;
  --c-dark:       #141415;

  /* type */
  --ff-sans:    "Archivo", "Helvetica Neue", system-ui, sans-serif;
  --ff-serif:   "Instrument Serif", "Times New Roman", serif;
  --ff-body:    "Manrope", system-ui, sans-serif;
  --ff-mono:    "JetBrains Mono", ui-monospace, monospace;
  --ff-hand:    "Caveat", cursive;

  /* layout */
  --pad-x: clamp(20px, 4.5vw, 72px);
  --gap:   clamp(12px, 1.2vw, 18px);
  --r-sm:  12px;
  --r-md:  22px;
  --r-lg:  32px;
  --r-xl:  44px;

  /* easings */
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.76, 0, 0.24, 1);
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  background: var(--bg);  /* cream stays on html so canvas (z-index:-1) shows above it */
}
body { background: transparent; }
main section[id],
main div[id] { scroll-margin-top: 100px; }

/* 3D floating-primitives canvas — fixed, in the foreground (below nav),
   but pointer-events:none so clicks/hovers pass through to the underlying UI. */
.space-bg {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  overflow: hidden;
}
.space-bg canvas { display: block; width: 100% !important; height: 100% !important; }

* { box-sizing: border-box; }
*::selection { background: var(--c-yellow); color: var(--ink); }
a, button, input, textarea, [role="button"] { touch-action: manipulation; }
* { -webkit-tap-highlight-color: color-mix(in srgb, var(--ink) 15%, transparent); }

:focus:not(:focus-visible) { outline: none; }
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 6px;
}

html, body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-family: var(--ff-body);
  font-size: clamp(15px, 0.45vw + 12px, 17px);
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
p  { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--ff-sans); font-weight: 700; text-wrap: balance; }

/* ==========================================================================
   Cursor (subtle dot, does not replace native)
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  .cursor {
    position: fixed;
    top: 0; left: 0;
    z-index: 10000;
    pointer-events: none;
    transform: translate3d(-100px, -100px, 0);
    mix-blend-mode: difference;
  }
  .cursor__dot {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #fff;
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.25s var(--ease-out);
  }
  body.cursor-hover .cursor__dot {
    transform: translate(-50%, -50%) scale(3.4);
    background: color-mix(in srgb, var(--c-clay-deep) 90%, #fff);
  }
}
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed;
  top: 14px; left: 14px; right: 14px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px 10px 18px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border: 1px solid color-mix(in srgb, var(--ink) 12%, transparent);
  border-radius: 999px;
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.nav__logo {
  width: 28px; height: 28px;
  color: var(--ink);
  background: var(--c-yellow);
  border-radius: 50%;
  padding: 2px;
}
.nav__tag {
  display: inline-block;
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  font-weight: 400;
}
.nav__menu {
  display: inline-flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 22px);
  font-family: var(--ff-sans);
  font-weight: 500;
  font-size: 14px;
}
.nav__menu a {
  padding: 8px 14px;
  border-radius: 999px;
  transition: background-color 0.25s, color 0.25s;
}
.nav__menu a:hover { background: var(--bg-deep); }
.nav__cta {
  background: var(--ink) !important;
  color: var(--bg) !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav__cta:hover { background: var(--c-clay-deep) !important; }
.nav__cta .arrow { transition: transform 0.3s var(--ease-out); }
.nav__cta:hover .arrow { transform: translateX(3px); }
@media (max-width: 780px) {
  .nav__tag { display: none; }
  .nav__menu a:not(.nav__cta) { display: none; }
}

/* ==========================================================================
   Shared tokens
   ========================================================================== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--bg-deep);
  border-radius: 999px;
}
.chip--light { background: color-mix(in srgb, var(--bg) 75%, #fff); }
.chip--contrast { background: var(--c-yellow); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--bg);
  border-radius: 999px;
  white-space: nowrap;
}
.pill--inverse { background: var(--ink); color: var(--bg); }
.pill--outline-light { background: transparent; border: 1px solid color-mix(in srgb, #fff 30%, transparent); color: #fff; }
.pill--yellow { background: var(--c-yellow); }

.hl-chip {
  display: inline-block;
  padding: 0.05em 0.35em;
  background: var(--c-yellow);
  border-radius: 10px;
  transform: rotate(-2deg);
  font-style: normal;
  font-family: var(--ff-hand);
  font-size: 0.85em;
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  line-height: 1;
  transition: transform 0.2s var(--ease-out), background-color 0.3s, color 0.3s, box-shadow 0.3s;
  will-change: transform;
}
.btn .arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease-out);
}
.btn:hover .arrow { transform: translateX(4px); }
.btn--dark {
  background: var(--ink);
  color: var(--bg);
}
.btn--dark:hover { background: var(--c-clay-deep); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--xl {
  padding: 20px 32px;
  font-size: clamp(16px, 0.5vw + 13px, 19px);
  border-radius: 999px;
}
.btn--xl.btn--ghost { border-width: 2px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.eyebrow__dot {
  width: 8px; height: 8px;
  background: #34a853;
  border-radius: 50%;
  box-shadow: 0 0 0 4px color-mix(in srgb, #34a853 25%, transparent);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, #34a853 25%, transparent); }
  50%      { box-shadow: 0 0 0 10px color-mix(in srgb, #34a853 5%, transparent); }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  padding: 110px var(--pad-x) 40px;
  display: flex;
  flex-direction: column;
  gap: clamp(40px, 6vh, 80px);
  min-height: 92vh;
}
.hero__top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(20px, 3vw, 60px);
  align-items: start;
  padding-top: 24px;
}
.hero__bio {
  max-width: 42ch;
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-self: end;
  text-align: left;
}
.hero__bio p {
  color: var(--ink-soft);
  font-size: clamp(14px, 0.4vw + 12px, 16px);
  line-height: 1.5;
}
.hero__bio .btn { align-self: start; }

.hero__title {
  font-family: var(--ff-sans);
  font-weight: 700;
  font-size: clamp(54px, 11vw, 184px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-variation-settings: "wdth" 100, "wght" 700;
  max-width: 16ch;
  margin: 0;
}
.hero__line {
  display: block;
  position: relative;
}
.hero__foot {
  margin-top: auto;
}
.hero__lead {
  max-width: 36ch;
  margin: 0 0 22px auto;                 /* push to the right, above marquee */
  padding-bottom: 50px;
  text-align: right;
  font-family: var(--ff-sans);
  font-weight: 500;
  font-size: clamp(15px, 0.5vw + 13px, 20px);
  line-height: 1.4;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
}
.hero__lead em {
  font-family: var(--ff-serif);
  font-style: italic;
  color: var(--ink);
}
@media (max-width: 780px) {
  .hero__lead { text-align: left; margin-left: 0; }
}
.hero__marq {
  overflow: hidden;
  margin: 0 calc(-1 * var(--pad-x));
  padding: 16px 0;
  border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
}
.hero__marq-track {
  display: inline-flex;
  align-items: center;
  width: max-content;
  animation: marq 32s linear infinite;
  will-change: transform;
}
.hero__marq-group {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;         /* trailing spacer so loop is seamless */
  white-space: nowrap;
  font-family: var(--ff-sans);
  font-size: clamp(22px, 2.4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.02em;
  flex-shrink: 0;              /* prevent the two groups from shrinking */
}
.hero__marq-group .dash { color: var(--c-clay-deep); }
.hero__marq:hover .hero__marq-track { animation-play-state: paused; }
@keyframes marq {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 780px) {
  .hero__top { grid-template-columns: 1fr; }
  .hero__bio { justify-self: start; }
  .hero__title { font-size: clamp(48px, 15vw, 90px); }
}

/* ==========================================================================
   PROJECTS
   ========================================================================== */
.projects {
  padding: clamp(80px, 10vh, 140px) var(--pad-x) 0;
}
.projects__head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-areas:
    "chip chip"
    "title lead";
  align-items: end;
  gap: 20px 40px;
  margin-bottom: 0;
}
.projects__head .chip { grid-area: chip; justify-self: start; }
.projects__title {
  grid-area: title;
  font-size: clamp(44px, 7vw, 120px);
  line-height: 0.94;
  letter-spacing: -0.03em;
  font-variation-settings: "wdth" 110, "wght" 800;
  max-width: 14ch;
}
.projects__title em {
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 400;
}
.projects__lead {
  grid-area: lead;
  max-width: 38ch;
  color: var(--ink-soft);
  font-size: clamp(15px, 0.4vw + 13px, 17px);
  padding-bottom: 8px;
}
.projects__lead em { font-family: var(--ff-serif); font-style: italic; color: var(--ink); }
@media (max-width: 900px) {
  .projects__head {
    grid-template-columns: 1fr;
    grid-template-areas: "chip" "title" "lead";
  }
}

/* ---- CURSOR IMAGE TRAIL ----
   The trail spans the whole hero + projekty area as a background layer.
   .trail-zone is the relative parent; .trail is absolute-positioned behind
   the sections, which sit on top at z-index:1. */
.trail-zone {
  position: relative;
  isolation: isolate;
}
.trail-zone > section {
  position: relative;
  z-index: 1;
}
/* Sections inside the trail-zone keep their content above trail photos but
   drop their own background so the trail is continuously visible all the way
   from the hero down to the edge of "Služby". */
.trail-zone > .about { background: transparent; }
.trail {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: transparent;
}

.trail__img {
  position: absolute;
  top: 0; left: 0;
  width: clamp(220px, 22vw, 360px);
  height: auto;                /* keep the photo's native aspect ratio */
  border-radius: var(--r-md);
  transform: translate(-50%, -50%) scale(0.5) rotate(0);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 30px 60px -24px rgba(20,20,21,0.35);
  transition:
    opacity 0.45s var(--ease-out),
    transform 0.85s var(--ease-out);
  will-change: transform, opacity;
}
.trail__img.is-on { opacity: 1; }

/* Fallback grid — shown for touch / reduced motion */
.trail__fallback {
  display: none;
  padding: 16px;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
}
.trail__fallback figure {
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-deep);
  aspect-ratio: 4/3;
}
.trail__fallback img { width: 100%; height: 100%; object-fit: cover; }

/* Fallback grid is now kept only as a semantic no-JS safety net; on touch
   devices the cursor trail is off and users tap the 3D primitives instead. */
.trail__fallback { display: none; }
/* Under reduced-motion we still let the user trigger the trail manually,
   but we shorten/mute the transitions. */
.is-reduced .trail__img {
  transition:
    opacity 0.2s linear,
    transform 0.25s linear !important;
}

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about {
  padding: clamp(80px, 10vh, 140px) var(--pad-x);
  background: var(--bg);
}
.about__eyebrow {
  display: inline-flex;
  margin-bottom: 28px;
}
.about__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: start;                   /* portrait top aligns with heading top */
}
.about__main {
  display: flex;
  flex-direction: column;
  gap: clamp(30px, 3.5vw, 56px);
}

@media (max-width: 900px) {
  .about__split { grid-template-columns: 1fr; }
  .about__split > .about__portrait { order: 2; }  /* portrait goes below text on mobile */
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;       /* 50 / 50 split on desktop */
  gap: clamp(30px, 5vw, 80px);
  align-items: start;                   /* portrait starts at the section's top edge */
}
.about__text {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 60ch;
}
.about__p {
  font-family: var(--ff-sans);
  font-weight: 500;
  font-size: clamp(22px, 1.8vw + 12px, 42px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  letter-spacing: -0.015em;
}
.about__p strong { font-weight: 700; }
.about__p em {
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--c-clay-deep);
}
.about__p--soft {
  font-size: clamp(16px, 0.5vw + 14px, 20px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
  color: var(--ink-soft);
}
.about__cta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.about__wink {
  font-family: var(--ff-hand);
  font-size: 26px;
  color: var(--c-clay-deep);
  transform: rotate(-2deg);
  display: inline-block;
}
.about__portrait {
  position: relative;
  margin: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--c-peach);
  aspect-ratio: 4/5;
}
.about__portrait img { width: 100%; height: 100%; object-fit: cover; }
.about__portrait figcaption {
  position: absolute;
  bottom: 20px; left: 20px;
}
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   MANIFESTO
   ========================================================================== */
.manifesto {
  padding: clamp(80px, 14vh, 180px) var(--pad-x);
  text-align: center;
}
.manifesto__eyebrow {
  font-family: var(--ff-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 20px;
}
.manifesto__title {
  font-family: var(--ff-sans);
  font-size: clamp(56px, 11vw, 196px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-variation-settings: "wdth" 112, "wght" 800;
  text-transform: uppercase;
}
/* emoji sedící uprostřed slova — stahuje se k sousedním písmenům
   a nejede s text-transform: uppercase */
.manifesto__heart {
  display: inline-block;
  margin: 0 -0.18em 0 -0.12em;          /* negative tracking around the glyph */
  vertical-align: 0.15em;    /* optical alignment to baseline */
  text-transform: none;
  font-size: 0.82em;          /* emoji cluster jsou větší než kapitálka */
  font-variant-emoji: emoji;
  line-height: 1;
}
.manifesto__pop {
  display: inline-block;
  vertical-align: baseline;
  width: clamp(52px, 8vw, 140px);
  height: clamp(52px, 8vw, 140px);
  margin: 0 8px;
  transform: translateY(8%) rotate(6deg);
  animation: wobble 6s ease-in-out infinite;
}
.manifesto__pop svg { width: 100%; height: 100%; }
@keyframes wobble {
  0%, 100% { transform: translateY(8%) rotate(6deg); }
  50%      { transform: translateY(8%) rotate(-6deg); }
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services {
  padding: clamp(80px, 10vh, 140px) var(--pad-x);
  background: var(--bg-soft);
  border-top-left-radius: var(--r-xl);
  border-top-right-radius: var(--r-xl);
}
.services__head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-areas:
    "chip chip"
    "title lead";
  align-items: end;
  gap: 20px 40px;
  margin-bottom: 48px;
}
.services__head .chip { grid-area: chip; justify-self: start; }
.services__title {
  grid-area: title;
  font-size: clamp(44px, 6.2vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  font-variation-settings: "wdth" 110, "wght" 800;
  max-width: 18ch;
}
.services__title em {
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 400;
}
.services__lead {
  grid-area: lead;
  max-width: 42ch;
  color: var(--ink-soft);
  font-size: clamp(15px, 0.4vw + 13px, 17px);
  padding-bottom: 8px;
}
@media (max-width: 900px) {
  .services__head {
    grid-template-columns: 1fr;
    grid-template-areas: "chip" "title" "lead";
  }
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}
.svc {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  min-height: 360px;
  padding: 26px 26px 28px;
  border-radius: var(--r-lg);
  background: var(--c-cream);
  color: var(--ink);
  transition: transform 0.5s var(--ease-out);
}
.svc:hover { transform: translateY(-6px); }
.svc__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.svc__tag {
  font-family: var(--ff-mono);
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.svc__h {
  font-size: clamp(28px, 1.8vw + 12px, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.02;
  font-variation-settings: "wdth" 100, "wght" 700;
}
.svc p {
  font-size: 15px;
  line-height: 1.5;
  color: color-mix(in srgb, currentColor 78%, transparent);
  max-width: 30ch;
  margin-top: 12px;
}
.svc__chips {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.svc__chips li {
  padding: 5px 11px;
  background: color-mix(in srgb, currentColor 10%, transparent);
  border-radius: 999px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.svc--clay { background: var(--c-clay); color: #fff; grid-column: span 8; }
.svc--clay .svc__tag { color: color-mix(in srgb, #fff 80%, transparent); }
.svc--dark { background: var(--ink); color: var(--bg); grid-column: span 4; }
.svc--dark .svc__tag { color: color-mix(in srgb, #fff 60%, transparent); }
.svc--sage { background: var(--c-sage); grid-column: span 4; }
.svc--peach { background: var(--c-peach); grid-column: span 4; }
.svc--cream { background: var(--c-cream); grid-column: span 4; }
@media (max-width: 900px) {
  .svc--clay, .svc--dark, .svc--sage, .svc--peach, .svc--cream {
    grid-column: span 12;
    min-height: 260px;
  }
}

/* ==========================================================================
   PROCESS
   ========================================================================== */
.process {
  padding: clamp(90px, 12vh, 160px) var(--pad-x);
  background: var(--ink);
  color: var(--bg);
}
.process__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 60px;
}
.process__head .chip { background: color-mix(in srgb, #fff 15%, transparent); color: var(--bg); }
.process__title {
  font-size: clamp(44px, 6.2vw, 112px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  font-variation-settings: "wdth" 110, "wght" 800;
  max-width: 16ch;
}
.process__title em {
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--c-clay);
}
.process__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--gap);
}
.step {
  padding: 22px;
  background: color-mix(in srgb, #fff 6%, transparent);
  border: 1px solid color-mix(in srgb, #fff 12%, transparent);
  border-radius: var(--r-md);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background-color 0.4s, transform 0.5s var(--ease-out);
}
.step:hover { background: color-mix(in srgb, #fff 12%, transparent); transform: translateY(-4px); }
.step__num {
  font-family: var(--ff-sans);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  font-variation-settings: "wdth" 75, "wght" 700;
  color: var(--c-clay);
  letter-spacing: -0.04em;
}
.step h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.step p {
  font-size: 14px;
  line-height: 1.5;
  color: color-mix(in srgb, #fff 70%, transparent);
  flex: 1;
}
.step__pill {
  align-self: flex-start;
  padding: 5px 10px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-clay);
  background: color-mix(in srgb, var(--c-clay) 18%, transparent);
  border-radius: 999px;
}
@media (max-width: 1100px) {
  .process__steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .process__steps { grid-template-columns: 1fr; }
}

/* ==========================================================================
   STATEMENT
   ========================================================================== */
.statement {
  padding: clamp(90px, 14vh, 200px) var(--pad-x);
  background: var(--bg);
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: end;
}
.statement__title {
  font-family: var(--ff-sans);
  font-size: clamp(56px, 11vw, 210px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-variation-settings: "wdth" 115, "wght" 800;
  text-transform: uppercase;
}
.statement__title em {
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  color: var(--c-clay-deep);
}
.statement__heart {
  display: inline-block;
  vertical-align: baseline;
  width: clamp(50px, 6vw, 110px);
  height: clamp(50px, 6vw, 110px);
  margin-left: 10px;
  transform: translateY(8%);
  animation: heartPulse 2.2s ease-in-out infinite;
}
.statement__heart svg { width: 100%; height: 100%; }
@keyframes heartPulse {
  0%, 100% { transform: translateY(8%) scale(1); }
  50%      { transform: translateY(8%) scale(1.08); }
}
.statement__p {
  font-size: clamp(16px, 0.4vw + 14px, 19px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 40ch;
}
@media (max-width: 900px) {
  .statement { grid-template-columns: 1fr; }
}

/* ==========================================================================
   WHY
   ========================================================================== */
.why {
  padding: clamp(80px, 10vh, 140px) var(--pad-x);
  background: var(--bg);
}
.why__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 40px;
}
.why__title {
  font-size: clamp(44px, 6.2vw, 112px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  font-variation-settings: "wdth" 110, "wght" 800;
  max-width: 16ch;
}
.why__title em {
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 400;
}
.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.why__card {
  padding: 28px 26px 30px;
  border-radius: var(--r-md);
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.5s var(--ease-out);
}
.why__card:hover { transform: translateY(-6px); }
.why__num {
  font-family: var(--ff-sans);
  font-size: 60px;
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-variation-settings: "wdth" 75, "wght" 700;
}
.why__card h3 {
  font-size: clamp(22px, 1.2vw + 12px, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.why__card p {
  font-size: 15px;
  line-height: 1.5;
  color: color-mix(in srgb, currentColor 75%, transparent);
  margin-top: auto;
}
.why__card--yellow { background: var(--c-yellow); }
.why__card--blue   { background: var(--c-blue); color: var(--ink); }
.why__card--pink   { background: var(--c-pink); }
.why__card--dark   { background: var(--c-sage); color: var(--ink); }
@media (max-width: 1100px) {
  .why__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .why__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   GALLERY
   ========================================================================== */
.gallery {
  padding: clamp(80px, 10vh, 140px) var(--pad-x);
}
.gallery__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 40px;
}
.gallery__title {
  font-size: clamp(44px, 6.2vw, 100px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  font-variation-settings: "wdth" 108, "wght" 800;
  max-width: 18ch;
}
.gallery__title em {
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 400;
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.gallery figure {
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-deep);
  position: relative;
  aspect-ratio: 4 / 3;
}
.gallery figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
.gallery figure:hover img { transform: scale(1.06); }

@media (max-width: 720px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 460px) {
  .gallery__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact {
  padding: clamp(80px, 10vh, 140px) var(--pad-x) clamp(60px, 8vh, 100px);
  background: var(--c-clay);
  color: var(--ink);
  border-top-left-radius: var(--r-xl);
  border-top-right-radius: var(--r-xl);
}
.contact__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(30px, 5vw, 80px);
  align-items: start;
}
.contact__left { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.contact__title {
  font-family: var(--ff-sans);
  font-size: clamp(54px, 8.5vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  font-variation-settings: "wdth" 108, "wght" 800;
  max-width: 14ch;
  text-transform: uppercase;
  margin: 0;
}
.contact__title em {
  font-family: var(--ff-serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
}
.contact__p {
  max-width: 42ch;
  font-size: clamp(15px, 0.4vw + 13px, 18px);
  color: color-mix(in srgb, var(--ink) 82%, transparent);
}
.contact__cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.contact__card {
  position: sticky;
  top: 100px;
  padding: 28px 26px 30px;
  background: var(--bg);
  border-radius: var(--r-lg);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact__card-head {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}
.contact__dot {
  width: 9px; height: 9px;
  background: #34a853;
  border-radius: 50%;
  box-shadow: 0 0 0 4px color-mix(in srgb, #34a853 20%, transparent);
}
.contact__info {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 20px;
  margin: 0;
}
.contact__info dt {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-top: 3px;
}
.contact__info dd {
  margin: 0;
  font-family: var(--ff-sans);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.005em;
}
.contact__info a { border-bottom: 1.5px solid var(--ink); transition: color 0.2s, border-color 0.2s; }
.contact__info a:hover { color: var(--c-clay-deep); border-color: var(--c-clay-deep); }
.contact__note {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-soft);
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
}
.contact .btn--dark:hover { background: var(--bg); color: var(--ink); }
@media (max-width: 900px) {
  .contact__inner { grid-template-columns: 1fr; }
  .contact__card { position: relative; top: 0; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.foot {
  background: var(--ink);
  color: var(--bg);
  padding: 0 var(--pad-x) 28px;
  overflow: hidden;
}
.foot__big {
  /* .foot__big is its own inline-size container; its content box equals the
     padded inner width of .foot, so 1cqi = 1% of that width. Mobile keeps
     a small breathing margin, desktop fills edge-to-edge. */
  container-type: inline-size;
  font-family: var(--ff-sans);
  font-weight: 800;
  font-size: 12.2cqi;
  line-height: 0.86;
  letter-spacing: -0.06em;
  font-variation-settings: "wdth" 100, "wght" 800;
  padding: 40px 0 10px;
  text-transform: uppercase;
  white-space: nowrap;
}
@media (min-width: 720px) {
  .foot__big { font-size: 12.75cqi; }
}
.foot__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid color-mix(in srgb, #fff 15%, transparent);
  font-family: var(--ff-mono);
  font-size: 12px;
  color: color-mix(in srgb, #fff 60%, transparent);
}
.foot__sig { font-family: var(--ff-serif); font-style: italic; font-size: 14px; }
.foot__up {
  display: inline-flex;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid color-mix(in srgb, #fff 30%, transparent);
  border-radius: 999px;
  transition: background-color 0.3s, color 0.3s;
  font-family: var(--ff-sans);
  font-weight: 500;
  font-size: 13px;
}
.foot__up:hover { background: var(--c-clay); color: var(--ink); border-color: var(--c-clay); }
@media (max-width: 640px) {
  .foot__row { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   REVEALS
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}
.is-reduced [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  /* Marquee zachováme — jen zpomalený; smyčka je lineární a neruší. */
  .hero__marq-track {
    animation: marq 90s linear infinite !important;
  }
  /* Image zoomy na hover necháme dlouhé, aby byly plynulé. */
  .gallery figure img,
  .proj__media img,
  .mat__media img {
    transition-duration: 1.1s !important;
  }
  /* Ostatní interakce: rychlejší, ale stále plynulé. */
  .trail__img,
  .btn,
  .btn .arrow,
  .nav__cta,
  .nav__cta .arrow,
  .nav__menu a,
  .why__card,
  .svc,
  .proj,
  .step,
  .bento__card,
  .mat,
  .gallery figure,
  .foot__up,
  .orb,
  .orb__arrow,
  .contact__info a,
  .field input,
  .field textarea {
    transition-duration: 0.45s !important;
  }
  /* Skryjeme tyhle nerušící pozůstatkové animace (jen loop, žádná ruční kontrola) */
  .manifesto__pop, .statement__heart, .eyebrow__dot { animation: none !important; }
}
