/* ==========================================================================
   DinCast — design system
   ========================================================================== */

/* Google Fonts are loaded from <head> (preconnect + async stylesheet swap),
   not via @import here — an @import inside the main stylesheet serializes
   the font CSS behind the stylesheet fetch itself, which was the single
   biggest render-blocking chain on the Lighthouse report. */

:root{
  --bg: #0a0a0a;
  --bg-soft: #0a0a0a;
  --panel: #111111;
  --hero-bg: #111111;
  --line: rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.16);

  --text: #f0ece8;
  --text-dim: #9a948e;

  --accent: #e63012;
  --accent-3: #ff8130;
  --accent-soft: rgba(230,48,18,.14);
  --accent-border: rgba(230,48,18,.5);
  --accent-grad: linear-gradient(135deg, #e63012 0%, #f55a1e 55%, #ff8130 100%);

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 26px;
  --radius-pill: 999px;

  --ease: cubic-bezier(.16,.84,.44,1);
  --font-head: 'Inter', sans-serif;
  --font-body: 'Manrope', sans-serif;
}

/* ---------- reset ---------- */
/* scroll-behavior stays "auto": in-page hash links are animated by our
   own custom-timed scroll in script.js instead, so a native smooth-scroll
   here would just double up and fight the JS animation */
*, *::before, *::after{ box-sizing: border-box; }
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
body{ margin: 0; }
img, video{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
button{ font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,p{ margin: 0; }
/* never leave a lone word on the last line of running text (HTML also joins the last two words with &nbsp; — see scripts/bind-last-words.py) */
p, li, figcaption{ text-wrap: pretty; }
svg{ display: block; }

/* overflow-x:clip has to sit on html too, not just body: the mobile nav
   drawer is position:fixed and translated off-screen (see .nav at 899px),
   and a fixed element escapes a non-root ancestor's overflow clipping —
   only clipping the true scrolling element (html) reliably suppresses the
   horizontal scroll/bounce that caused on mobile browsers. */
html{ overflow-x: clip; }
body{
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  position: relative;
}

.wrap{ position: relative; z-index: 1; }

.container{
  width: min(1360px, 100% - 48px);
  margin-inline: auto;
}
@media (max-width: 640px){
  .container{ width: min(1360px, 100% - 32px); }
}

section{ position: relative; }
main > section + section{ margin-top: 150px; }

/* ---------- typography helpers ---------- */
h2.title{
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(27px, 4vw, 47px);
  line-height: 1;
  letter-spacing: -.05em;
}
.lede{
  font-size: clamp(13px, 1.6vw, 16px);
  color: var(--text-dim);
  max-width: 62ch;
  margin-top: 18px;
}
.section-head{ max-width: 720px; }

/* ---------- buttons ---------- */
.btn{
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .02em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  text-align: center;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
@media (max-width: 420px){
  .btn{ white-space: normal; padding: 14px 22px; }
}
.btn-primary{
  background: var(--accent-grad);
  color: #fff;
  transition: filter .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn-primary:hover{ filter: brightness(1.12); }

.btn-ghost{
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line-strong);
  color: var(--accent-3);
}
.btn-ghost:hover{ border-color: var(--accent); }

.btn-sm{ padding: 11px 22px; font-size: 13px; }

.btn:focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; }

/* header CTA: outlined (2px) instead of filled */
.site-header .btn.btn-primary{
  background: transparent;
  border: 2px solid var(--accent-3);
  color: var(--accent-3);
  padding: 9px 20px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.site-header .btn.btn-primary:hover{ filter: none; background: var(--accent-soft); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 18px 0;
  transition: border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
/* The frosted bar lives on a pseudo-element, never on .site-header itself: backdrop-filter
   (like filter/transform) makes its element the containing block of position:fixed
   descendants, which squashed the mobile nav drawer and scrim into the header's own
   height as soon as the page was scrolled. */
.site-header::before{
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgba(10,10,10,.9);
  backdrop-filter: blur(14px) saturate(140%);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.site-header.is-scrolled::before{ opacity: 1; }
.site-header.is-scrolled{ border-bottom-color: var(--line); }
.site-header .container{ display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo{ display: flex; align-items: center; }
.logo-img{ height: 34px; width: auto; }

.nav{ display: flex; align-items: center; gap: 34px; }
.nav a{
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--text-dim);
  position: relative;
  padding-bottom: 3px;
  transition: color .2s var(--ease);
}
.nav a::after{
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--accent);
  transition: right .25s var(--ease);
}
.nav a:hover{ color: var(--text); }
.nav a:hover::after{ right: 0; }
.nav > a.btn{ display: none; color: #fff; }
.nav > a.btn::after{ content: none; }

@media (min-width: 900px) and (max-width: 1180px){ .nav{ gap: 20px; } .nav a{ white-space: nowrap; font-size: 13px; } }
.header-cta{ display: flex; align-items: center; gap: 18px; }
.header-cta .btn{ display: none; }
@media (min-width: 900px){ .header-cta .btn{ display: inline-flex; } }

.nav-toggle{
  position: relative; z-index: 61; /* stays above the drawer (60) and its scrim (55) while open */
  width: 42px; height: 42px;
  display: none;
  flex-direction: column;
  align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  flex-shrink: 0;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after{
  content: ""; display: block; width: 18px; height: 1.5px; background: var(--text);
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.nav-toggle span{ margin: 4px 0; }
.nav-toggle.is-open span{ opacity: 0; }
.nav-toggle.is-open::before{ transform: translateY(5.5px) rotate(45deg); }
.nav-toggle.is-open::after{ transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 899px){
  .nav{
    position: fixed; inset: 0 0 0 auto;
    width: min(320px, 82vw);
    background: var(--bg-soft);
    border-left: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    overflow-x: hidden;
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    z-index: 60;
  }
  .nav.is-open{ transform: translateX(0); }
  .nav a{ font-size: 20px; }
  .nav > a.btn{ display: inline-flex; margin-top: 12px; width: 100%; white-space: normal; text-align: center; }
  .nav-toggle{ display: inline-flex; }
  .nav-scrim{
    position: fixed; inset: 0; background: rgba(3,2,8,.6); backdrop-filter: blur(2px);
    opacity: 0; pointer-events: none; transition: opacity .3s var(--ease); z-index: 55;
  }
  .nav-scrim.is-open{ opacity: 1; pointer-events: auto; }
}

/* ==========================================================================
   HERO — a full-bleed background picture with the copy centred over it
   ========================================================================== */
.hero{
  /* its own surface, tucked up under the sticky header, closed off by a hairline at the bottom */
  --header-h: 78px;
  position: relative;
  display: flex; align-items: center;
  min-height: clamp(580px, 90vh, 860px);
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + 36px) 0 56px;
  background: var(--hero-bg);
  border: 1px solid var(--line-strong);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  overflow: clip;
}
.hero-bg{ position: absolute; inset: 0; z-index: 0; --p: 0; /* hero scroll progress 0..1, set by script.js */ --par: 160px; }
/* the picture starts --par taller than the hero, hanging above it, and slides down as the page
   scrolls (and grows a touch), so it trails the content; at both ends it still covers the hero */
.hero-bg img{
  position: absolute; left: 0; top: calc(-1 * var(--par)); width: 100%; height: calc(100% + var(--par));
  object-fit: cover; object-position: 58% 40%;
  translate: 0 calc(var(--p) * var(--par));
  scale: calc(1 + var(--p) * .06);
  transform-origin: 50% 35%;
  will-change: translate, scale;
}
@media (max-width: 700px){ .hero-bg{ --par: 90px; } }
/* a soft scrim keeps the copy and the stats readable over the brighter parts of the picture */
.hero-bg::after{
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,.12) 0%, rgba(10,10,10,0) 40%, rgba(10,10,10,.34) 100%);
}
.hero .container{ position: relative; z-index: 1; }
.hero-copy{ max-width: 1200px; margin-inline: auto; text-align: center; }

.hero-copy h1{
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(32px, 4.8vw, 62px);
  line-height: 1.06;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.hero-copy h1 em{
  font-style: normal;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero-copy .lede{ margin: 22px auto 0; color: #cfc9c3; }  /* Ash is too dim over the picture */
.hero-copy .lede strong{ color: var(--text); font-weight: 700; }
.hero-cta{ display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }
@media (max-width: 560px){ .hero{ min-height: 0; } }

/* headline: each line slides up from under a mask, one after another, then the lede, buttons and stats
   rise and fade in (timings and easing follow the reference site). Pure CSS: before the animation
   starts the "from" state is already applied, and without animation (reduced motion, old browsers)
   everything simply shows. */
.hero-copy h1 .line{
  display: block; overflow: hidden;
  padding: 0 .06em .1em; margin: 0 -.06em -.1em;   /* room so the mask doesn't clip glyph edges or the tail of "Ц" */
}
.hero-copy h1 .line__inner{ display: inline-block; }
@keyframes hero-line{ from{ transform: translateY(110%); } to{ transform: translateY(0); } }
@keyframes hero-rise{ from{ opacity: 0; transform: translateY(24px); } to{ opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference){
  .hero-copy h1 .line__inner{ animation: hero-line 1.5s cubic-bezier(.16, 1, .3, 1) calc(.2s + var(--i, 0) * .14s) both; }
  .hero-copy .lede, .hero-cta, .hero .stats-grid{ animation: hero-rise 1.2s cubic-bezier(.16, 1, .3, 1) both; }
  .hero-copy .lede{ animation-delay: .9s; }
  .hero-cta{ animation-delay: 1s; }
  .hero .stats-grid{ animation-delay: 1.1s; }
}
@media (max-width: 360px){ .hero-copy h1{ font-size: 27px; } }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about{ padding: 0; }
.about-grid{ display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 72px; align-items: start; }
@media (max-width: 900px){ .about-grid{ grid-template-columns: 1fr; gap: 40px; } }
.about-side{ display: flex; flex-direction: column; align-items: center; text-align: center; }
/* photo frame: a rounded rectangle with a gradient ring around a panel fill (drop an <img> inside to fill it) */
.about-photo{
  width: 300px; height: 380px; max-width: 100%;
  border-radius: var(--radius-l);
  border: 3px solid transparent;
  background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--accent-grad) border-box;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--text-dim); font-size: 13px;
  overflow: hidden;
}
.about-photo svg{ width: 64px; height: 64px; }
.about-photo img{ width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; border-radius: calc(var(--radius-l) - 3px); }
.about-lead{ margin-top: 22px; font-size: 18px; line-height: 1.5; color: #d9d3cd; max-width: 62ch; }

.about-points{ list-style: none; margin-top: 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 1100px){ .about-points{ grid-template-columns: 1fr; } }
.about-points li{
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  font-family: var(--font-head); font-size: 15px; line-height: 1.25; letter-spacing: .01em;
  color: var(--text);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--panel);
}
@media (max-width: 1100px){ .about-points li{ flex-direction: row; align-items: center; } }
.about-points li b{
  font-family: var(--font-head);
  font-size: 14px; font-weight: 600;
  color: #fff;
  background: var(--accent-grad);
  border-radius: var(--radius-s);
  padding: 5px 9px;
  flex-shrink: 0;
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services{ padding: 0; }
.services-grid{
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
/* 6 cards on 4 columns: the last two share the second row at double width */
.service-card:nth-child(n+5){ grid-column: span 2; }
@media (max-width: 1100px){
  .services-grid{ grid-template-columns: repeat(2, 1fr); }
  .service-card:nth-child(n+5){ grid-column: auto; }
}
@media (max-width: 620px){ .services-grid{ grid-template-columns: 1fr; } }

.service-card{
  min-width: 0;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--panel);
  transition: border-color .3s var(--ease);
}
/* hover ring on the service cards and the article thumbnails only: a 2px Signal Ember 3 outline
   fades in slowly (1.1s) over the 1px hairline instead of the border snapping */
.service-card, .article-thumb{ position: relative; }
.service-card::after, .article-thumb::after{
  content: "";
  position: absolute; inset: -1px;
  border: 2px solid rgba(255,129,48,.8);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
  pointer-events: none;
}
.service-card:hover::after, .article-link:hover .article-thumb::after{ opacity: 1; }
.service-card .num{
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  color: var(--text-dim); letter-spacing: .1em;
}
.service-card h3{
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase;
  font-size: 19px; margin-top: 18px; letter-spacing: .01em; line-height: 1.1;
}
.service-card p{ color: var(--text-dim); font-size: 14.5px; margin-top: 12px; line-height: 1.3; }

/* ==========================================================================
   PORTFOLIO
   ========================================================================== */
.portfolio{ padding: 0; }

.p-item{ min-width: 0; margin: 0; }
.p-item img, .p-item video{
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-m);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}
.p-item figcaption{
  margin-top: 14px;
  font-size: 14px;
  font-weight: 300;
  color: var(--text-dim);
}

/* ---- image carousel ---- */
.portfolio-carousel{ margin-top: 56px; }
.carousel-track{
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar{ display: none; }
.carousel-track{ cursor: grab; }
.carousel-track.is-dragging, .carousel-track.is-scrubbing{ scroll-snap-type: none; }
.carousel-track.is-dragging{ cursor: grabbing; }
.carousel-track.is-dragging .p-item{ cursor: grabbing; }
.carousel-track .p-item img{ user-select: none; -webkit-user-drag: none; }
.carousel-track .p-item:focus-visible{ outline: 2px solid var(--accent); outline-offset: 4px; border-radius: var(--radius-m); }
.carousel-track .p-item{
  flex: 0 0 calc((100% - 60px) / 4);
  scroll-snap-align: start;
  cursor: pointer;
}
@media (max-width: 1100px){ .carousel-track .p-item{ flex-basis: calc((100% - 40px) / 3); } }
@media (max-width: 900px){ .carousel-track .p-item{ flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 560px){ .carousel-track .p-item{ flex-basis: 86%; } }

.carousel-nav{ display: flex; align-items: center; gap: 22px; justify-content: center; margin-top: 32px; }
.carousel-arrow{
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.carousel-arrow:hover{ border-color: var(--accent); color: var(--accent); }

.carousel-progress{
  position: relative;
  flex: 1 1 auto;
  max-width: 220px;
  height: 3px;
  border-radius: var(--radius-pill);
  background: var(--line-strong);
  cursor: pointer;
  touch-action: none;
}
.carousel-progress::before{ content: ""; position: absolute; inset: -12px 0; }
.carousel-progress-fill{
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--accent-grad);
  pointer-events: none;
}

/* ---- video examples, two side by side ---- */
.portfolio-subhead{
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 56px;
}
.portfolio-videos{
  display: flex;
  gap: 20px;
  margin-top: 22px;
}
.portfolio-videos .p-item{ flex: 1 1 0; min-width: 0; }
.portfolio-videos .p-item video{ aspect-ratio: 16 / 9; }
.video-frame{ position: relative; cursor: pointer; }
.video-frame::after{
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: var(--accent-grad);
  transition: opacity .25s var(--ease);
}
.video-frame::before{
  content: "";
  position: absolute; left: 50%; top: 50%; z-index: 1;
  margin: -11px 0 0 -6px;
  border-style: solid; border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #fff;
  transition: opacity .25s var(--ease);
}
.video-frame.is-playing::after, .video-frame.is-playing::before{ opacity: 0; }
.video-fs{
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(0,0,0,.7);
  border: 1px solid var(--line-strong);
  color: var(--text);
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.video-fs:hover{ border-color: var(--accent); color: var(--accent-3); }
.video-fs svg{ width: 18px; height: 18px; }
.video-frame:fullscreen{ background: #000; display: flex; align-items: center; justify-content: center; }
.video-frame:fullscreen video{ width: 100%; height: 100%; max-width: none; aspect-ratio: auto; object-fit: contain; border: 0; border-radius: 0; }
.video-frame:fullscreen .video-fs{ right: 24px; bottom: 24px; }
@media (max-width: 640px){ .portfolio-videos{ flex-direction: column; } }

.portfolio-note{ margin-top: 20px; font-size: 13px; color: var(--text-dim); text-align: center; }
.portfolio-more{ margin-top: 44px; text-align: center; }

/* ==========================================================================
   STATS — lives inside the hero section now, not a standalone block
   ========================================================================== */
.stats-grid{ display: flex; max-width: 640px; margin: 40px auto 0; padding-top: 22px; border-top: 1px solid var(--line-strong); text-align: center; }
.stat{
  flex: 1 1 0;
  min-width: 0;
  padding: 0 20px;
  border-left: 1px solid var(--line-strong);
}
.stat:first-child{ border-left: none; }
.stat b{
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1;
  display: block;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.stat span{
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: #a8a29c;
  text-transform: uppercase;
  letter-spacing: .06em;
}
@media (max-width: 620px){
  .stat{ padding: 0 12px; }
  .stat span{ font-size: 10px; letter-spacing: .03em; }
}

/* ==========================================================================
   ARTICLES
   ========================================================================== */
.articles{ padding: 0; }
.articles-grid{
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1100px){ .articles-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .articles-grid{ grid-template-columns: 1fr; } }

.article-card{ min-width: 0; }
.article-thumb{
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  overflow: hidden;
}
.article-thumb svg{ width: 34px; height: 34px; }
.article-thumb picture{ display: block; width: 100%; height: 100%; }
.article-thumb img{ display: block; width: 100%; height: 100%; object-fit: cover; }
.article-card h3{
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 16px;
  letter-spacing: .01em;
  line-height: 1.1;
  margin-top: 16px;
  color: var(--text);
}
.articles-more{ margin-top: 44px; text-align: center; }

.article-link{ display: block; color: inherit; }
.article-meta{
  margin-top: 16px;
  font-family: var(--font-head);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-3);
}
.article-meta + h3{ margin-top: 8px; }
.article-card.is-soon .article-meta{ color: var(--text-dim); }
.article-card.is-soon h3{ color: var(--text-dim); }
.list-head{ margin: 36px 0 32px; }
.list-head .title{
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -.05em;
}
.article-more{ margin-top: 48px; }
.article-thumb{ transition: border-color .3s var(--ease); }

/* ==========================================================================
   404 PAGE
   ========================================================================== */
.error-page{
  min-height: 60vh; display: flex; align-items: center;
  padding: 80px 0;
}
.error-page .container{ max-width: 620px; }
.error-code{
  font-family: var(--font-head); font-weight: 700; font-size: clamp(64px, 12vw, 120px);
  line-height: 1; letter-spacing: -.04em;
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.error-page h1{
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase;
  font-size: clamp(26px, 4vw, 40px); line-height: 1.1; letter-spacing: -.03em;
  margin-top: 12px;
}
.error-lede{ font-size: 17px; line-height: 1.5; color: var(--text-dim); margin-top: 18px; max-width: 52ch; }
.error-actions{ display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* ==========================================================================
   ARTICLE PAGE (long-form reading: looser line-height than the marketing page)
   ========================================================================== */
.article-page{ padding: 40px 0 0; }
.back-link{
  display: inline-block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color .2s var(--ease);
}
.back-link:hover{ color: var(--text); }
.article{ max-width: 780px; margin-top: 36px; }
.breadcrumbs{
  margin-bottom: 22px;
  font-family: var(--font-head); font-size: 12px; font-weight: 500; letter-spacing: .05em;
  text-transform: uppercase; color: var(--text-dim);
}
.breadcrumbs a{ color: var(--text-dim); transition: color .2s var(--ease); }
.breadcrumbs a:hover{ color: var(--text); }
.breadcrumbs span[aria-current]{ color: var(--text); }
.article-kicker{
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent-3);
}
.article-head h1{
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1;
  letter-spacing: -.04em;
  margin-top: 16px;
}
.article-lede{ font-size: 19px; line-height: 1.5; color: var(--text); margin-top: 24px; }
.article-body{ margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line-strong); }
.article-body p, .article-body li{ font-size: 17px; line-height: 1.65; color: #cfc9c3; }
.article-body p{ margin-top: 18px; }
.article-body h2{
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.05;
  letter-spacing: -.03em;
  margin-top: 52px;
}
.article-body h2 + p{ margin-top: 16px; }
.article-body h3{
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--text);
  margin-top: 34px;
}
.article-body h3 + p, .article-body h3 + ul{ margin-top: 12px; }
.article-body ul{ margin-top: 16px; display: grid; gap: 10px; }
.article-body li{ position: relative; padding-left: 28px; }
.article-body li::before{ content: "＋"; position: absolute; left: 0; color: var(--accent); font-family: var(--font-head); }
.article-body strong{ color: var(--text); font-weight: 700; }
.article-table-wrap{ margin-top: 20px; overflow-x: auto; border: 1px solid var(--line-strong); border-radius: var(--radius-m); }
.article-table{ width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.article-table th, .article-table td{ text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.article-table tbody tr:last-child td{ border-bottom: 0; }
.article-table th{
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--panel);
}
.article-table td{ color: #cfc9c3; }
.article-table td:first-child{ color: var(--text); font-weight: 600; }
.article-body ol.article-steps{ counter-reset: step; list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.article-body ol.article-steps li{ counter-increment: step; padding-left: 40px; }
.article-body ol.article-steps li::before{
  content: counter(step);
  position: absolute; left: 0; top: 2px;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-s);
  font-family: var(--font-head); font-size: 13px; font-weight: 600; color: var(--text);
}
/* bullet list nested inside a numbered step: plain ＋ markers, no step counter chips */
.article-body ol.article-steps li ul{ margin-top: 12px; }
.article-body ol.article-steps li ul li{ counter-increment: none; padding-left: 28px; }
.article-body ol.article-steps li ul li::before{
  content: "＋"; top: 0; width: auto; height: auto; display: inline;
  border: 0; border-radius: 0; font-size: inherit; font-weight: 400; color: var(--accent);
}
/* screenshot inside a step: the site's 16px content-card radius, with a 2px outline (heavier than the usual hairline, by request) */
.article-figure{ margin: 18px 0 0; }
.article-figure img{
  display: block; width: 100%; height: auto;
  border-radius: var(--radius-m);
  border: 2px solid var(--line-strong);
}
.article-jump{ margin-top: 20px; font-size: 15px; color: var(--text-dim); }
.article-jump a{ color: var(--accent-3); border-bottom: 1px solid rgba(255,129,48,.4); transition: border-color .2s var(--ease); }
.article-jump a:hover{ border-bottom-color: var(--accent-3); }
.article-body a.article-inline{ color: var(--accent-3); border-bottom: 1px solid rgba(255,129,48,.4); }
.article-body a.article-inline:hover{ border-bottom-color: var(--accent-3); }
.article-related{ margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line-strong); }
.article-related h2{
  font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-dim);
}
.article-related ul{ margin-top: 16px; display: grid; gap: 10px; }
.article-related a{ font-size: 17px; line-height: 1.35; color: var(--text); border-bottom: 1px solid var(--line-strong); transition: border-color .2s var(--ease), color .2s var(--ease); }
.article-related a:hover{ border-color: var(--accent-3); color: var(--accent-3); }
.article-body p.article-note{ font-size: 14px; color: var(--text-dim); }
/* "Популярное" sidebar: beside the article on wide screens and sticky while it scrolls; under the article on narrow ones */
.article-layout{ display: block; }
.article-popular{
  margin-top: 56px; max-width: 780px;
  padding: 22px 22px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--panel);
}
.article-popular h2{
  font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-dim);
}
.article-popular ul{ margin-top: 4px; }
.article-popular li + li{ border-top: 1px solid var(--line); }
.article-popular a{ display: block; padding: 16px 0; }
.pop-title{
  display: block;
  font-family: var(--font-head); font-weight: 600; font-size: 14px; line-height: 1.25; letter-spacing: .01em;
  text-transform: uppercase; color: var(--text); overflow-wrap: break-word;
  transition: color .2s var(--ease);
}
.article-popular a:hover .pop-title{ color: var(--accent-3); }
@media (min-width: 1180px){
  .article-layout{
    display: grid; grid-template-columns: minmax(0, 780px) 320px;
    column-gap: clamp(48px, 5vw, 88px); align-items: start;
  }
  .article-popular{ margin-top: 36px; position: sticky; top: 104px; max-width: none; }
}
.article-cta{
  margin-top: 64px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  background: var(--panel);
}
.article-cta h2{
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
  letter-spacing: -.04em;
}
.article-cta p{ font-size: 16px; line-height: 1.5; color: var(--text-dim); margin-top: 14px; max-width: 56ch; }

/* ==========================================================================
   PRICING
   ========================================================================== */
.pricing{ padding: 0; }
.pricing-grid{
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 900px){ .pricing-grid{ grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

.plan{
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 34px 28px 30px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan.is-popular{
  border-color: var(--accent-border);
  background: var(--panel);
}
@media (max-width: 900px){ .plan.is-popular{ transform: none; } }
.plan .badge{
  position: absolute; top: -13px; right: 28px;
  font-family: var(--font-head); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  background: var(--accent-grad); color: #fff; padding: 6px 14px; border-radius: var(--radius-pill);
}
.plan .plan-name{ margin-top: 14px; font-family: var(--font-head); font-weight: 600; text-transform: uppercase; font-size: 20px; letter-spacing: .02em; line-height: 1.1; }
.plan .plan-price{ font-family: var(--font-head); font-weight: 700; font-size: 44px; margin-top: 14px; display: flex; align-items: baseline; gap: 8px; }
.plan .plan-price span{
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.plan .plan-price small{ font-family: var(--font-body); font-weight: 600; font-size: 15px; color: var(--text-dim); }

/* rank meta: shuriken rating, one per plan tier, above the plan name */
.plan-stars{ display: flex; gap: 9px; }
.p-star{ width: 24px; height: 24px; color: var(--text-dim); opacity: .32; }
.p-star.is-lit{ color: var(--accent-3); opacity: 1; }
.plan ul{ margin-top: 24px; display: grid; gap: 12px; align-content: start; flex-grow: 1; }
.plan li{ display: flex; gap: 10px; font-size: 14.5px; color: var(--text-dim); align-items: flex-start; }
.plan li::before{ content: "＋"; color: var(--accent); font-family: var(--font-head); flex-shrink: 0; }
.plan .btn{ margin-top: 28px; width: 100%; }

.services-links{
  margin-top: 40px;
  color: var(--text-dim);
  font-size: 14px;
  text-align: center;
}
.services-links a{ color: var(--text-dim); border-bottom: 1px solid var(--line-strong); transition: color .2s var(--ease), border-color .2s var(--ease); }
.services-links a:hover{ color: var(--text); border-color: var(--text); }
.pricing-foot{
  margin-top: 26px;
  color: var(--text-dim);
  font-size: 14px;
  text-align: center;
  max-width: 60ch;
  margin-inline: auto;
}
.pricing-foot a{ color: var(--accent-3); border-bottom: 1px solid rgba(255,129,48,.4); transition: border-color .2s var(--ease); }
.pricing-foot a:hover{ border-color: var(--accent-3); }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonials{ padding: 0; }
.t-grid{
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
/* 5 reviews + the CTA tile on 4 columns: row two is one review and the CTA, both double width */
.t-card:nth-child(5), .t-card.t-cta{ grid-column: span 2; }
.btn-icon svg{ width: 18px; height: 18px; flex-shrink: 0; }
@media (max-width: 1100px){
  .t-grid{ grid-template-columns: repeat(2, 1fr); }
  .t-card:nth-child(5), .t-card.t-cta{ grid-column: auto; }
}
@media (max-width: 900px){ .t-grid{ grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

.t-card{
  min-width: 0;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--panel);
}
.t-card .who{ display: flex; align-items: center; gap: 12px; }
.t-card .who img{ width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-strong); }
.t-card .who b{ font-family: var(--font-head); font-size: 14px; font-weight: 600; display: block; }
.t-card .who span{ font-size: 12px; color: var(--text-dim); }
.t-card .quote{ color: var(--text-dim); font-size: 14.5px; line-height: 1.3; margin-top: 18px; }

.t-card.t-cta{ display: flex; align-items: center; justify-content: center; text-align: center; background: transparent; border: 1px solid var(--line-strong); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq{ padding: 0; }
.faq-list{ margin-top: 48px; max-width: 840px; }
.faq-item{ border-bottom: 1px solid var(--line); }
.faq-item:first-child{ border-top: 1px solid var(--line); }
.faq-q{
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 4px;
  font-family: var(--font-head); font-size: 17px; text-align: left;
  text-transform: uppercase; letter-spacing: .01em; line-height: 1.1;
}
.faq-q .plus{
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  position: relative;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.faq-q .plus::before, .faq-q .plus::after{
  content: ""; position: absolute; background: var(--text);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.faq-q .plus::before{ width: 11px; height: 1.4px; }
.faq-q .plus::after{ width: 1.4px; height: 11px; transition: opacity .25s var(--ease); }
.faq-item.is-open .faq-q .plus{ transform: rotate(180deg); }
.faq-item.is-open .faq-q .plus::after{ opacity: 0; }

.faq-a{ display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq-a > div{ overflow: hidden; }
.faq-item.is-open .faq-a{ grid-template-rows: 1fr; }
.faq-a p{ color: var(--text-dim); font-size: 15px; line-height: 1.3; padding: 0 4px 26px; max-width: 68ch; white-space: pre-line; }

/* ==========================================================================
   CONTACT / CTA
   ========================================================================== */
.contact{ padding: 0; }
.contact-panel{
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: clamp(36px, 6vw, 72px);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 860px){ .contact-panel{ grid-template-columns: 1fr; } }
.contact-copy .lede{ margin-top: 16px; color: #cfc9c3; }
.contact-copy .lede + .lede{ margin-top: 12px; }
.contact-cta{ display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.contact-direct{ display: grid; gap: 14px; }
.contact-direct a{
  display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 14px; align-items: center;
  padding: 16px 20px;
  border: 1px solid rgba(255,129,48,.6);
  border-radius: var(--radius-m);
  color: var(--accent-3);
  font-family: var(--font-head); font-size: 15px; letter-spacing: .01em;
  transition: border-color .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.contact-direct a:hover{ border-color: var(--accent-3); background: var(--accent-soft); }
/* the questionnaire is a secondary action: white-grey, not orange */
.contact-direct a.is-neutral{ border-color: rgba(255,255,255,.3); color: #e4dfd9; }
.contact-direct a.is-neutral:hover{ border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.05); }
.contact-direct .sub-note{ margin-top: 4px; font-size: 11.5px; color: var(--text-dim); }
.contact-direct svg{ width: 20px; height: 20px; grid-column: 1; grid-row: 1 / span 3; }
.contact-direct .sub{ display: block; font-family: var(--font-body); font-weight: 400; font-size: 12px; color: #cfc9c3; margin-top: 2px; }

/* ==========================================================================
   BRAND OUTRO — giant faint wordmark between About and the footer
   ========================================================================== */
.brand-outro{
  /* Zero-height: it never adds its own spacing, so About-to-footer stays the
     standard 150px gap. The wordmark is positioned out of flow inside it. */
  position: relative; height: 0; overflow: visible;
  --size: clamp(106px, 18.7vw, 330px);
  --p: 0; /* scroll progress 0..1 through this block, set by script.js */
}
.brand-outro-text{
  position: absolute; left: 50%; top: calc(150px - var(--size) * .48); z-index: -1;
  font-family: var(--font-head); font-weight: 800; font-size: var(--size);
  line-height: .78; letter-spacing: -.02em; white-space: nowrap;
  color: rgba(240,236,232,.05); pointer-events: auto; cursor: default;
  /* Starts mostly tucked behind the footer, rises clear of it as you scroll
     past — the reveal is sized to the wordmark itself so it reads the same
     at every breakpoint (settles at ~10% still covered). The translate
     transition lags the raw scroll value, easing the rise instead of
     tracking the scrollbar 1:1. */
  translate: -50% calc(var(--p) * var(--size) * -.22);
  transition: translate .6s var(--ease), color .6s ease;
  will-change: translate;
}
.brand-outro-text:hover{ color: rgba(240,236,232,.09); }
@media (prefers-reduced-motion: reduce){ .brand-outro-text{ translate: -50% calc(var(--size) * -.22); } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer{ position: relative; z-index: 1; background: var(--bg); margin-top: 150px; padding: 40px 0 50px; border-top: 1px solid var(--line); }
.site-footer .container{
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.site-footer .container{ gap: 28px; }
.footer-brand{ display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer-nav{ display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-nav a{
  font-family: var(--font-head); font-size: 13px; font-weight: 500; letter-spacing: .03em;
  text-transform: uppercase; color: var(--text-dim);
  transition: color .2s var(--ease);
}
.footer-nav a:hover{ color: var(--text); }
.footer-copy{ font-size: 13px; color: var(--text-dim); }
.footer-copy a{ color: var(--text-dim); border-bottom: 1px solid var(--line-strong); }
.footer-legal{ font-size: 12px; color: var(--text-dim); }
.footer-legal a{ color: var(--text-dim); border-bottom: 1px solid var(--line-strong); transition: color .2s var(--ease), border-color .2s var(--ease); }
.footer-legal a:hover{ color: var(--text); border-color: var(--text); }
.footer-links{ display: grid; gap: 14px; justify-items: end; }
.footer-about{ font-size: 13px; color: var(--text-dim); max-width: 46ch; text-align: right; }
.footer-services{ font-size: 12px; color: var(--text-dim); text-align: right; }
.footer-services a{ color: var(--text-dim); border-bottom: 1px solid var(--line-strong); transition: color .2s var(--ease), border-color .2s var(--ease); }
.footer-services a:hover{ color: var(--text); border-color: var(--text); }
@media (max-width: 720px){ .footer-services{ text-align: left; } }
.footer-social{ display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.footer-social a{
  display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 18px 0 12px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong);
  font-size: 13px;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.footer-social a:hover{ border-color: var(--accent); color: var(--accent-3); }
.footer-social svg{ width: 17px; height: 17px; flex-shrink: 0; }
@media (max-width: 720px){
  .footer-links{ justify-items: start; }
  .footer-about{ text-align: left; }
  .footer-social{ justify-content: flex-start; }
}

/* ==========================================================================
   REVEAL ON SCROLL — whole sections fade up together, matching the
   original site's per-section reveal (progressive enhancement: content
   stays visible by default if JS never runs).
   ========================================================================== */
[data-reveal]{
  opacity: 1;
  transform: none;
}
.js-ready [data-reveal]{
  opacity: 0;
  transform: translate3d(0, 50px, 0);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.js-ready [data-reveal].is-visible{
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   WORK MODAL (native <dialog>: focus trap + Esc come for free)
   ========================================================================== */
.modal-open{ overflow: hidden; }
.work-modal{
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  background: var(--panel);
  color: var(--text);
  /* sized from the viewport height (a 4:5 picture column plus a fixed 320px text column); taller
     presentations scroll inside the picture column */
  width: min(calc((100vh - 34px) * .8 + 320px), 1000px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 32px);
  overflow: hidden;
}
.work-modal::backdrop{ background: rgba(0,0,0,.82); }
.work-modal[open]{ animation: modal-in .3s var(--ease); }
@keyframes modal-in{ from{ opacity: 0; transform: translateY(12px); } to{ opacity: 1; transform: none; } }
.work-modal-body{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: stretch;
  max-height: calc(100vh - 32px);
}
/* the picture column scrolls on its own: the presentations are taller than the window, so they
   are shown at the full column width and can be scrolled, while the text card stays put */
.work-modal-media{
  max-height: calc(100vh - 34px);
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg);
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.work-modal-media:focus-visible{ outline: 2px solid var(--accent); outline-offset: -2px; }
.work-modal-img{ display: block; width: 100%; height: auto; }
.work-modal-text{ padding: 20px; display: flex; flex-direction: column; justify-content: center; }
.work-modal-card{
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: var(--bg);
  min-width: 0;
}
.work-modal-pkg{
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.work-modal-card h3{
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.15;
  letter-spacing: -.01em;
  overflow-wrap: break-word;
}
.work-modal-desc{ font-size: 13.5px; line-height: 1.5; color: #cfc9c3; overflow-wrap: break-word; }
.work-modal-cta{ margin-top: 8px; white-space: normal; }
.work-modal-close{
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(0,0,0,.6);
  border: 1px solid var(--line-strong);
  color: var(--text);
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.work-modal-close:hover{ border-color: var(--accent); color: var(--accent-3); }
.work-modal-close svg{ width: 18px; height: 18px; }
@media (max-width: 820px){
  .work-modal{ width: calc(100vw - 32px); overflow-y: auto; }
  .work-modal-body{ grid-template-columns: 1fr; max-height: none; }
  .work-modal-media{ max-height: none; overflow: visible; }
}

/* ==========================================================================
   BACK TO TOP
   ========================================================================== */
.to-top{
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(17,17,17,.88);
  border: 1px solid var(--line-strong);
  color: var(--text);
  opacity: 0; visibility: hidden; translate: 0 14px;
  transition: opacity .35s var(--ease), translate .35s var(--ease), visibility 0s .35s, border-color .25s var(--ease), color .25s var(--ease);
}
.to-top.is-visible{ opacity: 1; visibility: visible; translate: 0 0; transition-delay: 0s; }
.to-top:hover{ border-color: var(--accent-3); color: var(--accent-3); }
.to-top svg{ width: 18px; height: 18px; }
@media (max-width: 640px){ .to-top{ right: 14px; bottom: 14px; } }

/* Article category filter */
.filter-chips{ display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip{
  font: inherit; font-size: 14px; font-weight: 500; color: var(--text-dim);
  background: transparent; border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 9px 18px; cursor: pointer;
  transition: color .2s, border-color .2s, background-color .2s;
}
.chip:hover{ color: var(--text); border-color: var(--accent-3); }
.chip.is-active{ color: #fff; background: var(--accent-grad); border-color: transparent; }
.chip:focus-visible{ outline: 2px solid var(--accent-3); outline-offset: 2px; }
.article-card[hidden]{ display: none; }

/* ==========================================================================
   COOKIE NOTICE
   ========================================================================== */
.cookie-notice{
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70;
  max-width: 560px; margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  padding: 16px 20px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
  transform: translateY(140%);
  transition: transform .4s var(--ease);
}
.cookie-notice.is-visible{ transform: translateY(0); }
.cookie-notice p{ flex: 1 1 240px; font-size: 13px; line-height: 1.5; color: var(--text-dim); margin: 0; }
.cookie-notice a{ color: var(--text-dim); border-bottom: 1px solid var(--line-strong); }
.cookie-notice a:hover{ color: var(--text); }
.cookie-notice button{ flex-shrink: 0; }
@media (prefers-reduced-motion: reduce){ .cookie-notice{ transition: none; } }

/* ==========================================================================
   PACKAGE CALCULATOR
   ========================================================================== */
.calc-tool{ padding: 0; }
.calc-grid{
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}
@media (max-width: 980px){
  .calc-grid{ grid-template-columns: 1fr; gap: 40px; }
}

.calc-section-label{
  font-family: var(--font-head); font-weight: 600; font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-dim);
  margin-top: 40px;
}
.calc-items > .calc-section-label:first-child{ margin-top: 0; }

.calc-item{ border-bottom: 1px solid var(--line); }
.calc-items > .calc-item:first-of-type{ border-top: 1px solid var(--line); }

.calc-row{
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 20px 2px;
}
.calc-row-sub{ padding: 2px 2px 20px 56px; }
.calc-row-label{
  font-family: var(--font-body); font-weight: 500; font-size: 15px; color: var(--text);
  min-width: 0;
}
.calc-row-price{
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  color: var(--text-dim); flex-shrink: 0; white-space: nowrap;
  transition: color .2s var(--ease);
}
.calc-row.is-checked .calc-row-price{ color: var(--text); }

/* toggle switch */
.calc-toggle{ display: flex; align-items: center; gap: 16px; cursor: pointer; min-width: 0; }
.calc-toggle input{ position: absolute; width: 1px; height: 1px; opacity: 0; }
.calc-switch{
  position: relative; flex-shrink: 0;
  width: 40px; height: 24px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.02);
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.calc-switch::before{
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--text-dim);
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.calc-toggle input:checked + .calc-switch{ background: var(--accent-grad); border-color: transparent; }
.calc-toggle input:checked + .calc-switch::before{ transform: translateX(16px); background: #fff; }
.calc-toggle input:focus-visible + .calc-switch{ outline: 2px solid var(--accent); outline-offset: 3px; }
.calc-toggle input:disabled + .calc-switch{ opacity: .4; }
.calc-toggle:has(input:disabled){ cursor: not-allowed; }
.calc-switch-sm{ width: 34px; height: 20px; }
.calc-switch-sm::before{ width: 14px; height: 14px; }
.calc-toggle input:checked + .calc-switch-sm::before{ transform: translateX(14px); }
.calc-toggle-sm .calc-row-label{ font-size: 14px; color: var(--text-dim); }

/* expand/collapse for the animate sub-option */
.calc-sub{ display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.calc-sub-inner{ overflow: hidden; }
.calc-item.is-open .calc-sub{ grid-template-rows: 1fr; }

/* quantity stepper (buttons) */
.calc-row-stepper{ flex-wrap: wrap; }
.calc-row-info{ display: flex; flex-direction: column; gap: 4px; }
.calc-row-note{ font-size: 13px; color: var(--text-dim); }
.calc-stepper{ display: flex; align-items: center; gap: 14px; }
.calc-step-btn{
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 18px; line-height: 1; color: var(--text);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.calc-step-btn:hover:not(:disabled){ border-color: var(--accent); color: var(--accent-3); }
.calc-step-btn:disabled{ opacity: .35; cursor: not-allowed; }
.calc-step-value{ font-family: var(--font-head); font-weight: 600; font-size: 16px; min-width: 22px; text-align: center; }

/* summary panel */
.calc-summary{
  position: sticky; top: 96px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  padding: clamp(24px, 3vw, 32px);
}
@media (max-width: 980px){ .calc-summary{ position: static; } }
.calc-summary h2{
  font-family: var(--font-head); font-weight: 600; text-transform: uppercase;
  font-size: 19px; letter-spacing: .01em;
}
.calc-summary-list{ margin-top: 20px; display: grid; gap: 10px; max-height: 320px; overflow-y: auto; }
.calc-summary-list li{ display: flex; justify-content: space-between; gap: 12px; font-size: 14px; line-height: 1.35; color: var(--text-dim); }
.calc-summary-list li span:first-child{ color: var(--text); }
.calc-summary-list li span:last-child{ flex-shrink: 0; font-family: var(--font-head); font-weight: 600; white-space: nowrap; }
.calc-summary-empty{ font-style: normal; }

.calc-total{
  margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-strong);
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.calc-total-label{
  font-family: var(--font-head); font-weight: 600; font-size: 13px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--text-dim);
}
.calc-total-value{ font-family: var(--font-head); font-weight: 700; font-size: 34px; display: flex; align-items: baseline; gap: 8px; }
.calc-total-value #calcTotal{
  background: var(--accent-grad); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}
.calc-total-value small{ font-family: var(--font-body); font-weight: 600; font-size: 15px; color: var(--text-dim); }

.calc-note{ margin-top: 14px; font-size: 12.5px; line-height: 1.4; color: var(--text-dim); }

.calc-actions{ margin-top: 22px; display: grid; gap: 10px; }
.calc-actions .btn{ width: 100%; }

.calc-copy{
  margin-top: 16px; width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-size: 13px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--text-dim);
  padding-bottom: 3px; border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.calc-copy svg{ width: 15px; height: 15px; flex-shrink: 0; }
.calc-copy:hover{ color: var(--text); border-color: var(--line-strong); }
.calc-copy.is-done{ color: var(--accent-3); border-color: var(--accent-3); }
.calc-copy.is-failed{ color: var(--text-dim); border-color: var(--line-strong); }

/* ==========================================================================
   WINTER SNOW (flakes added by snow.js, winter only)
   Transform-only animations: they run on the compositor, independent of scrolling
   ========================================================================== */
.snow{
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; color: inherit;
  overflow: hidden; pointer-events: none; z-index: 30;
}
.snow i{
  position: absolute; top: 0; left: var(--x);
  will-change: transform;
  animation: snow-fall var(--t) linear var(--d) infinite;
}
.snow b{
  display: block; width: var(--s); height: var(--s); border-radius: 50%;
  background: var(--text); opacity: var(--o);
  animation: snow-sway var(--st) ease-in-out var(--d2) infinite alternate;
}
@keyframes snow-fall{
  from{ transform: translate3d(0, -6vh, 0); }
  to{ transform: translate3d(0, 108vh, 0); }
}
@keyframes snow-sway{
  from{ transform: translate3d(calc(var(--sw) * -1), 0, 0); }
  to{ transform: translate3d(var(--sw), 0, 0); }
}
@media print, (prefers-reduced-motion: reduce), (max-width: 899px), (pointer: coarse){ .snow{ display: none; } }
