:root{
  --bg-dark:#2B2724;
  --bg-dark-2:#332E2A;
  --bg-cream:#F7F3ED;
  --bg-cream-2:#EEE8DF;
  --terracotta:#BB9676;
  --terracotta-light:#CDAE92;
  --olive:#6B6F4C;
  --text-dark:#1E1E1E;
  --text-light:#F7F3ED;
  --text-muted-on-dark: rgba(247,243,237,0.66);
  --text-muted-on-cream: rgba(30,30,30,0.6);
  --line-on-dark: rgba(247,243,237,0.16);
  --line-on-cream: rgba(30,30,30,0.12);
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;
  --ease: cubic-bezier(.22,.8,.32,1);
  --container: 1240px;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family:'Manrope', -apple-system, sans-serif;
  background: var(--bg-cream);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,svg{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; cursor:pointer; }

h1,h2,h3,h4{
  font-family:'Bodoni Moda', serif;
  font-weight:500;
  line-height:1.08;
  margin:0;
  letter-spacing:-0.01em;
}

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:12.5px;
  font-weight:600;
  letter-spacing:0.14em;
  text-transform:uppercase;
}
.eyebrow::before{
  content:'';
  width:7px;height:7px;
  border-radius:50%;
  background: var(--terracotta);
  flex-shrink:0;
}
.eyebrow.on-dark{ color: var(--terracotta-light); }
.eyebrow.on-cream{ color: var(--terracotta); }

/* ---------- Buttons ---------- */
.btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:16px 30px;
  border-radius: 100px;
  font-size:14px;
  font-weight:600;
  letter-spacing:0.04em;
  text-transform:uppercase;
  border:1px solid transparent;
  overflow:hidden;
  isolation:isolate;
  transition: color .45s var(--ease), border-color .45s var(--ease), transform .25s var(--ease);
  white-space:nowrap;
  background:none;
}
.btn::before{
  content:'';
  position:absolute;
  inset:0;
  z-index:-1;
  transform: translateX(-101%);
  transition: transform .45s var(--ease);
}
.btn:hover::before{ transform: translateX(0); }
.btn:active{ transform: scale(0.97); }

.btn-primary{
  background: var(--terracotta);
  color: #1C1A15;
}
.btn-primary::before{ background: var(--terracotta-light); }

.btn-outline-dark{
  border-color: rgba(243,238,228,0.3);
  color: var(--text-light);
}
.btn-outline-dark::before{ background: rgba(243,238,228,0.1); }

.btn-outline{
  border-color: var(--line-on-cream);
  color: var(--text-dark);
}
.btn-outline::before{ background: rgba(30,30,30,0.05); }

.btn-ghost{
  display:inline-flex;
  align-items:center;
  padding: 10px 0;
  gap:12px;
  color: inherit;
  text-transform:none;
  font-family:'Manrope';
  font-size:13px;
  font-weight:600;
  letter-spacing:0.04em;
  background:none;
  border:none;
}
.btn-ghost .arrow-circle{
  width:34px;height:34px;
  border-radius:50%;
  border:1px solid currentColor;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
  transition: transform .4s var(--ease), background .4s var(--ease);
}
.btn-ghost svg{ transition: transform .4s var(--ease); }
.btn-ghost:hover .arrow-circle{ transform: translateX(4px); }
.btn-ghost.uppercase{ text-transform:uppercase; }

.play-btn{
  display:inline-flex;
  align-items:center;
  gap:12px;
  color: var(--text-light);
  font-size:13px;
  font-weight:600;
  letter-spacing:0.06em;
  text-transform:uppercase;
}
.play-btn .circle{
  width:46px;height:46px;
  border-radius:50%;
  border:1px solid rgba(243,238,228,0.35);
  display:flex;align-items:center;justify-content:center;
  transition: background .35s var(--ease), transform .35s var(--ease);
}
.play-btn:hover .circle{ background: rgba(243,238,228,0.12); transform: scale(1.06); }

/* ---------- Header ---------- */
.site-header{
  position:fixed;
  top:0; left:0; right:0;
  z-index:1000;
  background: rgba(21,19,15,0.88);
  backdrop-filter: blur(14px);
  border-bottom:1px solid transparent;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.site-header.scrolled{ border-color: var(--line-on-dark); }
.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:84px;
}
.logo{ display:flex; align-items:center; color: var(--text-light); text-align:center; }
.logo-text{ display:flex; flex-direction:column; align-items:center; line-height:1; }
.logo-wordmark{ font-family:'Playfair Display',serif; font-weight:500; font-size:28px; line-height:1; white-space:nowrap; }
.logo-wordmark .dot{ color: var(--terracotta); }
.logo-sub{ font-family:'Manrope',sans-serif; font-size:9.5px; font-weight:500; letter-spacing:0.32em; color: var(--text-muted-on-dark); margin-top:4px; }

.main-nav{ display:flex; align-items:center; gap:38px; }
.main-nav a{
  color: var(--text-light);
  font-size:13.5px;
  font-weight:500;
  letter-spacing:0.02em;
  display:flex; align-items:center; gap:6px;
  position:relative;
  padding:6px 0;
}
.main-nav a::after{
  content:'';
  position:absolute; left:0; bottom:0;
  width:0; height:1px;
  background: var(--terracotta-light);
  transition: width .35s var(--ease);
}
.main-nav a:hover::after,
.main-nav a.is-active::after{ width:100%; }
.main-nav a.is-active{ color: var(--terracotta-light); }
.main-nav a svg{ width:9px; opacity:.7; }

.header-right{ display:flex; align-items:center; gap:28px; }
.burger{
  display:none;
  width:42px; height:42px;
  border-radius:50%;
  border:1px solid rgba(243,238,228,0.25);
  background:none;
  align-items:center; justify-content:center;
  flex-direction:column; gap:4px;
}
.burger span{ width:16px; height:1.4px; background: var(--text-light); transition: all .3s var(--ease); }

.mobile-nav-panel{
  display:none;
  position:fixed;
  top:0; left:0; right:0; bottom:0;
  z-index:999;
  background: var(--bg-dark);
  padding-top:84px;
  opacity:0;
  transition: opacity .35s var(--ease);
}
.mobile-nav-panel.is-open{ display:block; opacity:1; }
.mobile-nav-list{
  display:flex;
  flex-direction:column;
  padding:28px 20px 28px;
  gap:2px;
  height:100%;
}
.mobile-nav-list a:not(.btn){
  color: var(--text-light);
  padding:18px 4px;
  font-size:18px;
  font-family:'Manrope', sans-serif;
  font-weight:500;
  border-bottom:1px solid var(--line-on-dark);
}
.mobile-nav-list a.is-active{ color: var(--terracotta-light); }
.mobile-nav-cta{
  margin-top:28px;
  width:100%;
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  font-size:12.5px;
  color: var(--text-muted-on-cream);
  padding: 22px 0 0;
}
.breadcrumbs a{ transition: color .3s; }
.breadcrumbs a:hover{ color: var(--terracotta); }
.breadcrumbs .sep{ opacity:.5; }
.breadcrumbs .current{ color: var(--text-dark); font-weight:600; }

/* ---------- Page hero (Projects listing) ---------- */
.page-hero{ background: var(--bg-cream); padding: 150px 0 0; }
.page-hero-top{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:32px;
  padding: 26px 0 40px;
  flex-wrap:wrap;
}
.page-hero-top h1{ font-size: clamp(32px, 4vw, 46px); margin-bottom:16px; }
.page-hero-copy{ max-width:520px; }
.page-hero-copy p{ font-size:15px; line-height:1.65; color: var(--text-muted-on-cream); margin:0; }

/* ---------- Turnkey row (projects page) ---------- */
.turnkey-row{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:24px;
  margin-top:56px;
  padding-top:36px;
  border-top:1px solid var(--line-on-cream);
}
.turnkey-item{ display:flex; flex-direction:column; gap:12px; }
.turnkey-num{
  font-family:'Bodoni Moda', serif;
  font-size:26px;
  color: var(--terracotta);
  line-height:1;
}
.turnkey-item p{
  font-size:14px;
  line-height:1.6;
  color: var(--text-muted-on-cream);
  margin:0;
}

/* ---------- Projects grid ---------- */
.projects-section{ background: var(--bg-cream); padding: 56px 0 120px; }
.projects-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
}
.project-card{ display:flex; flex-direction:column; }
.project-card .btn-ghost{ margin-top:auto; }
.project-card-media{
  position:relative;
  border-radius: var(--radius-md);
  overflow:hidden;
  aspect-ratio: 4/3.1;
  background: linear-gradient(150deg, #2C2620, #15130F);
  margin-bottom:20px;
}
.project-card-media img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:cover;
  transition: transform .7s var(--ease);
}
.project-card:hover .project-card-media img{ transform: scale(1.05); }
.project-card .eyebrow{ margin-bottom:10px; }
.project-card h3{
  font-family:'Manrope';
  font-size:16px;
  font-weight:700;
  line-height:1.4;
  margin-bottom:14px;
  max-width: 320px;
}
.project-card .btn-ghost .arrow-circle{ width:30px; height:30px; }

.project-card-scope{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin:0 0 16px;
}
.project-card-scope li{
  font-size:11px;
  font-weight:600;
  letter-spacing:0.04em;
  text-transform:uppercase;
  color: var(--text-muted-on-cream);
  border:1px solid var(--line-on-cream);
  border-radius:100px;
  padding:5px 11px;
}

/* ---------- Projects CTA ---------- */
.projects-cta{ background: var(--bg-cream); padding: 0 0 110px; }
.projects-cta-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
  flex-wrap:wrap;
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  padding: 54px 56px;
}
.projects-cta-inner h2{
  color: var(--text-light);
  font-size: clamp(24px, 2.6vw, 32px);
  margin-bottom:12px;
}
.projects-cta-inner p{
  color: var(--text-muted-on-dark);
  font-size:15px;
  line-height:1.6;
  margin:0;
  max-width:460px;
}

/* ---------- Project detail hero ---------- */
.project-hero{ background: var(--bg-cream); padding: 150px 0 0; }
.project-hero-grid{
  display:grid;
  grid-template-columns: 1fr 1.1fr;
  gap:56px;
  align-items:center;
  padding: 26px 0 70px;
}
.project-hero-copy .eyebrow{ margin: 20px 0 18px; }
.project-hero-copy h1{ font-size: clamp(30px, 3.6vw, 44px); margin-bottom:18px; }
.project-hero-copy > p{ font-size:15px; line-height:1.65; color: var(--text-muted-on-cream); max-width:440px; margin:0 0 32px; }

.meta-list{
  display:flex;
  gap:40px;
  flex-wrap:wrap;
  padding: 26px 0;
  border-top:1px solid var(--line-on-cream);
  margin-bottom:30px;
}
.meta-item dt{
  font-size:11.5px;
  font-weight:700;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color: var(--text-muted-on-cream);
  margin-bottom:8px;
}
.meta-item dd{
  margin:0;
  font-size:14.5px;
  font-weight:500;
  max-width:220px;
  line-height:1.5;
}
.project-hero-actions{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; }

.project-hero-media{
  position:relative;
  border-radius: var(--radius-lg);
  overflow:hidden;
  aspect-ratio: 4/3.3;
  background: linear-gradient(150deg, #2C2620, #15130F);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.4);
}
.project-hero-media img{ width:100%; height:100%; object-fit:cover; }

/* ---------- About project (dark) ---------- */
.project-about{ background: var(--bg-dark); padding: 90px 0; }
.project-about-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:60px;
}
.project-about-copy .eyebrow{ margin-bottom:20px; }
.project-about-copy h2{ color: var(--text-light); font-size: clamp(26px,3vw,36px); margin-bottom:20px; }
.project-about-copy p{ color: var(--text-muted-on-dark); font-size:15px; line-height:1.7; max-width:460px; }

.goals-list{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:28px;
}
.goal-item .icon-wrap{
  width:38px; height:38px;
  margin-bottom:18px;
  color: var(--terracotta-light);
}
.goal-item p{
  color: var(--text-light);
  font-size:14px;
  line-height:1.55;
  margin:0;
}

/* ---------- Solution / gallery ---------- */
.project-solution{ background: var(--bg-cream); padding: 90px 0 110px; }
.project-solution-head{ max-width:560px; margin-bottom:44px; }
.project-solution-head .eyebrow{ margin-bottom:18px; }
.project-solution-head h2{ font-size: clamp(26px,3vw,36px); margin-bottom:18px; }
.project-solution-head p{ font-size:15px; line-height:1.65; color: var(--text-muted-on-cream); margin:0; }

.gallery-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:20px;
}
.gallery-item-media{
  border-radius: var(--radius-md);
  overflow:hidden;
  aspect-ratio: 1/1.05;
  background: var(--bg-cream-2);
  margin-bottom:14px;
}
.gallery-item-media img{ width:100%; height:100%; object-fit:cover; }
.gallery-item{ margin:0; }
.gallery-item figcaption{
  font-size:13px;
  line-height:1.5;
  color: var(--text-muted-on-cream);
}

/* ---------- Scope list (project detail) ---------- */
.scope-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 32px;
}
.scope-list li{
  font-size:11.5px;
  font-weight:600;
  letter-spacing:0.05em;
  text-transform:uppercase;
  color: var(--text-dark);
  border:1px solid var(--line-on-cream);
  border-radius:100px;
  padding:7px 14px;
}

.project-next{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:44px 0 0;
  margin-top:50px;
  border-top:1px solid var(--line-on-cream);
  flex-wrap:wrap;
}
.project-next .btn-ghost{ font-size:14px; }

/* ---------- Services (home) ---------- */
.services{
  background: var(--bg-cream);
  border-bottom:1px solid var(--line-on-cream);
}
.services-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
}
.service-card{
  padding:48px 30px 40px;
  border-right:1px solid var(--line-on-cream);
  transition: background .4s var(--ease);
}
.service-card:last-child{ border-right:none; }
.service-card .icon-wrap{
  width:46px; height:46px;
  margin-bottom:28px;
  color: var(--text-dark);
  transition: color .35s var(--ease), transform .35s var(--ease);
}
.service-card:hover .icon-wrap{ color: var(--terracotta); transform: translateY(-3px); }
.service-card h3{
  font-size:16px;
  font-weight:600;
  font-family:'Manrope';
  text-transform:uppercase;
  letter-spacing:0.02em;
  line-height:1.35;
  margin-bottom:14px;
  min-height:42px;
}
.service-card p{
  font-size:13.5px;
  line-height:1.6;
  color: var(--text-muted-on-cream);
  margin:0 0 26px;
  min-height:62px;
}

/* ---------- Hero (home) ---------- */
.hero{
  background:
    radial-gradient(ellipse 800px 500px at 10% 0%, rgba(192,133,82,0.10), transparent 70%),
    var(--bg-dark);
  padding: 148px 0 0;
  position:relative;
  overflow:hidden;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1fr 1.05fr;
  gap:56px;
  align-items:center;
  position:relative;
  z-index:2;
}
.hero-copy{ padding-bottom:64px; max-width:560px; }
.hero-copy .eyebrow{ margin-bottom:22px; }
.hero-copy h1{
  color: var(--text-light);
  font-size: clamp(34px, 4.6vw, 54px);
  margin-bottom:26px;
}
.hero-copy h1 em{ font-style: italic; color: var(--terracotta-light); }
.hero-divider{
  width:46px; height:1px;
  background: var(--line-on-dark);
  margin: 0 0 22px;
}
.hero-copy p{
  color: var(--text-muted-on-dark);
  font-size:16px;
  line-height:1.65;
  max-width:430px;
  margin:0 0 38px;
}
.hero-actions{ display:flex; align-items:center; gap:34px; flex-wrap:wrap; }

.hero-visual{
  position:relative;
  height: 560px;
  border-radius: var(--radius-lg);
  overflow:hidden;
  background:
    radial-gradient(ellipse 90% 70% at 30% 20%, rgba(217,168,120,0.22), transparent 60%),
    linear-gradient(160deg, #2A241C 0%, #181511 60%, #0F0D0A 100%);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6);
}

/* ---------- Hero video ---------- */
.hero-video {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    pointer-events: none;
}
.hero-visual-mobile-img{ display:none; }
.hero-video-play{
  position:absolute;
  inset:0;
  width:100%; height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:16px;
  background: rgba(15,13,10,0.28);
  border:none;
  color: var(--text-light);
  transition: opacity .4s var(--ease), visibility .4s var(--ease);
}
.hero-video-play .circle{
  width:74px; height:74px;
  border-radius:50%;
  border:1px solid rgba(243,238,228,0.5);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(6px);
  display:flex; align-items:center; justify-content:center;
  transition: background .35s var(--ease), transform .35s var(--ease);
}
.hero-video-play:hover .circle{ background: var(--terracotta); transform: scale(1.06); }
.hero-video-play-label{
  font-size:13px;
  font-weight:600;
  letter-spacing:0.06em;
  text-transform:uppercase;
}
.hero-video-play.is-hidden{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}

.hero-tag-card{
  position:absolute;
  top:14%; right:10%;
  background: var(--bg-cream);
  color: var(--text-dark);
  padding:16px 20px;
  border-radius:10px;
  font-size:11px;
  line-height:1.5;
  letter-spacing:0.06em;
  text-transform:uppercase;
  text-align:center;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
  transform: rotate(-3deg);
  animation: cardFloat 6s ease-in-out infinite;
  max-width:150px;
}
@keyframes cardFloat{
  0%,100%{ transform: rotate(-3deg) translateY(0); }
  50%{ transform: rotate(-2deg) translateY(-8px); }
}

/* ---------- Cases (home) ---------- */
.cases{ background: var(--bg-dark); padding:120px 0; }
.cases-head{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:40px;
  align-items:end;
  margin-bottom:56px;
}
.cases-head .eyebrow{ margin-bottom:18px; }
.cases-head h2{ color: var(--text-light); font-size: clamp(28px,3.4vw,40px); }
.cases-head-right{ display:flex; flex-direction:column; align-items:flex-start; gap:18px; }
.cases-head-right p{ color: var(--text-muted-on-dark); font-size:15px; line-height:1.6; max-width:380px; }
.cases-head-right .btn-ghost{ color: var(--text-light); }

.cases-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:24px;
}
.case-card{
  position:relative;
  border-radius: var(--radius-md);
  overflow:hidden;
  aspect-ratio: 4/5;
  background: linear-gradient(150deg, #2C2620, #15130F);
  display:block;
}
.case-card .case-scene{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  transition: transform .6s var(--ease);
}
.case-card:hover .case-scene{ transform: scale(1.06); }
.case-card .case-scene img{ width:100%; height:100%; object-fit:cover; }
.case-card .case-overlay{
  position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 40%, rgba(10,9,7,0.92) 100%);
}
.case-card .case-label{
  position:absolute; left:22px; right:22px; bottom:22px;
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:10px;
}
.case-card .case-label span{
  color: var(--text-light);
  font-size:14.5px;
  font-weight:500;
  line-height:1.4;
  font-family:'Bodoni Moda', serif;
}
.case-card .case-label .arrow-circle{
  width:36px;height:36px;flex-shrink:0;
  border-radius:50%;
  border:1px solid rgba(243,238,228,0.4);
  display:flex;align-items:center;justify-content:center;
  color: var(--text-light);
  transition: background .35s var(--ease), transform .35s var(--ease), border-color .35s var(--ease);
}
.case-card:hover .arrow-circle{ background: var(--terracotta); border-color: var(--terracotta); transform: rotate(45deg); }

/* ---------- Process (home) ---------- */
.process{ background: var(--bg-cream); padding:120px 0; }
.process .eyebrow{ margin-bottom:50px; }
.process-grid{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap:0;
}
.process-step{
  position:relative;
  padding:0 28px 0 0;
}
.process-step:not(:last-child){
  border-right: 1px solid var(--line-on-cream);
  margin-right:28px;
}
.process-step .step-top{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:22px;
}
.process-step .step-num{
  font-family:'Bodoni Moda', serif;
  font-size:34px;
  color: var(--terracotta);
  font-weight:400;
}
.process-step .step-arrow{
  color: var(--text-dark);
  opacity:0.35;
}
.process-step h3{
  font-family:'Manrope';
  font-size:15px;
  font-weight:700;
  line-height:1.35;
  margin-bottom:12px;
}
.process-step p{
  font-size:13.5px;
  line-height:1.6;
  color: var(--text-muted-on-cream);
  margin:0;
}

/* ---------- Trusted by (home) ---------- */
.trusted{ background: var(--bg-dark-2); padding:54px 0; border-top:1px solid var(--line-on-dark); border-bottom:1px solid var(--line-on-dark); }
.trusted .eyebrow{ color: var(--text-muted-on-dark); margin-bottom:30px; justify-content:center; }
.trusted .eyebrow::before{ display:none; }
.logos-marquee{
  overflow:hidden;
  padding:18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.logos-track{
  display:flex;
  width:max-content;
  animation: logosScroll 64s linear infinite;
}
.logos-marquee:hover .logos-track{ animation-play-state: paused; }
@keyframes logosScroll{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}
.logos-group{ display:flex; align-items:center; }
.logo-name{
  margin-right:66px;
  font-size:17px;
  font-weight:700;
  letter-spacing:0.01em;
  color: rgba(247,243,237,0.48);
  white-space:nowrap;
  transition: color .35s var(--ease);
}
/* шахматное смещение — период совпадает с группой, поэтому склейка не видна */
.logos-group .logo-name:nth-child(odd){ transform: translateY(-12px); }
.logos-group .logo-name:nth-child(even){ transform: translateY(12px); }
.logo-name:hover{ color: var(--terracotta-light); }

@media (prefers-reduced-motion: reduce){
  .logos-track{ animation: none; }
}

/* ---------- Footer ---------- */
.site-footer{ background: var(--bg-dark); padding: 80px 0 0; }
.footer-top{
  display:grid;
  grid-template-columns: 1.3fr 0.8fr 1.1fr;
  gap:40px;
  padding-bottom:60px;
  border-bottom:1px solid var(--line-on-dark);
}
.footer-brand .logo{ margin-bottom:18px; }
.footer-brand p{ color: var(--text-muted-on-dark); font-size:13.5px; line-height:1.6; max-width:240px; }
.footer-col h4{
  font-family:'Manrope'; font-size:12px; font-weight:700;
  letter-spacing:0.1em; text-transform:uppercase;
  color: var(--text-muted-on-dark); margin-bottom:20px;
}
.footer-col ul{ display:flex; flex-direction:column; gap:12px; }
.footer-col a{ color: var(--text-light); font-size:14px; transition: color .3s; }
.footer-col a:hover{ color: var(--terracotta-light); }
.footer-col.contacts p, .footer-col.contacts a{ color: var(--text-light); font-size:14px; line-height:1.8; }
.footer-socials{ display:flex; gap:10px; margin-top:22px; }
.footer-socials a{
  width:36px;height:36px;border-radius:50%;
  border:1px solid var(--line-on-dark);
  color: var(--text-light);
  display:flex;align-items:center;justify-content:center;
  transition: background .3s, border-color .3s, color .3s;
}
.footer-socials a:hover{ background: var(--terracotta); border-color: var(--terracotta); color: var(--text-dark); }
.footer-bottom{
  display:flex; align-items:center; justify-content:space-between;
  padding:24px 0;
  color: var(--text-muted-on-dark);
  font-size:12.5px;
}

/* ---------- Feedback section (full width, before footer) ---------- */
.feedback-section{ background: var(--bg-dark-2); padding: 90px 0; }
.feedback-grid{
  display:grid;
  grid-template-columns: 0.8fr 1fr;
  gap:60px;
  align-items:start;
}
.feedback-copy .eyebrow{ margin-bottom:20px; }
.feedback-copy h2{ color: var(--text-light); font-size: clamp(26px,3vw,36px); margin-bottom:18px; }
.feedback-copy p{ color: var(--text-muted-on-dark); font-size:15px; line-height:1.65; max-width:380px; margin:0; }

.feedback-form{ display:flex; flex-direction:column; gap:16px; }
.feedback-form-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
}
.feedback-form input,
.feedback-form textarea{
  width:100%;
  background: rgba(247,243,237,0.06);
  border:1px solid var(--line-on-dark);
  border-radius: var(--radius-sm);
  padding:15px 18px;
  color: var(--text-light);
  font-family:'Manrope';
  font-size:14px;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.feedback-form input::placeholder,
.feedback-form textarea::placeholder{ color: var(--text-muted-on-dark); }
.feedback-form input:focus,
.feedback-form textarea:focus{
  outline:none;
  border-color: var(--terracotta-light);
  background: rgba(247,243,237,0.1);
}
.feedback-form textarea{ resize: vertical; min-height:100px; }
.feedback-form-bottom{ display:flex; align-items:center; gap:22px; flex-wrap:wrap; }
.feedback-form .field-error{
  display:none;
  color:#E3927A;
  font-size:12px;
  margin-top:6px;
}
.feedback-form .field.has-error input,
.feedback-form .field.has-error textarea{ border-color:#E3927A; }
.feedback-form .field.has-error .field-error{ display:block; }
.feedback-note{
  display:none;
  font-size:13px;
  color: var(--terracotta-light);
  margin:0;
}
.hero-video {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center center;
}
.feedback-note.is-visible{ display:block; }

/* ---------- Reveal animations ---------- */
[data-reveal]{
  opacity:0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
[data-reveal].is-visible{ opacity:1; transform:none; }
[data-reveal-stagger] > *{
  opacity:0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal-stagger].is-visible > *{ opacity:1; transform:none; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
  [data-reveal], [data-reveal-stagger] > *{ opacity:1; transform:none; }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1100px){
  .container{ padding:0 24px; }
  .main-nav{ gap:26px; }
  .hero-grid{ grid-template-columns:1fr; }
  .hero-copy{ padding-bottom:0; }
  .hero-visual{ height:440px; }
  .services-grid{ grid-template-columns: repeat(2,1fr); }
  .service-card:nth-child(2n){ border-right:none; }
  .service-card{ border-bottom:1px solid var(--line-on-cream); }
  .cases-grid{ grid-template-columns: repeat(3,1fr); gap:16px; }
  .process-grid{ grid-template-columns: repeat(3,1fr); row-gap:40px; }
  .process-step:nth-child(3){ border-right:none; margin-right:0; }
  .footer-top{ grid-template-columns: 1fr 1fr; row-gap:44px; }
  .feedback-grid{ grid-template-columns: 1fr; gap:36px; }

  .projects-grid{ grid-template-columns: repeat(2, 1fr); }
  .project-hero-grid{ grid-template-columns:1fr; gap:34px; }
  .project-about-grid{ grid-template-columns:1fr; gap:40px; }
  .goals-list{ grid-template-columns: repeat(3,1fr); }
  .turnkey-row{ grid-template-columns: repeat(2,1fr); gap:28px 24px; }
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px){
  .main-nav{ display:none; }
  .burger{ display:flex; }
  .header-right .btn-primary{ display:none; }
  .hero{ padding-top:120px; }
  .hero-grid{ display:block; position:static; }
  .hero-copy{ position:relative; z-index:2; padding-bottom:40px; }
  .hero-copy h1{ font-size: clamp(30px, 7vw, 40px); }
  .hero-actions{ gap:24px; }
  .hero-divider{ display:none; }

  #heroVisual{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    border-radius:0;
    opacity:0.55;
    z-index:0;
    pointer-events:none;
    background:none;
    box-shadow:none;
  }
  .hero-video{ display:none; }
  .hero-visual-mobile-img{
    display:block;
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
  }
  #heroVisual::after{
    content:'';
    position:absolute;
    inset:0;
    background: rgba(8,6,4,0.6);
    z-index:1;
  }
  #heroVisual .scene-stage{
    transform: scale(1.05) translateY(18%);
  }

  #heroVisual .scene-stage svg{
    width:100%;
    height:100%;
    max-width:760px;
  }
  .hero-tag-card{ display:none; }

  .cases-head{ grid-template-columns:1fr; }
  .cases-grid{ grid-template-columns: 1fr 1fr; }
  .cases-grid .case-card:nth-child(3){ grid-column: span 2; aspect-ratio: 16/9; }
  .process-grid{ grid-template-columns: repeat(2,1fr); }
  .process-step:nth-child(2n){ border-right:none; margin-right:0; }
  .process-step{ padding-bottom:24px; }
  .logo-name{ margin-right:44px; font-size:15.5px; }
  .footer-top{ grid-template-columns: 1fr 1fr; row-gap:40px; }
  .footer-col.contacts{ grid-column: span 2; }
  .footer-brand{ grid-column: span 2; }
  .feedback-section{ padding: 70px 0; }

  .page-hero{ padding-top:120px; }
  .turnkey-row{ margin-top:40px; padding-top:28px; gap:24px 20px; }
  .projects-cta{ padding-bottom:80px; }
  .projects-cta-inner{ padding:40px 32px; }
  .page-hero-top{ flex-direction:column; align-items:flex-start; gap:20px; }

  .projects-grid{ grid-template-columns: 1fr 1fr; gap:20px 16px; }
  .project-card h3{ font-size:14.5px; max-width:none; }

  .project-hero{ padding-top:120px; }
  .goals-list{ grid-template-columns: 1fr 1fr; }
  .gallery-grid{ grid-template-columns: repeat(2, 1fr); }
}


@media (max-width: 600px){
  .container{ padding:0 24px; }
  .site-header .container{ height:72px; }
  .logo-wordmark{ font-size:22px; }
  .hero{ padding-top:108px; }
  .hero-copy p{ max-width:none; }
  .hero-actions{ flex-direction:column; align-items:flex-start; gap:20px; }
  .hero-tag-card{ display:none; }
  .services-grid{ grid-template-columns: 1fr; }
  .service-card{ border-right:none !important; padding:36px 0; }
  .service-card h3, .service-card p{ min-height:0; }
  .cases{ padding:80px 0; }
  .cases-grid{ grid-template-columns: 1fr; }
  .cases-grid .case-card{ aspect-ratio: 4/5; }
  .cases-grid .case-card:nth-child(3){ grid-column: auto; aspect-ratio:4/5; }
  .process{ padding:80px 0; }
  .process-grid{ grid-template-columns: 1fr; row-gap:36px; }
  .process-step{ border-right:none !important; margin-right:0 !important; padding-bottom:0; padding-right:0; }
  .process-step .step-arrow{ display:none; }
  .process-step .step-top{ margin-bottom:16px; }
  .logo-name{ margin-right:34px; font-size:14.5px; }
  .logos-group .logo-name:nth-child(odd){ transform: translateY(-8px); }
  .logos-group .logo-name:nth-child(even){ transform: translateY(8px); }
  .footer-top{ grid-template-columns: 1fr; row-gap:36px; padding-bottom:40px; }
  .footer-col.contacts, .footer-brand{ grid-column: span 1; }
  .footer-bottom{ flex-direction:column; gap:14px; align-items:flex-start; padding:20px 0 32px; }

  .feedback-section{ padding: 56px 0; }
  .feedback-form-row{ grid-template-columns: 1fr; gap:16px; }
  .feedback-form-bottom{ flex-direction:column; align-items:stretch; gap:14px; }
  .feedback-form-bottom .btn{ width:100%; }

  .projects-grid{ grid-template-columns: 1fr; gap:28px; }
  .goals-list{ grid-template-columns: 1fr; gap:24px; }
  .turnkey-row{ grid-template-columns: 1fr; gap:20px; }
  .projects-cta-inner{ padding:32px 24px; }
  .projects-cta-inner .btn{ width:100%; }
  .gallery-grid{ grid-template-columns: 1fr 1fr; gap:14px; }
  .meta-list{ gap:22px; }
  .project-hero-actions{ flex-direction:column; align-items:stretch; }
  .project-hero-actions .btn{ width:100%; }
}

/* ---------- Consent checkbox (feedback form) ---------- */
.field-consent{ margin-top:4px; }
.consent-check{
  display:flex;
  align-items:flex-start;
  gap:12px;
  cursor:pointer;
  user-select:none;
}
.consent-check input{
  position:absolute;
  opacity:0;
  width:0; height:0;
}
.consent-box{
  flex-shrink:0;
  width:20px; height:20px;
  margin-top:1px;
  border:1px solid var(--line-on-dark);
  border-radius:4px;
  background: rgba(247,243,237,0.06);
  position:relative;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.consent-box::after{
  content:'';
  position:absolute;
  left:6px; top:2px;
  width:5px; height:10px;
  border:solid #1C1A15;
  border-width:0 1.8px 1.8px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .2s var(--ease);
}
.consent-check input:checked + .consent-box{
  background: var(--terracotta);
  border-color: var(--terracotta);
}
.consent-check input:checked + .consent-box::after{ transform: rotate(45deg) scale(1); }
.consent-check input:focus-visible + .consent-box{ outline:2px solid var(--terracotta-light); outline-offset:2px; }
.consent-text{
  font-size:13px;
  line-height:1.55;
  color: var(--text-muted-on-dark);
}
.consent-link{
  background:none;
  border:none;
  padding:0;
  font: inherit;
  color: var(--terracotta-light);
  text-decoration:underline;
  text-underline-offset:2px;
  cursor:pointer;
}
.consent-link:hover{ color: var(--text-light); }
.field-consent.has-error .consent-box{ border-color:#E3927A; }
.consent-note{
  font-size:12px;
  line-height:1.55;
  color: var(--text-muted-on-dark);
  margin:14px 0 0;
}
.consent-note a{ color: var(--terracotta-light); text-decoration:underline; text-underline-offset:2px; }
.consent-note a:hover{ color: var(--text-light); }

/* ---------- Legal modal ---------- */
.legal-modal{
  position:fixed;
  inset:0;
  z-index:1000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
}
.legal-modal[hidden]{ display:none; }
.legal-modal-backdrop{
  position:absolute;
  inset:0;
  background: rgba(12,10,8,0.72);
  backdrop-filter: blur(3px);
}
.legal-modal-panel{
  position:relative;
  width:100%;
  max-width:720px;
  max-height:86vh;
  display:flex;
  flex-direction:column;
  background: var(--bg-cream);
  border-radius: var(--radius-md);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.6);
  overflow:hidden;
}
.legal-modal-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  padding:28px 32px 18px;
  border-bottom:1px solid var(--line-on-cream);
}
.legal-modal-head h2{ font-size:22px; margin:0; }
.legal-modal-close{
  flex-shrink:0;
  width:34px; height:34px;
  border-radius:50%;
  border:1px solid var(--line-on-cream);
  background:none;
  display:flex; align-items:center; justify-content:center;
  color: var(--text-dark);
  transition: background .25s var(--ease);
}
.legal-modal-close:hover{ background: var(--bg-cream-2); }
.legal-modal-body{
  padding:24px 32px;
  overflow-y:auto;
  flex:1;
}
.legal-modal-foot{
  display:flex;
  align-items:center;
  gap:20px;
  flex-wrap:wrap;
  padding:20px 32px 26px;
  border-top:1px solid var(--line-on-cream);
}

/* ---------- Legal pages ---------- */
.legal-page{ background: var(--bg-cream); padding: 150px 0 110px; }
.legal-head{ max-width:760px; margin: 20px 0 40px; }
.legal-head h1{ font-size: clamp(28px, 3.4vw, 40px); margin-bottom:14px; }
.legal-meta{ font-size:13px; color: var(--text-muted-on-cream); margin:0; }
.legal-body{ max-width:760px; }
.legal-body .legal-lead{
  font-size:15px;
  line-height:1.7;
  padding-bottom:8px;
}
.legal-body h2{
  font-size:19px;
  margin:34px 0 12px;
}
.legal-body h3{
  font-family:'Manrope', sans-serif;
  font-size:15px;
  font-weight:700;
  margin:26px 0 8px;
}
.legal-body p{
  font-size:14.5px;
  line-height:1.7;
  color: var(--text-muted-on-cream);
  margin:0 0 12px;
}
.legal-body ul{
  list-style:disc;
  padding-left:20px;
  margin:0 0 14px;
}
.legal-body li{
  font-size:14.5px;
  line-height:1.7;
  color: var(--text-muted-on-cream);
  margin-bottom:6px;
}
.legal-body strong{ color: var(--text-dark); }
.legal-nav{ margin-top:48px; padding-top:28px; border-top:1px solid var(--line-on-cream); }
.footer-legal{ display:flex; gap:22px; flex-wrap:wrap; }
.footer-legal a{ transition: color .3s; }
.footer-legal a:hover{ color: var(--terracotta-light); }

@media (max-width: 880px){
  .legal-page{ padding: 120px 0 80px; }
  .legal-modal{ padding:16px; }
  .legal-modal-panel{ max-height:90vh; }
  .legal-modal-head{ padding:22px 22px 16px; }
  .legal-modal-body{ padding:20px 22px; }
  .legal-modal-foot{ padding:16px 22px 20px; gap:14px; }
  .legal-modal-foot .btn{ width:100%; }
  .footer-legal{ gap:14px; flex-direction:column; }
}

/* Ловушка для ботов — поле не должно быть видно и доступно с клавиатуры */
.honeypot{
  position:absolute;
  left:-9999px;
  width:1px; height:1px;
  overflow:hidden;
}

/* Пометка «необязательно» у согласия на рассылку */
.consent-optional{
  display:block;
  margin-top:4px;
  font-size:11.5px;
  color: rgba(247,243,237,0.45);
}
