:root{
  --bg: #050507; /* было #070812 */
  --panel: rgba(255,255,255,0.05);
  --border: rgba(255,255,255,0.08);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.66); 
  --radius: 22px;
} 

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg); 
  color: var(--text);
}

a{ color: inherit; text-decoration:none; }
.container{ width:min(1120px, calc(100% - 48px)); margin:0 auto; }

.page{ padding-top: 110px; }

/* Header */
.header{
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 50;
  pointer-events: none;
}
.header-shell{
  width:min(1120px, calc(100% - 48px));
  margin: 0 auto;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(18px);
  border-radius: 26px;
  overflow: hidden;
  pointer-events: auto;
}
.header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 18px;
}
.header-row--top{ border-bottom: 1px solid var(--border); }
.header-row--sub{ gap: 14px; }

.brand{ display:flex; align-items:center; gap:10px; }
.brand-mark{
  width: 18px; height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9), rgba(255,255,255,0.2));
  opacity: .9;
}
.brand-name{
  font-family:"Syne", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 14px;
  opacity: .95;
}

.nav{ display:flex; gap: 22px; align-items:center; }
.nav--top{ justify-content:center; flex: 1; }
.nav-link{
  font-size: 14px;
  color: var(--muted);
  transition: color .2s ease, opacity .2s ease;
}
.nav-link:hover{ color: var(--text); }

.nav-link--sub{
  display:flex;
  align-items:center;
  gap:8px;
  color: var(--muted);
  font-size: 13px;
}
.nav-sub-icon{ opacity: .85; }

.header-actions{ display:flex; gap: 10px; }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
  border: 1px solid var(--border);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn--ghost{ background: transparent; color: var(--text); }
.btn--primary{ background: rgba(255,255,255,0.92); color: #0a0e27; border-color: rgba(255,255,255,0.2); }

/* Burger */
.burger{
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  display:none;
  align-items:center;
  justify-content:center;
  gap:4px;
  flex-direction:column;
  cursor:pointer;
}
.burger span{
  width: 18px; height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
}

/* Drawer */
.drawer{
  display:none;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.35);
}
.drawer-link{
  display:block;
  padding: 10px 0;
  color: var(--muted);
}
.drawer-link:hover{ color: var(--text); }

/* Liquid hero */
.liquid-hero{
  position: relative;
  height: 100svh;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
#liquid-bg{
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg); /* <-- вот сюда */
}
#liquid-bg canvas{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  display:block;
}
.hero-inner{
  position: relative;
  z-index: 2;
  height: 100%;
  display:flex;
  align-items:center;
  justify-content:center;
}
.liquid-title{
  text-align:center;
  pointer-events:none;
  user-select:none;
  white-space:nowrap;
}
.liquid-sub{
  font-family:"Syne", sans-serif;
  font-weight: 600;
  font-size: clamp(14px, 2vw, 18px);
  letter-spacing: 0.18em;
  text-transform: lowercase;
  opacity: 0.9;
  margin-bottom: 10px;
}
.liquid-main{
  font-family:"Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(52px, 9vw, 150px);
  letter-spacing: -0.02em;
  line-height: 1;
}

/* slats overlay */
.hero-slats{
  position:absolute;
  left: 50%;
  top: 56%;
  transform: translate(-50%, -50%);
  display:flex;
  gap: 10px;
  z-index: 1;
  pointer-events:none;
  opacity: .9;
}
.slat{
  width: clamp(22px, 5vw, 60px);
  height: clamp(220px, 32vw, 380px);
  background: rgba(6,7,18,0.55);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

/* Sections */
.section-kicker{
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .02em;
  margin: 26px 0 14px;
}
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 14px;
}
.section-link{
  font-size: 13px;
  color: var(--muted);
}
.section-link:hover{ color: var(--text); }

/* Intro */
.intro{ padding: 34px 0 18px; }
.intro-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
  align-items:start;
}
.intro-text{
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}
.intro-clients{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  justify-items:start;
}
.client{
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}

/* Services accordion */
.services{ padding: 14px 0 18px; }
.accordion{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  background: rgba(0,0,0,0.2);
}
.acc-item + .acc-item{ border-top: 1px solid var(--border); }
.acc-btn{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 16px 16px;
  background: transparent;
  border: 0;
  color: var(--text);
  cursor:pointer;
}
.acc-left{ display:flex; align-items:center; gap: 14px; }
.acc-thumb{
  width: 72px; height: 44px;
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.04);
  flex: 0 0 auto;
}
.acc-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.acc-title{
  font-family:"Syne", sans-serif;
  font-weight: 600;
  font-size: 16px;
}
.acc-plus{
  width: 34px; height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(255,255,255,0.8);
}
.acc-panel{
  height: 0;
  overflow: hidden;
  transition: height .28s ease;
}
.acc-panel-inner{
  padding: 0 16px 16px 102px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Works */
.works{ padding: 10px 0 22px; }
.works-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 14px;
}
.work-card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  background: rgba(255,255,255,0.03);
  transition: transform .2s ease, border-color .2s ease;
}
.work-card:hover{ transform: translateY(-2px); border-color: rgba(255,255,255,0.14); }
/*.work-media img{ width:100%; height: 260px; object-fit: cover; display:block; } */
.work-meta{ padding: 14px 14px; font-family:"Syne", sans-serif; font-weight:600; }

.works-bottom{ display:flex; justify-content:center; margin-top: 14px; }

/* Team */
.team{ padding: 8px 0 26px; }
.team-grid{
  display:grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 18px;
  margin-top: 14px;
}
.team-title{
  font-family:"Syne", sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.08;
  margin: 0;
}
.team-cards{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.member{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  background: rgba(255,255,255,0.03);
}
.member-photo img{ width:100%; height: 220px; object-fit: cover; display:block; }
.member--lg .member-photo img{ height: 240px; }
.member-meta{ padding: 12px 12px; }
.member-name{ font-family:"Syne", sans-serif; font-weight: 600; }
.member-role{ font-size: 12px; color: var(--muted); margin-top: 2px; }
.team-bottom{ display:flex; justify-content:center; margin-top: 14px; }

/* CTA */
.cta{ padding: 24px 0 40px; }
.cta-inner{ display:flex; justify-content:center; }
.cta-card{
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 34px 18px;
  text-align:center;
  background: radial-gradient(60% 80% at 50% 40%, rgba(255,255,255,0.08), rgba(0,0,0,0.0));
}
.cta-title{
  font-family:"Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 5vw, 56px);
  line-height: 1.02;
}
.cta-sub{
  margin: 12px auto 18px;
  max-width: 620px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Footer */
.footer{
  padding: 40px 0 70px;
}
.footer-shell{
  width:min(1120px, calc(100% - 48px));
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: rgba(0,0,0,0.25);
  display:flex;
  justify-content:space-between;
  gap: 18px;
  padding: 18px;
}
.footer-left{ display:flex; gap: 22px; align-items:center; flex-wrap:wrap; }
.footer-right{ text-align:right; }
.footer-email{ color: var(--muted); }
.footer-email:hover{ color: var(--text); }
.footer-meta{ margin-top: 6px; font-size: 12px; color: rgba(255,255,255,0.5); }

/* Responsive */
@media (max-width: 860px){
  .nav--top{ display:none; }
  .burger{ display:flex; }
  .intro-grid{ grid-template-columns: 1fr; }
  .works-grid{ grid-template-columns: 1fr; }
  .team-grid{ grid-template-columns: 1fr; }
  .team-cards{ grid-template-columns: 1fr; }
  .footer-shell{ flex-direction: column; }
  .footer-right{ text-align:left; }
  .page{ padding-top: 128px; }
}

body.menu-open .drawer{ display:block; }

/* ===== TV fly-through ================================================================================ */
.tvfly{ position: relative; border-bottom: 1px solid var(--border); }

.tvfly__wrapper{
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* BACK stage */
.tvfly__stage{
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #000;
}
#tvflyCanvas{ width:100%; height:100%; display:block; }

/* Label */
.tvfly__label{
  position: absolute;
  left: 50%;
  top: 18vh;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
  pointer-events: none;
  user-select: none;
}
.tvfly__line1{
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: clamp(14px, 1.6vw, 16px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}
.tvfly__line2{
  margin-top: 6px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: clamp(12px, 1.2vw, 13px);
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.55);
}

/* FRONT image layer */
.tvfly__image-container{
  position: absolute;
  inset: 0;
  z-index: 2;
  perspective: 500px;
  overflow: hidden;
  pointer-events: none;
}
.tvfly__image{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  will-change: transform, opacity;
}

/* Hide video safely (NOT display:none) */
.tvfly__hiddenVideo{
  position: fixed;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* FIX: убираем верхний “пустой” участок, но оставляем отступ для остальных секций */
:root{ --headerSpace: 110px; } /* если у тебя другой — поменяй */

.liquid-hero{
  margin-top: calc(var(--headerSpace) * -1);
  height: calc(100svh + var(--headerSpace));
}

/* ===== TV fly-through ===== */
.tvfly{ position: relative; border-bottom: 1px solid rgba(255,255,255,0.08); }
.tvfly__wrapper{ position: relative; width: 100%; height: 100vh; overflow: hidden; }

.tvfly__stage{
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #000;
}
#tvflyCanvas{ width: 100%; height: 100%; display: block; }

.tvfly__image-container{
  position: absolute;
  inset: 0;
  z-index: 2;
  perspective: 500px;
  overflow: hidden;
  pointer-events: none;
}
.tvfly__image{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  will-change: transform, opacity;
}

.tvfly__hiddenVideo{
  position: fixed;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}


/* ===== Capabilities (SVG blocks + accordion) ============================================= */
.capabilities{ padding: 18px 0 26px; border-bottom: 1px solid var(--border); }

.cap-anim{
  margin-top: 14px;
  height: min(420px, 60vh);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}

.cap-anim svg{
  width: 100%;
  height: 100%;
  display:block;
  visibility: visible;
}

.cap-anim text{ fill: rgba(255,255,255,0.92); }
.cap-anim .label{
  font-family: "Syne", sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.cap-anim .colorTab rect{
  stroke: rgba(255,255,255,0.10);
  stroke-width: 1;
}

.cap-accordion{ margin-top: 14px; }

@media (max-width: 860px){
  .cap-anim{ height: 340px; }
  .cap-anim .label{ font-size: 14px; }
}

/* remove underlay card under the SVG animation */
.cap-anim{
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
}

/* ЗАГОЛОВОК НАШИ УСЛУГИ ----------------------------------------------------------------------------------------------*/
.capabilities .cap-title{
  width: 100%;
  margin: 60px 0 -50px;
  text-align: center;
  font-size: clamp(34px, 6vw, 96px);
  line-height: 1.05;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== Header: single line + logo tweaks ============================================================================================================================================ */
.header-row--sub{ display:none !important; }     /* на всякий случай */
.header-row--top{ border-bottom: 0 !important; } /* убрать линию между рядами */

.header-row{
  flex-wrap: nowrap;
  gap: 16px;
}

.nav{ flex-wrap: nowrap; }
.nav-link{ white-space: nowrap; }

.nav--top{
  min-width: 0;
  gap: 16px; /* чуть компактнее, чтобы не переносилось */
}

.header-actions{
  flex-shrink: 0;
  white-space: nowrap;
}

/* remove the ball */
.brand-mark{ display:none !important; }

/* INDIVIDNI studio */
.brand-name{
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.brand-name__main{
  font-weight: 800;
  letter-spacing: 0.06em;
}
.brand-name__sub{
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: none;
  opacity: .75;
}

/* header is now shorter -> page can start higher on desktop */
.page{ padding-top: 86px; } /* mobile override у тебя уже есть в @media (max-width:860px) */

.burger{ display:none; }

@media (max-width: 860px){
  .nav--top{ display:none !important; }
  .burger{ display:flex !important; }
}

.drawer{ display:none; }
body.menu-open .drawer{ display:block; }

/* ===== Mobile drawer redesign (solid card, rounded) ===== */
@media (max-width: 860px){
  .drawer{
    display: none;
    margin: 12px 12px 0;
    padding: 10px 12px;
    border-radius: 18px;

    background: #0b0b0f;          /* без прозрачности */
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 14px 40px rgba(0,0,0,0.35);
  }

  body.menu-open .drawer{ display:block; }

  .drawer-link{
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 14px 10px;
    text-decoration: none;
    color: rgba(255,255,255,0.92);
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: 12px;
  }

  /* разделители между пунктами */
  .drawer-link + .drawer-link{
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  /* hover/active */
  .drawer-link:active{
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
  }
}

@media (max-width: 860px){
  .drawer{
    transform: translateY(-8px);
    opacity: 0;
    transition: transform 220ms ease, opacity 220ms ease;
  }
  body.menu-open .drawer{
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 860px){
  /* header layout: allow items to fit */
  .header-row--top{
    align-items: center;
    gap: 10px;
  }

  /* brand becomes 2-line and centered */
  .brand{
    flex: 1;
    min-width: 0;              /* важно: иначе будет давить и резать бургер */
    display: flex;
    justify-content: center;
    text-align: center;
  }

  .brand-name{
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 2px !important;
    line-height: 1.05;
  }

  .brand-name__sub{
    order: -1;                 /* studio сверху */
    font-size: 11px;
    opacity: .75;
    letter-spacing: .10em;
    text-transform: uppercase;
  }

  .brand-name__main{
    font-size: 16px;           /* чтобы не занимало много места */
    letter-spacing: .10em;
  }

  /* actions: keep burger visible */
  .header-actions{
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .burger{
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
  }

  /* если у бургера span-ы позиционируются — пусть не режется */
  .burger span{
    display:block;
  }
}
@media (max-width: 860px){
  .header, .header-shell{ overflow: visible !important; }
}

.brand-name__main{ font-size: 14px; }  /* было больше — уменьши как нужно */
.brand-name__sub { font-size: 10px; }

@media (max-width: 860px){
  .brand-name__main{ font-size: 15px; }
  .brand-name__sub { font-size: 10px; }
}

/* ЗАГОЛОВОК ПРОЕКТЫ ----------------------------------------------------------------------------------------------*/
.works-title{
  width: 100%;
  margin: 60px 0 60px;
  text-align: center;
  font-size: clamp(34px, 6vw, 96px);
  line-height: 1.05;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ОТСТУПЫ INDIVIDNI ----------------------------------------------------------------------------------------------*/
@media (max-width: 860px){
  .liquid-hero{
    padding-left: 14px !important;
    padding-right: 14px !important;
    box-sizing: border-box;
  }

  .liquid-main{
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;

    max-width: 100%;
    margin: 0 auto;

    font-size: clamp(38px, 10.5vw, 64px) !important;
    letter-spacing: 0.06em !important; /* если не влезет — 0.04em */
  }
}
/* ОКНО С ТЕЛЕКОМ ----------------------------------------------------------------------------------------------*/

.tvfly__image-container{
  transform-style: preserve-3d;
}

.tvfly__image-container picture{
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  perspective: inherit;
  transform-style: preserve-3d;
}

.tvfly__image-container picture img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform-style: preserve-3d;
}

/* ===== WORKS: bigger cards + title overlay on image ====================================================================== */

/* wider container only for projects section */
.works .container{
  width: min(1440px, calc(100% - 48px));
}

/* Desktop pattern: 3 cards row, then 2 cards row (repeat 3-2) */
/* Desktop: fixed grid, cards only shrink (no reflow) */
/* @media (min-width: 861px){
  .works .container{
    width: 100%;
    max-width: none;
    padding-left: clamp(24px, 3.2vw, 64px);
    padding-right: clamp(24px, 3.2vw, 64px);
  }

  .works-grid{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr)); /* всегда 4, просто сжимаются */
    gap: clamp(14px, 1.6vw, 26px);
  }

  .works-grid .work-card{
    grid-column: auto;
    min-width: 0; /* важно для Mac/Safari, чтобы не распирало */
  }
}*/

/* Card: no strip, title under the image */
.work-card{
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  overflow: visible !important;

  display: flex;
  flex-direction: column;
  gap: 10px;

  transform: none !important;
}

/* Media wrapper */
.work-media{
  border-radius: 28px;
  overflow: hidden;

  /* PC default: 16:9 */
  aspect-ratio: 16 / 9;
  position: relative;
}

/* Image fills ratio box */
.work-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter .22s ease;
}

/* Hover: slightly darken */
.work-card:hover .work-media img{
  filter: brightness(0.86);
}

/* Title under card (small, "logo-like") */
.work-meta{
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;

  font-family: "Syne", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 14px;
  line-height: 1.1;
}

/* ===== Mobile: 2 cards per row, square cards ===== */
@media (max-width: 860px){
  .works .container{
    width: min(1440px, calc(100% - 24px));
  }

  .works-grid{
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }

  /* default: square cards */
  .works-grid .work-card{
    grid-column: span 1;
  }
  .works-grid .work-card .work-media{
    border-radius: 18px;
    aspect-ratio: 1 / 1;
  }

  /* every 3rd card in each group of 5 becomes full width 16:9 */
  .works-grid .work-card:nth-child(5n + 3){
    grid-column: 1 / -1;
  }
  .works-grid .work-card:nth-child(5n + 3) .work-media{
    aspect-ratio: 16 / 9;
  }

  /* image always fills */
  .work-media img{
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
  }

  .work-meta{
    font-size: 11px;
    letter-spacing: 0.10em;
  }
}

/* ===== ЦВЕТНЫЕ КАРТОЧКИ ===================================================================================================================================== */
/* ===== Capabilities: details per card (one open at a time) ===== */

/* hide accordion for now (optional) */
.cap-accordion{ display:none !important; }

/* make the SVG cards clickable */
#mainSVG #container .colorTab{ cursor: pointer; }

.cap-details{
  width: 100%;
  margin-top: 12px;
}

/* Side animation (no Y jump) */
.cap-item-detail{
  width: 100%;
  overflow: hidden;

  max-height: 0;
  opacity: 0;
  transform: translateX(14px);

  transition:
    max-height .55s cubic-bezier(.2,.8,.2,1),
    opacity .25s ease,
    transform .25s ease;
}

.cap-item-detail.is-open{
  max-height: 520px;   /* если текста больше — увеличь */
  opacity: 1;
  transform: translateX(0);
}

.cap-item-detail__inner{
  width: 100%;
  min-height: 260px;
  border-radius: 18px;
  padding: 16px;

  border: 1px solid rgba(0,0,0,0.10);

  /* цветная подложка под каждую карточку */
  background: color-mix(in srgb, var(--capColor) 22%, #ffffff);

  /* полоса остаётся */
  border-left: 8px solid var(--capColor);
}


.cap-item-detail__top{
  display: flex;
  align-items: center;
  gap: 12px;
}

.cap-item-detail__title{
  margin: 0;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 18px;
}

.cap-item-detail__close{
  margin-left: auto;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  background: transparent;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.cap-item-detail__desc{
  margin: 10px 0 14px;
  line-height: 1.5;
  opacity: .9;
  max-width: 72ch;
}

.cap-item-detail__btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;

  border: 1px solid rgba(0,0,0,0.14);
  background: #fff;
  color: #0b0b0f;

  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
}

/* Cap details: side fade instead of height animation ===========================================================================================*/
.cap-details{
  position: relative;
  width: 100%;
  min-height: 280px; /* чтобы место под блок было всегда */
}

.cap-item-detail{
  position: absolute;
  inset: 0;
  width: 100%;
  max-height: none !important;

  opacity: 0;
  transform: translateX(14px);
  pointer-events: none;

  transition: opacity .22s ease, transform .22s ease;
}

.cap-item-detail.is-open{
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* Cap detail: black text + black button */
.cap-item-detail__title,
.cap-item-detail__desc{
  color: #0b0b0f;
}

.cap-item-detail__desc{
  opacity: .85; /* мягче */
}

.cap-item-detail__btn{
  background: #0b0b0f !important;
  border: 0 !important;
  color: #ffffff !important;
}

/* ================================ PROJECTS – FULL WIDTH (DESKTOP) =========================================================================================================== */
/* ================================
   PROJECTS (DESKTOP): 3 cards row, then 2 cards row (repeat 3-2)
   - stable on resize
   - mobile untouched
================================ */
@media (min-width: 1024px){
  /* full width + safe paddings */
  .works .container{
    width: 100%;
    max-width: none;
    padding-left: clamp(24px, 3.2vw, 64px);
    padding-right: clamp(24px, 3.2vw, 64px);
  }

  /* 12-col grid for stable 3-2 pattern */
  .works-grid{
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: clamp(14px, 1.6vw, 26px);
  }

  /* default: 3 cards per row */
  .works-grid .work-card{
    grid-column: span 4;
    min-width: 0; /* критично для Safari/Mac, чтобы не "уезжало" */
  }

  /* every 4th and 5th card in each group of 5 -> make row of 2 cards */
  .works-grid .work-card:nth-child(5n + 4),
  .works-grid .work-card:nth-child(5n + 5){
    grid-column: span 6;
  }

  /* thumbs strict 16:9 */
  .work-media{
    aspect-ratio: 16 / 9;
    overflow: hidden;
  }
  .work-media img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    display: block;
  }

  /* keep header/button centered */
  .works-title,
  .works-bottom{
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Fix: убрать "полосу" между фото и подписью + дать нормальные отступы (desktop only) */
@media (min-width: 861px){
  .works-grid .work-card{
    gap: 0 !important;              /* убираем щель-полосу */
  }
  .works-grid .work-meta{
    padding: 12px 6px 0 !important; /* отступы для текста */
    margin: 0 !important;
  }
}

/* FIX: убрать "полосу" (фон карточки) и дать нормальный отступ подписи — только ПК */
@media (min-width: 1024px){
  .works-grid .work-card{
    background: transparent !important;
    border: 0 !important;
    gap: 0 !important;            /* убираем щель между медиа и текстом */
    transform: none !important;
  }

  .works-grid .work-meta{
    padding: 12px 6px 0 !important; /* чтобы текст не прилипал */
    margin: 0 !important;
  }
}

/* MOBILE: убрать "полосу" (фон карточки) и вернуть нормальные отступы подписи */
@media (max-width: 860px){
  .works .works-grid a.work-card{
    background: transparent !important;
    border: 0 !important;
  }

  .works .works-grid a.work-card .work-meta{
    padding: 10px 4px 0 !important;
    margin: 0 !important;
  }
}

@media (max-width: 860px){
  .works-grid .work-card{
    background: transparent !important;
    border: 0 !important;
    overflow: visible !important;   /* ВОТ ЭТО главное: убираем клип по радиусу */
    border-radius: 0 !important;    /* чтобы вообще не было “контейнерного” ощущения */
    gap: 0 !important;
  }

  .works-grid .work-meta{
    padding: 10px 0 0 !important;   /* текст ровно под картинкой */
    margin: 0 !important;
  }
}

/* Projects: НЕ клипать подпись по радиусу карточки (и на ПК, и на мобилке) */
.works .works-grid .work-card{
  overflow: visible !important;
  border-radius: 0 !important;
}

/* нормальные отступы у подписи (у тебя выше стоит padding:0 !important;) */
.works .works-grid .work-meta{
  padding: 10px 0 0 !important;
  margin: 0 !important;
}

@media (min-width: 861px){
  .works .works-grid .work-meta{
    padding: 12px 0 0 !important;
  }
}
/* ШРИФТ--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
/* Global font switch */
:root{
  --font-main: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-keep: "Syne", sans-serif;
}

body{
  font-family: var(--font-main) !important;
}

/* везде Alumni, кроме исключений ниже */
*{
  font-family: inherit;
}

/* EXCEPTIONS: оставляем Syne */
.brand-name,
.brand-name__main,   /* INDIVIDNI в меню/лого */
.brand-name__sub,
.liquid-main{        /* INDIVIDNI в первом блоке */
  font-family: var(--font-keep) !important;
}

/* ==========================
   FONTS: Alumni everywhere,
   but keep Syne for logo + hero INDIVIDNI
========================== */
:root{
  --font-main: "Alumni Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-keep: "Syne", sans-serif;
}

body{ font-family: var(--font-main) !important; }

/* keep Syne only where you asked */
.brand-name,
.brand-name__main,
.brand-name__sub,
.liquid-main{
  font-family: var(--font-keep) !important;
}

/* force Alumni where Syne is hardcoded in your CSS */
.liquid-sub,
.hero-tv__desc,
.work-meta,
.team-title,
.member-name,
.cta-title,
.acc-title,
.cap-anim .label{
  font-family: var(--font-main) !important;
}

@media (min-width: 861px){
  .header-row--top{ position: relative; }

  /* brand + actions остаются по краям */
  .brand, .header-actions{ position: relative; z-index: 2; }

  /* меню — строго по центру окна */
  .nav--top{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    flex: 0 !important;
    justify-content: center;
    z-index: 1;
  }
}

.fw-300{ font-weight: 300 !important; }
.fw-400{ font-weight: 400 !important; }
.fw-500{ font-weight: 500 !important; }
.fw-600{ font-weight: 600 !important; }
.fw-700{ font-weight: 700 !important; }
.fw-800{ font-weight: 800 !important; }

/* stop horizontal scroll on mobile (and everywhere) */
html, body{
  overflow-x: clip;
}
@supports not (overflow: clip){
  html, body{ overflow-x: hidden; }
}

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

:root{
  /* базовый текст под Alumni: чуть больше на десктопе, чуть меньше на мобилке */
  --fs-base: clamp(15px, 0.85vw, 18px);
  --fs-small: clamp(13px, 0.70vw, 15px);
}

body{
  font-size: var(--fs-base);
}


/* ======================================================================
   INDIVIDNI — V5 OVERRIDES
   Goal: no glass, correct Projects grid (3+2 same width, 16:9),
   add marquee, stinger, reveal, and sections style variety.
   ====================================================================== */

:root{
  --bg: #050507;
  --panel: #0b0b10;
  --panel-2: #101018;
  --border: rgba(255,255,255,0.10);
  --border-2: rgba(255,255,255,0.18);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.66);
  --accent: #e2473d; /* keep subtle */
  --radius: 22px;
  --radius-lg: 28px;

  --font-main: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-keep: "Syne", sans-serif;
}

html, body:not(.project-page){
  background: var(--bg) !important;
  color: var(--text) !important;
}

body{
  font-family: var(--font-main) !important;
}

/* keep Syne only for logo/hero wordmark */
.brand-name,
.brand-name__main,
.brand-name__sub,
.liquid-main{
  font-family: var(--font-keep) !important;
}

/* everything else uses Manrope */
*{ font-family: inherit; }

/* remove glass (blur/backdrop) */
.header-shell{
  backdrop-filter: none !important;
  background: rgba(8,8,10,0.92) !important;
  border-color: var(--border) !important;
}

/* if some older rules still set Inter/Alumni on specific blocks */
.liquid-sub,
.hero-tv__desc,
.work-meta,
.team-title,
.member-name,
.cta-title,
.acc-title,
.cap-anim .label{
  font-family: var(--font-main) !important;
}

/* =========================
   Reveal (simple, not cheesy)
   ========================= */
[data-reveal]{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}
[data-reveal].is-in{
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce){
  [data-reveal]{ opacity: 1; transform:none; transition:none; }
}

/* =========================
   Projects: final grid 3 + 2 (same width), all 16:9
   ========================= */
.works{ padding: 96px 0 70px !important; }
.works-head{ margin-bottom: 28px !important; }
.works-title{
  text-align:left !important;
  margin: 0 !important;
  transform:none !important;
  font-size: clamp(46px, 5.3vw, 86px) !important;
  letter-spacing: -0.03em !important;
  line-height: 0.98 !important;
}

.works-tabs{
  display:flex !important;
  align-items:center !important;
  gap: 10px !important;
  flex-wrap: nowrap !important;
  overflow-x:auto !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 100%;
}
.works-tabs::-webkit-scrollbar{ display:none; }

.works-tab{
  display:inline-flex;
  align-items:center;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: rgba(255,255,255,0.72);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.works-tab:hover{
  border-color: var(--border-2);
  color: rgba(255,255,255,0.92);
  background: rgba(255,255,255,0.05);
  transform: translateY(-1px);
}
.works-tab.is-active{
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.works-grid{
  display:grid !important;
  grid-template-columns: repeat(12, minmax(0,1fr)) !important;
  gap: 18px !important;
}

.works-grid .work-card{
  grid-column: span 4 !important; /* 3 per row */
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

.works-grid .work-card:nth-child(5n + 4){
  grid-column: 3 / span 4 !important; /* center */
}
.works-grid .work-card:nth-child(5n + 5){
  grid-column: 7 / span 4 !important; /* center */
}

/* strict 16:9 everywhere */
.works-grid .work-media{
  aspect-ratio: 16 / 9 !important;
  border-radius: var(--radius-lg) !important;
  overflow:hidden !important;
  border: 1px solid var(--border) !important;
  background: var(--panel) !important;
}
.works-grid .work-media img{
  width:100% !important;
  height:100% !important;
  object-fit: cover !important;
  display:block !important;
}

.works-grid .work-meta{
  position: static !important;
  padding: 12px 2px 0 !important;
  margin: 0 !important;
  font-size: 16px !important;
  letter-spacing: 0.02em !important;
  color: rgba(255,255,255,0.86) !important;
  text-transform: none !important;
  background: transparent !important;
  border: 0 !important;
}

@media (max-width: 860px){
  .works-grid{
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  }
  .works-grid .work-card{
    grid-column: auto !important;
  }
  .works-grid .work-card:nth-child(5n + 4),
  .works-grid .work-card:nth-child(5n + 5){
    grid-column: auto !important;
  }
}
@media (max-width: 520px){
  .works-grid{ grid-template-columns: 1fr !important; }
}

/* =========================
   Marquee (no JS)
   ========================= */
.marquee-band{
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #07070a;
  overflow:hidden;
}
.marquee-band--thin{ padding: 10px 0; background: #060608; }

.marquee{
  width: 100%;
  overflow: hidden;
}
.marquee__track{
  display: inline-flex;
  gap: 14px;
  align-items:center;
  white-space: nowrap;
  will-change: transform;
  animation: marqueeMove 22s linear infinite;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}
.marquee--thin .marquee__track{ animation-duration: 18s; }
.marquee__track span{ padding: 0 2px; }
@keyframes marqueeMove{
  from{ transform: translateX(0); }
  to{ transform: translateX(-33.333%); }
}
@media (prefers-reduced-motion: reduce){
  .marquee__track{ animation: none; }
}

/* =========================
   Section head (shared)
   ========================= */
.section-head{ margin: 0 0 28px; }
.section-kicker{
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
  margin-bottom: 10px;
}
.section-title{
  margin: 0 0 10px;
  font-size: clamp(28px, 2.8vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.06;
}
.section-sub{
  color: var(--muted);
  max-width: 70ch;
  line-height: 1.55;
}

/* =========================
   Cap actions
   ========================= */
.cap-actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* =========================
   Numbers
   ========================= */
.numbers{ padding: 90px 0; }
.numbers-layout{
  display:grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(18px, 2.4vw, 34px);
  align-items:start;
}
.numbers-media{
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #07070a;
  padding: 16px;
}
.frame-rail{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
.frame-rail img{
  width:100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--border);
  display:block;
}
.numbers-note{
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.60);
}

.numbers-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}
.num-card{
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  padding: 18px 18px 16px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.num-card--fill{
  background: linear-gradient(180deg, rgba(226,71,61,0.16), rgba(11,11,16,1) 65%);
  border-color: rgba(226,71,61,0.26);
}
.num-card:hover{
  transform: translateY(-2px);
  border-color: var(--border-2);
}
.num{
  font-size: 44px;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 6px;
}
.label{
  color: rgba(255,255,255,0.70);
  line-height: 1.35;
}
@media (max-width: 980px){
  .numbers-layout{ grid-template-columns: 1fr; }
}

/* =========================
   Process interactive
   ========================= */
.process{ padding: 90px 0; }
.process-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(18px, 2.4vw, 34px);
  align-items:start;
}
.steps{
  list-style:none;
  padding:0;
  margin:0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow:hidden;
  background: #07070a;
}
.step{ border-top: 1px solid var(--border); }
.step:first-child{ border-top: 0; }
.step-btn{
  width:100%;
  text-align:left;
  background: transparent;
  color: inherit;
  border:0;
  padding: 18px 18px;
  display:flex;
  gap: 14px;
  cursor:pointer;
  transition: background .18s ease;
}
.step:hover .step-btn{ background: rgba(255,255,255,0.04); }
.step.is-active .step-btn{
  background: rgba(226,71,61,0.10);
}
.step-num{
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.68);
  min-width: 34px;
  padding-top: 2px;
}
.step-title{
  font-weight: 650;
  letter-spacing: -0.01em;
}
.step-text{
  display:block;
  color: rgba(255,255,255,0.62);
  margin-top: 6px;
  line-height: 1.35;
}
.process-preview{
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  padding: 14px;
}
.preview-frame{
  border-radius: 22px;
  overflow:hidden;
  border: 1px solid var(--border);
  background: #07070a;
}
.preview-frame img{
  width:100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display:block;
}
.preview-meta{
  display:flex;
  gap: 10px;
  align-items:center;
  justify-content:space-between;
  margin-top: 12px;
}
.preview-chip{
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.70);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 10px;
}
.preview-tip{
  font-size: 12px;
  color: rgba(255,255,255,0.60);
}
@media (max-width: 980px){
  .process-grid{ grid-template-columns: 1fr; }
}

/* =========================
   Pricing
   ========================= */
.pricing{ padding: 90px 0; }
.pricing-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}
.price-card{
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  padding: 18px;
  display:flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.price-card:hover{
  transform: translateY(-2px);
  border-color: var(--border-2);
}
.price-card--fill{
  background: linear-gradient(180deg, rgba(226,71,61,0.16), rgba(11,11,16,1) 65%);
  border-color: rgba(226,71,61,0.26);
}
.price-top{ display:flex; justify-content:space-between; align-items:baseline; gap: 10px; }
.price-name{ font-weight: 700; letter-spacing: -0.01em; }
.price-sum{ color: rgba(255,255,255,0.86); font-weight: 650; }
.price-list{
  margin: 0;
  padding-left: 18px;
  color: rgba(255,255,255,0.70);
  line-height: 1.45;
}
@media (max-width: 980px){
  .pricing-grid{ grid-template-columns: 1fr; }
}

/* =========================
   Team roles
   ========================= */
.team{ padding: 90px 0; }
.roles-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}
.role-card{
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  padding: 18px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.role-card:hover{ transform: translateY(-2px); border-color: var(--border-2); }
.role-card--fill{
  background: linear-gradient(180deg, rgba(226,71,61,0.14), rgba(11,11,16,1) 65%);
  border-color: rgba(226,71,61,0.24);
}
.role-top{ display:flex; justify-content:space-between; align-items:baseline; gap: 10px; }
.role-name{ font-weight: 750; letter-spacing: -0.01em; }
.role-tag{
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
}
.role-list{
  margin: 10px 0 0;
  padding-left: 18px;
  color: rgba(255,255,255,0.70);
  line-height: 1.45;
}
@media (max-width: 980px){
  .roles-grid{ grid-template-columns: 1fr; }
}

/* =========================
   Value
   ========================= */
.value{ padding: 90px 0; }
.value-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}
.value-card{
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  padding: 18px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.value-card:hover{ transform: translateY(-2px); border-color: var(--border-2); }
.value-card--fill{
  background: linear-gradient(180deg, rgba(226,71,61,0.14), rgba(11,11,16,1) 65%);
  border-color: rgba(226,71,61,0.24);
}
.value-title{ font-weight: 720; letter-spacing: -0.01em; margin-bottom: 8px; }
.value-text{ color: rgba(255,255,255,0.70); line-height: 1.45; }
@media (max-width: 980px){
  .value-grid{ grid-template-columns: 1fr; }
}

/* =========================
   Accordions: plus/minus style (no text +)
   ========================= */
.acc-plus{
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  opacity: .9;
}
.acc-plus::before,
.acc-plus::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width: 12px;
  height: 2px;
  background: rgba(255,255,255,0.74);
  transform: translate(-50%,-50%);
  transition: transform .18s ease, opacity .18s ease;
}
.acc-plus::after{
  width: 2px;
  height: 12px;
}
.acc-item[data-open] .acc-plus::after{
  opacity: 0; /* minus */
}

/* =========================
   Workflow
   ========================= */
.workflow{ padding: 90px 0 110px; }
.workflow-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(18px, 2.4vw, 34px);
  align-items:start;
}
.workflow-sub{ color: rgba(255,255,255,0.70); line-height: 1.55; margin-top: 10px; max-width: 70ch; }
.workflow-steps{ margin-top: 18px; display:grid; gap: 10px; }
.wf{
  display:flex;
  gap: 12px;
  align-items:center;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #07070a;
}
.wf-n{
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.62);
  min-width: 34px;
}
.wf-t{ color: rgba(255,255,255,0.82); }

.workflow-card{
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(226,71,61,0.14), rgba(11,11,16,1) 65%);
  border-color: rgba(226,71,61,0.24);
  padding: 18px;
  display:flex;
  flex-direction: column;
  gap: 12px;
}
.workflow-card__title{ font-weight: 780; letter-spacing: -0.01em; font-size: 18px; }
.workflow-card__text{ color: rgba(255,255,255,0.70); line-height: 1.45; }
.workflow-card .btn{ justify-content:center; }

@media (max-width: 980px){
  .workflow-grid{ grid-template-columns: 1fr; }
}

/* =========================
   Footer (no glass)
   ========================= */
.footer{ padding: 30px 0 80px; }
.footer-shell{
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #07070a;
  padding: 18px;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
}
.footer-brand{ display:flex; flex-direction: column; gap: 6px; }
.footer-sub{ color: rgba(255,255,255,0.60); font-size: 13px; }
.footer-cols{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}
.footer-col__t{
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.60);
  margin-bottom: 10px;
}
.footer-link{
  display:block;
  color: rgba(255,255,255,0.76);
  padding: 6px 0;
}
.footer-link:hover{ color: rgba(255,255,255,0.94); }
.footer-link--tiny{ font-size: 12px; padding: 0; }

.footer-form-title{
  font-weight: 780;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.footer-form{ display:grid; gap: 12px; }
.field{ display:grid; gap: 6px; }
.field-label{ font-size: 12px; color: rgba(255,255,255,0.60); }
.field-input{
  width:100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  color: var(--text);
  padding: 12px 12px;
  outline: none;
}
.field-input:focus{ border-color: rgba(226,71,61,0.36); }
.field-input--ta{ resize: vertical; min-height: 110px; }

.footer-meta{
  margin-top: 12px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items:center;
  color: rgba(255,255,255,0.60);
  font-size: 12px;
}
.footer-dot{ opacity: .6; }

@media (max-width: 980px){
  .footer-shell{ grid-template-columns: 1fr; }
}

/* =========================
   Page stinger (transitions)
   ========================= */
.page-stinger{
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: #050507;
  transform: translateY(100%);
}
.page-stinger::before{
  content:"INDIVIDNI";
  position:absolute;
  left: 24px;
  bottom: 22px;
  font-family: var(--font-keep);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.84);
  font-size: 14px;
}
.page-stinger.is-active{
  animation: stingerUp .52s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes stingerUp{
  0%{ transform: translateY(100%); }
  35%{ transform: translateY(0%); }
  65%{ transform: translateY(0%); }
  100%{ transform: translateY(-100%); }
}
@media (prefers-reduced-motion: reduce){
  .page-stinger{ display:none; }
}


/* --- V5 patch: kill remaining blur + fix section-head layout --- */
.slat{ backdrop-filter: none !important; background: rgba(7,7,10,0.92) !important; }

.section-head{
  display: block !important;
  align-items: initial !important;
  justify-content: initial !important;
  gap: initial !important;
  margin: 0 0 28px !important;
}
.section-kicker{
  margin: 0 0 10px !important;
  letter-spacing: .14em !important;
}

/* --- V5 patch: ensure work-card behaves as block --- */
.works-grid .work-card{ display:block !important; }


/* ============================
   Roles / Workflow media frames (fix "full-width photos" bug)
   ============================ */
.roles-layout{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(18px, 3vw, 42px);
  align-items:start;
  margin-top: clamp(18px, 2vw, 28px);
}
.roles-media{
  position: relative;
  min-height: clamp(360px, 42vw, 560px);
  border-radius: var(--radius);
  overflow: visible;
}
.roles-frame{
  position:absolute;
  overflow:hidden;
  border-radius: calc(var(--radius) + 6px);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}
.roles-frame--big{
  inset: 0 10% 10% 0;
}
.roles-frame--small{
  width: 44%;
  aspect-ratio: 4 / 3;
  right: 0;
  bottom: 0;
}
.roles-frame img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.roles-caption{
  position:absolute;
  left: 14px;
  bottom: 14px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.45);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

/* Workflow right media */
.workflow-media{
  display:grid;
  gap: clamp(14px, 1.6vw, 20px);
  align-content:start;
}
.workflow-frame{
  overflow:hidden;
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  aspect-ratio: 16 / 9;
}
.workflow-frame--thin{
  aspect-ratio: 4 / 5;
}
.workflow-frame img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Mobile layout */
@media (max-width: 900px){
  .roles-layout{ grid-template-columns: 1fr; }
  .roles-media{ min-height: 340px; }
  .roles-frame--big{ inset: 0 0 18% 0; }
  .roles-frame--small{ width: 56%; }
  .workflow-media{ grid-template-columns: 1fr; }
  .workflow-frame--thin{ aspect-ratio: 16 / 9; }
}

