@font-face {
  font-family: Coanda;
  src: url("assets/fonts/coanda-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Coanda;
  src: url("assets/fonts/coanda-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* Graphik Regular (400) ceka web fajl od dizajnera: assets/fonts/graphik-regular.woff */
@font-face {
  font-family: Graphik;
  src: url("assets/fonts/graphik-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  font-family: Graphik, Inter, Arial, sans-serif;
  color: #000;
  background: #000;
  font-size: max(15px, 1.180556vw);
  font-weight: 400;
  line-height: 1.5;
  font-variant-ligatures: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --frame-inset: 20px;
  --content-inset: 1.88235rem;
  --muted: #bdbdbd;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: var(--frame-inset);
  overflow: hidden;
}

h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; }

h1, h2 {
  /* Figma sets the About heading to 100px in a 1336px content column. */
  font-size: 7.485cqi;
  font-weight: 400;
  line-height: 1.6;
}

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 2 * var(--frame-inset));
  height: calc(100dvh - 2 * var(--frame-inset));
  overflow: clip;
  border-radius: 14px;
  background: #F9F9F9;
  background-image: url("assets/figma-dot-pattern.png");
  background-size: 1400px 331px;
}

.divider {
  width: 100%;
  height: 1px;
  transform-origin: left center;
}

@media (prefers-reduced-motion: no-preference) {
  .divider[data-divider-state="pending"] { visibility: hidden; }
  .divider[data-divider-state="drawing"] {
    animation: divider-draw 1.25s ease-in-out both;
  }
}

@keyframes divider-draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.site-header {
  flex: none;
  padding-inline: var(--content-inset);
}

.header-progress { position: relative; }

.header-progress::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left center;
  pointer-events: none;
}

.site-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.88235rem 1.58824rem;
  min-height: 6.29412rem;
}

.page-scroll {
  flex: 1;
  min-height: 0;
  padding: 0 var(--content-inset) 1.88235rem;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.page-scroll::-webkit-scrollbar { display: none; }
.page-scroll:focus-visible { outline-offset: -2px; }
.page-scroll > main {
  display: flow-root;
  container-type: inline-size;
}

.site-header p {
  width: 18.23529rem;
  font-size: .94118rem;
  text-align: right;
}

.hero {
  display: flow-root;
}

.hero h1 > .hero-title-layout {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: .25em;
}

.hero-phrases {
  display: grid;
  overflow: clip;
}

[data-rotating-phrases] > span { grid-area: 1 / 1; }
[data-rotating-phrases].is-rotating > span[hidden] {
  display: block;
  visibility: hidden;
}

.hero-title-muted, .about-title-muted, .section-title-muted { color: var(--muted); }

.inline-phrases {
  display: inline-grid;
  overflow: clip;
  line-height: 1.3;
  white-space: nowrap;
}

.hero-bottom {
  padding: 1.88235rem 0 1.82353rem;
}

.hero-bottom, .statement {
  font-size: 1.41176rem;
  line-height: 1.5;
}

.hero-bottom p { max-width: 28rem; }

.section-dock {
  z-index: 100;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  position: absolute;
  font-size: 1.11765rem;
  bottom: 32px;
  left: 0;
  right: 0;
}

.section-dock__pill {
  color: #000;
  background-color: #efeff1;
  border-radius: 20px;
  position: relative;
  overflow: clip;
}

.section-dock__toggle {
  white-space: nowrap;
  appearance: none;
  background-color: #0000;
  border: none;
  font: inherit;
  color: inherit;
  height: 2.94118rem;
  padding: 0 1.88235rem;
  display: block;
  cursor: pointer;
}

.section-dock__label-wrap {
  height: 1.5em;
  display: block;
  position: relative;
  overflow: hidden;
}

.section-dock__link-num {
  color: #828282;
  margin-right: 4px;
  font: 600 .94118rem Coanda, monospace;
  line-height: 1;
  display: inline-block;
  position: relative;
  bottom: .05em;
}

[data-section-dock-link][data-active] .section-dock__link-num {
  color: #bdbdbd;
}

.section-dock__label {
  line-height: 1.5;
  display: block;
}

.section-dock__list {
  opacity: 0;
  visibility: hidden;
  width: max-content;
  padding: .5em;
  position: absolute;
  top: 0;
  left: 0;
}

.section-dock__indicator {
  z-index: 1;
  pointer-events: none;
  background-color: #000;
  border-radius: 100em;
  width: 2em;
  height: 2em;
  position: absolute;
  top: 0;
  left: 0;
}

.section-dock__items {
  flex-flow: column;
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: flex;
}

.section-dock__link {
  z-index: 2;
  white-space: nowrap;
  color: inherit;
  border-radius: 100em;
  padding: .5em 1em;
  text-decoration: none;
  display: block;
  position: relative;
}

[data-section-dock-link][data-active] {
  color: #fff;
}

.section-dock :focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -3px;
}

@media (prefers-reduced-motion: no-preference) {
  .page-scroll { scroll-behavior: smooth; }
  .section-dock__link { transition: color .3s ease; }
}

.about { padding-top: 12.35rem; }

.statement-track { margin-bottom: 11.6rem; }

.statement-track.is-revealing::after {
  display: block;
  height: max(240px, 65dvh);
  content: "";
}

.statement-track.is-revealing .statement {
  position: sticky;
  top: var(--statement-top, 0px);
  color: var(--muted);
}

.statement .is-filled { color: #000; }

.statement-reading-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.statement {
  width: 100%;
  text-align: left;
  font-size: 2.47059rem;
}

.statement p:last-child { margin-top: 1.5em; }

.about-copy {
  display: flex;
  gap: min(7vw, 5.88235rem);
  margin: 100px 0 1.91176rem;
}

.about-copy p, .services > p { width: min(100%, 28.58824rem); }

.services { margin-top: 9.41176rem; }
.services > p { margin-bottom: 4.26471rem; }

.services li {
  position: relative;
  padding: .94118rem 0;
  font-size: 1.41176rem;
  line-height: 1.5;
}

.service-row-divider { position: absolute; inset: auto 0 0; }

.service-detail { display: none; }

@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
  .service-detail {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    visibility: hidden;
  }

  .service-detail-inner {
    min-height: 0;
    overflow: hidden;
  }

  .service-detail p {
    max-width: 61rem;
    padding-block: .88235rem .94118rem;
    color: #4f4f4f;
    font-size: 1rem;
  }

  .services li:hover > .service-detail {
    grid-template-rows: 1fr;
    opacity: 1;
    visibility: visible;
  }
}

@media (min-width: 768px) and (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .service-detail {
    transition: grid-template-rows .35s ease-in-out, opacity .22s ease, visibility 0s .35s;
  }

  .services li:hover > .service-detail { transition-delay: 0s; }
}

.contact { margin-top: 14.05882rem; }
.services h2, .contact h2 { margin-bottom: 1.88235rem; }
.contact > p + p { margin-top: 1.5rem; }

.contact > .contact-cta {
  margin-top: 2rem;
  margin-bottom: 2.63529rem;
  font-size: 2.47059rem;
  line-height: 1.6;
  font-weight: 400;
}

[data-title-reveal], [data-text-reveal] { overflow: clip; }
[data-title-reveal] > span, [data-text-reveal] > span { display: block; }
.contact-cta[data-title-reveal],
.footer-contact > [data-text-reveal] { padding-bottom: .2em; }

.contact-link {
  position: relative;
  display: inline-block;
  width: fit-content;
  text-decoration: none;
}

.contact-link::after {
  position: absolute;
  inset: auto 0 -.1em;
  height: 1px;
  background: currentColor;
  content: "";
}

.contact-cta .contact-link::after { bottom: .02em; }

@media (prefers-reduced-motion: no-preference) {
  .contact-link:hover::after,
  .contact-link:focus-visible::after {
    animation: contact-underline .55s ease-in-out;
  }
}

@keyframes contact-underline {
  0% { transform: scaleX(1); transform-origin: right; }
  49% { transform: scaleX(0); transform-origin: right; }
  50% { transform: scaleX(0); transform-origin: left; }
  100% { transform: scaleX(1); transform-origin: left; }
}

.site-footer { padding-top: 1.88235rem; }

.footer-row, .footer-contact {
  display: flex;
  justify-content: space-between;
}

.footer-row + .footer-row { margin-top: 3.94118rem; }
.footer-contact { gap: 2.47059rem; }

.footer-mark {
  font-family: Coanda, Graphik, Arial, sans-serif;
  font-size: 1.88235rem;
}

.site-header-inner > a > img {
  width: 4.64706rem;
  height: auto;
}

.section-dock__mobile-label { display: none; }

@media (min-width: 768px) {
  .page-scroll { container-type: size; }

  .hero {
    display: flex;
    flex-direction: column;
    min-height: calc(100cqh - 4rem);
  }

  .hero h1 {
    flex: none;
    margin-block: clamp(1rem, calc(30cqh - 3.75rem), 10rem) clamp(1rem, 8cqh, 4rem);
    font-size: min(8.3832cqi, 34cqh);
    line-height: 1.35;
  }

  .hero > .divider { flex: none; }
  .hero h1 + .divider { margin-top: auto; }
  .hero-bottom { flex: none; }
}

@media (min-width: 768px) and (max-width: 1100px) {
  .about { padding-top: 7rem; }
  .statement-track { margin-bottom: 7rem; }
  .services, .contact { margin-top: 7rem; }
}

@media (max-width: 767px) {
  :root {
    --frame-inset: 10px;
    --content-inset: clamp(16px, 4vw, 24px);
    --section-gap: 8rem;
  }

  h1, h2 {
    font-size: clamp(2.25rem, 9cqi, 4rem);
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  .site-header-inner {
    position: relative;
    min-height: 68px;
    padding-block: 12px;
  }

  .site-header-inner > a > img { width: 58px; }
  .site-header-inner > p { display: none; }

  .section-dock {
    inset: 12px 0 auto auto;
    margin: 0;
    font-size: 1rem;
  }

  .section-dock__toggle {
    height: 44px;
    padding-inline: 18px;
  }

  .section-dock__mobile-label { display: inline; }
  .section-dock__label-wrap { display: none; }

  .section-dock__link {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-width: 10rem;
    min-height: 52px;
    padding: .5rem 1.125rem;
    font-size: 1.2rem;
  }

  .hero h1 {
    margin: 17rem 0 8rem;
    font-size: clamp(2.93rem, 11.72cqi, 5.21rem);
  }
  .hero h1 > .hero-title-layout { grid-template-columns: minmax(0, 1fr); }

  .hero-phrases { line-height: 1.3; }
  .hero-bottom { padding-block: 1.25rem; }

  .about { padding-top: var(--section-gap); }
  .statement-track { margin-bottom: var(--section-gap); }
  .statement {
    font-size: clamp(1.25rem, 5.4cqi, 2.47059rem);
    line-height: 1.45;
  }

  .about-copy, .footer-row, .footer-contact {
    flex-direction: column;
    gap: 1rem;
  }

  .about-copy { margin-bottom: 1.75rem; }
  .services, .contact { margin-top: var(--section-gap); }
  .services > p { margin-bottom: 2rem; }
  .site-footer { padding-top: 4rem; }
  .footer-row + .footer-row { margin-top: 2rem; }
}
