/* 3D-Event — v3 (Vora Bold + brand colors + hero geometry) */

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

:root {
  --primary-bg:    #0a0a0a;
  --secondary-bg:  #1a1a1a;
  --accent-red:    #e54848;
  --accent-orange: #f97316;
  --text-white:    #f5f5f5;
  --text-gray:     #b5b5b5;
  --text-dim:      #929292;
  --border-color:  #2a2a2a;
  --grid-color:    #171717;
  /* Миллиметровка: 10 мелких ячеек = 1 крупная (×2 к оригиналу: 20px → 40px) */
  --grid-minor: 40px;
  --grid-major: calc(var(--grid-minor) * 10);
  --glow-red:      rgba(220, 38, 38, 0.4);
  --gradient-accent: linear-gradient(90deg, var(--accent-red), var(--accent-orange));

  --black:   var(--primary-bg);
  --white:   var(--text-white);
  --rule:    2px solid var(--accent-red);
  --rule-thin: 1px solid rgba(220, 38, 38, 0.18);
  --sidebar: 60px;
  --mono:    'IBM Plex Mono', monospace;
  --condensed: 'Barlow Condensed', sans-serif;
  --display: 'Anton', sans-serif;

  --fs-2xs: 0.585rem;
  --fs-xs: 0.8rem;
  --fs-sm: 0.67rem;
  --fs-sm-plus: 0.675rem;
  --fs-md: 0.698rem;
  --fs-note: 0.731rem;
  --fs-ui: 0.788rem;
  --fs-marquee: 0.81rem;
  --fs-label: 0.844rem;
  --fs-input: 0.956rem;

  --mobile-nav-inset: 1rem;
  --mobile-nav-btn: 44px;
  --mobile-nav-gap: 0.35rem;
  --mobile-clock-top: calc(var(--mobile-nav-inset) + var(--mobile-nav-btn) + var(--mobile-nav-gap));
  --mobile-clock-width: min(38vw, 8.75rem);
  --mobile-clock-height: 4.75rem;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
  width: 100%;
  min-height: 100%;
}

body {
  background: var(--primary-bg);
  color: var(--text-white);
  font-family: var(--mono);
  overflow-x: hidden;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; color: inherit; }

:where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 3px solid var(--accent-orange);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 20000;
  padding: 0.75rem 1rem;
  background: var(--text-white);
  color: var(--primary-bg);
  border: 2px solid var(--accent-orange);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Scroll progress bar — CSS scroll-driven animation */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 10001;
  background: rgba(220, 38, 38, 0.12);
  transform-origin: left;
  scale: 0 1;
}

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    html.motion-css-scroll .scroll-progress {
      animation: scroll-progress linear both;
      animation-timeline: scroll();
    }
  }
}

@keyframes scroll-progress {
  from { scale: 0 1; }
  to   { scale: 1 1; }
}

.scroll-progress::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-accent);
  box-shadow: 0 0 12px var(--glow-red);
}

/* Technical grid + noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(220, 38, 38, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 38, 38, 0.08) 1px, transparent 1px),
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size:
    var(--grid-major) var(--grid-major),
    var(--grid-major) var(--grid-major),
    var(--grid-minor) var(--grid-minor),
    var(--grid-minor) var(--grid-minor);
  background-position: 0 0;
  opacity: 0.5;
}

/* Layout */
.page-shell {
  display: flex;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar);
  height: 100vh;
  height: 100dvh;
  border-right: var(--rule);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(8px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.sidebar__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 0 12px rgba(220, 38, 38, 0.5));
  transition: filter 0.3s ease;
}
.sidebar__logo:hover { filter: drop-shadow(0 0 20px rgba(249, 115, 22, 0.7)); }
.sidebar__logo img { width: 45px; height: auto; }

.sidebar__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.sidebar__nav a {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 550;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-gray);
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  opacity: 0.78;
  transition: opacity 0.25s ease, color 0.25s ease, font-size 0.2s ease, letter-spacing 0.2s ease;
}
.sidebar__nav a.active,
.sidebar__nav a:hover {
  opacity: 1;
  color: var(--accent-red);
}
.sidebar__index {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 300;
  letter-spacing: 0.1em;
  writing-mode: vertical-lr;
  color: var(--text-dim);
  opacity: 0.85;
}

/* Уменьшение, когда окно браузера не развёрнуто на весь экран (класс ставит js/main.js) */
@media (min-width: 901px) {
  html.window--compact-nav .sidebar { padding: 1.35rem 0; }
  html.window--compact-nav .sidebar__logo img { width: 38px; }
  html.window--compact-nav .sidebar__nav { gap: 1.05rem; }
  html.window--compact-nav .sidebar__nav a { font-size: 0.74rem; letter-spacing: 0.12em; }
  html.window--compact-nav .sidebar__index { font-size: 0.74rem; }
}

@media (min-width: 901px) {
  html.window--compact-nav.window--compact-nav-tight .sidebar { padding: 1rem 0; }
  html.window--compact-nav.window--compact-nav-tight .sidebar__logo img { width: 32px; }
  html.window--compact-nav.window--compact-nav-tight .sidebar__nav { gap: 0.75rem; }
  html.window--compact-nav.window--compact-nav-tight .sidebar__nav a { font-size: 0.66rem; letter-spacing: 0.1em; }
  html.window--compact-nav.window--compact-nav-tight .sidebar__index { font-size: 0.66rem; }
}

@media (min-width: 901px) {
  html.window--compact-nav.window--compact-nav-minimal .sidebar { padding: 0.75rem 0; }
  html.window--compact-nav.window--compact-nav-minimal .sidebar__logo img { width: 28px; }
  html.window--compact-nav.window--compact-nav-minimal .sidebar__nav { gap: 0.45rem; }
  html.window--compact-nav.window--compact-nav-minimal .sidebar__nav a { font-size: 0.7rem; letter-spacing: 0.08em; }
  html.window--compact-nav.window--compact-nav-minimal .sidebar__index { font-size: 0.7rem; }
}

/* Mobile nav toggle */
.mobile-nav-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 200;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: rgba(10, 10, 10, 0.9);
  border: 1px solid var(--accent-red);
  cursor: pointer;
}
.mobile-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-white);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.mobile-nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); background: var(--accent-red); }
.mobile-nav-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); background: var(--accent-red); }

.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.main {
  margin-left: var(--sidebar);
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
.rule { width: 100%; height: 0; border: none; border-top: var(--rule); }

html.motion-js .scroll-progress {
  scale: none;
  transform: scaleX(0);
}

/* Scroll reveal — JS + CSS transition (без scroll-driven view(), стабильно в Яндекс.Браузере) */
html:not(.js) [data-reveal] {
  opacity: 1;
  transform: none;
}

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

html.js [data-reveal].visible {
  opacity: 1;
  transform: none;
}

html.browser-yandex [data-reveal],
html.motion-js [data-reveal] {
  animation: none !important;
  view-timeline: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .marquee-inner { animation: none !important; }
}

/* Sticky section label */
.sticky-label {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: var(--rule-thin);
  padding: 0.825rem 4vw;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
}

/* HERO */
#home {
  min-height: 100vh;
  padding: 0 4vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.hero__geometry {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  contain: layout paint;
}

.hero__geometry canvas {
  position: absolute;
  left: auto;
  right: -10%;
  top: 50%;
  transform: translateY(-50%) translateZ(0);
  width: min(100vw, 1375px);
  height: min(100vw, 1375px);
  aspect-ratio: 1;
  max-height: 100vh;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hero__geometry::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 85% at 22% 48%, rgba(10, 10, 10, 0.97) 0%, rgba(10, 10, 10, 0.55) 42%, transparent 68%),
    radial-gradient(circle at 78% 42%, rgba(220, 38, 38, 0.14) 0%, transparent 45%);
  z-index: 1;
}

.hero__geometry::after {
  content: '';
  position: absolute;
  right: 4%;
  top: 50%;
  width: min(78vw, 850px);
  height: min(78vw, 850px);
  transform: translateY(-50%);
  border: 1px solid rgba(220, 38, 38, 0.24);
  border-radius: 50%;
  animation: hero-ring-pulse 8s ease-in-out infinite;
  z-index: 0;
}

@keyframes hero-ring-pulse {
  0%, 100% { transform: translateY(-50%) scale(0.92); opacity: 0.7; }
  50% { transform: translateY(-50%) scale(1.05); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__geometry::after { animation: none; opacity: 0.8; }
}

.hero__live-clock {
  position: absolute;
  top: 4vh;
  right: -1vw;
  transform: translateX(-150px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  font-family: var(--display);
  font-size: clamp(6rem, 12vw, 13rem);
  line-height: 0.95;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1px rgba(220, 38, 38, 0.24);
  pointer-events: none;
  user-select: none;
  z-index: 2;
}

.hero__live-clock-year {
  display: block;
  font-size: 1em;
  letter-spacing: -0.02em;
}

.hero__live-clock-date {
  display: block;
  font-size: 0.5em;
  letter-spacing: 0.01em;
  margin-top: 0.06em;
  color: var(--accent-red);
  -webkit-text-fill-color: var(--accent-red);
  -webkit-text-stroke: 0;
}

.hero__live-clock-time {
  display: block;
  font-family: var(--mono);
  font-size: 0.35em;
  letter-spacing: 0.1em;
  margin-top: 0.2em;
  font-variant-numeric: tabular-nums;
  color: var(--accent-red);
  -webkit-text-fill-color: var(--accent-red);
  -webkit-text-stroke: 0;
}

/* legacy alias — если где-то остался старый класс */
.hero__ghost-year {
  display: none;
}

.hero__topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: var(--mono);
  font-size: var(--fs-note);
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-top: 8vh;
  position: relative;
  z-index: 1;
}

.hero__headline {
  font-family: var(--display);
  font-size: clamp(14vw, 18vw, 22vw);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  position: relative;
  z-index: 1;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__headline--brand {
  display: inline-flex;
  align-items: flex-end;
  flex-wrap: nowrap;
  line-height: 1;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: unset;
  color: var(--text-white);
}

.hero__letter-svg {
  height: 1cap;
  width: auto;
  flex-shrink: 0;
  display: block;
  overflow: visible;
  color: var(--accent-red);
  transform: translateY(-0.08em);
}

.hero__letter-svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: max(0.5px, 0.005em);
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.hero__letter-svg--d path:first-of-type {
  fill: url(#hero-d-hatch);
  fill-rule: evenodd;
  stroke: none;
}

.hero__letter-svg--d path:last-of-type {
  fill: none;
}

.hero__letter-svg--3 {
  width: calc(1cap * 48 / 83.58);
}

.hero__letter-svg--d {
  width: calc(1cap * 45 / 83.58);
}

.hero__headline--brand .hero__headline-event {
  line-height: 1;
  margin-left: 25px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero__headline .accent-dot {
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 2px var(--accent-orange);
  background: none;
  align-self: flex-end;
  transform: translateY(-0.08em);
}

.hero__sub {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 2rem;
  padding-bottom: 6vh;
  margin-top: auto;
  position: relative;
  z-index: 1;
}
.hero__taglines {
  display: flex;
  flex-direction: column;
  max-width: 42vw;
}
.hero__tagline {
  font-family: var(--condensed);
  font-size: clamp(1rem, 2.2vw, 1.6rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--text-gray);
}
.hero__tagline--accent {
  margin-top: 0.844rem;
  color: var(--accent-red);
  font-weight: 600;
  font-size: clamp(1.07rem, 2.03vw, 1.41rem);
}
.contact__info-value--note {
  font-family: var(--mono);
  font-size: var(--fs-md) !important;
  color: var(--text-dim) !important;
  letter-spacing: 0.08em;
}
.hero__cta-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 1rem; }
.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}
.hero__scroll {
  font-family: var(--mono);
  font-size: var(--fs-sm-plus);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.btn {
  font-family: var(--mono);
  font-size: var(--fs-ui);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-white);
  background: transparent;
  border: 1px solid var(--accent-red);
  padding: 0.85rem 2rem;
  cursor: pointer;
  display: inline-block;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}
.btn:hover {
  color: var(--primary-bg);
  border-color: transparent;
  box-shadow: 0 8px 30px rgba(220, 38, 38, 0.25);
}
.btn:hover::before { transform: scaleX(1); }
.btn:focus-visible {
  border-color: var(--accent-orange);
}

/* Marquee */
.marquee-strip {
  border-top: var(--rule);
  border-bottom: var(--rule);
  overflow: hidden;
  padding: 0.85rem 0;
  white-space: nowrap;
  font-family: var(--condensed);
  font-size: var(--fs-marquee);
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.marquee-inner {
  display: inline-block;
  -webkit-animation: marquee 28s linear infinite;
  animation: marquee 28s linear infinite;
  will-change: transform;
}
.marquee-inner span { margin: 0 3rem; }
.marquee-inner span:nth-child(odd) { color: var(--accent-red); opacity: 1; }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ABOUT */
#about {
  padding: 10vh 4vw;
  display: flex;
  gap: 4vw;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}
.about__bg-num {
  position: absolute;
  left: -3vw;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--display);
  font-size: clamp(32vw, 42vw, 48vw);
  line-height: 1;
  -webkit-text-stroke: 1px rgba(220, 38, 38, 0.15);
  color: rgba(220, 38, 38, 0.03);
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
  z-index: 0;
}
.about__label {
  font-family: var(--mono);
  font-size: var(--fs-sm-plus);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
  writing-mode: vertical-lr;
  transform: rotate(180deg);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.about__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
  z-index: 1;
}
.about__text {
  font-family: var(--condensed);
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  font-weight: 300;
  line-height: 1.45;
  max-width: 72ch;
  color: var(--text-white);
}
.about__text--secondary {
  font-size: clamp(1.14rem, 1.8vw, 1.45rem);
  color: var(--text-gray);
}
.about__text strong { font-weight: 700; color: var(--accent-red); }

.about__stats {
  display: flex;
  flex-wrap: wrap;
  padding-top: 2.5rem;
  border-top: var(--rule-thin);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  min-width: 100px;
  padding: 0 2.5vw;
  border-right: var(--rule-thin);
}
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: none; }
.stat__value {
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat__label {
  font-family: var(--mono);
  font-size: var(--fs-sm);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* WORK */
#work { padding: 0; }
.work__header {
  padding: 6vh 4vw 4vh;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.section-title {
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 5rem);
  letter-spacing: 0.02em;
}
.section-meta {
  font-family: var(--mono);
  font-size: var(--fs-sm-plus);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.work__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
}

.work__item {
  padding: 4.5vw 4vw;
  border-top: var(--rule);
  position: relative;
  overflow: hidden;
  min-height: 44vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.work__item--featured {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: flex-end;
  gap: 4vw;
  min-height: 34vh;
}
.work__item:nth-child(3) { min-height: 54vh; }
.work__item:nth-child(4) { border-left: var(--rule); }

.work__item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.work__item:hover::before { transform: scaleY(1); }
.work__item:hover .work__item-content,
.work__item:hover .work__item-aside,
.work__item:hover .work__item-desc { color: var(--primary-bg); }
.work__item:hover .work__item-num { color: var(--primary-bg); opacity: 0.25; }
.work__item:hover .work__item-tag { border-color: rgba(10, 10, 10, 0.3); color: var(--primary-bg); }
.work__item:hover .work__item-corner { color: var(--primary-bg); }

.work__item--featured::before { display: none; }
.work__item--featured:hover { background: rgba(220, 38, 38, 0.04); }
.work__item--featured:hover .work__item-title {
  -webkit-text-stroke: 1.5px var(--accent-red);
  -webkit-text-fill-color: transparent;
  background: none;
}
.work__item--featured .work__item-title {
  transition: -webkit-text-stroke 0.35s ease;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.work__item-corner {
  position: absolute;
  top: 1.4rem;
  right: 1.8rem;
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.15em;
  color: var(--text-dim);
  z-index: 1;
  transition: color 0.45s ease;
}
.work__item-content { position: relative; z-index: 1; transition: color 0.45s ease; }
.work__item--featured .work__item-content { flex: 1; }
.work__item-num {
  font-family: var(--mono);
  font-size: var(--fs-sm-plus);
  letter-spacing: 0.2em;
  color: var(--text-dim);
  margin-bottom: 1.8rem;
  transition: color 0.45s ease;
}
.work__item-title {
  font-family: var(--condensed);
  font-size: clamp(1.6rem, 2.8vw, 2.6rem);
  font-weight: 700;
  line-height: 1.04;
  margin-bottom: 1rem;
}
.work__item--featured .work__item-title {
  font-size: clamp(3.2rem, 6.5vw, 6rem);
  line-height: 0.92;
  margin-bottom: 0;
}
.work__item-preview {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 16/10;
  overflow: hidden;
  border: 1px solid var(--rule-thin);
}
.work__item-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.work__item--featured:hover .work__item-preview img { transform: scale(1.05); }
.work__item-slug {
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(220, 38, 38, 0.2);
  margin-bottom: 1rem;
}
.work__item-desc {
  font-family: var(--mono);
  font-size: var(--fs-md);
  font-weight: 300;
  line-height: 1.88;
  color: var(--text-gray);
  max-width: 38ch;
  transition: color 0.45s ease;
}
.work__item-tag {
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid rgba(220, 38, 38, 0.35);
  padding: 0.32rem 0.75rem;
  display: inline-block;
  margin-top: 2.5rem;
  align-self: flex-start;
  position: relative;
  z-index: 1;
  transition: border-color 0.45s ease, color 0.45s ease;
}
.work__item-aside {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.5rem;
  flex-shrink: 0;
  min-width: 28vw;
  transition: color 0.45s ease;
}
.work__item-aside .work__item-desc { text-align: right; }

/* SERVICES */
#services { padding: 0; }
.services__body {
  display: grid;
  grid-template-columns: 1fr 340px;
}
.services__left {
  padding: 10vh 4vw;
  position: relative;
  z-index: 2;
}
.services__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 5vh;
}
.services__list { display: flex; flex-direction: column; }

.service-row {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 2.4vh 0;
  border-bottom: var(--rule-thin);
  gap: 1.2rem;
  color: inherit;
  text-align: left;
  appearance: none;
  cursor: pointer;
  transition: padding-left 0.32s ease, background 0.25s ease;
}
.service-row:hover { padding-left: 1.2rem; background: rgba(220, 38, 38, 0.04); }
.service-row:focus-visible {
  outline-offset: -3px;
  background: rgba(229, 72, 72, 0.08);
}
.service-row__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  filter: drop-shadow(0 0 6px rgba(220, 38, 38, 0.45));
}
.service-row__icon img {
  width: 28px;
  height: 28px;
  display: block;
}
.service-row__num {
  font-family: var(--mono);
  font-size: var(--fs-sm);
  color: var(--text-dim);
  flex-shrink: 0;
  width: 3ch;
}
.service-row__name {
  font-family: var(--condensed);
  flex: 1;
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  font-weight: 600;
}
.service-row__desc {
  font-family: var(--mono);
  font-size: var(--fs-sm-plus);
  font-weight: 300;
  color: var(--text-dim);
  max-width: 24ch;
  text-align: right;
  line-height: 1.7;
}
.service-row__arrow {
  font-size: 1rem;
  color: var(--accent-red);
  opacity: 0.35;
  flex-shrink: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.service-row:hover .service-row__arrow { transform: translateX(5px); opacity: 1; }
.service-row.open .service-row__arrow { transform: rotate(90deg); opacity: 1; }

.service-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  border-bottom: var(--rule-thin);
}
.service-panel.open { grid-template-rows: 1fr; }
.service-panel__inner {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0 0 0 calc(28px + 3ch + 2rem);
  transition: padding 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-panel.open .service-panel__inner {
  padding: 2vh 0 3vh calc(28px + 3ch + 2rem);
  position: relative;
  z-index: 1;
  background: var(--primary-bg);
}

.sp-block {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0 3vw;
  align-items: baseline;
  padding: 1.2vh 0;
  border-bottom: var(--rule-thin);
}
.sp-block:last-child { border-bottom: none; }
.sp-block--actions {
  border-bottom: none;
  padding-top: 0.25rem;
}
.sp-block--actions .sp-block__label {
  visibility: hidden;
}
.sp-block--actions .sp-block__body {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.sp-block--actions .btn {
  position: relative;
  z-index: 1;
  isolation: isolate;
}
.sp-block__label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-red);
  opacity: 0.7;
}
.sp-block__title {
  font-family: var(--condensed);
  font-weight: 600;
  font-size: clamp(1.07rem, 1.58vw, 1.29rem);
  line-height: 1.2;
}
.sp-block__text {
  font-family: var(--mono);
  font-size: var(--fs-sm);
  font-weight: 300;
  line-height: 1.82;
  color: var(--text-gray);
}

.services__right {
  border-left: var(--rule);
  padding: 10vh 2.5vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
  background: rgba(26, 26, 26, 0.35);
  position: relative;
  z-index: 1;
}
.srv-panel__label {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-red);
  opacity: 1;
  margin-bottom: 1rem;
  display: block;
}
.srv-panel__heading {
  font-family: var(--condensed);
  font-weight: 700;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  line-height: 1.15;
}
.srv-panel__text {
  font-family: var(--mono);
  font-size: var(--fs-sm-plus);
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-gray);
}
.srv-panel__divider { width: 100%; height: 0; border: none; border-top: var(--rule-thin); }
.srv-panel__list { display: flex; flex-direction: column; gap: 0.65rem; list-style: none; }
.srv-panel__list li {
  font-family: var(--mono);
  font-size: var(--fs-sm);
  font-weight: 300;
  color: var(--text-gray);
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}
.srv-panel__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent-red);
  opacity: 0.6;
}
.srv-panel__cta {
  display: inline-block;
  margin-top: auto;
  font-family: var(--mono);
  font-size: var(--fs-sm-plus);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-gray);
  border-bottom: 1px solid rgba(220, 38, 38, 0.3);
  padding-bottom: 0.3rem;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.srv-panel__cta:hover { color: var(--accent-red); border-color: var(--accent-red); }

/* PROCESS — horizontal scroll cards on desktop */
#techprocess { padding: 0 0 10vh; }
.process__header {
  padding: 6vh 4vw 4vh;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.process__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: var(--rule);
}
.process-card {
  padding: 4vw 3vw;
  border-right: var(--rule-thin);
  border-bottom: var(--rule-thin);
  position: relative;
  transition: background 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.process-card:nth-child(3n) { border-right: none; }
.process-card:hover {
  background: rgba(220, 38, 38, 0.06);
  transform: translateY(-4px);
}
.process-card__num {
  font-family: var(--display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  -webkit-text-stroke: 1px rgba(220, 38, 38, 0.4);
  color: transparent;
  display: block;
  margin-bottom: 1rem;
  transition: -webkit-text-stroke 0.3s ease, color 0.3s ease;
}
.process-card:hover .process-card__num {
  -webkit-text-stroke: 0;
  color: var(--accent-red);
}
.process-card__title {
  font-family: var(--condensed);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 700;
  margin-bottom: 0.8rem;
}
.process-card__text {
  font-family: var(--mono);
  font-size: var(--fs-sm-plus);
  line-height: 1.85;
  color: var(--text-gray);
}

/* CONTACT */
#contact {
  padding: 10vh 4vw 6vh;
  display: flex;
  flex-direction: column;
  gap: 5vh;
}
.contact__info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4vw;
  padding-bottom: 5vh;
  border-bottom: var(--rule-thin);
}
.contact__info-col { display: flex; flex-direction: column; gap: 0.75rem; }
.contact__info-label {
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.contact__info-value {
  font-family: var(--condensed);
  font-size: clamp(1.07rem, 1.8vw, 1.46rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-white);
  transition: color 0.25s ease;
}
a.contact__info-value:hover { color: var(--accent-red); }
.contact__manifesto {
  font-family: var(--condensed);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 300;
  line-height: 1.45;
  color: var(--text-gray);
  max-width: 44ch;
  align-self: flex-end;
  text-align: right;
}
.contact__manifesto em,
.contact__manifesto-cta {
  font-style: normal;
  font-weight: 700;
  color: var(--accent-red);
}

.contact__manifesto-cta {
  display: inline;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 700;
  line-height: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.25s ease;
}

.contact__manifesto-cta:hover {
  color: var(--accent-orange);
}

.contact__manifesto-static {
  font-weight: 700;
  color: var(--text-gray);
  cursor: default;
}

.contact__big {
  font-family: var(--condensed);
  font-size: clamp(3.5vw, 5.5vw, 6.5vw);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.contact__big button {
  -webkit-text-stroke: 2px var(--accent-red);
  color: transparent;
  cursor: pointer;
  transition: color 0.3s ease, -webkit-text-stroke 0.3s ease;
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}
.contact__big button:hover {
  color: var(--accent-red);
  -webkit-text-stroke: 0;
}

/* Footer */
.site-footer {
  padding: 8vh 4vw 6vh;
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 4vh;
  border-top: var(--rule);
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-bar__left { display: flex; flex-direction: column; gap: 0.825rem; }
.footer-logo {
  font-family: var(--display);
  font-size: 2.5rem;
  letter-spacing: 0.05em;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-tagline {
  font-family: var(--mono);
  font-size: var(--fs-sm-plus);
  color: var(--text-dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.footer-copy {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  color: var(--text-dim);
  opacity: 1;
}
.footer-bar__center {
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: 0.3em;
  -webkit-text-stroke: 1px rgba(220, 38, 38, 0.25);
  color: transparent;
  align-self: center;
}
.footer-bar__right { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-link {
  font-family: var(--mono);
  font-size: var(--fs-sm-plus);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-gray);
  transition: color 0.2s ease;
}
.footer-link:hover { color: var(--accent-red); }

/* Popup */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1.25rem;
}
.popup-overlay.active { display: flex; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.popup-window {
  max-width: 640px;
  width: 100%;
  background: rgba(26, 26, 26, 0.96);
  border: 2px solid var(--accent-red);
  padding: 2.25rem 2rem 2rem;
  position: relative;
  isolation: isolate;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 40px rgba(220, 38, 38, 0.12);
}
.popup-window::before,
.popup-window::after {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  pointer-events: none;
}
.popup-window::before {
  top: 0;
  left: 0;
  border-top: 2px solid var(--accent-red);
  border-left: 2px solid var(--accent-red);
}
.popup-window::after {
  bottom: 0;
  right: 0;
  border-bottom: 2px solid var(--accent-red);
  border-right: 2px solid var(--accent-red);
}

.popup-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  background: transparent;
  color: var(--text-gray);
  border: none;
  border-left: 1px solid rgba(220, 38, 38, 0.35);
  border-bottom: 1px solid rgba(220, 38, 38, 0.35);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 1.4rem;
  line-height: 1;
  transition: color 0.25s ease, background 0.25s ease;
  z-index: 2;
}
.popup-close:hover {
  color: var(--primary-bg);
  background: var(--accent-red);
}

.popup-header {
  padding-right: 2.5rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: var(--rule-thin);
}
.popup-logo {
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 14px var(--glow-red));
}
.popup-meta {
  display: block;
  font-family: var(--mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-red);
  opacity: 0.85;
  margin-bottom: 0.65rem;
}
.popup-title {
  font-family: var(--condensed);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  line-height: 1.05;
}
.popup-subtitle {
  color: var(--text-gray);
  font-family: var(--mono);
  font-size: var(--fs-sm-plus);
  font-weight: 300;
  line-height: 1.6;
  margin-bottom: 0;
}

.popup-form { margin-top: 0; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.form-field span {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.form-field input,
.form-field textarea {
  background: var(--primary-bg);
  border: 1px solid var(--border-color);
  border-left: 2px solid rgba(220, 38, 38, 0.35);
  color: var(--text-white);
  padding: 0.8rem 0.9rem;
  font-family: var(--mono);
  font-size: var(--fs-input);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, border-left-color 0.25s ease;
}
.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-dim);
  opacity: 0.7;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(220, 38, 38, 0.5);
  border-left-color: var(--accent-red);
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.2);
}
.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: 3px solid var(--accent-orange);
  outline-offset: 2px;
}
.form-field--full { grid-column: 1 / -1; }

.form-actions {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: var(--rule-thin);
}
.form-actions .btn {
  isolation: isolate;
  min-width: 200px;
}
.form-actions .btn::before { z-index: -1; }

#contactSubmitBtn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
#contactSubmitBtn:disabled:hover {
  color: var(--text-white);
  border-color: var(--accent-red);
  box-shadow: none;
}
#contactSubmitBtn:disabled:hover::before {
  transform: scaleX(0);
}

.form-note {
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  line-height: 1.5;
  margin-top: 0.85rem;
}
.form-note a {
  color: var(--text-white);
  text-decoration: underline;
  text-decoration-color: var(--accent-red);
  text-underline-offset: 0.2em;
}
.form-note a:hover { color: var(--accent-orange); }
.form-status {
  margin-top: 0.85rem;
  font-family: var(--mono);
  font-size: var(--fs-sm-plus);
  letter-spacing: 0.04em;
}
.form-status.success { color: #22c55e; }
.form-status.error { color: #ef4444; }

@media (max-width: 900px) {
  .popup-overlay {
    padding: 0.65rem;
    align-items: center;
  }

  .popup-window {
    padding: 1.1rem 0.95rem 0.95rem;
    max-height: min(calc(88vh + 70px), calc(34rem + 70px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .popup-header {
    margin-bottom: 0.75rem;
    padding-bottom: 0.65rem;
    padding-right: 2.25rem;
  }

  .popup-logo {
    width: 56px;
    height: auto;
    margin-bottom: 0.45rem;
  }

  .popup-meta {
    margin-bottom: 0.3rem;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  .popup-title {
    font-size: 1.15rem;
    margin-bottom: 0.25rem;
  }

  .popup-subtitle {
    font-size: var(--fs-xs);
    line-height: 1.35;
  }

  .form-grid {
    gap: 0.65rem;
  }

  .form-field {
    gap: 0.25rem;
  }

  .form-field span {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .form-field input,
  .form-field textarea {
    padding: 0.55rem 0.65rem;
    font-size: 1rem;
  }

  .form-field textarea {
    height: 4.25rem;
    min-height: 4.25rem;
    max-height: 5.5rem;
    resize: vertical;
  }

  .form-actions {
    margin-top: 0.75rem;
    padding-top: 0.65rem;
  }

  .form-actions .btn {
    width: 100%;
    min-width: unset;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .form-note {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    line-height: 1.35;
  }

  .form-status {
    margin-top: 0.55rem;
    font-size: var(--fs-xs);
  }
}

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

/* Responsive */
@media (max-width: 1100px) {
  .service-row__desc { display: none; }
}
@media (max-width: 900px) {
  .hero__geometry canvas {
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%) translateZ(0);
    -webkit-transform: translate(-50%, -50%) translateZ(0);
    width: min(100vw, 480px);
    height: min(100vw, 480px);
    opacity: 1;
    will-change: transform;
  }
  .hero__geometry::before {
    background:
      radial-gradient(ellipse 88% 78% at 50% 48%, rgba(10, 10, 10, 0.42) 0%, rgba(10, 10, 10, 0.12) 52%, transparent 78%),
      radial-gradient(circle at 52% 46%, rgba(220, 38, 38, 0.2) 0%, transparent 52%);
  }
  .hero__geometry::after { display: none; }

  .hero > .hero__live-clock,
  #home > .hero__live-clock,
  .page-article #art-hero .hero__live-clock,
  .page-blog #bl-hero .hero__live-clock,
  .page-portfolio #pf-hero .hero__live-clock,
  .page-workshop #ws-hero .hero__live-clock,
  .page-workshop-tool #ws-tool-hero .hero__live-clock,
  .page-error #err-hero .hero__live-clock {
    top: var(--mobile-clock-top);
    right: var(--mobile-nav-inset);
    left: auto;
    transform: none;
    font-size: clamp(1.65rem, 8vw, 2.65rem);
    line-height: 0.9;
    align-items: flex-end;
    text-align: right;
    max-width: var(--mobile-clock-width);
    z-index: 3;
    color: transparent;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 1px rgba(220, 38, 38, 0.84);
  }

  .hero__live-clock-date {
    font-size: 0.48em;
    color: var(--accent-red);
    -webkit-text-fill-color: var(--accent-red);
    -webkit-text-stroke: 0;
  }

  .hero__live-clock-time {
    font-size: 0.35em;
    color: var(--accent-red);
    -webkit-text-fill-color: var(--accent-red);
    -webkit-text-stroke: 0;
  }

  .hero__topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding-top: var(--mobile-nav-inset);
    padding-right: calc(var(--mobile-nav-btn) + var(--mobile-nav-inset) + var(--mobile-nav-gap));
    max-width: 100%;
    min-height: calc(var(--mobile-clock-top) + var(--mobile-clock-height) - var(--mobile-nav-inset));
  }

  .page-article #art-hero .hero__topbar,
  .page-portfolio #pf-hero .hero__topbar,
  .page-error #err-hero .hero__topbar {
    padding-top: var(--mobile-nav-inset);
    min-height: calc(var(--mobile-clock-top) + var(--mobile-clock-height) - var(--mobile-nav-inset));
  }

  .hero__headline {
    font-size: clamp(13.2vw, 17.6vw, 22vw);
    white-space: normal;
    margin-top: 0.65rem;
    padding-right: 0;
    max-width: 100%;
  }

  .hero__taglines,
  .hero__tagline {
    padding-right: 0;
    max-width: 100%;
  }

  #home .hero__taglines,
  #art-hero .hero__taglines,
  #art-hero .hero__tagline,
  #bl-hero .hero__taglines,
  #bl-hero .hero__tagline,
  #pf-hero .hero__taglines,
  #pf-hero .hero__tagline,
  #ws-hero .hero__taglines,
  #ws-hero .hero__tagline,
  #ws-tool-hero .hero__taglines,
  #ws-tool-hero .hero__tagline,
  #err-hero .hero__taglines,
  #err-hero .hero__tagline {
    max-width: 100%;
  }

  .mobile-nav-toggle { display: flex; }
  .mobile-nav-backdrop { display: block; }
  body.mobile-nav-open .mobile-nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  .sidebar {
    transform: translateX(-100%);
    width: min(280px, 80vw);
    padding: 4rem 1.5rem 2rem;
    align-items: flex-start;
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar__nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }
  .sidebar__nav a {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: var(--fs-label);
  }
  .sidebar__index { writing-mode: horizontal-tb; }
  .main { margin-left: 0; }
  .work__grid { grid-template-columns: 1fr; }
  .work__item--featured { flex-direction: column; align-items: flex-start; min-height: auto; }
  .work__item-aside { align-items: flex-start; min-width: unset; }
  .work__item-aside .work__item-desc { text-align: left; }
  .work__item { border-left: none !important; grid-column: auto !important; }
  .process__grid { grid-template-columns: 1fr 1fr; }
  .process-card:nth-child(3n) { border-right: var(--rule-thin); }
  .process-card:nth-child(2n) { border-right: none; }
  .contact__info { grid-template-columns: 1fr; }
  .contact__manifesto { align-self: flex-start; text-align: left; }
  .footer-bar__center { display: none; }
  .hero__headline--brand {
    flex-wrap: wrap;
  }

  .about__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 1rem;
    justify-items: center;
  }

  .stat {
    flex: unset;
    min-width: 0;
    width: 100%;
    max-width: 12rem;
    align-items: center;
    text-align: center;
    padding: 0;
    border-right: none;
  }

  .stat:first-child {
    padding-left: 0;
  }
}
@media (max-width: 768px) {
  .services__body { grid-template-columns: 1fr; }
  .services__right { border-left: none; border-top: var(--rule); padding: 6vh 4vw; }
  .service-panel__inner,
  .service-panel.open .service-panel__inner { padding-left: 0 !important; }
  .sp-block { grid-template-columns: 90px 1fr; }
  .process__grid { grid-template-columns: 1fr; }
  .process-card { border-right: none !important; }
}
@media (max-width: 640px) {
  .hero__sub { flex-direction: column; gap: 2rem; align-items: flex-start; }
  .footer-bar { flex-direction: column; align-items: flex-start; }
}
