/* =========================================================
   WEBDOT — red / black / white. Clean & polished.
   Brand red from logo: #CF0010
   Fonts: Bricolage Grotesque (display) + Hanken Grotesk (text)
   ========================================================= */

:root{
  --bg:        #060607;
  --bg-2:      #0a0a0c;
  --surface:   #100f12;
  --surface-2: #16151a;
  --line:      #242329;
  --line-soft: #1a191e;

  --text:      #ffffff;
  --muted:     rgba(255,255,255,.92);
  --muted-2:   rgba(255,255,255,.74);

  --red:       #cf0010;
  --red-2:     #ff2233;
  --red-soft:  rgba(207,0,16,.12);
  --red-glow:  rgba(207,0,16,.42);

  --font-display:'Bricolage Grotesque', 'Hanken Grotesk', system-ui, sans-serif;
  --font-body:   'Hanken Grotesk', system-ui, -apple-system, sans-serif;

  --r-btn:     11px;
  --radius:    14px;
  --radius-lg: 18px;
  --container: 1180px;

  --shadow:    0 26px 60px -22px rgba(0,0,0,.78);
  --ease:      cubic-bezier(.22,1,.36,1);
}

*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; overflow-x:hidden; }
body{
  font-family:var(--font-body); background:var(--bg); color:var(--text);
  line-height:1.6; font-size:16px; overflow-x:hidden; -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul,ol{ list-style:none; }
button{ font:inherit; cursor:pointer; border:none; background:none; color:inherit; }
:focus-visible{ outline:2px solid var(--red-2); outline-offset:3px; border-radius:6px; }

h1,h2,h3,h4{ font-family:var(--font-display); line-height:1.06; font-weight:700; letter-spacing:-.015em; }
.container{ width:100%; max-width:var(--container); margin-inline:auto; padding-inline:24px; }
.red{ color:var(--red-2); }
.dot{ color:var(--red); }

/* ===== ambient red glow + grid ===== */
.bg-glow{ position:fixed; top:-300px; left:50%; transform:translateX(-50%);
  width:940px; height:700px; z-index:-1; pointer-events:none;
  background:radial-gradient(50% 50% at 50% 50%, var(--red-glow), transparent 70%);
  opacity:.5; filter:blur(22px); animation:breathe 9s ease-in-out infinite; }
@keyframes breathe{ 0%,100%{ opacity:.4; } 50%{ opacity:.62; } }
.bg-grid{ position:fixed; inset:0; z-index:-2; opacity:.5;
  background-image:linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size:64px 64px;
  -webkit-mask-image:radial-gradient(ellipse 70% 55% at 50% 0%, #000 35%, transparent 78%);
          mask-image:radial-gradient(ellipse 70% 55% at 50% 0%, #000 35%, transparent 78%); }

/* ===== scroll progress ===== */
.progress{ position:fixed; top:0; left:0; height:3px; width:0; z-index:200;
  background:linear-gradient(90deg, var(--red), var(--red-2)); box-shadow:0 0 12px var(--red-glow); }

/* =========================================================
   Header
   ========================================================= */
.site-header{ position:fixed; top:0; left:0; right:0; z-index:100; padding:18px 0;
  transition:padding .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease); border-bottom:1px solid transparent; }
.site-header.scrolled{ padding:11px 0; background:rgba(6,6,7,.8);
  backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); border-bottom:1px solid var(--line-soft); }
.header__inner{ display:flex; align-items:center; justify-content:space-between; gap:24px; }
.logo{ display:inline-flex; align-items:center; }
.logo img{ height:32px; width:auto; }

.nav{ display:flex; align-items:center; gap:34px; }
.nav__link{ color:var(--muted); font-size:.95rem; font-weight:500; position:relative; transition:color .2s; }
.nav__link::after{ content:''; position:absolute; left:0; bottom:-6px; width:0; height:2px; background:var(--red); transition:width .25s var(--ease); }
.nav__link:hover{ color:var(--text); }
.nav__link:hover::after{ width:100%; }
.nav__cta{ padding:10px 20px; border-radius:var(--r-btn); font-weight:600; font-size:.92rem; background:var(--red); color:#fff;
  transition:transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; }
.nav__cta:hover{ transform:translateY(-2px); background:var(--red-2); box-shadow:0 10px 26px -8px var(--red-glow); }

.nav-toggle{ display:none; flex-direction:column; gap:5px; padding:8px; }
.nav-toggle span{ width:24px; height:2px; background:var(--text); border-radius:2px; transition:.3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

/* =========================================================
   Buttons
   ========================================================= */
.btn{ display:inline-flex; align-items:center; gap:8px; justify-content:center;
  padding:14px 26px; border-radius:var(--r-btn); font-weight:600; font-size:.98rem; white-space:nowrap;
  transition:transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s, color .2s; }
.btn--primary{ background:var(--red); color:#fff; box-shadow:0 12px 30px -12px var(--red-glow); }
.btn--primary:hover{ transform:translateY(-3px); background:var(--red-2); box-shadow:0 18px 40px -12px var(--red-glow); }
.btn--primary span{ transition:transform .2s var(--ease); }
.btn--primary:hover span{ transform:translateX(4px); }
.btn--ghost{ background:rgba(255,255,255,.03); border:1px solid var(--line); color:var(--text); }
.btn--ghost:hover{ border-color:var(--red); color:#fff; transform:translateY(-3px); }
.btn--block{ width:100%; }
.btn--sm{ padding:10px 18px; font-size:.9rem; }

/* =========================================================
   Hero
   ========================================================= */
.hero{ padding:178px 0 96px; text-align:center; }
.hero__inner{ display:flex; flex-direction:column; align-items:center; }
.badge{ display:inline-flex; align-items:center; gap:9px; padding:8px 16px; border-radius:8px;
  font-size:.82rem; font-weight:600; letter-spacing:.02em; color:var(--muted); background:var(--surface-2); border:1px solid var(--line); }
.badge__dot{ width:7px; height:7px; border-radius:50%; background:var(--red); box-shadow:0 0 10px var(--red); animation:pulse 2s infinite; }
@keyframes pulse{ 0%,100%{ transform:scale(1); opacity:1; } 50%{ transform:scale(1.4); opacity:.65; } }

.hero__title{ font-size:clamp(2.7rem,6.6vw,5.4rem); margin:26px 0 0; max-width:15ch; }
.mark{ position:relative; display:inline-block; white-space:nowrap; }
.mark__line{ position:absolute; left:-1%; top:100%; width:102%; height:.26em; margin-top:-.06em; overflow:visible; pointer-events:none;
  clip-path:inset(-60% 100% -60% 0); animation:reveal .75s var(--ease) .5s forwards; }
.mark__line path{ fill:none; stroke:var(--red); stroke-width:5.5; stroke-linecap:round; stroke-linejoin:round;
  filter:drop-shadow(0 2px 8px var(--red-glow)); }
@keyframes reveal{ to{ clip-path:inset(-60% -8% -60% 0); } }
.hero__sub{ color:var(--muted); font-size:clamp(1.05rem,1.5vw,1.24rem); max-width:60ch; margin:24px 0 0; }
.hero__actions{ display:flex; gap:14px; margin-top:38px; flex-wrap:wrap; justify-content:center; }

.hero__stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-top:64px; width:100%; max-width:740px; }
.hero__stats li{ padding:22px 14px; border-radius:var(--radius); background:var(--surface); border:1px solid var(--line-soft); }
.hero__stats strong{ display:block; font-family:var(--font-display); font-size:clamp(1.8rem,3.4vw,2.6rem); font-weight:700; color:#fff; }
.hero__stats strong::after{ content:''; display:block; width:26px; height:3px; background:var(--red); border-radius:3px; margin:6px auto 0; }
.hero__stats span{ display:block; font-size:.85rem; color:var(--muted); margin-top:11px; }

/* =========================================================
   Sections
   ========================================================= */
.section{ padding:104px 0; position:relative; overflow:hidden; }
.section--alt{ background:var(--bg-2); border-block:1px solid var(--line-soft); }
.section__head{ max-width:680px; margin:0 auto 58px; text-align:center; }
.eyebrow{ display:inline-flex; align-items:center; gap:8px; font-size:.78rem; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--red-2); margin-bottom:16px; }
.eyebrow::before{ content:''; width:18px; height:2px; background:var(--red); }
.section__title{ font-size:clamp(2rem,4.2vw,3.2rem); }
.section__lead{ color:var(--muted); font-size:1.1rem; margin-top:18px; }

/* ===== ambient section glows (subtle life) ===== */
.section > .container{ position:relative; z-index:1; }
.glow{ position:absolute; z-index:0; pointer-events:none; border-radius:50%; filter:blur(70px);
  background:radial-gradient(circle, rgba(207,0,16,.13), transparent 70%); animation:breathe 11s ease-in-out infinite; }
.glow--tr{ width:360px; height:360px; top:2%;  right:-130px; }
.glow--bl{ width:430px; height:430px; bottom:-8%; left:-150px; animation-duration:13s; }
.glow--tl{ width:340px; height:340px; top:6%;  left:-120px; animation-duration:12s; }

/* ===== Service cards ===== */
.cards{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.card{ position:relative; padding:32px 26px; border-radius:var(--radius-lg); background:var(--surface); border:1px solid var(--line-soft);
  transition:transform .3s var(--ease), border-color .3s, background .3s; overflow:hidden; }
.card::after{ content:''; position:absolute; left:0; top:0; height:3px; width:0; background:var(--red); transition:width .35s var(--ease); }
.card:hover{ transform:translateY(-6px); background:var(--surface-2); border-color:var(--line); }
.card:hover::after{ width:100%; }
.card__icon{ width:54px; height:54px; border-radius:13px; display:grid; place-items:center; background:var(--red-soft); border:1px solid rgba(207,0,16,.25); margin-bottom:20px; color:var(--red-2); }
.card__icon svg{ width:27px; height:27px; }
.card h3{ font-size:1.2rem; margin-bottom:10px; }
.card p{ color:var(--muted); font-size:.96rem; }

/* ===== Process ===== */
.steps{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.step{ position:relative; padding:34px 24px 28px; border-radius:var(--radius-lg); background:var(--surface); border:1px solid var(--line-soft);
  transition:transform .3s var(--ease), border-color .3s; }
.step:hover{ transform:translateY(-6px); border-color:var(--red); }
.step__num{ width:46px; height:46px; border-radius:50%; display:grid; place-items:center; font-family:var(--font-display); font-weight:700; font-size:1.2rem; background:var(--red); color:#fff; margin-bottom:18px; box-shadow:0 8px 22px -8px var(--red-glow); }
.step h3{ font-size:1.14rem; margin-bottom:8px; }
.step p{ color:var(--muted); font-size:.94rem; }
.step:not(:last-child)::after{ content:''; position:absolute; top:57px; right:-11px; width:22px; height:2px; background:linear-gradient(90deg,var(--red),transparent); }

/* =========================================================
   Portfolio carousel
   ========================================================= */
.reel{ position:relative; z-index:1; display:flex; flex-direction:column; gap:18px; overflow:hidden; padding:4px 0;
  -webkit-mask-image:linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image:linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.reel__row{ display:flex; gap:18px; width:max-content; will-change:transform; }
.reel__row--ltr{ animation:reel-left 72s linear infinite; }
.reel__row--rtl{ animation:reel-right 66s linear infinite; }
.reel__row:hover{ animation-play-state:paused; }
@keyframes reel-left{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }
@keyframes reel-right{ from{ transform:translateX(-50%); } to{ transform:translateX(0); } }

.reel__card{ position:relative; flex:0 0 auto; width:336px; border-radius:14px; overflow:hidden; display:block;
  border:1px solid var(--line-soft); background:var(--surface);
  transition:transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease); }
.reel__card img{ width:100%; aspect-ratio:16/10; object-fit:cover; object-position:top; display:block; transition:transform .5s var(--ease); }
.reel__card:hover{ transform:translateY(-5px); border-color:var(--red); box-shadow:var(--shadow); }
.reel__card:hover img{ transform:scale(1.06); }
.reel__label{ position:absolute; inset:0; display:flex; align-items:flex-end; padding:14px;
  font-family:var(--font-display); font-weight:600; font-size:.95rem; color:#fff; opacity:0; transition:opacity .3s;
  background:linear-gradient(180deg, rgba(6,6,7,0) 45%, rgba(6,6,7,.85)); }
.reel__label em{ font-style:normal; color:var(--red-2); margin-left:6px; }
.reel__label--icon{ align-items:center; justify-content:center; background:linear-gradient(180deg, rgba(6,6,7,0) 40%, rgba(6,6,7,.55)); }
.reel__label--icon em{ margin:0; font-size:1.8rem; }
.reel__card:hover .reel__label{ opacity:1; }
.carousel-cta{ text-align:center; margin-top:42px; }

@media (max-width:560px){
  .reel{ gap:14px; }
  .reel__card{ width:260px; border-radius:12px; }
  .reel__label{ opacity:1; font-size:.88rem; background:linear-gradient(180deg, rgba(6,6,7,0) 55%, rgba(6,6,7,.8)); }
  .reel__label--icon{ opacity:1; }
}
@media (prefers-reduced-motion:reduce){
  .reel__row--ltr,.reel__row--rtl{ animation:none; }
  .reel{ overflow-x:auto; }
}

/* =========================================================
   Contact
   ========================================================= */
.contact__grid{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; }
.contact__list{ display:flex; flex-direction:column; gap:14px; margin:30px 0 26px; }
.contact__list li{ display:flex; align-items:center; gap:14px; color:#fff; }
.contact__list a{ color:#fff; transition:color .2s; }
.contact__list a:hover{ color:var(--red-2); text-decoration:underline; text-underline-offset:3px; }
.contact__ic{ width:42px; height:42px; border-radius:12px; display:grid; place-items:center; flex-shrink:0; background:var(--red-soft); border:1px solid rgba(207,0,16,.25); color:var(--red-2); }
.contact__ic svg{ width:20px; height:20px; }
.contact__quick{ display:flex; gap:12px; }

.contact__form{ position:relative; padding:34px; border-radius:var(--radius-lg); background:var(--surface); border:1px solid var(--line); box-shadow:var(--shadow); }
.field{ margin-bottom:18px; }
.field label{ display:block; font-size:.88rem; font-weight:500; margin-bottom:7px; color:var(--muted); }
.field .opt{ color:var(--muted-2); font-weight:400; }
.field input,.field textarea{ width:100%; padding:13px 16px; border-radius:11px; background:var(--bg-2); border:1px solid var(--line); color:var(--text);
  font:inherit; font-size:.96rem; transition:border-color .2s, box-shadow .2s; }
.field input::placeholder,.field textarea::placeholder{ color:var(--muted-2); }
.field input:focus,.field textarea:focus{ outline:none; border-color:var(--red); box-shadow:0 0 0 3px var(--red-soft); }
.field textarea{ resize:vertical; min-height:110px; }
.honey{ position:absolute; left:-9999px; opacity:0; }
.form-note{ font-size:.78rem; color:var(--muted-2); margin-top:14px; text-align:center; }
.form-note a{ color:var(--muted); text-decoration:underline; }
.form-status{ display:none; padding:10px 14px; border-radius:11px; font-size:.92rem; margin-bottom:16px; }
.form-status.ok{ display:block; background:rgba(40,180,90,.12); border:1px solid rgba(40,180,90,.4); color:#9be7b4; }
.form-status.err{ display:block; background:var(--red-soft); border:1px solid rgba(207,0,16,.4); color:#ff9aa3; }
.contact__form.sent .field,.contact__form.sent .form-note,.contact__form.sent button{ display:none; }

/* =========================================================
   Footer
   ========================================================= */
.footer{ border-top:1px solid var(--line-soft); padding-top:62px; background:var(--bg-2); }
.footer__inner{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1.4fr; gap:40px; padding-bottom:46px; }
.footer__brand img{ height:30px; margin-bottom:16px; }
.footer__brand p{ color:var(--muted); font-size:.94rem; max-width:32ch; }
.footer__col h4{ font-size:.95rem; margin-bottom:16px; }
.footer__col a{ display:block; color:var(--muted); font-size:.92rem; padding:5px 0; transition:color .2s; }
.footer__col a:hover{ color:var(--text); }
.footer__col button.linklike{ display:block; color:var(--muted); font-size:.92rem; padding:5px 0; transition:color .2s; text-align:left; }
.footer__col button.linklike:hover{ color:var(--text); }
.footer__contact p{ color:var(--muted); font-size:.9rem; margin-bottom:12px; line-height:1.7; }
.footer__bottom{ display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap; padding:24px; border-top:1px solid var(--line-soft); color:var(--muted-2); font-size:.85rem; }
.footer__legal{ display:inline-flex; align-items:center; gap:6px; }
.footer__legal a, .footer__legal button{ color:var(--muted-2); transition:color .2s; font-size:.85rem; }
.footer__legal a:hover, .footer__legal button:hover{ color:#fff; }

/* =========================================================
   Cookie banner
   ========================================================= */
.cookie{ position:fixed; left:24px; right:24px; bottom:24px; z-index:300; max-width:540px; margin-inline:auto;
  background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:24px 26px; box-shadow:var(--shadow);
  transform:translateY(160%); transition:transform .55s var(--ease); }
.cookie.is-open{ transform:none; }
.cookie h4{ font-size:1.08rem; margin-bottom:8px; display:flex; align-items:center; gap:10px; }
.cookie h4 .badge__dot{ position:relative; }
.cookie p{ color:var(--muted); font-size:.92rem; margin-bottom:18px; }
.cookie p a{ color:var(--red-2); text-decoration:underline; }
.cookie__actions{ display:flex; gap:10px; flex-wrap:wrap; }

/* =========================================================
   Legal subpage
   ========================================================= */
.legal{ padding:148px 0 90px; }
.legal__wrap{ max-width:800px; margin-inline:auto; }
.legal__back{ display:inline-flex; align-items:center; gap:8px; color:var(--muted); font-size:.92rem; margin-bottom:26px; transition:color .2s; }
.legal__back:hover{ color:var(--text); }
.legal h1{ font-size:clamp(2.1rem,5vw,3rem); margin-bottom:10px; }
.legal__meta{ color:var(--muted-2); font-size:.9rem; margin-bottom:40px; }
.legal h2{ font-size:1.4rem; margin:42px 0 12px; padding-top:24px; border-top:1px solid var(--line-soft); }
.legal h2:first-of-type{ border-top:0; padding-top:0; }
.legal p{ color:var(--muted); margin:12px 0; }
.legal a{ color:var(--red-2); text-decoration:underline; }
.legal ul{ margin:14px 0; }
.legal li{ color:var(--muted); position:relative; padding-left:22px; margin:9px 0; }
.legal li::before{ content:''; position:absolute; left:2px; top:11px; width:7px; height:7px; border-radius:50%; background:var(--red); }
.legal .card-box{ background:var(--surface); border:1px solid var(--line-soft); border-radius:var(--radius); padding:22px 24px; margin:16px 0; }
.legal .card-box p{ margin:6px 0; color:var(--text); }
.legal table{ width:100%; border-collapse:collapse; margin:18px 0; font-size:.94rem; }
.legal th{ text-align:left; padding:12px 14px; background:var(--surface-2); color:var(--text); border:1px solid var(--line); font-family:var(--font-display); }
.legal td{ padding:12px 14px; border:1px solid var(--line-soft); color:var(--muted); vertical-align:top; }

/* ===== Reveal ===== */
.reveal{ opacity:0; transform:translateY(26px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible{ opacity:1; transform:none; }
.reveal[data-delay="1"]{ transition-delay:.08s; }
.reveal[data-delay="2"]{ transition-delay:.16s; }
.reveal[data-delay="3"]{ transition-delay:.24s; }

/* ===== Responsive ===== */
@media (max-width:1024px){
  .cards{ grid-template-columns:repeat(2,1fr); }
  .steps{ grid-template-columns:repeat(2,1fr); }
  .step:nth-child(2)::after{ display:none; }
  .footer__inner{ grid-template-columns:1fr 1fr; }
}
@media (max-width:820px){
  .nav{ position:fixed; top:0; right:0; height:100dvh; width:min(80vw,320px); flex-direction:column; justify-content:center; gap:26px;
    background:rgba(8,8,10,.97); backdrop-filter:blur(16px); border-left:1px solid var(--line); transform:translateX(100%); transition:transform .4s var(--ease); padding:40px; }
  .nav.is-open{ transform:translateX(0); }
  .nav__link{ font-size:1.2rem; }
  .nav-toggle{ display:flex; z-index:101; }
  .contact__grid{ grid-template-columns:1fr; gap:36px; }
}
@media (max-width:560px){
  .container{ padding-inline:18px; }
  .hero{ padding:128px 0 64px; }
  .hero__title{ margin-top:20px; }
  .hero__sub{ margin-top:18px; }
  .hero__actions{ width:100%; margin-top:30px; }
  .hero__actions .btn{ flex:1 1 auto; }
  .hero__stats{ grid-template-columns:repeat(2,1fr); gap:12px; margin-top:48px; }
  .hero__stats li{ padding:18px 12px; }
  .cards,.steps,.footer__inner{ grid-template-columns:1fr; }
  .step::after{ display:none; }
  .section{ padding:72px 0; }
  .section__head{ margin-bottom:42px; }
  .contact__form{ padding:24px 20px; }
  .contact__quick{ width:100%; }
  .contact__quick .btn{ flex:1 1 auto; }
  .footer{ padding-top:48px; }
  .footer__inner{ text-align:center; }
  .footer__brand img{ margin-left:auto; margin-right:auto; }
  .footer__brand p{ margin-inline:auto; }
  .footer__legal{ justify-content:center; }
  .footer__bottom{ justify-content:center; text-align:center; }
  .cookie{ left:14px; right:14px; bottom:14px; padding:20px; }
  .cookie__actions .btn{ flex:1 1 auto; }
}
@media (max-width:380px){
  .hero__stats{ grid-template-columns:1fr; }
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; }
  html{ scroll-behavior:auto; }
  .reveal{ opacity:1; transform:none; }
}
