/* =========================================================
   ZÁKLADNÉ NASTAVENIA
   ========================================================= */

:root {
  --forest-950: #0b1712;
  --forest-900: #11261d;
  --forest-800: #193326;
  --forest-700: #264635;

  --brown-700: #785944;
  --brown-600: #947158;
  --brown-500: #aa8667;

  --cream-100: #f9f6ef;
  --cream-200: #f1ece2;
  --cream-300: #e5dccd;

  --paper: #f7f3eb;
  --white: #ffffff;

  --text-dark: #17231c;
  --text-light: #f7f3eb;
  --text-muted: #5c665f;

  --line-dark: rgba(17, 38, 29, 0.18);
  --line-light: rgba(255, 255, 255, 0.22);

  --font-display:
    Georgia,
    "Times New Roman",
    Times,
    serif;

  --font-body:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  --shell-width: 1220px;
  --shell-padding: clamp(1.25rem, 4vw, 4rem);

  --section-space:
    clamp(4.5rem, 10vw, 9rem);

  --transition:
    220ms ease;
}


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


html {
  scroll-behavior: smooth;
}


body {
  margin: 0;
  min-width: 320px;

  color: var(--text-dark);
  background: var(--cream-100);

  font-family: var(--font-body);
  font-size: clamp(1rem, 0.97rem + 0.15vw, 1.1rem);
  line-height: 1.72;

  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}


img {
  display: block;
  max-width: 100%;
}


a {
  color: inherit;
}


p,
h1,
h2 {
  margin-top: 0;
}


p:last-child {
  margin-bottom: 0;
}


::selection {
  color: var(--white);
  background: var(--brown-600);
}


/* =========================================================
   SPOLOČNÉ PRVKY
   ========================================================= */

.shell {
  width: min(
    calc(100% - (var(--shell-padding) * 2)),
    var(--shell-width)
  );

  margin-inline: auto;
}


.section {
  position: relative;
  padding-block: var(--section-space);
}


.section--light {
  background: var(--cream-100);
}


.section--paper {
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(148, 113, 88, 0.05),
      transparent 28%
    ),
    var(--paper);
}


.section--dark {
  color: var(--text-light);
  background:
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 255, 255, 0.04),
      transparent 30%
    ),
    var(--forest-900);
}


.section--brown {
  color: var(--white);
  background:
    linear-gradient(
      135deg,
      var(--brown-700),
      #654836
    );
}


.display,
.section-title,
.closing__statement,
.people__statement {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.035em;
}


.display {
  max-width: 14ch;

  margin-bottom: 0;

  font-size:
    clamp(2.6rem, 5.5vw, 5.8rem);

  line-height: 0.98;
}


.section-title {
  max-width: 980px;

  margin-bottom:
    clamp(3rem, 7vw, 6.5rem);

  font-size:
    clamp(2.2rem, 4.2vw, 4.6rem);

  line-height: 1.05;
}


.lead {
  max-width: 38ch;

  margin-bottom: 0;

  font-size:
    clamp(1.2rem, 1rem + 0.75vw, 1.8rem);

  line-height: 1.55;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;

  display: flex;
  align-items: flex-end;

  min-height: min(920px, 100svh);
  overflow: hidden;

  color: var(--white);
  background: var(--forest-950);
}


.hero__image {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center 35%;
}


.hero__shade {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(5, 14, 10, 0.95) 0%,
      rgba(5, 14, 10, 0.76) 34%,
      rgba(5, 14, 10, 0.26) 66%,
      rgba(5, 14, 10, 0.08) 100%
    ),
    linear-gradient(
      0deg,
      rgba(5, 14, 10, 0.58) 0%,
      transparent 45%
    );
}


.hero__content {
  position: relative;
  z-index: 2;

  padding-top: clamp(9rem, 20vh, 14rem);
  padding-bottom: clamp(3rem, 9vh, 7rem);
}


.hero__copy {
  max-width: 710px;
}


.hero h1 {
  max-width: 12ch;

  margin-bottom:
    clamp(1.75rem, 4vw, 3.25rem);

  font-family: var(--font-display);
  font-size:
    clamp(3rem, 7vw, 7.2rem);

  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.055em;
  text-wrap: balance;
}


.hero h1::after {
  display: block;

  width: clamp(3rem, 7vw, 6rem);
  height: 2px;

  margin-top:
    clamp(1.5rem, 3vw, 2.5rem);

  background: var(--brown-500);

  content: "";
}


.hero p {
  max-width: 39ch;

  margin-bottom: 0;

  font-size:
    clamp(1.15rem, 1rem + 0.55vw, 1.65rem);

  line-height: 1.55;
  text-wrap: pretty;
}


.hero__intro {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem clamp(1.5rem, 3vw, 2.75rem);
  align-items: center;
}


.hero__cv {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.7rem;
  align-items: center;
  justify-content: center;

  min-height: 3.25rem;
  padding: 0.75rem 1.25rem 0.75rem 1.4rem;

  color: var(--white);
  background: rgba(170, 134, 103, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;

  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.015em;
  text-decoration: none;

  backdrop-filter: blur(8px);
  transition:
    color var(--transition),
    background-color var(--transition),
    border-color var(--transition),
    transform var(--transition);
}


.hero__cv:hover {
  color: var(--forest-950);
  background: var(--cream-100);
  border-color: var(--cream-100);
  transform: translateY(-2px);
}


.hero__cv:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}


.hero__cv svg {
  flex: 0 0 auto;
}


/* =========================================================
   ÚVOD
   ========================================================= */

.intro__grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.1fr)
    minmax(280px, 0.9fr);

  gap:
    clamp(2.5rem, 7vw, 8rem);

  align-items: center;
}


.intro .lead {
  padding-left:
    clamp(1.5rem, 4vw, 4rem);

  border-left: 1px solid var(--line-dark);
}


/* =========================================================
   TRI DÔVODY
   ========================================================= */

.reason {
  display: grid;
  grid-template-columns:
    minmax(100px, 0.24fr)
    minmax(0, 1fr);

  gap:
    clamp(2rem, 6vw, 7rem);

  align-items: start;

  padding-block:
    clamp(2.5rem, 5vw, 4.5rem);

  border-top: 1px solid var(--line-dark);
}


.reason:last-child {
  border-bottom: 1px solid var(--line-dark);
}


.reason__number {
  color: var(--brown-600);

  font-family: var(--font-display);
  font-size:
    clamp(4.5rem, 9vw, 9rem);

  font-weight: 400;
  line-height: 0.78;
  letter-spacing: -0.065em;
}


.reason p {
  max-width: 760px;

  margin-bottom: 0;

  font-size:
    clamp(1.08rem, 0.98rem + 0.35vw, 1.35rem);

  line-height: 1.75;
}


/* =========================================================
   PRIORITY
   ========================================================= */

.priorities__grid {
  display: grid;
  grid-template-columns:
    minmax(260px, 0.8fr)
    minmax(0, 1.2fr);

  gap:
    clamp(3rem, 9vw, 9rem);

  align-items: start;
}


.priorities .display {
  position: sticky;
  top: 3rem;
}


.priorities .display::after {
  display: block;

  width: 4.5rem;
  height: 2px;

  margin-top: 2.25rem;

  background: var(--brown-500);

  content: "";
}


.priorities__copy {
  max-width: 760px;
}


.priorities__copy > p {
  margin-bottom:
    clamp(2rem, 4vw, 3.5rem);

  padding-bottom:
    clamp(2rem, 4vw, 3.5rem);

  border-bottom: 1px solid var(--line-light);

  font-size:
    clamp(1.08rem, 0.98rem + 0.35vw, 1.35rem);
}


.priorities__copy > p:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}


.pullquote {
  position: relative;

  color: var(--cream-200);

  font-family: var(--font-display);
  font-size:
    clamp(1.9rem, 3.5vw, 3.7rem) !important;

  line-height: 1.15 !important;
  letter-spacing: -0.035em;
}


.pullquote::before {
  display: block;

  margin-bottom: 0.5rem;

  color: var(--brown-500);

  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 0.6;

  content: "“";
}


/* =========================================================
   PROJEKTOVÝ PRÍSTUP A TRANSPARENTNÝ ÚČET
   ========================================================= */

.project__grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));

  gap:
    clamp(2.5rem, 7vw, 7rem);

  align-items: start;
}


.project__account {
  grid-column: 1 / -1;

  padding-bottom:
    clamp(2rem, 4vw, 3.5rem);

  border-bottom: 1px solid var(--line-dark);
}


.project__account a {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.65rem, 1.5vw, 1rem);

  color: var(--forest-900);

  font-family: var(--font-display);
  font-size:
    clamp(2rem, 4.5vw, 4.8rem);

  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.04em;

  text-decoration-line: underline;
  text-decoration-color: var(--brown-500);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;

  transition:
    color var(--transition),
    opacity var(--transition);
}


.project__account a:hover {
  color: var(--brown-700);
}


.project__account a:focus-visible {
  border-radius: 2px;
  outline: 3px solid var(--brown-500);
  outline-offset: 8px;
}


.project__account-icon {
  flex: 0 0 auto;

  width:
    clamp(1.5rem, 2.5vw, 2.5rem);

  height:
    clamp(1.5rem, 2.5vw, 2.5rem);

  transition:
    transform var(--transition);
}


.project__account a:hover .project__account-icon {
  transform: translate(4px, -4px);
}


.project .lead {
  max-width: 31ch;
}


.project .lead:last-child {
  padding-left:
    clamp(1.5rem, 4vw, 4rem);

  border-left: 1px solid var(--line-dark);
}


/* =========================================================
   ĽUDIA NA PRVOM MIESTE
   ========================================================= */

.people__grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.25fr)
    minmax(250px, 0.75fr);

  gap:
    clamp(3rem, 8vw, 8rem);

  align-items: center;
}


.people__statement {
  max-width: 22ch;

  margin-bottom: 0;

  font-size:
    clamp(2.3rem, 5vw, 5.5rem);

  line-height: 1.05;
}


.people__grid > p:last-child {
  max-width: 28ch;

  margin-bottom: 0;
  padding-left:
    clamp(1.5rem, 4vw, 4rem);

  border-left: 1px solid rgba(255, 255, 255, 0.3);

  font-size:
    clamp(1.1rem, 1rem + 0.4vw, 1.4rem);
}


/* =========================================================
   ZÁVEREČNÁ ČASŤ
   ========================================================= */

.closing__grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.25fr)
    minmax(280px, 0.75fr);

  gap:
    clamp(3rem, 8vw, 8rem);

  align-items: center;
}


.closing__statement {
  max-width: 23ch;

  margin-bottom: 0;

  font-size:
    clamp(2.3rem, 4.8vw, 5.2rem);

  line-height: 1.08;
}


.closing .lead {
  padding-left:
    clamp(1.5rem, 4vw, 4rem);

  border-left: 1px solid var(--line-dark);
}


/* =========================================================
   PÄTIČKA
   ========================================================= */

.footer {
  padding-block:
    clamp(1.5rem, 3vw, 2.25rem);

  color: rgba(255, 255, 255, 0.78);
  background: var(--forest-950);

  font-size:
    clamp(0.78rem, 0.74rem + 0.12vw, 0.9rem);

  line-height: 1.5;
  text-align: center;
}


/* =========================================================
   ANIMÁCIE
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(24px);

  transition:
    opacity 700ms ease,
    transform 700ms ease;
}


.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* =========================================================
   RESPONZÍVNE ÚPRAVY
   ========================================================= */

@media (max-width: 960px) {

  .hero {
    min-height: 820px;
  }


  .hero__image {
    object-position: 62% center;
  }


  .hero__shade {
    background:
      linear-gradient(
        90deg,
        rgba(5, 14, 10, 0.92) 0%,
        rgba(5, 14, 10, 0.68) 48%,
        rgba(5, 14, 10, 0.2) 100%
      ),
      linear-gradient(
        0deg,
        rgba(5, 14, 10, 0.72) 0%,
        transparent 50%
      );
  }


  .priorities__grid {
    grid-template-columns: 1fr;
  }


  .priorities .display {
    position: static;
    max-width: 16ch;
  }

}


@media (max-width: 760px) {

  .section {
    padding-block:
      clamp(4rem, 15vw, 6rem);
  }


  .hero {
    align-items: flex-end;
    min-height: 780px;
  }


  .hero__image {
    object-position: 60% center;
  }


  .hero__shade {
    background:
      linear-gradient(
        0deg,
        rgba(5, 14, 10, 0.97) 0%,
        rgba(5, 14, 10, 0.72) 42%,
        rgba(5, 14, 10, 0.08) 78%
      );
  }


  .hero__content {
    padding-bottom: 3.5rem;
  }


  .hero__copy {
    max-width: 100%;
  }


  .hero h1 {
    max-width: 10ch;
  }


  .hero p {
    max-width: 30ch;
  }


  .intro__grid,
  .project__grid,
  .people__grid,
  .closing__grid {
    grid-template-columns: 1fr;
  }


  .intro .lead,
  .project .lead:last-child,
  .people__grid > p:last-child,
  .closing .lead {
    padding-top: 1.75rem;
    padding-left: 0;

    border-top: 1px solid var(--line-dark);
    border-left: 0;
  }


  .people__grid > p:last-child {
    border-top-color: rgba(255, 255, 255, 0.3);
  }


  .reason {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }


  .reason__number {
    font-size: 5rem;
  }


  .project__account a {
    align-items: flex-start;
  }

}


@media (max-width: 480px) {

  :root {
    --shell-padding: 1.15rem;
  }


  .hero {
    min-height: 720px;
  }


  .hero__image {
    object-position: 62% center;
  }


  .hero h1 {
    max-width: 9ch;

    font-size:
      clamp(2.7rem, 13vw, 4rem);

    line-height: 0.98;
  }


  .hero p {
    font-size: 1.05rem;
  }


  .display {
    font-size:
      clamp(2.35rem, 12vw, 3.5rem);
  }


  .section-title {
    font-size:
      clamp(2.1rem, 10vw, 3.2rem);
  }


  .project__account a {
    font-size:
      clamp(2rem, 11vw, 3.2rem);
  }


  .people__statement,
  .closing__statement {
    font-size:
      clamp(2.15rem, 10vw, 3.3rem);
  }

}


/* =========================================================
   OBMEDZENIE ANIMÁCIÍ
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }


  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }


  .reveal {
    opacity: 1;
    transform: none;
  }

}
