/* ==========================================================================
   Stefan Stević — portfolio
   Paleta je uzeta sa fotografije sa Phygital samita: žuta slova, tamnoplava
   pozadina i plavi sako. Jedna porodica slova (Archivo, promenljiva širina).
   ========================================================================== */

/* ---------- Fonts (self-hosted, subset) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-base.woff2") format("woff2-variations"),
       url("../fonts/archivo-base.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2014, U+2018-201E, U+2022,
    U+2026, U+2032-2033, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-sr.woff2") format("woff2-variations"),
       url("../fonts/archivo-sr.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0106-0107, U+010C-010D, U+0110-0111, U+0160-0161, U+017D-017E;
}

/* ---------- Tokens ---------- */
:root {
  --sun: #fec834;
  --sun-deep: #f0b417;
  --ink: #121628;
  --ink-2: #1b2138;
  --paper: #f3f1ec;
  --paper-2: #e7e3da;
  --blazer: #3d6aa6;
  --mist: #98a1b3;
  --wa: #128c7e;
  --viber: #7360f2;
  --ig: radial-gradient(circle at 30% 107%, #fdd65b 0%, #fd5949 42%, #d6249f 62%, #4a52e0 95%);
  --ok: #11994c;
  --slate: #535c6e;
  --line-dark: rgba(238, 240, 243, 0.13);
  --line-light: rgba(18, 22, 40, 0.14);

  --font: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 3.4vw, 52px);
  --maxw: 1480px;
  --nav-h: 76px;

  --fs-small: 0.875rem;
  --fs-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --fs-lead: clamp(1.125rem, 0.98rem + 0.62vw, 1.5rem);
  --fs-h3: clamp(1.5rem, 1.15rem + 1.3vw, 2.25rem);
  --fs-h2: clamp(2.5rem, 1.45rem + 4.3vw, 5.75rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --accent: #c9a86a;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}

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

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

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

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
  border-radius: 4px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

.wrap {
  width: min(100% - 2 * var(--gutter), var(--maxw));
  margin-inline: auto;
}

.skip {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease-out);
}
.skip:focus {
  transform: none;
}

/* Lenis (smooth scroll) */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-smooth iframe {
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0 1.55em;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 1rem;
  font-weight: 620;
  font-stretch: 100%;
  line-height: 1;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  transition: color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--btn-fill, var(--blazer));
  transform: translateY(101%);
  transition: transform 0.45s var(--ease-out);
}
.btn:hover::before,
.btn:focus-visible::before {
  transform: translateY(0);
}
.btn:hover,
.btn:focus-visible {
  color: var(--btn-fg-hover, var(--paper));
}
.btn--line {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-fill: var(--ink);
  --btn-fg-hover: var(--sun);
  box-shadow: inset 0 0 0 1.5px currentColor;
}
.btn--sun {
  --btn-bg: var(--sun);
  --btn-fg: var(--ink);
  --btn-fill: var(--paper);
  --btn-fg-hover: var(--ink);
}
.btn--small {
  min-height: 42px;
  padding: 0 1.15em;
  font-size: 0.9375rem;
}
.btn svg {
  width: 1em;
  height: 1em;
  flex: none;
}

/* Primary call to action: a dot on the right floods the whole pill on hover */
.cta {
  --cta-bg: var(--ink);
  --cta-fg: var(--paper);
  --cta-dot: var(--blazer);
  --cta-dot-fg: var(--paper);
  --cta-fill-fg: var(--paper);
  --cta-flood: 14;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 62px;
  padding: 7px 7px 7px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--cta-bg);
  color: var(--cta-fg);
  font-size: 1.0625rem;
  font-weight: 660;
  font-stretch: 100%;
  line-height: 1;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  box-shadow: 0 18px 36px -20px rgba(18, 22, 40, 0.55);
  transition: color 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.cta::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 50%;
  right: 7px;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  border-radius: 50%;
  background: var(--cta-dot);
  transition: transform 0.75s var(--ease-out);
}
.cta:hover::before,
.cta:focus-visible::before {
  transform: scale(var(--cta-flood));
}
.cta:hover,
.cta:focus-visible {
  color: var(--cta-fill-fg);
  box-shadow: 0 22px 44px -18px rgba(18, 22, 40, 0.6);
}
.cta__text {
  position: relative;
}
.cta__icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: var(--cta-dot-fg);
  overflow: hidden;
}
.cta__icon svg {
  grid-area: 1 / 1;
  width: 20px;
  height: 20px;
  transition: transform 0.6s var(--ease-out);
}
.cta__icon svg:last-child {
  transform: translateX(-160%);
}
.cta:hover .cta__icon svg:first-child,
.cta:focus-visible .cta__icon svg:first-child {
  transform: translateX(160%);
}
.cta:hover .cta__icon svg:last-child,
.cta:focus-visible .cta__icon svg:last-child {
  transform: translateX(0);
}
.cta--sun {
  --cta-bg: var(--sun);
  --cta-fg: var(--ink);
  --cta-dot: var(--paper);
  --cta-dot-fg: var(--ink);
  --cta-fill-fg: var(--ink);
  box-shadow: 0 18px 40px -22px rgba(254, 200, 52, 0.55);
}
.cta--sun:hover,
.cta--sun:focus-visible {
  box-shadow: 0 22px 48px -18px rgba(254, 200, 52, 0.5);
}
.cta--wide {
  --cta-flood: 32;
  width: 100%;
  justify-content: space-between;
}
.cta[disabled] {
  opacity: 0.7;
  cursor: progress;
}
[data-magnetic] {
  will-change: transform;
}

/* Round quick-contact buttons (WhatsApp, Viber, Instagram) */
.quick {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 8px;
}
.quick__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  transition: background-color 0.35s ease, color 0.35s ease,
    transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.quick__btn svg {
  width: 22px;
  height: 22px;
}
.quick__btn:hover,
.quick__btn:focus-visible {
  transform: translateY(-3px);
  color: #fff;
  box-shadow: 0 14px 26px -12px rgba(18, 22, 40, 0.6);
}
.quick__btn--wa:hover,
.quick__btn--wa:focus-visible {
  background: var(--wa);
}
.quick__btn--viber:hover,
.quick__btn--viber:focus-visible {
  background: var(--viber);
}
.quick__btn--ig:hover,
.quick__btn--ig:focus-visible {
  background: var(--ig);
}
.quick__btn[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  padding: 0.45em 0.75em;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 6px);
  transition: opacity 0.25s ease, transform 0.35s var(--ease-out);
}
@media (hover: hover) {
  .quick__btn[data-tip]:hover::after {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* "available" dot */
.pulse {
  position: relative;
  display: inline-block;
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ok);
}
.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: pulse 2.2s var(--ease-out) infinite;
}
@keyframes pulse {
  from {
    transform: scale(1);
    opacity: 0.55;
  }
  to {
    transform: scale(3.4);
    opacity: 0;
  }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.nav__bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: var(--nav-h);
  margin-top: 0;
  padding: 0 var(--gutter);
  color: var(--ink);
  border-radius: 0;
  background: rgba(18, 22, 40, 0);
  transition: width 0.6s var(--ease-out), margin 0.6s var(--ease-out),
    padding 0.6s var(--ease-out), min-height 0.6s var(--ease-out),
    border-radius 0.6s var(--ease-out), background-color 0.4s ease,
    color 0.4s ease, box-shadow 0.4s ease, transform 0.5s var(--ease-out);
}
.nav.is-solid .nav__bar {
  width: min(100% - 24px, 1040px);
  min-height: 60px;
  margin-top: 12px;
  padding: 0 8px 0 22px;
  border-radius: 999px;
  color: var(--paper);
  background: rgba(18, 22, 40, 0.86);
  box-shadow: 0 0 0 1px rgba(238, 240, 243, 0.08),
    0 18px 40px -18px rgba(6, 8, 16, 0.6);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}
.nav.is-hidden .nav__bar {
  transform: translateY(-140%);
  box-shadow: none;
}
.logo {
  display: block;
  flex: none;
  width: 20px;
  height: 24px;
  overflow: visible;
}
.nav.is-solid,
.nav.menu-open,
.footer {
  --logo-accent: var(--sun);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 720;
  font-stretch: 88%;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.nav__links {
  display: flex;
  gap: clamp(14px, 2.2vw, 34px);
}
.nav__links a {
  position: relative;
  font-size: 0.9688rem;
  font-weight: 520;
  text-decoration: none;
  padding: 6px 0;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav__links a:hover::after,
.nav__links a[aria-current="true"]::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav__end {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px currentColor;
  font-size: 0.8125rem;
  font-weight: 640;
}
.lang button {
  min-width: 38px;
  min-height: 30px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  opacity: 0.8;
  transition: background-color 0.3s, color 0.3s, opacity 0.3s;
}
.lang button[aria-pressed="true"] {
  opacity: 1;
  background: var(--ink);
  color: var(--sun);
}
.nav.is-solid .lang button[aria-pressed="true"] {
  background: var(--paper);
  color: var(--ink);
}
.nav__cta {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
}
.nav.is-solid .nav__cta {
  --btn-bg: var(--sun);
  --btn-fg: var(--ink);
  --btn-fill: var(--paper);
  --btn-fg-hover: var(--ink);
}
.nav__toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 4px 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-weight: 620;
  cursor: pointer;
}
.nav__toggle-icon {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
}
.nav.is-solid .nav__toggle-icon {
  background: var(--sun);
}
.nav__toggle-icon::before,
.nav__toggle-icon::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: var(--paper);
  transition: transform 0.4s var(--ease-out);
}
.nav.is-solid .nav__toggle-icon::before,
.nav.is-solid .nav__toggle-icon::after {
  background: var(--ink);
}
.nav__toggle-icon::before {
  top: 14px;
}
.nav.menu-open .nav__bar {
  color: var(--paper);
}
.nav.menu-open .nav__toggle-icon {
  background: var(--sun);
}
.nav.menu-open .nav__toggle-icon::before,
.nav.menu-open .nav__toggle-icon::after {
  background: var(--ink);
}
.nav__toggle-icon::after {
  bottom: 14px;
}
.nav__toggle[aria-expanded="true"] .nav__toggle-icon::before {
  transform: translateY(3.25px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-icon::after {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* Mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 110px var(--gutter) 36px;
  background: var(--ink);
  color: var(--paper);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path 0.7s var(--ease-in-out), visibility 0s linear 0.7s;
}
.menu.is-open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path 0.7s var(--ease-in-out), visibility 0s;
}
.menu__links {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 2px;
}
.menu__links a {
  display: block;
  font-size: clamp(2.75rem, 13vw, 4.5rem);
  font-weight: 780;
  font-stretch: 72%;
  line-height: 1.05;
  text-decoration: none;
}
.menu__quick {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
}
.menu__phone {
  font-size: 1.375rem;
  font-weight: 720;
  font-stretch: 86%;
  text-decoration: none;
}
.quick--menu .quick__btn {
  width: 48px;
  height: 48px;
  background: rgba(238, 240, 243, 0.1);
}
.menu__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  color: var(--mist);
  font-size: 0.9375rem;
}
.menu__foot .lang button[aria-pressed="true"] {
  background: var(--paper);
  color: var(--ink);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100vh;
  height: 100svh;
  min-height: 540px;
  overflow: hidden;
  background: var(--sun);
  color: var(--ink);
}
.hero__inner {
  position: absolute;
  inset: 0;
  transform-origin: 50% 35%;
}
/* print grain over the whole poster */
.hero__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.07  0 0 0 0 0.08  0 0 0 0 0.16  0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  background: var(--ink);
  opacity: 0;
}
.hero__curtain {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: none;
  background: var(--ink);
}
.js .hero__curtain {
  display: block;
}

.hero__name {
  font-weight: 830;
  font-size: inherit;
  line-height: 1;
}

/* Static fallback (before JS / without JS) */
.hero__line {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  display: block;
  font-size: clamp(5rem, 22.5vw, 26rem);
  font-weight: 830;
  font-stretch: 86%;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
}
.hero__line--1 {
  top: calc(var(--nav-h) + 1vh);
  z-index: 1;
}
.hero__line--2 {
  top: calc(var(--nav-h) + 1vh + 1.04em);
  z-index: 3;
}

.hero__figure {
  position: absolute;
  z-index: 2;
  right: 6vw;
  bottom: -18vh;
  width: min(48vw, 640px);
  margin: 0;
  pointer-events: none;
}
.hero__figure-move {
  --fade-a: 72%;
  --fade-b: 97%;
  -webkit-mask-image: linear-gradient(to bottom, #000 var(--fade-a), transparent var(--fade-b));
  mask-image: linear-gradient(to bottom, #000 var(--fade-a), transparent var(--fade-b));
}
.hero__figure picture,
.hero__figure img {
  display: block;
  width: 100%;
}

/* Kinetic mode (set by JS) */
.hero.is-kinetic .hero__line {
  left: var(--gutter);
  right: auto;
  top: 0;
  width: var(--line-w);
  height: var(--fs);
  font-size: var(--fs);
  letter-spacing: 0;
  contain: layout style;
}
.hero.is-kinetic .hero__line .k {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  line-height: 1;
  will-change: transform;
}
.hero.is-intro .hero__line {
  clip-path: inset(-25% -2% 0 -2%);
}
.hero.is-kinetic .hero__figure {
  right: auto;
  bottom: auto;
  left: 0;
  top: 0;
  width: var(--fig-w);
  transform: translate3d(var(--fig-x), var(--fig-y), 0);
}
.hero__figure-move {
  will-change: transform;
}

.hero__bottom {
  position: absolute;
  z-index: 4;
  left: max(var(--gutter), calc((100% - 1840px) / 2));
  right: max(var(--gutter), calc((100% - 1840px) / 2));
  bottom: clamp(20px, 4.4vh, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "lede status"
    "actions quick";
  column-gap: 24px;
  row-gap: 22px;
  align-items: end;
}
.hero__lede {
  grid-area: lede;
  max-width: 31ch;
  font-size: var(--fs-lead);
  font-weight: 540;
  line-height: 1.32;
  text-wrap: pretty;
}
.hero__actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.hero__actions .btn--line {
  min-height: 62px;
  padding: 0 1.6em;
}
.hero__quick {
  grid-area: quick;
  justify-self: end;
  align-self: center;
}
.hero__status {
  grid-area: status;
  display: grid;
  justify-items: end;
  gap: 4px;
  max-width: 34ch;
  text-align: right;
  font-size: 0.9375rem;
  line-height: 1.35;
}
.hero__status strong {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 680;
}
/* wide but short screens (laptops with browser chrome) */
@media (min-width: 1024px) and (max-height: 760px) {
  .hero__bottom {
    grid-template-areas:
      "lede ."
      "actions quick";
    row-gap: 14px;
  }
  .hero__lede {
    max-width: 46ch;
    font-size: clamp(1rem, 0.86rem + 0.42vw, 1.2rem);
  }
  .hero__actions .btn--line {
    min-height: 54px;
    padding: 0 1.3em;
    font-size: 0.9375rem;
  }
  .hero .cta {
    min-height: 54px;
    padding: 5px 5px 5px 22px;
    font-size: 0.9875rem;
  }
  .hero .cta::before {
    right: 5px;
    width: 44px;
    height: 44px;
    margin-top: -22px;
  }
  .hero .cta__icon {
    width: 44px;
    height: 44px;
  }
  .hero__quick .quick__btn {
    width: 48px;
    height: 48px;
  }
  .hero__status {
    display: none;
  }
}

.js .hero [data-intro] {
  opacity: 0;
}
/* the name and portrait stay hidden until the script has measured and placed them */
.js .hero__line,
.js .hero__figure {
  visibility: hidden;
  animation: fallback-visible 0s linear 3.4s forwards;
}
.js .hero.is-kinetic .hero__line,
.js .hero.is-kinetic .hero__figure {
  visibility: visible;
  animation: none;
}
@keyframes fallback-visible {
  to {
    visibility: visible;
  }
}
/* Safety net: if the script never runs, reveal the hero anyway */
.js .hero__curtain {
  animation: fallback-hide 0.01s linear 3.4s forwards;
}
.js .hero [data-intro] {
  animation: fallback-show 0.6s ease 3.4s forwards;
}
.js .hero.is-started .hero__curtain,
.js .hero.is-started [data-intro] {
  animation: none;
}
@keyframes fallback-hide {
  to {
    visibility: hidden;
    opacity: 0;
  }
}
@keyframes fallback-show {
  to {
    opacity: 1;
  }
}

/* ==========================================================================
   Shared section
   ========================================================================== */
.section {
  position: relative;
  z-index: 2;
}
.section-title {
  font-size: var(--fs-h2);
  font-weight: 790;
  font-stretch: 76%;
  line-height: 0.96;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

.count {
  display: inline-block;
  margin-left: 0.4em;
  padding: 0.32em 0.6em 0.28em;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font-size: 0.22em;
  font-weight: 640;
  font-stretch: 100%;
  letter-spacing: 0.02em;
  line-height: 1;
  vertical-align: top;
  opacity: 0.7;
  transform: translateY(0.6em);
}

/* ---------- Intro ---------- */
.intro {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(96px, 16vh, 200px) 0 clamp(72px, 10vh, 120px);
}
.intro__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 56px;
}
.intro__title {
  grid-column: 1 / -1;
  max-width: 12.6em;
  font-size: clamp(2.7rem, 1rem + 5.9vw, 8.6rem);
  font-weight: 810;
  font-stretch: 72%;
  line-height: 0.93;
  letter-spacing: -0.014em;
  text-wrap: balance;
}
.hl {
  color: inherit;
  background: linear-gradient(var(--sun), var(--sun)) 0 86% / 0% 36% no-repeat;
  transition: background-size 1.3s var(--ease-out) 0.1s;
}
.hl.is-in,
.no-js .hl {
  background-size: 100% 36%;
}
.intro__body {
  grid-column: 7 / -1;
  grid-row: 2;
  align-content: start;
  display: grid;
  gap: 1em;
  color: var(--slate);
  max-width: 52ch;
}
.intro__body p:first-child {
  color: var(--ink);
  font-size: var(--fs-lead);
  line-height: 1.45;
  font-weight: 460;
}
.clients {
  grid-column: 1 / span 5;
  grid-row: 2;
  align-self: start;
}
.clients__label {
  margin-bottom: 14px;
  color: var(--slate);
  font-size: 0.9375rem;
}
.clients__list {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line-light);
}
.clients__list li {
  font-size: clamp(1.25rem, 0.95rem + 0.95vw, 1.875rem);
  font-weight: 720;
  font-stretch: 82%;
  line-height: 1.15;
}
.clients__list a {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-light);
  text-decoration: none;
  transition: padding 0.5s var(--ease-out), color 0.3s ease;
}
.clients__list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 3px;
  margin-top: -1.5px;
  background: var(--sun);
  transition: width 0.5s var(--ease-out);
}
.clients__list a:hover {
  padding-left: 30px;
}
.clients__list a:hover::before {
  width: 18px;
}
.clients__n {
  color: var(--slate);
  font-size: 0.8125rem;
  font-weight: 600;
  font-stretch: 100%;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Work
   ========================================================================== */
.work {
  --work-bg: #141518;
  background: var(--work-bg);
  color: var(--paper);
  padding: clamp(88px, 14vh, 170px) 0 clamp(40px, 6vh, 80px);
}
.work__head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px;
  align-items: end;
  margin-bottom: clamp(32px, 6vh, 72px);
}
.work__sub {
  max-width: 40ch;
  justify-self: end;
  color: var(--mist);
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(32px, 5.5vw, 104px);
  padding: clamp(56px, 11vh, 140px) 0;
  border-top: 1px solid var(--line-dark);
}
.project--flip .project__info {
  order: 2;
}
.project__info {
  position: sticky;
  top: 112px;
  align-self: start;
}
.project__index {
  margin-bottom: 18px;
  color: var(--mist);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
.project__index span {
  color: var(--accent);
  transition: color 0.6s ease;
}
.project__title {
  font-size: clamp(2.6rem, 1.5rem + 3.8vw, 5.5rem);
  font-weight: 800;
  font-stretch: 74%;
  line-height: 0.95;
  letter-spacing: -0.01em;
}
.project__kind {
  margin-top: 0.7em;
  color: var(--accent);
  font-weight: 600;
  font-size: 1.0625rem;
  transition: color 0.6s ease;
}
.project__meta {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 4px 22px;
  margin-top: 26px;
  font-size: 0.9375rem;
}
.project__meta dt {
  color: var(--mist);
}
.project__text {
  margin-top: 26px;
  max-width: 48ch;
  color: rgba(238, 240, 243, 0.86);
}
.project__facts {
  list-style: none;
  padding: 0;
  margin-top: 26px;
  max-width: 48ch;
}
.project__facts li {
  position: relative;
  padding: 0.62em 0 0.62em 1.5em;
  border-top: 1px solid var(--line-dark);
  font-size: 0.96875rem;
  line-height: 1.45;
}
.project__facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.32em;
  width: 0.62em;
  height: 2px;
  background: var(--accent);
  transition: background-color 0.6s ease;
}
.project__stack {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.project__stack li {
  padding: 0.38em 0.85em;
  border-radius: 999px;
  border: 1px solid rgba(238, 240, 243, 0.2);
  color: var(--mist);
  font-size: 0.8125rem;
  line-height: 1.2;
}
.project__link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  margin-top: 32px;
  padding: 6px 6px 6px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--work-bg);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  transition: background-color 0.6s ease, color 0.6s ease,
    transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.project__link:hover,
.project__link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -18px var(--accent);
}
.project__link-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--work-bg);
  color: var(--accent);
  overflow: hidden;
  transition: background-color 0.6s ease, color 0.6s ease;
}
.project__link-icon svg {
  grid-area: 1 / 1;
  width: 18px;
  height: 18px;
  transition: transform 0.55s var(--ease-out);
}
.project__link-icon svg:last-child {
  transform: translate(-170%, 170%);
}
.project__link:hover .project__link-icon svg:first-child,
.project__link:focus-visible .project__link-icon svg:first-child {
  transform: translate(170%, -170%);
}
.project__link:hover .project__link-icon svg:last-child,
.project__link:focus-visible .project__link-icon svg:last-child {
  transform: none;
}

.project__media {
  display: grid;
  gap: clamp(20px, 2.6vw, 40px);
  align-content: start;
}
.project__pair {
  display: grid;
  grid-template-columns: minmax(0, 0.34fr) minmax(0, 1fr);
  gap: clamp(20px, 2.6vw, 40px);
  align-items: center;
}

/* Screens */
.shot {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: #0a0c11;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 50px 90px -46px rgba(0, 0, 0, 0.85);
  transform: translateZ(0);
}
.shot img {
  width: 100%;
  transition: transform 1.2s var(--ease-out);
}
a.shot:hover img {
  transform: scale(1.018);
}
.shot__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 34px;
  padding: 0 14px;
  background: #0d1017;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.shot__dots {
  display: flex;
  gap: 6px;
}
.shot__dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.shot__url {
  margin-inline: auto;
  max-width: 62%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translateX(-24px);
  padding: 0.28em 1.1em;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--mist);
  font-size: 0.75rem;
  line-height: 1.4;
}
.shot--browser img {
  aspect-ratio: 1366 / 854;
  object-fit: cover;
}
.phone {
  position: relative;
  padding: 7px;
  border-radius: 34px;
  background: #05070b;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 50px 90px -40px rgba(0, 0, 0, 0.9);
}
.phone__screen {
  position: relative;
  overflow: hidden;
  border-radius: 27px;
  background: var(--sb, #000);
  container-type: inline-size;
}
/* status bar above the site, so the camera never covers the logo */
.phone__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  aspect-ratio: 390 / 48;
  padding: 0 7cqi 0 9.5cqi;
  color: var(--sb-fg, #fff);
  font-size: 11px;
  font-size: 3.8cqi;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.01em;
}
.phone__island {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 29cqi;
  height: 8.2cqi;
  border-radius: 999px;
  background: #000;
  transform: translate(-50%, -50%);
}
.phone__sys {
  display: flex;
  align-items: center;
  gap: 1.6cqi;
}
.phone__sys i {
  width: 4.6cqi;
  height: 3cqi;
  background: linear-gradient(to right, currentColor 0 20%, transparent 20% 27%,
    currentColor 27% 47%, transparent 47% 53%, currentColor 53% 73%,
    transparent 73% 80%, currentColor 80%);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.phone__sys b {
  position: relative;
  width: 6.4cqi;
  height: 3.2cqi;
  border-radius: 0.9cqi;
  box-shadow: inset 0 0 0 0.32cqi currentColor;
  background: linear-gradient(currentColor, currentColor) 0.7cqi 50% / 66% 52% no-repeat;
  opacity: 0.92;
}
.phone__sys b::after {
  content: "";
  position: absolute;
  right: -0.9cqi;
  top: 50%;
  width: 0.55cqi;
  height: 1.2cqi;
  border-radius: 0 0.4cqi 0.4cqi 0;
  background: currentColor;
  transform: translateY(-50%);
}
.phone img {
  width: 100%;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  object-position: top;
}
.detail img {
  aspect-ratio: auto;
}
.media-caption {
  margin-top: 12px;
  color: var(--mist);
  font-size: 0.8125rem;
  line-height: 1.45;
}

/* ==========================================================================
   Archive
   ========================================================================== */
.archive {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(88px, 13vh, 160px) 0;
}
.archive__head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px;
  align-items: end;
  margin-bottom: clamp(36px, 6vh, 64px);
}
.archive__sub {
  justify-self: end;
  max-width: 38ch;
  color: var(--mist);
}
.archive__list {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line-dark);
}
.archive__row {
  display: grid;
  grid-template-columns: minmax(0, 4.2fr) minmax(0, 5fr) minmax(0, 1.4fr) 70px 24px;
  gap: 24px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-dark);
  text-decoration: none;
  transition: padding 0.5s var(--ease-out);
}
.archive__thumb {
  display: none;
}
.archive__name {
  font-size: clamp(1.5rem, 1.05rem + 1.7vw, 2.75rem);
  font-weight: 740;
  font-stretch: 80%;
  line-height: 1.02;
  transition: color 0.3s ease, transform 0.6s var(--ease-out);
}
.archive__desc {
  color: var(--mist);
  font-size: 0.96875rem;
  line-height: 1.45;
}
.archive__tag {
  justify-self: start;
  padding: 0.3em 0.8em;
  border-radius: 999px;
  border: 1px solid rgba(238, 240, 243, 0.22);
  color: var(--paper);
  font-size: 0.8125rem;
  line-height: 1.3;
  white-space: nowrap;
}
.archive__year {
  color: var(--mist);
  font-size: 0.9375rem;
  text-align: right;
}
.archive__icon {
  width: 20px;
  height: 20px;
  justify-self: end;
  transition: transform 0.5s var(--ease-out), color 0.3s;
}
.archive__row:hover .archive__name,
.archive__row:focus-visible .archive__name {
  color: var(--sun);
  transform: translateX(10px);
}
.archive__row:hover .archive__icon {
  transform: rotate(45deg);
  color: var(--sun);
}
.archive__preview {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 40;
  width: clamp(260px, 24vw, 380px);
  aspect-ratio: 1366 / 854;
  overflow: hidden;
  border-radius: 10px;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 40px 80px -30px rgba(0, 0, 0, 0.8);
  transform: translate3d(-50%, -50%, 0) scale(0.6);
  transition: opacity 0.35s ease;
  will-change: transform;
}
.archive__preview.is-visible {
  opacity: 1;
}
.archive__preview.is-tall {
  width: clamp(150px, 12vw, 200px);
  aspect-ratio: 390 / 844;
  border-radius: 18px;
}
.archive__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Services
   ========================================================================== */
/* ---------- Utisci ---------- */
.voices {
  background: var(--paper-2);
  color: var(--ink);
  padding: clamp(88px, 13vh, 160px) 0;
}
.voices__head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px;
  align-items: end;
  margin-bottom: clamp(36px, 6vh, 64px);
}
.voices__sub {
  justify-self: end;
  max-width: 38ch;
  color: var(--slate);
}
.voices__list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 24px);
}
.voice {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(24px, 2.4vw, 36px);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(18, 22, 40, 0.06);
}
.voice__q {
  height: 0.5em;
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 0.9;
  color: var(--sun-deep);
}
.voice__text {
  flex: 1;
  margin: 0;
  font-size: clamp(1.0625rem, 0.98rem + 0.32vw, 1.25rem);
  line-height: 1.5;
}
.voice__who {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 18px;
  border-top: 1px solid var(--line-light);
  font-size: 0.9375rem;
}
.voice__who a {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.voice__who a:hover {
  color: var(--ink);
  text-decoration: underline;
}
@media (max-width: 1023px) {
  .voices__head {
    grid-template-columns: 1fr;
  }
  .voices__sub {
    justify-self: start;
  }
  .voices__list {
    grid-template-columns: 1fr;
    max-width: 640px;
  }
}

/* ---------- Česta pitanja ---------- */
.faq {
  background: var(--paper-2);
  color: var(--ink);
  padding: clamp(88px, 13vh, 160px) 0;
}
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
}
.faq__head {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}
.faq__sub {
  margin-top: 18px;
  max-width: 32ch;
  color: var(--slate);
}
.faq__list {
  display: grid;
  gap: 10px;
}
.faq__item {
  border-radius: 22px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(18, 22, 40, 0.05);
  transition: background-color 0.45s var(--ease-out), color 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out);
}
.faq__item.is-open {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 24px 48px -28px rgba(18, 22, 40, 0.55);
}
.faq__h {
  font: inherit;
}
.faq__q {
  -webkit-appearance: none;
  appearance: none;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 20px 20px 20px 22px;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.faq__q:focus-visible {
  outline: 2px solid var(--blazer);
  outline-offset: 3px;
  border-radius: 22px;
}
.faq__n {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
  transition: color 0.45s;
}
.faq__item.is-open .faq__n {
  color: var(--sun);
}
.faq__text {
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.375rem);
  font-weight: 720;
  font-stretch: 90%;
  line-height: 1.28;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.faq__icon {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px currentColor;
  transition: background-color 0.35s, box-shadow 0.35s, transform 0.55s var(--ease-out);
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.55s var(--ease-out), background-color 0.35s;
}
.faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
@media (hover: hover) {
  .faq__item:not(.is-open) .faq__q:hover .faq__icon {
    background: var(--ink);
    box-shadow: none;
  }
  .faq__item:not(.is-open) .faq__q:hover .faq__icon::before,
  .faq__item:not(.is-open) .faq__q:hover .faq__icon::after {
    background: var(--sun);
  }
}
.faq__item.is-open .faq__icon {
  background: var(--sun);
  box-shadow: none;
  transform: rotate(180deg);
}
.faq__item.is-open .faq__icon::before,
.faq__item.is-open .faq__icon::after {
  background: var(--ink);
}
.faq__item.is-open .faq__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}
.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s var(--ease-out);
}
.faq__item.is-open .faq__panel,
.no-js .faq__panel {
  grid-template-rows: 1fr;
}
.faq__inner {
  overflow: hidden;
  min-height: 0;
}
.faq__inner p {
  max-width: 60ch;
  padding: 0 74px 24px 66px;
  color: #c9cfdb;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.35s, transform 0.55s var(--ease-out);
}
.faq__item.is-open .faq__inner p {
  opacity: 1;
  transform: none;
  transition-delay: 0.08s;
}
.no-js .faq__inner p {
  color: var(--slate);
  opacity: 1;
  transform: none;
}
@media (max-width: 767px) {
  .faq__list {
    gap: 8px;
  }
  .faq__item {
    border-radius: 18px;
  }
  .faq__q {
    grid-template-columns: 24px minmax(0, 1fr) 36px;
    gap: 12px;
    padding: 18px 16px 18px 18px;
  }
  .faq__icon {
    width: 36px;
    height: 36px;
  }
  .faq__inner p {
    padding: 0 18px 22px 54px;
    font-size: 0.9688rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .faq__item,
  .faq__panel,
  .faq__icon,
  .faq__inner p {
    transition: none;
  }
}
@media (max-width: 1023px) {
  .faq__grid {
    grid-template-columns: 1fr;
  }
  .faq__head {
    position: static;
  }
}

.services {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(96px, 15vh, 180px) 0;
}
.services__head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px;
  align-items: end;
  margin-bottom: clamp(36px, 6vh, 72px);
}
.services__sub {
  justify-self: end;
  max-width: 38ch;
  color: var(--slate);
}
.services__list {
  list-style: none;
  padding: 0;
  border-bottom: 1px solid var(--line-light);
}
.service {
  border-top: 1px solid var(--line-light);
}
.service__toggle {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 52px;
  gap: 24px;
  align-items: center;
  width: 100%;
  padding: clamp(22px, 3.4vh, 36px) 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.service__title {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 4rem);
  font-weight: 780;
  font-stretch: 78%;
  line-height: 1;
  letter-spacing: -0.01em;
  transition: font-stretch 0.6s var(--ease-out);
}
.service__toggle:hover .service__title {
  font-stretch: 86%;
}
.service__summary {
  color: var(--slate);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.45;
  max-width: 40ch;
}
.service__icon {
  position: relative;
  justify-self: end;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--ink);
  transition: background-color 0.35s, transform 0.5s var(--ease-out);
}
.service__icon::before,
.service__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.5s var(--ease-out), background-color 0.35s;
}
.service__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.service__toggle:hover .service__icon {
  background: var(--ink);
}
.service__toggle:hover .service__icon::before,
.service__toggle:hover .service__icon::after {
  background: var(--sun);
}
.service.is-open .service__icon {
  transform: rotate(180deg);
}
.service.is-open .service__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}
.service__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s var(--ease-out);
}
.service.is-open .service__panel,
.no-js .service__panel {
  grid-template-rows: 1fr;
}
.no-js .service__icon {
  display: none;
}
.service__inner {
  overflow: hidden;
  min-height: 0;
}
.service__content {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 52px;
  gap: 24px;
  padding-bottom: clamp(28px, 4vh, 44px);
}
.service__content p {
  max-width: 40ch;
  color: var(--slate);
}
.service__lead {
  display: grid;
  gap: 22px;
  align-content: start;
  justify-items: start;
}
.ask {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.75em 1.15em 0.75em 1.3em;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.96875rem;
  font-weight: 640;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.35s ease, color 0.35s ease;
}
.ask svg {
  width: 1.05em;
  height: 1.05em;
  transition: transform 0.45s var(--ease-out);
}
.ask:hover,
.ask:focus-visible {
  background: var(--sun);
  color: var(--ink);
}
.ask:hover svg,
.ask:focus-visible svg {
  transform: translateX(4px);
}
.service__content ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}
.service__content li {
  padding: 0.6em 0;
  border-top: 1px solid var(--line-light);
  font-size: 0.96875rem;
  line-height: 1.4;
}

/* ==========================================================================
   Process
   ========================================================================== */
.process {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(96px, 15vh, 180px) 0;
}
.process__head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 24px;
  align-items: end;
  margin-bottom: clamp(48px, 8vh, 96px);
}
.process__sub {
  justify-self: end;
  max-width: 38ch;
  color: var(--mist);
}
.process__body {
  position: relative;
}
.process__steps {
  position: relative;
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 56px);
}
.process__track {
  position: absolute;
  left: 0;
  right: 0;
  top: 6px;
  height: 2px;
  background: rgba(238, 240, 243, 0.14);
}
.process__fill {
  position: absolute;
  inset: 0;
  background: var(--sun);
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
}
.step {
  position: relative;
}
.step__dot {
  position: relative;
  z-index: 1;
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: inset 0 0 0 2px rgba(238, 240, 243, 0.4);
  transition: background-color 0.45s ease, box-shadow 0.45s ease;
}
.step.is-active .step__dot {
  background: var(--sun);
  box-shadow: inset 0 0 0 2px var(--sun), 0 0 0 7px rgba(254, 200, 52, 0.16);
}
.step__num {
  display: block;
  margin-top: 30px;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(238, 240, 243, 0.32);
  font-size: clamp(4.2rem, 2.4rem + 4.6vw, 8.5rem);
  font-weight: 820;
  font-stretch: 68%;
  line-height: 0.82;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  transition: color 0.6s ease, -webkit-text-stroke-color 0.6s ease;
}
.step.is-active .step__num {
  color: var(--sun);
  -webkit-text-stroke-color: var(--sun);
}
.step__title {
  margin-top: 24px;
  font-size: var(--fs-h3);
  font-weight: 760;
  font-stretch: 82%;
  line-height: 1.05;
}
.step__time {
  display: inline-flex;
  margin-top: 12px;
  padding: 0.38em 0.8em;
  border-radius: 999px;
  border: 1px solid rgba(238, 240, 243, 0.22);
  color: var(--paper);
  font-size: 0.8125rem;
  font-weight: 560;
  line-height: 1.25;
  transition: border-color 0.45s ease, color 0.45s ease;
}
.step.is-active .step__time {
  border-color: rgba(254, 200, 52, 0.55);
  color: var(--sun);
}
.step__text {
  margin-top: 14px;
  color: var(--mist);
  max-width: 34ch;
  font-size: 0.98rem;
}
.process__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  margin-top: clamp(64px, 10vh, 120px);
  padding-top: clamp(28px, 4vh, 44px);
  border-top: 1px solid var(--line-dark);
}
.process__cta-text {
  max-width: 30ch;
  font-size: clamp(1.4rem, 1rem + 1.4vw, 2.25rem);
  font-weight: 700;
  font-stretch: 82%;
  line-height: 1.12;
  text-wrap: balance;
}

/* ==========================================================================
   About
   ========================================================================== */
.about {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(96px, 15vh, 180px) 0;
}
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 6.5vw, 128px);
  align-items: start;
}
.about__photo {
  position: sticky;
  top: 100px;
}
.about__frame {
  overflow: hidden;
  border-radius: 4px;
  background: var(--paper-2);
}
.about__frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transform: scale(1.08);
  will-change: transform;
}
.about__caption {
  margin-top: 12px;
  color: var(--slate);
  font-size: 0.8125rem;
}
.about__text {
  display: grid;
  gap: 1.1em;
  padding-top: 8px;
}
.about__text .section-title {
  margin-bottom: 0.35em;
}
.about__text p {
  max-width: 54ch;
  color: var(--slate);
}
.about__text p.about__lead {
  color: var(--ink);
  font-size: var(--fs-lead);
  line-height: 1.45;
  font-weight: 460;
}
.facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0;
  margin-top: 1.4em;
  border-top: 1px solid var(--line-light);
}
.facts dt,
.facts dd {
  padding: 0.75em 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 0.96875rem;
}
.facts dt {
  padding-right: 32px;
  color: var(--slate);
}
.facts__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.facts__links a {
  font-weight: 600;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
}
.facts__links a:hover {
  color: var(--blazer);
}
.about__congress {
  margin-top: 2.2em;
}
.about__congress .about__frame img {
  aspect-ratio: 4 / 3;
  transform: none;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
  background: var(--sun);
  color: var(--ink);
  padding: clamp(96px, 15vh, 180px) 0 clamp(72px, 10vh, 120px);
  overflow: hidden;
}
.contact__title {
  margin-bottom: clamp(24px, 4vh, 40px);
  font-size: clamp(3.2rem, 1.2rem + 5.6vw, 7.75rem);
  font-weight: 830;
  font-stretch: 70%;
  line-height: 0.9;
  letter-spacing: -0.012em;
  max-width: 11ch;
  text-wrap: balance;
}
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 120px);
}
.contact__intro {
  max-width: 40ch;
  font-size: var(--fs-lead);
  line-height: 1.4;
  font-weight: 480;
}
.contact__fast {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  font-size: 0.96875rem;
  font-weight: 620;
}
.channels {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}
.channel {
  --brand: var(--blazer);
  --brand-ink: var(--sun);
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "icon name arrow"
    "icon value arrow";
  column-gap: 14px;
  row-gap: 3px;
  align-items: center;
  padding: 16px 18px 16px 16px;
  border-radius: 20px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.channel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--brand);
  clip-path: circle(0% at 39px 50%);
  transition: clip-path 0.7s var(--ease-out);
}
.channel:hover::before,
.channel:focus-visible::before {
  clip-path: circle(150% at 39px 50%);
}
.channel:hover,
.channel:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 24px 40px -24px rgba(18, 22, 40, 0.7);
}
.channel__icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(238, 240, 243, 0.08);
  color: var(--brand-ink);
  transition: background-color 0.4s ease, color 0.4s ease;
}
.channel__icon svg {
  width: 22px;
  height: 22px;
}
.channel:hover .channel__icon,
.channel:focus-visible .channel__icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.channel__name {
  grid-area: name;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.15;
}
.channel__value {
  grid-area: value;
  color: var(--mist);
  font-size: 0.9375rem;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  transition: color 0.4s ease;
}
.channel:hover .channel__value,
.channel:focus-visible .channel__value {
  color: rgba(255, 255, 255, 0.9);
}
.channel__arrow {
  grid-area: arrow;
  width: 18px;
  height: 18px;
  opacity: 0.7;
  transition: transform 0.5s var(--ease-out), opacity 0.3s;
}
.channel:hover .channel__arrow,
.channel:focus-visible .channel__arrow {
  opacity: 1;
  transform: translate(3px, -3px);
}
.channel--wa {
  --brand: var(--wa);
  --brand-ink: #3ddc84;
}
.channel--viber {
  --brand: var(--viber);
  --brand-ink: #a99cff;
}
.channel--ig {
  --brand: var(--ig);
  --brand-ink: #ff8fbf;
}
.contact__mail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 34px;
}
.contact__mail-label {
  flex-basis: 100%;
  color: rgba(18, 22, 40, 0.7);
  font-size: 0.9375rem;
  font-weight: 560;
}
.contact__email {
  display: inline-block;
  font-size: clamp(1.15rem, 0.85rem + 1.2vw, 1.9rem);
  font-weight: 720;
  font-stretch: 86%;
  line-height: 1.15;
  text-decoration: none;
  overflow-wrap: anywhere;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 2.5px no-repeat;
  padding-bottom: 5px;
}
.contact__email:hover {
  background-size: 0 2.5px;
  background-position: 100% 100%;
  transition: background-size 0.5s var(--ease-out);
}
.contact__form {
  align-self: start;
  padding: clamp(22px, 3vw, 44px);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 0 0 1.5px rgba(18, 22, 40, 0.1);
}
.contact__form-title {
  margin-bottom: 26px;
  font-size: var(--fs-h3);
  font-weight: 790;
  font-stretch: 78%;
  line-height: 1;
}

/* Form */
.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 28px;
  align-content: start;
}
.field {
  display: grid;
  gap: 6px;
}
.field--full {
  grid-column: 1 / -1;
}
.field label {
  font-size: 0.9375rem;
  font-weight: 640;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 0;
  border: 0;
  border-bottom: 2px solid rgba(18, 22, 40, 0.32);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.0625rem;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.field textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.5;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' fill='none' stroke='%23121628' stroke-width='1.8'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 28px;
}
.field ::placeholder {
  color: rgba(18, 22, 40, 0.6);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--ink);
  background-color: rgba(255, 255, 255, 0.22);
}
.field.is-invalid input,
.field.is-invalid textarea {
  border-bottom-color: #8a1c1c;
}
.field.is-picked select {
  animation: picked 1.4s var(--ease-out);
}
@keyframes picked {
  0%,
  30% {
    background-color: rgba(255, 255, 255, 0.75);
  }
  100% {
    background-color: transparent;
  }
}
.field__error {
  min-height: 1.2em;
  color: #8a1c1c;
  font-size: 0.875rem;
  font-weight: 560;
  line-height: 1.3;
}
.form__foot {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
}
.form__status {
  font-weight: 560;
  font-size: 0.96875rem;
  max-width: 44ch;
}
.form__status a {
  font-weight: 680;
}
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  position: relative;
  z-index: 2;
  background: var(--ink);
  color: var(--mist);
  padding: 56px 0 36px;
  font-size: 0.9375rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 32px;
  align-items: start;
}
.footer__logo {
  width: 30px;
  height: 36px;
  margin-bottom: 16px;
}
.footer__brand {
  color: var(--paper);
  font-size: 1.25rem;
  font-weight: 740;
  font-stretch: 84%;
  line-height: 1.2;
}
.footer__brand span {
  display: block;
  margin-top: 4px;
  color: var(--mist);
  font-size: 0.9375rem;
  font-weight: 400;
  font-stretch: 100%;
}
.footer__nav {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 6px;
}
.footer__nav a,
.footer__top {
  color: var(--paper);
  text-decoration: none;
}
.footer__nav a:hover,
.footer__top:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer__contact {
  display: grid;
  gap: 6px;
  justify-items: start;
}
.footer__phone,
.footer__mail {
  color: var(--paper);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.footer__phone:hover,
.footer__mail:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.footer__time {
  margin-bottom: 8px;
}
.footer__time strong {
  display: block;
  color: var(--paper);
  font-weight: 650;
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
}
.footer__top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font-weight: 600;
}
.social {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 8px;
}
.social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(238, 240, 243, 0.08);
  color: var(--paper);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.4s var(--ease-out);
}
.social a:hover,
.social a:focus-visible {
  background: var(--sun);
  color: var(--ink);
  transform: translateY(-2px);
}
.social svg {
  width: 18px;
  height: 18px;
}
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.875rem;
}

/* ---------- Floating quick contact ---------- */
.fab {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 44;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}
.fab__btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  height: 60px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.96875rem;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 20px 40px -16px rgba(6, 8, 16, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px) scale(0.85);
  transition: opacity 0.4s ease, transform 0.6s var(--ease-out), visibility 0s linear 0.6s;
  -webkit-tap-highlight-color: transparent;
}
.fab.is-shown .fab__btn {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.4s ease, transform 0.6s var(--ease-out), visibility 0s;
}
.fab__label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.55s var(--ease-out), padding 0.55s var(--ease-out);
}
@media (hover: hover) {
  .fab__btn:hover .fab__label {
    max-width: 12em;
    padding: 0 16px 0 22px;
  }
}
.fab.is-open .fab__label {
  max-width: 12em;
  padding: 0 16px 0 22px;
}
.fab__icon {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--ink);
}
.fab__icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(254, 200, 52, 0.6);
  animation: fab-ring 4.5s var(--ease-out) 1.2s infinite;
}
.fab.is-open .fab__icon::after {
  animation: none;
}
@keyframes fab-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(254, 200, 52, 0.55);
  }
  32%,
  100% {
    box-shadow: 0 0 0 18px rgba(254, 200, 52, 0);
  }
}
.fab__chat {
  grid-area: 1 / 1;
  width: 24px;
  height: 24px;
  transition: transform 0.5s var(--ease-out), opacity 0.3s ease;
}
.fab__x {
  grid-area: 1 / 1;
  position: relative;
  width: 20px;
  height: 20px;
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
  transition: transform 0.5s var(--ease-out), opacity 0.3s ease;
}
.fab__x::before,
.fab__x::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
}
.fab__x::after {
  transform: rotate(-45deg);
}
.fab.is-open .fab__chat {
  opacity: 0;
  transform: rotate(90deg) scale(0.6);
}
.fab.is-open .fab__x {
  opacity: 1;
  transform: none;
}
.fab__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  justify-items: end;
  visibility: hidden;
  transition: visibility 0s linear 0.45s;
}
.fab.is-open .fab__menu {
  visibility: visible;
  transition: visibility 0s;
}
.fab__item {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 20px 0 15px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 640;
  font-size: 0.96875rem;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(18, 22, 40, 0.08), 0 16px 32px -16px rgba(6, 8, 16, 0.5);
  opacity: 0;
  transform: translateY(14px) scale(0.94);
  transition: opacity 0.25s ease, transform 0.45s var(--ease-out),
    background-color 0.3s ease, color 0.3s ease;
}
.fab__item svg {
  width: 20px;
  height: 20px;
}
.fab__item--wa svg {
  color: var(--wa);
}
.fab__item--viber svg {
  color: var(--viber);
}
.fab__item--ig svg {
  color: #d6249f;
}
.fab__item:hover,
.fab__item:focus-visible {
  color: #fff;
}
.fab__item:hover svg,
.fab__item:focus-visible svg {
  color: inherit;
}
.fab__item--wa:hover,
.fab__item--wa:focus-visible {
  background: var(--wa);
}
.fab__item--viber:hover,
.fab__item--viber:focus-visible {
  background: var(--viber);
}
.fab__item--ig:hover,
.fab__item--ig:focus-visible {
  background: var(--ig);
}
.fab__item--mail:hover,
.fab__item--mail:focus-visible {
  background: var(--ink);
}
.fab.is-open .fab__item {
  opacity: 1;
  transform: none;
}
.fab.is-open li:nth-child(4) .fab__item {
  transition-delay: 0s;
}
.fab.is-open li:nth-child(3) .fab__item {
  transition-delay: 0.04s;
}
.fab.is-open li:nth-child(2) .fab__item {
  transition-delay: 0.08s;
}
.fab.is-open li:nth-child(1) .fab__item {
  transition-delay: 0.12s;
}

/* ---------- Cursor label ---------- */
.cursor-label {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  pointer-events: none;
  padding: 0.7em 1.1em;
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 680;
  white-space: nowrap;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(0.4);
  transition: opacity 0.25s ease;
  will-change: transform;
}
.cursor-label.is-visible {
  opacity: 1;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .nav__links {
    gap: 18px;
  }
  .hero__status {
    display: none;
  }
}

/* phones and portrait tablets: figure centred, copy over a soft yellow scrim */
@media (max-width: 767px), (max-width: 1023px) and (orientation: portrait) {
  .hero__bottom {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "status quick"
      "lede lede"
      "actions actions";
    row-gap: 14px;
    bottom: max(18px, env(safe-area-inset-bottom));
  }
  /* a short, clean fade: the portrait ends where the copy starts */
  .hero__bottom::before {
    content: "";
    position: absolute;
    left: calc(var(--gutter) * -1);
    right: calc(var(--gutter) * -1);
    bottom: -40px;
    top: -44px;
    z-index: -1;
    background: linear-gradient(to bottom, rgba(254, 200, 52, 0), var(--sun) 44px);
  }
  .hero__figure-move {
    --fade-a: 100%;
    --fade-b: 100%;
  }
  .hero__status {
    display: flex;
    align-self: center;
    justify-items: start;
    text-align: left;
    font-size: 0.9375rem;
  }
  .hero__where {
    display: none;
  }
  .hero__quick .quick__btn {
    width: 44px;
    height: 44px;
  }
  .hero__quick .quick__btn svg {
    width: 20px;
    height: 20px;
  }
  .hero__quick .quick__btn::after {
    display: none;
  }
}

@media (max-width: 1023px) {
  .nav__links,
  .nav__end .lang,
  .nav__cta {
    display: none;
  }
  .nav__toggle {
    display: inline-flex;
  }
  .nav.is-solid .nav__bar {
    padding-left: 20px;
    padding-right: 6px;
  }

  .intro__title {
    grid-column: 1 / -1;
  }
  .intro__body {
    grid-column: 1 / span 9;
    grid-row: auto;
  }
  .clients {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .work__head,
  .archive__head,
  .services__head,
  .process__head {
    grid-template-columns: 1fr;
  }
  .work__sub,
  .archive__sub,
  .services__sub,
  .process__sub {
    justify-self: start;
  }

  .project {
    display: flex;
    flex-direction: column;
  }
  /* on smaller screens the screens come right after the title */
  .project__info {
    display: contents;
  }
  .project__index {
    order: 0;
  }
  .project__title {
    order: 1;
  }
  .project__kind {
    order: 2;
  }
  .project__media {
    order: 3;
    margin: 30px 0 6px;
  }
  .project__meta {
    order: 4;
  }
  .project__text {
    order: 5;
  }
  .project__facts {
    order: 6;
  }
  .project__stack {
    order: 7;
  }
  .project__link {
    order: 8;
    align-self: flex-start;
  }

  .archive__row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "name icon"
      "desc desc"
      "tag year";
    gap: 10px 16px;
  }
  .archive__name {
    grid-area: name;
  }
  .archive__desc {
    grid-area: desc;
  }
  .archive__tag {
    grid-area: tag;
  }
  .archive__year {
    grid-area: year;
  }
  .archive__icon {
    grid-area: icon;
  }

  .service__toggle {
    grid-template-columns: minmax(0, 1fr) 52px;
    grid-template-areas:
      "title icon"
      "summary icon";
    row-gap: 8px;
  }
  .service__title {
    grid-area: title;
  }
  .service__summary {
    grid-area: summary;
  }
  .service__icon {
    grid-area: icon;
  }
  .service__content {
    grid-template-columns: 1fr;
  }

  .about__grid {
    grid-template-columns: 1fr;
  }
  .about__photo {
    position: static;
    max-width: 560px;
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }
  .process__steps {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-left: 40px;
  }
  .process__track {
    left: 6px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
  }
  .process__fill {
    transform: scaleY(var(--progress, 0));
    transform-origin: 50% 0;
  }
  .step__dot {
    position: absolute;
    left: -40px;
    top: 18px;
  }
  .step__num {
    margin-top: 0;
    font-size: 4.25rem;
  }
  .step__title {
    margin-top: 16px;
  }

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

@media (max-width: 767px) {
  :root {
    --nav-h: 64px;
  }
  .nav__brand {
    font-size: 1rem;
  }

  .hero__lede {
    font-size: 1.0625rem;
    max-width: 30ch;
  }
  .hero__actions .cta {
    flex: 1 1 auto;
    justify-content: space-between;
    --cta-flood: 18;
  }
  .hero__work {
    display: none;
  }
  .hero__figure {
    right: -6vw;
    width: 92vw;
    bottom: -26vh;
  }

  .intro__body {
    grid-column: 1 / -1;
  }

  .project__pair {
    grid-template-columns: minmax(0, 0.46fr) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
  }
  .shot__bar {
    height: 26px;
    padding: 0 10px;
  }
  .shot__dots i {
    width: 7px;
    height: 7px;
  }
  .shot__url {
    font-size: 0.6875rem;
    transform: translateX(-12px);
  }
  .phone {
    padding: 4px;
    border-radius: 22px;
  }
  .phone__screen {
    border-radius: 18px;
  }

  .archive__thumb {
    display: block;
    grid-column: 1 / -1;
    order: -1;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 6px;
  }
  .archive__row {
    grid-template-areas:
      "thumb thumb"
      "name icon"
      "desc desc"
      "tag year";
  }
  .archive__thumb {
    grid-area: thumb;
  }
  .archive__thumb img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: top;
  }

  .process__cta .cta {
    width: 100%;
    justify-content: space-between;
    --cta-flood: 18;
  }
  .channels {
    grid-template-columns: 1fr;
  }
  .contact__form {
    margin-inline: calc(var(--gutter) * -0.5);
    border-radius: 22px;
  }

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

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 380px) {
  .hero__bottom {
    column-gap: 12px;
  }
  .hero__status {
    font-size: 0.875rem;
  }
  .hero__status strong {
    gap: 8px;
  }
  .hero__quick {
    gap: 6px;
  }
  .hero__quick .quick__btn {
    width: 42px;
    height: 42px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .about__frame img {
    transform: none;
  }
}

/* ---------- Print ---------- */
@media print {
  .nav,
  .menu,
  .cursor-label,
  .archive__preview,
  .hero__curtain {
    display: none !important;
  }
  .hero {
    position: relative;
    height: auto;
  }
}

/* ==========================================================================
   AI asistent (chat)
   ========================================================================== */
button.fab__item {
  border: 0;
  font: inherit;
  font-weight: 640;
  cursor: pointer;
}
.fab__item--ai {
  --logo-accent: var(--sun-deep);
}
.fab__item--ai svg {
  width: 18px;
  height: 22px;
}

.faq__ask {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 12px 22px 12px 12px;
  border: 0;
  border-radius: 20px;
  background: var(--ink);
  color: var(--paper);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 18px 36px -22px rgba(18, 22, 40, 0.6);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
  --logo-accent: var(--sun);
}
.faq__ask:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 40px -22px rgba(18, 22, 40, 0.7);
}
.faq__ask:focus-visible {
  outline: 2px solid var(--blazer);
  outline-offset: 3px;
}
.faq__ask strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
}
.faq__ask strong + span {
  display: block;
  margin-top: 2px;
  font-size: 0.875rem;
  color: var(--mist);
}
.faq__ask-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(243, 241, 236, 0.08);
}
.faq__ask-mark .logo {
  width: 18px;
  height: 22px;
}

.chat {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(max(16px, env(safe-area-inset-bottom)) + 72px);
  z-index: 60;
  display: flex;
  flex-direction: column;
  width: min(392px, calc(100vw - 32px));
  height: min(620px, calc(100vh - 120px));
  height: min(620px, calc(100dvh - 120px));
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(18, 22, 40, 0.08), 0 40px 80px -30px rgba(6, 8, 16, 0.55);
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transform-origin: bottom right;
  transition: opacity 0.25s ease, transform 0.45s var(--ease-out);
}
.chat.is-open {
  opacity: 1;
  transform: none;
}
.chat__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px 14px 16px;
  background: var(--ink);
  color: var(--paper);
  --logo-accent: var(--sun);
}
.chat__avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: rgba(243, 241, 236, 0.08);
}
.chat__avatar .logo {
  width: 17px;
  height: 21px;
}
.chat__who {
  flex: 1;
  min-width: 0;
}
.chat__title {
  font-size: 1rem;
  font-weight: 720;
  line-height: 1.2;
}
.chat__sub {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 3px;
  font-size: 0.8125rem;
  color: var(--mist);
}
.chat__reset {
  padding: 8px 10px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--mist);
  font-size: 0.8125rem;
  cursor: pointer;
}
.chat__reset:hover {
  color: var(--paper);
  background: rgba(243, 241, 236, 0.08);
}
.chat__close {
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(243, 241, 236, 0.08);
  cursor: pointer;
}
.chat__close::before,
.chat__close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: var(--paper);
  transform: translate(-50%, -50%) rotate(45deg);
}
.chat__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.chat__close:hover {
  background: var(--sun);
}
.chat__close:hover::before,
.chat__close:hover::after {
  background: var(--ink);
}
.chat__log {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 14px 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.chat__msg {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 0.9375rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  animation: chat-in 0.35s var(--ease-out) both;
}
.chat__msg a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.chat__msg--assistant {
  align-self: flex-start;
  background: var(--paper-2);
  border-bottom-left-radius: 6px;
}
.chat__msg--user {
  align-self: flex-end;
  background: var(--ink);
  color: var(--paper);
  border-bottom-right-radius: 6px;
}
.chat__msg.is-error {
  background: rgba(254, 200, 52, 0.28);
}
@keyframes chat-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.chat__dots {
  display: inline-flex;
  gap: 4px;
  padding: 4px 0;
}
.chat__dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--slate);
  animation: chat-dot 1.1s infinite ease-in-out;
}
.chat__dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.chat__dots i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes chat-dot {
  0%,
  80%,
  100% {
    opacity: 0.3;
    transform: none;
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}
.chat__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 12px;
}
.chat__chip {
  padding: 8px 13px;
  border: 1.5px solid var(--line-light);
  border-radius: 999px;
  background: none;
  font-size: 0.875rem;
  font-weight: 560;
  cursor: pointer;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
.chat__chip:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.chat__form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 0 10px;
  padding: 6px 6px 6px 16px;
  border-radius: 22px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line-light);
}
.chat__form:focus-within {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.chat__input {
  flex: 1;
  min-width: 0;
  max-height: 140px;
  padding: 9px 0;
  border: 0;
  background: none;
  font-size: 1rem;
  line-height: 1.4;
  resize: none;
  outline: none;
}
.chat__send {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--sun);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.chat__send svg {
  width: 18px;
  height: 18px;
  transform: rotate(-90deg);
}
.chat__send:hover {
  transform: scale(1.06);
}
.chat__send:disabled {
  opacity: 0.5;
  cursor: default;
}
.chat__note {
  padding: 8px 16px 12px;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--slate);
  text-align: center;
}
@media (max-width: 600px) {
  .chat {
    inset: 0;
    width: auto;
    height: 100%;
    border-radius: 0;
    transform: translateY(24px);
    transform-origin: bottom center;
  }
  .chat__head {
    padding-top: max(14px, env(safe-area-inset-top));
  }
  .chat__note {
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  html.chat-open,
  html.chat-open body {
    overflow: hidden;
  }
  html.chat-open .fab {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .chat,
  .chat__msg {
    transition: none;
    animation: none;
  }
}
