:root{
  --bg:#090a0c;
  --panel:#111318;
  --text:#f2f2ef;
  --muted:#9a9da4;
  --gold:#d7a85b;
  --gold2:#efc879;
  --line:rgba(255,255,255,.12);
  --container:min(92%,1440px);
}

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

html{
  scroll-behavior:smooth;
  width:100%;
  max-width:100%;
  overflow-x:clip;
}

body{
  margin:0;
  width:100%;
  max-width:100%;
  overflow-x:clip;
  background:var(--bg);
  color:var(--text);
  font-family:"Segoe UI",Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}

body,
main,
header,
footer,
section{
  max-width:100%;
}

main{
  width:100%;
  overflow-x:clip;
}

a{
  color:inherit;
  text-decoration:none;
}


/* HEADER */

.header{
  position:fixed;
  inset:0 0 auto 0;
  z-index:50;
  width:100%;
  min-height:82px;
  padding:0 max(4vw,28px);
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:28px;
  overflow:hidden;
  background:
    linear-gradient(
      180deg,
      rgba(2,3,5,.92),
      rgba(2,3,5,.32),
      transparent
    );
}

.brand{
  display:flex;
  flex-direction:column;
  width:max-content;
  max-width:100%;
  white-space:nowrap;
}

.brand-name{
  display:inline-block;
  font-weight:800;
  font-size:22px;
  line-height:1;
  letter-spacing:-.04em;
  color:var(--text);
}

.brand-name>span{
  color:var(--gold);
}

.brand small{
  margin-top:7px;
  color:#8f939a;
  font-size:9px;
  font-weight:500;
  letter-spacing:.34em;
}


/* NAVIGATION */

.nav{
  display:flex;
  gap:38px;
}

.nav a{
  position:relative;
  padding:10px 0;
  font-size:14px;
  color:#ddd;
}

.nav a:after{
  content:"";
  position:absolute;
  left:0;
  right:100%;
  bottom:0;
  height:1px;
  background:var(--gold);
  transition:.25s;
}

.nav a:hover:after,
.nav a.active:after{
  right:0;
}


/* HEADER BUTTON */

.header-btn{
  justify-self:end;
  min-height:46px;
  padding:0 24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  border:1px solid var(--gold2);
  border-radius:999px;
  background:
    linear-gradient(
      135deg,
      var(--gold2),
      var(--gold)
    );
  color:#17120b;
  font-size:13px;
  font-weight:800;
  box-shadow:
    0 8px 24px rgba(215,168,91,.22),
    inset 0 1px 0 rgba(255,255,255,.28);
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    filter .2s ease;
}

.header-btn:hover{
  transform:translateY(-2px);
  filter:brightness(1.06);
  box-shadow:
    0 12px 32px rgba(215,168,91,.34),
    inset 0 1px 0 rgba(255,255,255,.32);
}

.header-btn b{
  color:#17120b;
  font-size:16px;
}


/* HERO */

.hero{
  width:100%;
  min-height:100vh;
  position:relative;
  display:flex;
  align-items:center;
  overflow:hidden;
  isolation:isolate;
}

.hero-image{
  position:absolute;
  inset:0;
  z-index:-3;
  background:
    url("/assets/images/hero-chaos-montage-story.png")
    center/cover
    no-repeat;
  transform:scale(1.015);
}

.hero-overlay{
  position:absolute;
  inset:0;
  z-index:-2;
  background:
    linear-gradient(
      90deg,
      rgba(3,4,6,.97) 0%,
      rgba(3,4,6,.86) 23%,
      rgba(3,4,6,.34) 52%,
      rgba(3,4,6,.10) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0,0,0,.08),
      rgba(0,0,0,.05) 56%,
      rgba(0,0,0,.78)
    );
}

.hero-copy{
  width:var(--container);
  max-width:100%;
  margin:0 auto;
  padding-top:88px;
}

.eyebrow{
  color:#c3c4c7;
  font-size:12px;
  letter-spacing:.42em;
}

.hero h1{
  margin:24px 0 14px;
  max-width:610px;
  font-size:clamp(62px,7.2vw,120px);
  line-height:1;
  letter-spacing:-.065em;
}

.hero h1 span{
  display:inline-block;
  margin-top:.06em;
  color:var(--gold);
}

.hero-copy p{
  margin:28px 0 0;
  color:#c1c3c7;
  font-size:clamp(15px,1.2vw,20px);
}

.hero-actions{
  display:flex;
  gap:14px;
  margin-top:36px;
}


/* BUTTONS */

.btn{
  min-height:52px;
  padding:0 24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:28px;
  border-radius:4px;
  font-size:14px;
  font-weight:700;
  transition:.2s;
}

.btn:hover{
  transform:translateY(-2px);
}

.primary{
  color:#17120b;
  background:
    linear-gradient(
      135deg,
      var(--gold2),
      var(--gold)
    );
}

.ghost{
  border:1px solid rgba(215,168,91,.65);
  background:rgba(4,5,7,.42);
}


/* HERO IDEA */

.hero-idea{
  position:absolute;
  right:5vw;
  bottom:34px;
  display:flex;
  gap:12px;
  align-items:center;
  color:rgba(255,255,255,.72);
  font-size:10px;
  letter-spacing:.28em;
}

.hero-idea i{
  font-style:normal;
  color:var(--gold);
}


/* SECTIONS */

.section{
  width:var(--container);
  max-width:100%;
  margin:0 auto;
  padding:112px 0;
  border-bottom:1px solid var(--line);
}

.section-title{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:28px;
  margin-bottom:42px;
  min-width:0;
}

.section-title>div{
  min-width:0;
}

.section h2,
.contact h2{
  margin:14px 0 0;
  max-width:100%;
  font-size:clamp(32px,4vw,62px);
  line-height:1;
  letter-spacing:-.05em;
  overflow-wrap:anywhere;
}

.more{
  flex:0 0 auto;
  color:var(--gold2);
  font-size:14px;
}


/* WORKS */

.works-grid{
  display:grid;
  grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr);
  gap:16px;
  width:100%;
  max-width:100%;
  min-width:0;
}

.work{
  width:100%;
  max-width:100%;
  min-width:0;
  aspect-ratio:16/10;
  min-height:250px;
  position:relative;
  overflow:hidden;
  isolation:isolate;
  border:1px solid var(--line);
  border-radius:3px;

  background:
    radial-gradient(
      circle at 70% 30%,
      rgba(215,168,91,.22),
      transparent 28%
    ),
    linear-gradient(
      135deg,
      #26180d,
      #101216 58%,
      #060708
    );
}


/* Общий нижний градиент */

.work:after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;

  background:
    linear-gradient(
      180deg,
      transparent 42%,
      rgba(0,0,0,.18) 62%,
      rgba(0,0,0,.76) 100%
    );
}

.placeholder{
  background:
    linear-gradient(
      135deg,
      #181a1e,
      #0c0e11
    );
}


/* НОМЕР КАРТОЧКИ */

.work-top{
  position:absolute;
  z-index:4;
  left:24px;
  top:24px;
  color:var(--gold2);
  font-size:13px;
}


/* НИЖНЯЯ ПЛАШКА */

.work-bottom{
  position:absolute;
  z-index:4;
  left:24px;
  right:24px;
  bottom:24px;
  min-width:0;
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:18px;
}

.work-bottom>div{
  min-width:0;
}


/* ТЕКСТ НИЖНЕЙ ПЛАШКИ */

.work h3{
  margin:0 0 6px;
  max-width:100%;
  color:#fff;
  font-size:22px;
  font-weight:700;
  overflow-wrap:anywhere;
  text-shadow:
    0 2px 10px
    rgba(0,0,0,.75);
}

.work p{
  margin:0;
  max-width:100%;
  color:#c9cbd0;
  font-size:12px;
  font-weight:500;
  text-transform:uppercase;
  letter-spacing:.08em;
  overflow-wrap:anywhere;
  text-shadow:
    0 2px 8px
    rgba(0,0,0,.8);
}


/* PLAY */

.play{
  width:46px;
  height:46px;
  flex:0 0 46px;
  border:1px solid var(--gold);
  border-radius:50%;
  display:grid;
  place-items:center;
  color:#17120b;
  background:
    linear-gradient(
      135deg,
      var(--gold2),
      var(--gold)
    );
  box-shadow:
    0 7px 20px
    rgba(215,168,91,.28);
}


/* PULSE COFFEE */

.work-main{
  cursor:pointer;
  background:
    url("/assets/images/PULSE_COFFEE_COVER_v1.png")
    center/cover
    no-repeat;
  transition:
    transform .28s ease,
    border-color .28s ease,
    box-shadow .28s ease;
}


/* Читаемая копия строки внутри обложки */

.work-main::before{
  content:"Editing · Sound Design · Motion Graphics";
  position:absolute;
  z-index:3;
  left:4%;
  top:49%;
  max-width:88%;
  overflow:hidden;
  text-overflow:ellipsis;
  padding:3px 7px 4px;
  color:#d7ad70;
  background:
    linear-gradient(
      90deg,
      rgba(12,9,7,.82),
      rgba(12,9,7,.58) 78%,
      rgba(12,9,7,0)
    );
  font-size:clamp(8px,.58vw,11px);
  font-weight:500;
  line-height:1;
  letter-spacing:.14em;
  white-space:nowrap;
  text-shadow:
    0 1px 4px rgba(0,0,0,.9);
  box-shadow:
    -5px 0 10px rgba(12,9,7,.68);
  pointer-events:none;
}


/* Затемнение только нижней части */

.work-main:after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:
    linear-gradient(
      180deg,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,0) 52%,
      rgba(0,0,0,.08) 63%,
      rgba(0,0,0,.28) 76%,
      rgba(0,0,0,.76) 100%
    );
}


/* HOVER */

.work-main:hover{
  transform:translateY(-5px);
  border-color:rgba(215,168,91,.55);
  box-shadow:0 20px 50px rgba(0,0,0,.28);
}


/* SERVICES */

.services-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  border-top:1px solid var(--line);
  border-left:1px solid var(--line);
  width:100%;
  max-width:100%;
}

.service{
  min-width:0;
  min-height:210px;
  padding:30px;
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
  transition:.25s;
}

.service:hover{
  background:var(--panel);
  transform:translateY(-3px);
}

.service span{
  color:var(--gold);
  font-size:12px;
}

.service h3{
  margin:48px 0 8px;
  font-size:20px;
  overflow-wrap:anywhere;
}

.service p{
  margin:0;
  color:var(--muted);
}


/* ABOUT */

.about{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);
  gap:80px;
}

.about>div{
  min-width:0;
}

.about>div:first-child p{
  max-width:720px;
  color:#b9bbc0;
  font-size:20px;
  line-height:1.65;
}


/* PROCESS */

.process{
  border-top:1px solid var(--line);
}

.process div{
  display:grid;
  grid-template-columns:48px minmax(0,1fr);
  padding:15px 0;
  border-bottom:1px solid var(--line);
}

.process span{
  color:var(--gold);
  font-size:13px;
}

.process b{
  min-width:0;
  font-size:13px;
  font-weight:500;
  overflow-wrap:anywhere;
}


/* CONTACT */

.contact{
  width:var(--container);
  max-width:100%;
  min-height:52vh;
  margin:0 auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:48px;
  overflow:hidden;
}

.contact>div{
  min-width:0;
}

.contact p{
  color:var(--muted);
  font-size:18px;
}

.contact-links{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:26px;
}

.contact-link{
  min-height:52px;
  padding:0 20px;
  display:inline-flex;
  align-items:center;
  gap:12px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:4px;
  background:rgba(255,255,255,.035);
  color:var(--text);
  font-size:14px;
  font-weight:700;
  transition:
    transform .2s ease,
    border-color .2s ease,
    background .2s ease;
}

.contact-link:hover{
  transform:translateY(-2px);
  border-color:rgba(215,168,91,.60);
  background:rgba(215,168,91,.08);
}

.contact-link span{
  color:var(--gold2);
}

.contact-link strong{
  font-weight:700;
}


/* FOOTER */

.footer{
  width:var(--container);
  max-width:100%;
  min-height:130px;
  margin:0 auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:30px;
  color:var(--muted);
  font-size:12px;
  overflow:hidden;
}

.footer-links{
  display:flex;
  gap:24px;
  flex-wrap:wrap;
}

.footer-links a:hover{
  color:var(--gold2);
}


/* TABLET */

@media(max-width:980px){

  .header{
    grid-template-columns:1fr auto;
  }

  .nav{
    display:none;
  }

  .header-btn{
    display:none;
  }

  .hero-image{
    background-position:58% center;
  }

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

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

  .about{
    grid-template-columns:minmax(0,1fr);
    gap:48px;
  }

}


/* MOBILE */

@media(max-width:640px){

  :root{
    --container:100%;
  }

  html,
  body{
    width:100%;
    max-width:100%;
    overflow-x:clip;
  }

  body{
    position:relative;
  }

  .header{
    width:100%;
    max-width:100%;
    min-height:68px;
    padding:0 16px;
  }

  .brand{
    width:auto;
    max-width:70%;
  }

  .brand-name{
    font-size:18px;
  }

  .hero{
    width:100%;
    max-width:100%;
    min-height:780px;
    align-items:flex-end;
    padding:0 16px 112px;
  }

  .hero-image{
    background-position:61% center;
  }

  .hero-overlay{
    background:
      linear-gradient(
        180deg,
        rgba(0,0,0,.05),
        rgba(0,0,0,.15) 30%,
        rgba(5,6,8,.93) 73%,
        rgba(5,6,8,.99)
      ),
      linear-gradient(
        90deg,
        rgba(0,0,0,.3),
        transparent
      );
  }

  .hero h1{
    max-width:100%;
    font-size:clamp(48px,15vw,72px);
    line-height:1;
    overflow-wrap:anywhere;
  }

  .hero h1 span{
    margin-top:.08em;
  }

  .hero-copy{
    width:100%;
    max-width:100%;
    margin:0;
    padding-top:110px;
  }

  .hero-actions{
    flex-direction:column;
    width:min(100%,320px);
    max-width:100%;
  }

  .hero-idea{
    left:16px;
    right:16px;
    bottom:26px;
    max-width:calc(100% - 32px);
    gap:7px;
    font-size:7px;
    letter-spacing:.14em;
    white-space:nowrap;
    overflow:hidden;
  }


  /* SECTIONS MOBILE */

  .section{
    width:100%;
    max-width:100%;
    margin:0;
    padding:78px 16px;
    overflow:hidden;
  }

  .section-title{
    width:100%;
    max-width:100%;
    align-items:flex-start;
    flex-direction:column;
    gap:22px;
  }

  .section-title>div{
    width:100%;
    max-width:100%;
  }

  .section h2,
  .contact h2{
    width:100%;
    max-width:100%;
    font-size:clamp(30px,10vw,44px);
    line-height:1.02;
    letter-spacing:-.045em;
    overflow-wrap:anywhere;
    word-break:normal;
  }

  .more{
    max-width:100%;
  }


  /* WORKS MOBILE — ЖЁСТКО В ПРЕДЕЛАХ ЭКРАНА */

  .works-grid{
    display:grid;
    grid-template-columns:minmax(0,1fr);
    width:100%;
    max-width:100%;
    min-width:0;
    gap:16px;
    overflow:hidden;
  }

  .work{
    width:100%;
    max-width:100%;
    min-width:0;
    min-height:0;
    aspect-ratio:16/10;
    margin:0;
    overflow:hidden;
    contain:paint;
  }

  .work-main{
    width:100%;
    max-width:100%;
    min-width:0;
    background-size:cover;
    background-position:center;
  }

  .work-top{
    top:16px;
    left:16px;
    right:auto;
    max-width:calc(100% - 32px);
  }

  .work-bottom{
    left:16px;
    right:16px;
    bottom:16px;
    width:auto;
    min-width:0;
    max-width:none;
    gap:10px;
    overflow:hidden;
  }

  .work-bottom>div{
    flex:1 1 auto;
    min-width:0;
    max-width:100%;
    overflow:hidden;
  }

  .work h3{
    max-width:100%;
    margin-bottom:5px;
    font-size:18px;
    line-height:1.08;
    white-space:normal;
    overflow-wrap:anywhere;
  }

  .work p{
    max-width:100%;
    font-size:9px;
    line-height:1.3;
    letter-spacing:.04em;
    white-space:normal;
    overflow-wrap:anywhere;
  }

  .play{
    width:42px;
    height:42px;
    flex:0 0 42px;
  }


  /* Строка Editing / Sound / Motion */

  .work-main::before{
    left:4%;
    top:49%;
    width:auto;
    max-width:88%;
    padding:2px 4px 3px;
    font-size:6px;
    letter-spacing:.05em;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }


  /* SERVICES MOBILE */

  .services-grid{
    grid-template-columns:minmax(0,1fr);
    width:100%;
    max-width:100%;
    overflow:hidden;
  }

  .service{
    width:100%;
    max-width:100%;
    min-width:0;
    min-height:165px;
  }

  .service h3{
    margin-top:34px;
  }


  /* ABOUT */

  .about{
    width:100%;
    max-width:100%;
    min-width:0;
  }

  .about>div:first-child p{
    max-width:100%;
    font-size:17px;
  }


  /* CONTACT */

  .contact{
    width:100%;
    max-width:100%;
    min-height:55vh;
    margin:0;
    padding:72px 16px;
    flex-direction:column;
    justify-content:center;
    align-items:flex-start;
    overflow:hidden;
  }

  .contact-links{
    width:100%;
    flex-direction:column;
  }

  .contact-link{
    width:100%;
    justify-content:space-between;
  }


  /* FOOTER */

  .footer{
    width:100%;
    max-width:100%;
    margin:0;
    padding:42px 16px;
    flex-direction:column;
    align-items:flex-start;
    overflow:hidden;
  }

}
 /* PROJECT 02 — AFTERDARK */

.work-afterdark{
  background:
    url("/assets/projects/afterdark-drop-02/AFTERDARK_DROP02_COVER_16x9_WEB.webp")
    center/cover
    no-repeat;
}


/* На самой обложке уже есть Editing / Sound Design / Motion Graphics,
   поэтому дополнительную строку от PULSE COFFEE здесь убираем. */

.work-afterdark::before{
  display:none;
}


.work-afterdark:hover{
  border-color:rgba(163,107,255,.58);
  box-shadow:
    0 20px 50px rgba(0,0,0,.32),
    0 0 28px rgba(138,99,255,.10);
}
/* =========================================
   FOOTER — VK + MAX
========================================= */

.footer-socials{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
}


.footer-social{
  width:44px;
  height:44px;

  display:flex;
  align-items:center;
  justify-content:center;

  border:1px solid rgba(255,255,255,.12);
  border-radius:12px;

  background:#0d0f12;

  overflow:hidden;

  transition:
    transform .2s ease,
    border-color .2s ease,
    background .2s ease,
    box-shadow .2s ease;
}


.footer-social img{
  display:block;

  width:27px;
  height:27px;

  object-fit:contain;
}


.footer-social:hover{
  transform:translateY(-3px);

  border-color:rgba(215,168,91,.48);

  background:#12151a;

  box-shadow:
    0 8px 24px rgba(0,0,0,.28);
}


.footer-social:focus-visible{
  outline:2px solid #d7a85b;
  outline-offset:3px;
}


/* VK */

.footer-social-vk:hover{
  border-color:rgba(0,119,255,.58);

  box-shadow:
    0 8px 25px rgba(0,119,255,.12);
}


/* MAX */

.footer-social-max:hover{
  border-color:rgba(110,26,255,.65);

  box-shadow:
    0 8px 25px rgba(110,26,255,.14);
}


/* MOBILE */

@media(max-width:640px){

  .footer-socials{
    gap:10px;
  }


  .footer-social{
    width:42px;
    height:42px;
    border-radius:11px;
  }


  .footer-social img{
    width:25px;
    height:25px;
  }

}