@font-face {
  font-family: "TikTok Sans";
  src: url("fonts/tiktok-sans-latin-ext.woff2") format("woff2");
  font-weight: 300 900;
  font-stretch: 75% 150%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "TikTok Sans";
  src: url("fonts/tiktok-sans-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-stretch: 75% 150%;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0f1f10;
  --surface: #162a17;
  --ink: #ffffff;
  --muted: #9aa39a;
  --accent: #c6f19d;
  --accent-ink: #0f1f10;
  --black: #000000;
  --white: #ffffff;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-big: clamp(5rem, 9vw, 8.75rem);
  --step-display: clamp(9rem, 13.2vw, 15rem);

  --margin: clamp(20px, 2.2vw, 32px);
  --section: clamp(112px, 11vw, 168px);
  --gap: 24px;
  --sq: clamp(200px, 19vw, 300px);
  --font: "TikTok Sans", "Helvetica Neue", Arial, sans-serif;
  --focus: var(--accent);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-body);
  line-height: 1.45;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
p,
ul,
ol,
figure,
fieldset {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

.skip {
  position: absolute;
  left: var(--margin);
  top: -100px;
  z-index: 20;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--accent-ink);
}

.skip:focus {
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

main {
  position: relative;
  z-index: 1;
  background: var(--bg);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  background: var(--bg);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.button:hover {
  background: var(--black);
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0) scale(0.98);
}

.button--light {
  background: var(--white);
  color: var(--black);
}

.button--light:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

/* Hero: the name runs across the switchboard and turns white where it crosses the photograph. */

.hero {
  --focus: var(--bg);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  padding: 0 var(--margin);
  overflow: hidden;
  background: var(--white);
  color: var(--bg);
}

.bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--gap);
  padding-top: 28px;
}

.bar__links {
  display: flex;
  gap: 28px;
}

.bar__links--end {
  justify-content: flex-end;
}

.bar a {
  text-decoration: none;
}

.bar__links a:hover,
.bar__menu a:hover {
  text-decoration: underline;
}

.bar__mark {
  font-weight: 700;
}

.bar__menu {
  display: none;
}

.stage {
  position: relative;
  height: var(--sq);
  margin: calc(40svh - 56px - var(--sq) / 2) calc(var(--margin) * -1) 0;
}

.stage__photo {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--sq);
  height: var(--sq);
  object-fit: cover;
  transform: translateX(-50%);
}

.name {
  position: absolute;
  inset: 0;
}

.line {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  font-size: var(--step-display);
  font-weight: 800;
  font-stretch: 150%;
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.line--light {
  color: var(--white);
  clip-path: inset(0 calc(50% - var(--sq) / 2));
}

.line__track {
  display: flex;
  align-items: center;
  flex: none;
  animation: run var(--run, 90s) linear infinite;
}

.line__word {
  display: flex;
  align-items: center;
}

.line__word[data-copy]::before {
  content: attr(data-copy);
}

.line__word::after {
  content: "";
  width: 0.24em;
  height: 0.24em;
  margin: 0 0.42em;
  border-radius: 50%;
  background: currentColor;
}

.hero:hover .line__track {
  animation-play-state: paused;
}

@keyframes run {
  to {
    transform: translateX(-50%);
  }
}

.hero__text {
  margin-top: clamp(56px, 16.6svh, 150px);
  text-align: center;
}

.hero__lead {
  max-width: 36ch;
  margin: 0 auto;
  font-size: var(--step-lead);
  line-height: 1.3;
  text-wrap: balance;
}

.hero__fact {
  margin-top: 24px;
}

.hero__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  margin-top: auto;
  padding: 40px 0;
}

/* Ponuka */

.offer {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  padding: var(--section) var(--margin);
}

.offer__column {
  grid-column: 1 / 7;
  container-type: inline-size;
}

.offer__word {
  font-size: 17cqw;
  font-weight: 800;
  font-stretch: 150%;
  line-height: 0.8;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.offer__bars {
  display: grid;
  gap: 6px;
  margin-top: 28px;
}

.offer__bar {
  background: var(--surface);
}

.offer__bar summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 18px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.offer__bar summary::-webkit-details-marker {
  display: none;
}

.offer__bar summary::after {
  content: "+";
  font-size: var(--step-lead);
  line-height: 1;
  transition: transform 0.25s ease;
}

.offer__bar[open] summary::after {
  transform: rotate(45deg);
}

.offer__bar summary:hover {
  background: #1d351e;
}

.offer__panel {
  padding: 4px 18px 22px;
}

.offer__bar:not([open]) .offer__panel {
  display: none;
}

.offer__panel > p {
  max-width: 58ch;
}

.offer__items {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.offer__items li {
  display: flex;
  justify-content: space-between;
  gap: var(--gap);
  font-variant-numeric: tabular-nums;
}

.offer__items li span:last-child:not(:first-child) {
  flex: none;
  text-align: right;
}

.offer__note {
  margin-top: 20px;
  color: var(--muted);
}

.offer__picture {
  grid-column: 8 / 13;
  align-self: start;
  position: sticky;
  top: 10svh;
}

.offer__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--surface);
}

.offer__frame > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offer__img {
  transition: opacity 0.25s ease;
}

.offer__img.is-changing {
  opacity: 0;
}

.offer__video[hidden] {
  display: none;
}

.offer__picture figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: var(--step-small);
}

/* Termín revízie: the law's two tables worked out on a printed slip */

.due {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  padding: var(--section) var(--margin);
  background: var(--black);
}

.due__intro {
  grid-column: 1 / 6;
}

.due__title {
  font-size: var(--step-head);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.due__intro > p {
  max-width: 34ch;
  margin-top: 28px;
}

.due__form {
  display: grid;
  gap: 10px;
  margin-top: 44px;
}

.due__form label,
.due__form legend {
  padding: 0;
  font-weight: 500;
}

.due__form label:not(:first-child),
.due__date {
  margin-top: 14px;
}

.due__form select {
  width: 100%;
  min-height: 56px;
  padding: 0 48px 0 16px;
  border: 0;
  border-radius: 0;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23c6f19d' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 18px center;
  color: var(--ink);
  font: inherit;
  appearance: none;
  cursor: pointer;
}

.due__form select:hover {
  background-color: #1d351e;
}

.due__date {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  min-width: 0;
  padding: 0;
  border: 0;
}

.due__date legend {
  margin-bottom: 10px;
}

.due__form .button {
  justify-self: start;
  margin-top: 30px;
}

.slip {
  grid-column: 7 / 12;
  align-self: start;
  position: sticky;
  top: 12svh;
  padding-bottom: 12px;
}

.slip__paper {
  position: relative;
  max-width: 480px;
  padding: 36px 32px 32px;
  background: var(--white);
  color: var(--bg);
  font-variant-numeric: tabular-nums;
}

.slip__paper::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12' viewBox='0 0 24 12'%3E%3Cpath d='M0 0h24L12 12z' fill='%23fff'/%3E%3C/svg%3E") repeat-x left top / 24px 12px;
}

.slip__group {
  margin-top: 28px;
  font-weight: 700;
}

.slip__group:first-child {
  margin-top: 0;
}

.slip__row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 8px;
}

.slip__row span:first-child {
  display: flex;
  align-items: baseline;
  flex: 1;
  gap: 10px;
}

.slip__row span:first-child::after {
  content: "";
  flex: 1;
  min-width: 24px;
  height: 4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='4' viewBox='0 0 10 4'%3E%3Ccircle cx='2' cy='2' r='2' fill='%230f1f10'/%3E%3C/svg%3E") repeat-x left center / 10px 4px;
}

.slip__row span:last-child {
  flex: none;
  text-align: right;
}

.slip__result {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 32px -32px 0;
  padding: 10px 32px;
  background: var(--bg);
  color: var(--white);
  font-weight: 600;
}

.slip__result.is-late {
  background: var(--black);
  color: var(--accent);
}

/* Realizácie: each project is torn along the seam and closes when it reaches the middle of the screen */

.work {
  position: relative;
  background: var(--black);
}

.work__title {
  position: absolute;
  top: 32px;
  left: var(--margin);
  z-index: 3;
  color: var(--white);
  font-size: var(--step-lead);
}

.project {
  position: relative;
  height: 100svh;
  overflow: hidden;
}

.project__pane {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.68);
}

.project__pane--a {
  left: 0;
}

.project__pane--b {
  right: 0;
}

.project__caption {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  z-index: 2;
  color: var(--white);
  text-align: center;
  transform: translateY(-50%);
}

.project__name {
  display: flex;
  font-size: var(--step-big);
  font-weight: 800;
  font-stretch: 150%;
  line-height: 0.85;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.project__name span {
  flex: 1 1 0;
  will-change: transform;
}

.project__name span:first-child {
  text-align: right;
}

.project__caption p {
  margin-top: 20px;
  transition: opacity 0.3s ease;
}

.js .work {
  height: calc(5 * 95svh + 5svh);
}

.js .work__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}

.js .work__title {
  position: absolute;
}

.js .project {
  position: absolute;
  inset: 0;
  height: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0s 0.45s;
}

.js .project.is-current {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease, visibility 0s;
}

.js .project__pane {
  top: -20svh;
  height: calc(100% + 40svh);
  will-change: transform;
}

/* Oprávnenia */

.licences__band {
  display: flex;
  align-items: center;
  height: 34vh;
  min-height: 220px;
  overflow: hidden;
  background: var(--white);
  color: var(--bg);
}

.licences__names {
  display: flex;
  align-items: center;
  flex: none;
  padding-left: 6vw;
  font-size: var(--step-big);
  font-weight: 800;
  font-stretch: 150%;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
  will-change: transform;
}

.licences__names span + span::before {
  content: "";
  display: inline-block;
  width: 0.24em;
  height: 0.24em;
  margin: 0 0.42em;
  border-radius: 50%;
  background: currentColor;
  vertical-align: 0.2em;
}

.licences__body {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
  padding: var(--section) var(--margin) 0;
}

.licences__intro {
  grid-column: 1 / 5;
  align-self: start;
  position: sticky;
  top: 12svh;
}

.licences__intro h2 {
  font-size: var(--step-head);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.licences__intro p {
  max-width: 32ch;
  margin-top: 28px;
}

.licences__list {
  grid-column: 6 / 13;
  display: grid;
  gap: 6px;
}

.licences__list li {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: var(--gap);
  padding: 26px 28px 30px;
  background: var(--surface);
}

.licences__year {
  font-size: var(--step-head);
  font-weight: 800;
  font-stretch: 125%;
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
}

.licences__list h3 {
  font-size: var(--step-body);
  font-weight: 700;
}

.licences__list p {
  margin-top: 6px;
}

/* Kontakt: the address set as display rows */

.contact {
  padding-top: var(--section);
}

.contact__title {
  padding: 0 var(--margin);
  font-size: var(--step-head);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.contact__rows {
  margin-top: 40px;
}

.contact__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--gap);
  min-height: 150px;
  padding: 24px var(--margin) 28px;
  font-size: clamp(2.75rem, 6vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.contact__row:nth-child(odd) {
  background: var(--surface);
}

.contact__row a {
  text-decoration: none;
}

.contact__row a:hover {
  text-decoration: underline;
  text-decoration-thickness: 3px;
}

.contact__place {
  flex: none;
  width: 1.4em;
  height: 1.4em;
  border-radius: 50%;
  object-fit: cover;
}

.contact__go {
  display: grid;
  place-items: center;
  flex: none;
  width: 0.9em;
  height: 0.9em;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.2s ease;
}

.contact__go svg {
  width: 45%;
  fill: none;
  stroke: var(--accent-ink);
  stroke-width: 2.4;
}

.contact__go:hover {
  transform: translateX(6px);
}

/* Footer: revealed under the page, with the name set once more in lime */

.footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  min-height: 72svh;
  padding: 40px var(--margin) 20px;
  background: var(--black);
  color: var(--muted);
}

.footer__columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
}

.footer__columns > * > :first-child {
  color: var(--ink);
}

.footer__columns a {
  text-decoration: none;
}

.footer__columns a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer__base {
  grid-row: 3;
}

.footer__mark {
  color: var(--accent);
  font-size: 12.6vw;
  font-weight: 800;
  font-stretch: 150%;
  line-height: 0.8;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.footer__legal {
  margin-top: 20px;
  font-size: var(--step-small);
}

/* Motion */

@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .js [data-rise] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: calc(var(--i, 0) * 75ms);
  }

  .js [data-rise].is-in {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__text,
  .hero__foot,
  .bar {
    animation: enter 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }

  .hero__text {
    animation-delay: 0.15s;
  }

  .hero__foot {
    animation-delay: 0.3s;
  }

  .stage__photo {
    animation: grow 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
}

@keyframes grow {
  from {
    opacity: 0;
    transform: translateX(-50%) scale(0.85);
  }
}

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

  .line {
    justify-content: center;
  }

  .line__track {
    animation: none;
  }

  .line__word + .line__word {
    display: none;
  }

  .line__word::after {
    display: none;
  }
}

/* Phone */

@media (max-width: 899px) {
  :root {
    --sq: 46vw;
    --step-display: 24vw;
    --step-big: 12.5vw;
  }

  .bar {
    grid-template-columns: 1fr auto 1fr;
    padding-top: 20px;
  }

  .bar__links {
    display: none;
  }

  .bar__mark {
    grid-column: 2;
  }

  .bar__menu {
    display: block;
    grid-column: 3;
    justify-self: end;
    position: relative;
  }

  .bar__menu summary {
    padding: 8px 0;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
  }

  .bar__menu summary::-webkit-details-marker {
    display: none;
  }

  .bar__menu ul {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 5;
    display: grid;
    gap: 2px;
    min-width: 200px;
    padding: 10px 0;
    background: var(--bg);
    color: var(--white);
  }

  .bar__menu a {
    display: block;
    padding: 10px 18px;
    text-decoration: none;
  }

  .stage {
    margin-top: auto;
  }

  .hero__text {
    margin-top: 56px;
  }

  .hero__fact {
    margin-top: 16px;
  }

  .hero__foot {
    flex-direction: column;
    align-items: stretch;
    padding: 32px 0 20px;
    text-align: center;
  }

  .offer,
  .due,
  .licences__body {
    grid-template-columns: minmax(0, 1fr);
  }

  .offer__column,
  .offer__picture,
  .due__intro,
  .slip,
  .licences__intro,
  .licences__list {
    grid-column: auto;
  }

  .offer__column {
    display: contents;
  }

  .offer__picture {
    position: static;
    margin-top: 4px;
  }

  .offer {
    padding-top: 152px;
  }

  .offer__frame {
    aspect-ratio: 4 / 3;
  }

  .offer__bars {
    order: 1;
    margin-top: 8px;
  }

  .offer__bar summary {
    min-height: 54px;
  }

  .slip {
    position: static;
    margin-top: 48px;
  }

  .slip__paper {
    max-width: none;
    padding: 28px 20px 24px;
  }

  .slip__result {
    margin: 28px -20px 0;
    padding: 10px 20px;
  }

  .work__title {
    top: 20px;
  }

  .licences__band {
    height: 22vh;
    min-height: 150px;
  }

  .licences__intro {
    position: static;
  }

  .licences__list {
    margin-top: 32px;
  }

  .licences__list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 22px 20px 24px;
  }

  .contact__row {
    min-height: 84px;
    padding: 18px var(--margin) 18px;
    font-size: var(--step-head);
    line-height: 1.1;
  }

  .footer__columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 32px;
  }

}

html:not(.js) .due__form {
  display: none;
}

@media (max-width: 599px) {
  .contact__row--mail {
    font-size: 6.2vw;
  }
}
