/* ============================================================
   BRODIS IM — one-page, varianta „RASTR“
   Bodový rastr z vizitky roztažený přes celou stránku; symbol
   je místo, kde se rastr zahustí a rozsvítí do akcentu.
   Písmo Poppins a barvy dle prezentace grafika (prezentace-fin2.pdf):
   modrá sytá #1B3D6C · modrá světlá #EDF8FD · akcent #0097DE
   ============================================================ */

:root {
  --blue: #1b3d6c;      /* modrá sytá */
  --surface: #edf8fd;   /* modrá světlá */
  --accent: #0097de;    /* akcent */
  --logo: #1d4477;      /* logo — RGB z prezentace */
  --logo-2: #80a9d0;    /* logo — sekundární */
  --ink: #1b3d6c;
  --muted: #53739b;
  --hair: rgba(27, 61, 108, 0.15);
  --hair-soft: rgba(27, 61, 108, 0.08);
  --pad: clamp(20px, 4vw, 70px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

/* drobné popisky — prezentace jiné písmo než Poppins nepoužívá */
.lbl {
  font-size: clamp(9.5px, 0.92vw, 11px);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ---------- logo ---------- */

.logo {
  display: block;
  height: auto;
  color: var(--logo);
}

.logo__letter,
.logo__dot {
  fill: currentColor;
}

.logo__sub {
  fill: var(--logo-2);
}

/* přepínač varianty loga — viz data-logo na <html> */
html[data-logo="brodis"] .logo--hodnota,
html[data-logo="brodis-hodnota"] .logo--plain {
  display: none;
}

/* ---------- sazba ---------- */

h1 {
  margin: 0;
  font-size: clamp(2.1rem, 6.2vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.042em;
  font-weight: 300;
}

.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.line > span {
  display: block;
  animation: up 1.3s var(--ease) both;
  animation-delay: calc(var(--d, 0) * 1ms);
}

.line:nth-child(1) > span { --d: 180; }
.line:nth-child(2) > span { --d: 280; }
.line:nth-child(3) > span { --d: 380; }

@keyframes up {
  from { transform: translate3d(0, 108%, 0); }
}

.w-bold {
  font-weight: 700;
  letter-spacing: -0.05em;
}

/* krátká akcentní linka pod nadpisem — prvek z prezentace */
.accent-rule {
  display: block;
  width: clamp(46px, 5.5vw, 84px);
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  transform-origin: left;
  animation: grow 1.1s var(--ease) 0.6s both;
}

@keyframes grow {
  from { transform: scaleX(0); }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: var(--accent);
  animation: fade 1s var(--ease) 0.15s both;
}

.eyebrow::before {
  content: "";
  width: clamp(24px, 4vw, 52px);
  height: 1px;
  background: currentColor;
  transform-origin: left;
  animation: grow 1.1s var(--ease) 0.25s both;
}

/* ---------- kontakty ---------- */

.k {
  margin: 0 0 8px;
  color: var(--accent);
}

.v {
  margin: 0;
  font-size: clamp(0.94rem, 1.25vw, 1.08rem);
  font-weight: 400;
  line-height: 1.5;
}

.v small {
  display: block;
  font-size: 0.86em;
  font-weight: 300;
  color: var(--muted);
}

.mail {
  display: inline-flex;
  align-items: baseline;
  gap: 0.42em;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--accent);
  transition: color 0.45s var(--ease);
}

.mail:hover,
.mail:focus-visible {
  color: var(--accent);
}

.mail i {
  font-style: normal;
  font-size: 0.78em;
  color: var(--accent);
  transition: transform 0.45s var(--ease);
}

.mail:hover i,
.mail:focus-visible i {
  transform: translate(3px, -3px);
}

/* ---------- patička ---------- */

.legal {
  margin: 0;
  max-width: 92ch;
  font-size: clamp(10.5px, 0.95vw, 12px);
  line-height: 1.7;
  color: var(--muted);
}

.legal b {
  font-weight: 500;
  color: var(--blue);
}

.sig {
  margin: 0;
  color: var(--muted);
  opacity: 0.8;
  white-space: nowrap;
}

@keyframes fade {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
}


body {
  background:
    radial-gradient(
      64% 58% at 82% 14%,
      rgba(0, 151, 222, 0.13) 0%,
      rgba(0, 151, 222, 0) 66%
    ),
    linear-gradient(162deg, #ffffff 0%, var(--surface) 100%);
}

body {
  --dot-o: 0.3;
  /* stejná mezera nad i pod textem patičky, aby v pásu opticky
     seděl na střed — dole ji tvoří spodní odsazení .shell */
  --foot-gap: clamp(20px, 2.6vw, 32px);
}

/* bodový rastr z vizitky, roztažený přes celou plochu */
.raster {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(
    rgba(27, 61, 108, 0.17) 1.35px,
    transparent 1.45px
  );
  background-size: clamp(17px, 1.7vw, 24px) clamp(17px, 1.7vw, 24px);
  -webkit-mask-image: radial-gradient(130% 100% at 30% 45%, #000 20%, transparent 82%);
  mask-image: radial-gradient(130% 100% at 30% 45%, #000 20%, transparent 82%);
  animation: fade 1.6s var(--ease) both;
}

/* symbol = místo, kde se rastr zahustí; táhne se přes celou šířku */
.mark {
  position: fixed;
  z-index: 0;
  top: 50%;
  right: 0;
  width: min(52vw, 84svh);
  pointer-events: none;
  transform: translate3d(
    calc(var(--mx, 0) * 22px),
    calc(-50% + var(--my, 0) * 22px),
    0
  );
  transition: transform 1.4s var(--ease);
  -webkit-mask-image: radial-gradient(74% 74% at 46% 50%, #000 46%, transparent 94%);
  mask-image: radial-gradient(74% 74% at 46% 50%, #000 46%, transparent 94%);
}

.mark svg {
  display: block;
  width: 100%;
  height: auto;
}

.mark__dot {
  fill: color-mix(in srgb, var(--accent), var(--blue) calc(var(--i) * 5.5%));
  opacity: 0;
  animation: dotIn 1.3s var(--ease) both, pulse 8s ease-in-out infinite;
  animation-delay: calc(0.35s + var(--i) * 0.045s),
    calc(1.7s + var(--i) * -0.36s);
}

.mark__dot:nth-child(1) { --i: 3; }
.mark__dot:nth-child(2) { --i: 8; }
.mark__dot:nth-child(3) { --i: 13; }
.mark__dot:nth-child(4) { --i: 1; }
.mark__dot:nth-child(5) { --i: 6; }
.mark__dot:nth-child(6) { --i: 11; }
.mark__dot:nth-child(7) { --i: 16; }
.mark__dot:nth-child(8) { --i: 0; }
.mark__dot:nth-child(9) { --i: 4; }
.mark__dot:nth-child(10) { --i: 9; }
.mark__dot:nth-child(11) { --i: 14; }
.mark__dot:nth-child(12) { --i: 18; }
.mark__dot:nth-child(13) { --i: 2; }
.mark__dot:nth-child(14) { --i: 7; }
.mark__dot:nth-child(15) { --i: 12; }
.mark__dot:nth-child(16) { --i: 17; }
.mark__dot:nth-child(17) { --i: 5; }
.mark__dot:nth-child(18) { --i: 10; }
.mark__dot:nth-child(19) { --i: 15; }

@keyframes dotIn {
  from { opacity: 0; transform: scale(0.3); }
  to { opacity: 0.3; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.22; }
  50% { opacity: 0.36; }
}

.shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  padding: clamp(18px, 2.6vw, 34px) var(--pad) var(--foot-gap);
  gap: clamp(26px, 4vw, 52px);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  animation: fade 1s var(--ease) 0.1s both;
}

.logo {
  width: clamp(146px, 16vw, 224px);
}

.place {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  white-space: nowrap;
}

.pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.mid {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(22px, 3vw, 40px);
}

.head-wrap {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 28px);
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: clamp(18px, 2.6vw, 44px);
  max-width: 820px;
  padding-top: clamp(18px, 2.4vw, 30px);
  border-top: 1px solid var(--hair);
  animation: fade 1s var(--ease) 0.6s both;
}

.bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  /* copyright vertikálně na střed vůči právnímu textu */
  align-items: center;
  gap: clamp(14px, 2.6vw, 40px);
  padding-top: var(--foot-gap);
  border-top: 1px solid var(--hair);
  animation: fade 1s var(--ease) 0.75s both;
}

/* druhý a třetí řádek nadpisu sázíme úplně stejně */
h1 .dim {
  color: inherit;
}

/* právní text o stupeň větší, ať se dobře čte */
.legal {
  font-size: clamp(12.5px, 1.05vw, 14.5px);
  line-height: 1.65;
}

@media (max-width: 860px) {
  .place .long {
    display: none;
  }

  .mark {
    top: 62%;
    right: -20vw;
    width: 108vw;
  }

  .bottom {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

/* Musí stát až za CSS varianty: základní pravidlo .mark__dot má
   opacity 0 a viditelnost mu dodává animace. Bez tohoto bloku by
   se uživatelům s vypnutými animacemi symbol vůbec nezobrazil. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.001ms !important;
  }

  .mark__dot {
    opacity: var(--dot-o, 0.28);
    transform: none;
  }
}