:root {
  --cream: #f6f0d7;
  --cream-light: #fcfaee;
  --sage-pale: #c5d89d;
  --sage: #9cab84;
  --sage-deep: #89986d;
  --deep: #3a4730;
  --ink: #272b1c;
  --ink-soft: #565a41;
  --line: rgba(39, 43, 28, 0.14);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow: 0 22px 44px -28px rgba(39, 43, 28, 0.45);
  --max: 71.25rem;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Work Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", ui-sans-serif, sans-serif;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
p {
  margin: 0;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
em.accent {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: var(--sage-deep);
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
}
section {
  scroll-margin-top: 6rem;
}

:focus-visible {
  outline: 2px solid var(--deep);
  outline-offset: 3px;
  border-radius: 4px;
}

.eyebrow {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage-deep);
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage-deep);
  display: inline-block;
}
.eyebrow.on-deep {
  color: var(--sage-pale);
}
.eyebrow.on-deep::before {
  background: var(--sage-pale);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 999px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.96rem;
  border: 1.5px solid transparent;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--deep);
  color: var(--cream-light);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover {
  transform: translateY(-2px);
}
.btn-on-deep {
  background: var(--cream-light);
  color: var(--deep);
}
.btn-on-deep:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px -28px rgba(0, 0, 0, 0.5);
}
.link-arrow {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.96rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 0.1875rem;
  transition: gap 0.2s ease;
}
.link-arrow:hover {
  gap: 0.8125rem;
}

/* ---------- NAV ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 240, 215, 0);
  backdrop-filter: blur(0px);
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease,
    backdrop-filter 0.3s ease;
}
header.scrolled {
  background: rgba(252, 250, 238, 0.92);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(8px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  max-width: var(--max);
  margin: 0 auto;
}
.logo {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.5625rem;
}
.logo .sep {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage-deep);
  display: inline-block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.125rem;
}
.nav-links a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
@media (max-width: 820px) {
  .nav-links {
    display: none;
  }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4.5rem, 7vw, 6rem) 0 clamp(3.5rem, 6vw, 5rem);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

@media (max-width: 980px) {
  .hero-bg {
    display: none;
  }
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}
.hero-copy {
  backdrop-filter: blur(1px);
}
.hero-copy h1 {
  font-size: clamp(2.3rem, 1.4rem + 3vw, 3.7rem);
  line-height: 1.12;
  margin: 1.375rem 0 1.5rem;
}
.hero-copy p.lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 32.5rem;
  margin-bottom: 2.25rem;
  backdrop-filter: blur(1px);
}
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  height: 23.75rem;
  width: clamp(16rem, 38vw, 24rem);
  justify-self: center;
  margin-inline: auto;
}
.mock-card {
  position: absolute;
  width: 18.75rem;
  background: var(--cream-light);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mock-card.back {
  top: 0.625rem;
  right: 0;
  transform: rotate(4deg);
  z-index: 1;
  opacity: 0.85;
}
.mock-card.front {
  top: 5.625rem;
  right: 3.75rem;
  transform: rotate(-3deg);
  z-index: 2;
}
.mock-bar {
  height: 1.625rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0 0.625rem;
  background: rgba(39, 43, 28, 0.05);
}
.mock-bar .d {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
}
.mock-body {
  padding: 1rem;
  display: grid;
  gap: 0.625rem;
}
.mock-hero-block {
  height: 2.875rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--sage-pale), var(--sage));
}
.mock-line {
  height: 7px;
  border-radius: 4px;
  background: rgba(39, 43, 28, 0.12);
}
.mock-line.w70 {
  width: 70%;
}
.mock-line.w40 {
  width: 40%;
}
.mock-grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.mock-grid3 div {
  height: 1.875rem;
  border-radius: 6px;
  background: rgba(154, 171, 132, 0.3);
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    height: 18.75rem;
    width: clamp(14rem, 65vw, 18.75rem);
    margin-top: 0.625rem;
    align-self: center;
    justify-self: center;
    margin-inline: auto;
  }

}

/* ---------- GENERIC SECTION ---------- */
.section {
  padding: clamp(4rem, 6vw, 5.25rem) 0;
  position: relative;
  overflow: hidden;
  z-index: 0;
}
.section-head {
  max-width: 42.5rem;
  margin-bottom: 3rem;
}
.section-head h2 {
  font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem);
  margin-top: 1.125rem;
  line-height: 1.2;
}
.section-head p {
  color: var(--ink-soft);
  margin-top: 1rem;
  font-size: 1.04rem;
  max-width: 35rem;
}

/* ---------- AMBIENT SECTION DECORATION ---------- */
/* Jemné SVG dekorace, které protáhnou motiv vlnek/teček z hero sekce
   i do dalších částí webu. Vždy v rohu, vždy mimo dosah textu, vždy
   pod obsahem (z-index: -1). Na mobilu se skrývají, aby nepřekážely. */
.section-deco {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  top: 14.6875rem;
}
.deco-about {
  top: 7.5rem;
  right: -5.625rem;
  width: 28.75rem;
  height: 28.75rem;
}
.deco-services {
  bottom: -4.375rem;
  left: -6.875rem;
  width: 27.5rem;
  height: 27.5rem;
}
.deco-projects {
  top: 5rem;
  right: -1.875rem;
  width: 26.25rem;
  height: 26.25rem;
}
.deco-contact {
  bottom: -3.75rem;
  right: -4.375rem;
  width: 23.75rem;
  height: 23.75rem;
  opacity: 0.5;
}
@media (max-width: 900px) {
  .section-deco {
    opacity: 0.4;
  }
}
@media (max-width: 760px) {
  .section-deco {
    display: none;
  }
}

/* ---------- ABOUT ---------- */
.about-intro {
  max-width: 43.75rem;
  color: var(--ink-soft);
  font-size: 1.08rem;
  margin-bottom: 2.75rem;
}
.profiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.profile-card {
  padding: 0 2.75rem 0 0;
}
.profile-card + .profile-card {
  padding: 0 0 0 2.75rem;
  border-left: 1px solid var(--line);
}
.avatar {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sage-pale), var(--sage-deep));
  color: var(--cream-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1.125rem;
}
.profile-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}
.profile-role {
  font-size: 0.86rem;
  color: var(--sage-deep);
  font-weight: 600;
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.profile-card p.bio {
  color: var(--ink-soft);
  font-size: 0.98rem;
}
@media (max-width: 760px) {
  .profiles {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .profile-card {
    padding: 0 !important;
    border-left: none !important;
  }
}

/* ---------- SERVICES ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 3.5rem;
}
.service-row {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.service-icon {
  width: 3.125rem;
  height: 3.125rem;
  border-radius: 50%;
  border: 1.5px solid var(--sage-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--sage-deep);
}
.service-row h3 {
  font-size: 1.16rem;
  margin-bottom: 0.625rem;
}
.service-row p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  max-width: 23.75rem;
}
@media (max-width: 760px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
}

/* ---------- PROJECTS ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.project-card {
  background: var(--cream-light);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.project-mock {
  padding: 1.125rem 1.125rem 0;
}
.project-frame {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--cream);
}
.project-body {
  padding: 1.375rem;
}
.badge {
  display: inline-block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-deep);
  background: rgba(154, 171, 132, 0.18);
  padding: 0.3125rem 0.6875rem;
  border-radius: 999px;
  margin-bottom: 0.875rem;
}
.project-body h3 {
  font-size: 1.12rem;
  margin-bottom: 0.5rem;
}
.project-body p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.tag-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.tag {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.6875rem;
}
@media (max-width: 980px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 680px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- PROCESS ---------- */
.process-list {
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Organická SVG linka, která kroky propojuje (viz .process-line níže) */

.process-item {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.5rem;
  padding: 2.25rem 0;
  position: relative;
  z-index: 1; /* Bubliny musí být nad linkou */
  cursor: default; /* Vyřazujeme hover myší */
  opacity: 0.35; /* Neaktivní kroky jsou vizuálně potlačené */
  transition: opacity 0.5s ease;
}

.process-line {
  position: absolute;
  left: 0;
  top: 2.5rem;
  bottom: 2.5rem;
  width: 4rem;
  height: calc(100% - 5rem);
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}
.process-line .track {
  fill: none;
  stroke: var(--line);
  stroke-width: 2;
  stroke-linecap: round;
}
.process-line .progress {
  fill: none;
  stroke: var(--sage-deep);
  stroke-width: 2.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s ease;
}

.process-num {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--cream-light);
  border: 1.5px solid var(--sage-deep);
  color: var(--sage-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.4s ease,
    background 0.4s ease,
    color 0.4s ease,
    box-shadow 0.4s ease;
}

.process-item h3 {
  font-size: 1.12rem;
  margin-bottom: 0.375rem;
  transition: color 0.3s ease;
}

.process-item p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  max-width: 35rem;
}

/* Text už se neschovává, je rovnou vidět, aby neskákala výška */
.process-detail {
  margin-top: 0.625rem;
}

/* Aktivní (nasvícený) stav při skrolu */
.process-item.active {
  opacity: 1;
}

.process-item.active .process-num {
  transform: scale(1.18);
  background: var(--sage-deep);
  color: var(--cream-light);
  /* Stín v barvě pozadí vytvoří čistý ořez propojovací linky */
  box-shadow: 0 0 0 6px var(--cream-light);
}

.process-item.active h3 {
  color: var(--sage-deep);
}

/* Layout pro sekci procesu */
.process-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr; /* Text dostává mírně navrch */
  gap: 4rem;
  align-items: stretch; /* Klíčové: Natáhne pravý vizuální sloupec na plnou výšku textu */
  position: relative;
}

/* Pravý sloupec s linkami */
.process-visual {
  display: block;
  opacity: 0.55; /* Jemné splynutí s pozadím */
  width: 100%;
  height: 100%; /* Vyplní celou výšku gridu */
}

.process-visual svg {
  width: 100%;
  height: 100%; /* SVG se přizpůsobí výšce sloupce */
  max-height: 68.75rem; /* Obrana proti obřím 4K monitorům */
}

/* Na tabletech a mobilech grafiku skryjeme, aby nezavazela */
@media (max-width: 980px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
  .process-visual {
    display: none;
  }
}

@media (max-width: 600px) {
  .process-item {
    grid-template-columns: 3rem 1fr;
    gap: 1rem;
  }
  .process-line {
    width: 3rem;
  }
}

/* ---------- CONTACT ---------- */
.contact-section {
  background: var(--deep);
  color: var(--cream-light);
  border-radius: 32px;
  margin: 0 auto;
  max-width: calc(var(--max) + 4rem);
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.75rem, 4vw, 3.5rem);
  position: relative;
  overflow: hidden;
  z-index: 0;
}
.contact-section h2 {
  color: var(--cream-light);
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.7rem);
  margin: 1.125rem 0 1rem;
  line-height: 1.18;
  max-width: 38.75rem;
}
.contact-section .sub {
  color: rgba(252, 250, 238, 0.78);
  font-size: 1.06rem;
  max-width: 32.5rem;
  margin-bottom: 2.5rem;
}
.contact-grid {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.contact-details a {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
}
.contact-details a:hover {
  color: var(--sage-pale);
}
.contact-names {
  margin-top: 0.625rem;
  font-size: 0.92rem;
  color: rgba(252, 250, 238, 0.6);
}
@media (max-width: 760px) {
  .contact-section {
    padding: 3rem 1.75rem;
    border-radius: 22px;
  }
  .contact-grid {
    align-items: flex-start;
  }
}

/* ---------- FOOTER ---------- */
footer {
  padding: 3rem 0 3.5rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-inner .logo {
  font-size: 0.96rem;
}
footer .fine {
  font-size: 0.86rem;
  color: var(--ink-soft);
}

/* ---------- REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(1rem);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 600px) {
  .wrap {
    padding: 0 1.25rem;
  }
  .section {
    padding: clamp(3.25rem, 8vw, 4rem) 0;
  }
  .nav-inner {
    padding: 1rem 1.25rem;
  }
}

/* ---------- WAVE DIVIDERS ---------- */
.wave-divider {
  width: 100%;
  height: clamp(3.125rem, 6vw, 5.625rem); /* Responzivní výška vlny */
  line-height: 0;
  overflow: hidden;
  position: relative;
  z-index: 1; /* Aby překrývalo případné ambientní dekorace v pozadí */
}
.wave-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- DIVIDER ---------- */
.divider {
  padding: 6px 0 0;
}
.divider svg {
  width: 100%;
  height: 48px;
  opacity: 0.6;
}

/* Pomocné třídy pro střídání barev */
.bg-cream { background-color: var(--cream); }
.bg-cream-light { background-color: var(--cream-light); }
.fill-cream { fill: var(--cream); }
.fill-cream-light { fill: var(--cream-light); }