/* ==========================================================================
   HOD — design bureau
   Palette: graphite #0b0b0c / #EE4A29 / #FFFFFF / #EFEFEF.
   Typography: Onest, variable 100—900.
   ========================================================================== */

@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/onest-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/onest-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root,
:root[data-theme="dark"] {
  --bg: #0b0b0c;
  --bg-soft: #141416;
  --bg-deep: #080809;
  --bg-elevated: #19191b;
  --surface: #1b1b1d;
  --surface-2: #222225;
  --ink: #ffffff;
  --ink-dim: #efefef;
  --muted: rgba(239, 239, 239, 0.64);
  --faint: rgba(239, 239, 239, 0.38);
  --line: rgba(239, 239, 239, 0.18);
  --line-soft: rgba(239, 239, 239, 0.1);
  --accent: #ee4a29;
  --accent-ink: #ffffff;
  --header-bg: rgba(10, 10, 11, 0.8);
  --statement-bg: #121214;
  --statement-ink: #efefef;
  --statement-muted: rgba(239, 239, 239, 0.56);
  --inverse-bg: #efefef;
  --inverse-ink: #0b0b0c;
  --image-shade: rgba(0, 0, 0, 0.42);
  --shadow: rgba(0, 0, 0, 0.32);
  --serif: 'Onest', 'Segoe UI', system-ui, sans-serif;
  --sans: 'Onest', 'Segoe UI', system-ui, sans-serif;
  --display: 'Onest', 'Segoe UI', system-ui, sans-serif;
  --mono: 'Onest', 'Segoe UI', system-ui, sans-serif;
  --pad: clamp(20px, 4.2vw, 68px);
  --max: 1640px;
  --header-h: 94px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

:root[data-theme="light"] {
  --bg: #efefef;
  --bg-soft: #ffffff;
  --bg-deep: #e6e6e6;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f6f6;
  --ink: #151516;
  --ink-dim: #1b1b1d;
  --muted: rgba(21, 21, 22, 0.68);
  --faint: rgba(21, 21, 22, 0.44);
  --line: rgba(21, 21, 22, 0.18);
  --line-soft: rgba(21, 21, 22, 0.1);
  --accent: #ee4a29;
  --accent-ink: #ffffff;
  --header-bg: rgba(239, 239, 239, 0.84);
  --statement-bg: #151516;
  --statement-ink: #efefef;
  --statement-muted: rgba(239, 239, 239, 0.58);
  --inverse-bg: #151516;
  --inverse-ink: #efefef;
  --image-shade: rgba(21, 21, 22, 0.35);
  --shadow: rgba(0, 0, 0, 0.14);
  --serif: 'Onest', 'Segoe UI', system-ui, sans-serif;
  --sans: 'Onest', 'Segoe UI', system-ui, sans-serif;
  --display: 'Onest', 'Segoe UI', system-ui, sans-serif;
  --mono: 'Onest', 'Segoe UI', system-ui, sans-serif;
  --pad: clamp(20px, 4.2vw, 68px);
  --max: 1640px;
  --header-h: 94px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.is-loading,
body.menu-open,
body.project-open {
  overflow: hidden;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

p,
h1,
h2,
h3,
h4,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

svg {
  display: block;
}

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 4px;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.mono {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.5;
}

.accent {
  color: var(--accent);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 13px;
  transform: translateY(-160%);
  transition: transform 0.3s;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Texture, cursor, progress
   -------------------------------------------------------------------------- */

.grain {
  position: fixed;
  inset: -100%;
  z-index: 120;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 9s steps(8) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  12% { transform: translate(-2%, -3%); }
  25% { transform: translate(3%, 2%); }
  37% { transform: translate(-1%, 4%); }
  50% { transform: translate(4%, -2%); }
  62% { transform: translate(-3%, 1%); }
  75% { transform: translate(2%, 3%); }
  87% { transform: translate(-4%, -1%); }
}

.cursor {
  display: none;
}

@media (pointer: fine) {
  body.has-cursor,
  body.has-cursor a,
  body.has-cursor button {
    cursor: none;
  }

  body.has-cursor .cursor {
    display: block;
  }
}

.cursor__dot,
.cursor__ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 300;
  border-radius: 50%;
  will-change: transform;
}

.cursor__dot {
  width: 5px;
  height: 5px;
  margin: -2.5px 0 0 -2.5px;
  background: var(--accent);
}

.cursor__ring {
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 1px solid rgba(242, 239, 230, 0.4);
  display: grid;
  place-items: center;
  transition:
    width 0.35s var(--ease),
    height 0.35s var(--ease),
    margin 0.35s var(--ease),
    background 0.35s var(--ease),
    border-color 0.35s var(--ease),
    opacity 0.3s;
}

.cursor__label {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.25s, transform 0.25s;
}

.cursor.is-hover .cursor__ring {
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-color: var(--accent);
  background: rgba(216, 255, 62, 0.08);
}

.cursor.is-view .cursor__ring {
  width: 92px;
  height: 92px;
  margin: -46px 0 0 -46px;
  background: var(--accent);
  border-color: var(--accent);
}

.cursor.is-view .cursor__label {
  opacity: 1;
  transform: scale(1);
}

.cursor.is-view .cursor__dot {
  opacity: 0;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 80;
  background: transparent;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
}

/* --------------------------------------------------------------------------
   Preloader
   -------------------------------------------------------------------------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px var(--pad);
  background: #080809;
  transition: opacity 0.8s var(--ease), visibility 0.8s;
}

.preloader.is-done {
  opacity: 0;
  visibility: hidden;
}

.preloader__top,
.preloader__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}

.preloader__top {
  padding-top: 8px;
  color: var(--muted);
}

.preloader__mark {
  display: flex;
  justify-content: center;
  gap: 0.04em;
  font-family: var(--display);
  font-size: clamp(120px, 22vw, 380px);
  font-weight: 300;
  line-height: 0.8;
  letter-spacing: -0.07em;
  transition: transform 0.9s var(--ease), opacity 0.6s;
}

.preloader__mark span:last-child {
  color: transparent;
  -webkit-text-stroke: 1px var(--accent);
}

.preloader.is-done .preloader__mark {
  transform: translateY(-40px);
  opacity: 0;
}

.preloader__bar {
  width: min(58vw, 720px);
  height: 1px;
  background: rgba(242, 239, 230, 0.15);
  overflow: hidden;
}

.preloader__bar i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 0.25s linear;
}

.preloader__count {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink);
  min-width: 4ch;
  text-align: right;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding-inline: var(--pad);
  transition: transform 0.5s var(--ease), height 0.3s;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-soft);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.site-header.is-scrolled::before {
  opacity: 1;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header > * {
  position: relative;
  z-index: 1;
}

.site-header.is-menu-open {
  transform: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  justify-self: start;
  min-width: 0;
}

.brand__mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.02em;
  transition: background 0.35s, color 0.35s, border-color 0.35s;
}

.brand:hover .brand__mark {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand__text strong {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand__text span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
  justify-self: center;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  padding: 6px 0;
  font-size: 13px;
  color: var(--ink-dim);
  transition: color 0.3s;
}

.nav__link span {
  position: relative;
}

.nav__link span::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.4s var(--ease);
}

.nav__link:hover {
  color: var(--ink);
}

.nav__link:hover span::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.nav__link sup {
  font-family: var(--mono);
  font-size: 8px;
  color: var(--accent);
  top: 0;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 22px;
  justify-self: end;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(216, 255, 62, 0.5);
  animation: pulse 2.6s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(216, 255, 62, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(216, 255, 62, 0); }
  100% { box-shadow: 0 0 0 0 rgba(216, 255, 62, 0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background 0.4s var(--ease), color 0.4s, border-color 0.4s, transform 0.4s var(--ease);
}

.btn .icon {
  width: 15px;
  height: 15px;
  transition: transform 0.4s var(--ease);
}

.btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.btn:hover .icon {
  transform: translate(2px, -2px);
}

.btn--small {
  padding: 11px 18px;
  font-size: 12px;
}

.btn--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  padding: 17px 28px;
}

.btn--accent:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.btn[disabled] {
  opacity: 0.55;
  pointer-events: none;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: border-color 0.3s, background 0.3s;
}

.menu-toggle i {
  display: block;
  width: 15px;
  height: 1px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), width 0.3s;
}

.menu-toggle:hover {
  border-color: var(--accent);
}

body.menu-open .menu-toggle i:first-child {
  transform: translateY(3px) rotate(45deg);
}

body.menu-open .menu-toggle i:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Mobile menu
   -------------------------------------------------------------------------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: #080809;
  padding: calc(var(--header-h) + 30px) var(--pad) 32px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
  overflow-y: auto;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  gap: 40px;
}

.mobile-menu__label {
  color: var(--muted);
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
}

.mobile-menu nav a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--display);
  font-size: clamp(34px, 10vw, 64px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line-soft);
  padding: 12px 0;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), color 0.3s;
}

.mobile-menu.is-open nav a {
  opacity: 1;
  transform: none;
}

.mobile-menu.is-open nav a:nth-child(1) { transition-delay: 0.08s; }
.mobile-menu.is-open nav a:nth-child(2) { transition-delay: 0.14s; }
.mobile-menu.is-open nav a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.is-open nav a:nth-child(4) { transition-delay: 0.26s; }

.mobile-menu nav a:hover {
  color: var(--accent);
}

.mobile-menu nav a sup {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  margin-top: 8px;
}

.mobile-menu__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-top: auto;
  padding-top: 24px;
  color: var(--muted);
}

.mobile-menu__foot a {
  font-size: 15px;
  color: var(--ink);
}

.mobile-menu__foot a:hover {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + 42px);
  padding-bottom: 34px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: calc((100% - 2 * var(--pad)) / 6) 100%;
  background-position: var(--pad) 0;
  opacity: 0.6;
  mask-image: linear-gradient(180deg, transparent 0%, #000 24%, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 24%, #000 70%, transparent 100%);
}

.hero__glow {
  position: absolute;
  top: -12%;
  left: 34%;
  width: 70vw;
  height: 70vw;
  max-width: 1100px;
  max-height: 1100px;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--accent) 0%, transparent 62%);
  opacity: 0.13;
  filter: blur(60px);
  will-change: transform;
}

.hero__disc {
  position: absolute;
  right: -16vw;
  top: 8vh;
  width: 54vw;
  height: 54vw;
  max-width: 900px;
  max-height: 900px;
  border: 1px solid rgba(242, 239, 230, 0.09);
  border-radius: 50%;
}

.hero__disc::before,
.hero__disc::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(242, 239, 230, 0.055);
  inset: 8%;
}

.hero__disc::after {
  inset: 22%;
}

.hero__meta {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.eyebrow i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.hero__coords {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.hero__title {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: clamp(40px, 8vh, 110px);
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(48px, 9.4vw, 158px);
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.line {
  display: block;
  overflow: hidden;
  padding: 0.03em 0 0.1em;
  margin-bottom: -0.075em;
}

.line__inner {
  display: block;
  transform: translateY(118%);
  transition: transform 1.25s var(--ease);
}

body.loaded .line__inner,
.no-js .line__inner {
  transform: translateY(0);
}

.line:nth-child(1) .line__inner { transition-delay: 0.1s; }
.line:nth-child(2) .line__inner { transition-delay: 0.22s; }
.line:nth-child(3) .line__inner { transition-delay: 0.34s; }

.line--serif .line__inner {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.82em;
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-transform: lowercase;
  color: #b9b3a7;
  padding-left: 0.05em;
}

.line--last .line__inner {
  display: flex;
  align-items: flex-start;
  gap: 0.06em;
}

.star {
  width: 0.3em;
  height: 0.3em;
  margin-top: 0.11em;
  color: var(--accent);
  animation: spin 26s linear infinite;
  flex: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero__bottom {
  position: relative;
  z-index: 1;
  margin-top: clamp(34px, 6vh, 66px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 48px;
}

.hero__lead {
  max-width: 520px;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.55;
  color: var(--ink-dim);
  padding-left: 22px;
  border-left: 1px solid var(--accent);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: none;
}

.orb-link {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.4s, color 0.4s, transform 0.5s var(--ease);
}

.orb-link__text {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.5;
  text-align: center;
}

.orb-link .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.4s var(--ease);
}

.orb-link:hover {
  background: var(--ink);
  transform: scale(1.04);
}

.orb-link:hover .icon {
  transform: translateY(4px);
}

.hero__note {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__side {
  position: absolute;
  right: 16px;
  top: 42%;
  writing-mode: vertical-rl;
  color: var(--faint);
  font-size: 9px;
  letter-spacing: 0.3em;
  z-index: 1;
}

.hero__scroll {
  display: none;
}

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow: hidden;
  position: relative;
  background: var(--bg);
}

.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 12vw;
  z-index: 2;
  pointer-events: none;
}

.marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}

.marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg), transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__group {
  display: flex;
  align-items: center;
  flex: none;
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding-right: 30px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 300;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
  white-space: nowrap;
}

.marquee__item .star {
  width: 10px;
  height: 10px;
  margin: 0;
  animation-duration: 12s;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   Section headings
   -------------------------------------------------------------------------- */

.section {
  padding-block: clamp(90px, 11vw, 170px);
  position: relative;
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  align-items: start;
  gap: clamp(32px, 5vw, 80px);
}

.section__index {
  color: var(--muted);
  padding-top: 10px;
}

.section__title {
  font-family: var(--display);
  font-size: clamp(38px, 5.2vw, 82px);
  font-weight: 300;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.section__title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.02em;
  letter-spacing: -0.04em;
  text-transform: lowercase;
  color: #b9b3a7;
}

.section__aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 10px;
  color: var(--muted);
}

.section__aside p {
  font-size: 13px;
  line-height: 1.6;
  max-width: 30ch;
}

.section__aside .mono {
  color: var(--ink-dim);
}

/* --------------------------------------------------------------------------
   Filters + works
   -------------------------------------------------------------------------- */

.filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(40px, 6vw, 70px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: background 0.35s, color 0.35s, border-color 0.35s;
}

.filter span {
  color: var(--faint);
  transition: color 0.35s;
}

.filter:hover {
  border-color: var(--ink-dim);
  color: var(--ink);
}

.filter.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

.filter.is-active span {
  color: rgba(10, 10, 11, 0.55);
}

.works-grid {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(54px, 7vw, 92px) clamp(24px, 3.5vw, 52px);
  align-items: start;
}

.work {
  position: relative;
  min-width: 0;
}

.work__link {
  display: block;
}

.work__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--line-soft);
}

.work__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 11, 0.25), transparent 30%, transparent 65%, rgba(10, 10, 11, 0.35));
  opacity: 0.8;
  transition: opacity 0.6s;
  pointer-events: none;
}

.work__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 1.3s var(--ease), filter 0.7s;
  will-change: transform;
}

.work__link:hover .work__media img {
  transform: scale(1.055);
  filter: brightness(0.92);
}

.work__index {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 5px 8px;
  border: 1px solid rgba(242, 239, 230, 0.24);
  background: rgba(10, 10, 11, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.work__view {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  transform: scale(0.55) rotate(-18deg);
  opacity: 0;
  transition: transform 0.55s var(--ease), opacity 0.4s;
}

.work__view .icon {
  width: 26px;
  height: 26px;
}

.work__link:hover .work__view {
  transform: scale(1) rotate(0);
  opacity: 1;
}

.work__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  transition: border-color 0.4s;
}

.work__link:hover .work__top {
  border-color: rgba(216, 255, 62, 0.5);
}

.work__title {
  font-family: var(--display);
  font-size: clamp(18px, 1.9vw, 26px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.2;
  transition: color 0.35s;
}

.work__link:hover .work__title {
  color: var(--accent);
}

.work__year {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted);
  flex: none;
}

.work__subtitle {
  margin-top: 5px;
  font-size: 13px;
  color: var(--muted);
}

.work__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--faint);
}

.work__tags li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.work__tags li + li::before {
  content: '/';
  color: rgba(242, 239, 230, 0.2);
}

.works-empty {
  text-align: center;
  color: var(--muted);
  padding: 60px 0;
  font-size: 14px;
}

.is-filtered-out {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Statement
   -------------------------------------------------------------------------- */

.statement {
  position: relative;
  padding-block: clamp(90px, 12vw, 180px);
  background: var(--bg-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}

.statement::before {
  content: '';
  position: absolute;
  right: -14vw;
  top: 50%;
  width: 58vw;
  height: 58vw;
  max-width: 900px;
  max-height: 900px;
  border: 1px solid rgba(242, 239, 230, 0.06);
  border-radius: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.statement::after {
  content: '';
  position: absolute;
  left: 6vw;
  bottom: -10vw;
  width: 34vw;
  height: 34vw;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent), transparent 65%);
  opacity: 0.06;
  filter: blur(50px);
  pointer-events: none;
}

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

.statement__text {
  margin-top: 0;
  font-family: var(--display);
  font-size: clamp(36px, 5.9vw, 96px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.statement__text em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.04em;
  text-transform: lowercase;
  letter-spacing: -0.05em;
  color: #b9b3a7;
}

.statement__foot {
  margin-top: clamp(54px, 7vw, 92px);
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.statement__foot .mono {
  color: var(--faint);
  padding-top: 4px;
}

.statement__foot p {
  max-width: 46ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  margin-left: auto;
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about {
  padding-top: clamp(90px, 11vw, 160px);
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

.about__media-col {
  position: sticky;
  top: 110px;
}

.about__media {
  position: relative;
  border: 1px solid var(--line-soft);
  overflow: hidden;
}

.about__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.02);
}

.about__media-frame {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(242, 239, 230, 0.14);
  pointer-events: none;
}

.about__caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  color: var(--faint);
  font-size: 9px;
}

.about__label-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.about__label-row .section__index {
  padding-top: 0;
}

.about__title {
  margin-top: clamp(28px, 3.4vw, 46px);
  font-family: var(--display);
  font-size: clamp(27px, 3.2vw, 47px);
  font-weight: 300;
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.about__text {
  margin-top: clamp(30px, 3.6vw, 46px);
  max-width: 62ch;
  color: #b1ada4;
  font-size: 16px;
  line-height: 1.75;
}

.about__text p + p {
  margin-top: 20px;
}

.about__text p:first-child {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.65;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(38px, 4.5vw, 58px);
  border-top: 1px solid var(--line);
}

.stat {
  padding: 22px 24px 22px 0;
  border-bottom: 1px solid var(--line);
}

.stat:nth-child(even) {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.stat__value {
  font-family: var(--display);
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat__label {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Services
   -------------------------------------------------------------------------- */

.services .section__head {
  margin-bottom: clamp(44px, 6vw, 74px);
}

.services__list {
  border-bottom: 1px solid var(--line);
}

.service {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(180px, 1fr) minmax(280px, 1.25fr) 56px;
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
  padding: 30px 8px;
  border-top: 1px solid var(--line);
  transition: padding 0.45s var(--ease), background 0.45s;
}

.service::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.7s var(--ease);
}

.service:hover {
  padding-left: 20px;
  padding-right: 16px;
  background: rgba(242, 239, 230, 0.018);
}

.service:hover::before {
  transform: scaleX(1);
}

.service__num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--faint);
  transition: color 0.35s;
}

.service:hover .service__num {
  color: var(--accent);
}

.service__title {
  font-family: var(--display);
  font-size: clamp(20px, 2.4vw, 33px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.15;
  transition: transform 0.5s var(--ease), color 0.35s;
}

.service:hover .service__title {
  transform: translateX(8px);
}

.service__text {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  max-width: 46ch;
}

.service__arrow {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  justify-self: end;
  transition: background 0.4s, border-color 0.4s, color 0.4s, transform 0.4s var(--ease);
}

.service__arrow .icon {
  width: 18px;
  height: 18px;
  transform: rotate(45deg);
}

.service:hover .service__arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  transform: rotate(0deg);
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact {
  position: relative;
  padding-block: clamp(90px, 11vw, 160px);
  border-top: 1px solid var(--line-soft);
  overflow: hidden;
}

.contact__glow {
  position: absolute;
  left: -10%;
  bottom: -30%;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent), transparent 65%);
  opacity: 0.07;
  filter: blur(60px);
  pointer-events: none;
}

.contact__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(50px, 8vw, 120px);
  align-items: start;
}

.contact__title {
  margin-top: clamp(26px, 3vw, 40px);
  font-family: var(--display);
  font-size: clamp(31px, 4vw, 60px);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.035em;
  max-width: 15ch;
}

.contact__text {
  margin-top: 24px;
  max-width: 40ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.contact__direct {
  margin-top: clamp(36px, 4.5vw, 56px);
}

.contact__direct > .mono {
  color: var(--faint);
}

.contact__email-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

.contact__email {
  position: relative;
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(19px, 2.5vw, 34px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.25;
  padding-bottom: 6px;
  word-break: break-word;
}

.contact__email::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(1);
  transform-origin: left center;
  transition: transform 0.5s var(--ease);
}

.contact__email:hover::after {
  transform: scaleX(0.35);
}

.copy-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted);
  flex: none;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.copy-btn .icon {
  width: 15px;
  height: 15px;
}

.copy-btn:hover {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}

.contact__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 32px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}

.social-link .icon {
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  opacity: 0.6;
}

.social-link:hover {
  color: var(--accent);
}

.contact__form {
  padding-top: 6px;
}

.field {
  position: relative;
  margin-bottom: 26px;
}

.field label {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.field label span {
  color: var(--accent);
}

.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  padding: 12px 0;
  outline: none;
  transition: border-color 0.35s;
  resize: vertical;
}

.field textarea {
  min-height: 96px;
  max-height: 300px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #55555b;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.field.has-error input,
.field.has-error textarea {
  border-color: #ff6a45;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form__foot {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
}

.form__note {
  font-size: 12px;
  line-height: 1.55;
  color: var(--faint);
  max-width: 30ch;
}

.form__status {
  margin-top: 18px;
  font-size: 13px;
  color: var(--accent);
  min-height: 20px;
}

.form__status.is-error {
  color: #ff8064;
}

.form__status.is-success {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(40px, 6vw, 70px) 0 28px;
  overflow: hidden;
}

.site-footer__brand {
  font-family: var(--display);
  font-size: clamp(32px, 9.6vw, 168px);
  font-weight: 300;
  line-height: 0.86;
  letter-spacing: -0.06em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 239, 230, 0.24);
  transition: -webkit-text-stroke-color 0.5s;
  user-select: none;
}

.site-footer__brand .accent {
  -webkit-text-stroke: 0;
  color: var(--accent);
  font-size: 0.24em;
  vertical-align: super;
  letter-spacing: 0;
}

.site-footer__brand:hover {
  -webkit-text-stroke-color: var(--accent);
}

.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin-top: clamp(30px, 4vw, 52px);
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
}

.site-footer__row > *:nth-child(4) {
  margin-left: auto;
}

.site-footer__top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  transition: color 0.3s;
}

.site-footer__top .icon {
  width: 14px;
  height: 14px;
  transform: rotate(180deg);
}

.site-footer__top:hover {
  color: var(--accent);
}

.site-footer__clock {
  color: var(--faint);
}

.site-footer__clock span {
  color: var(--ink-dim);
}

/* --------------------------------------------------------------------------
   Project overlay
   -------------------------------------------------------------------------- */

.project {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}

.project.is-open {
  opacity: 1;
  visibility: visible;
}

.project__scroller {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateY(40px);
  transition: transform 0.75s var(--ease);
}

.project.is-open .project__scroller {
  transform: translateY(0);
}

.project__bar {
  position: sticky;
  top: 0;
  z-index: 6;
  padding: 18px 0;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line-soft);
}

.project__bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.project__close {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  transition: color 0.3s;
}

.project__close .icon {
  width: 17px;
  height: 17px;
  transition: transform 0.4s var(--ease);
}

.project__close:hover {
  color: var(--accent);
}

.project__close:hover .icon {
  transform: rotate(90deg);
}

.project__bar-inner > .mono {
  color: var(--muted);
}

.project__cover {
  position: relative;
  padding-block: clamp(30px, 4.5vw, 58px);
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(ellipse 55% 60% at 78% 20%, rgba(216, 255, 62, 0.05), transparent 65%),
    var(--bg);
  overflow: hidden;
}

.project__cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  opacity: 0.5;
  mask-image: linear-gradient(180deg, transparent, #000 30%, transparent);
  pointer-events: none;
}

.project__hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}

.project__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.project__intro .eyebrow {
  color: var(--ink-dim);
}

.project__intro h2 {
  margin-top: clamp(18px, 2.4vw, 30px);
  font-family: var(--display);
  font-size: clamp(44px, 6.6vw, 112px);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.project__intro > p {
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(13px, 1.3vw, 16px);
}

.project__hero-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  width: 100%;
}

.project__hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease);
}

.project__hero-media:hover img {
  transform: scale(1.02);
}

.project__hero-media::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(242, 239, 230, 0.1);
  pointer-events: none;
}

.project__body {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
  padding-block: clamp(50px, 7vw, 90px);
}

.project__meta {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
}

.project__meta-item {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.project__meta-item:last-child {
  border-bottom: 1px solid var(--line);
}

.project__meta-item dt {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 5px;
}

.project__meta-item dd {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-dim);
  margin: 0;
}

.project__summary {
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--ink);
  padding-left: 22px;
  border-left: 1px solid var(--accent);
  max-width: 32ch;
}

.project__desc {
  margin-top: 38px;
  max-width: 68ch;
  color: #b1ada4;
  font-size: 16px;
  line-height: 1.8;
}

.project__desc p + p {
  margin-top: 20px;
}

.project__gallery {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid;
  gap: 22px;
}

.project__gallery figure {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-soft);
}

.project__gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.project__gallery figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: rgba(242, 239, 230, 0.72);
  background: rgba(10, 10, 11, 0.5);
  padding: 4px 7px;
  backdrop-filter: blur(6px);
}

.project__next {
  display: block;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding-block: clamp(48px, 6vw, 80px);
  transition: background 0.5s;
}

.project__next:hover {
  background: #101012;
}

.project__next-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
}

.project__next-inner > .mono {
  grid-column: 1 / -1;
  color: var(--muted);
}

.project__next h3 {
  font-family: var(--display);
  font-size: clamp(38px, 6.4vw, 94px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  transition: color 0.35s;
}

.project__next:hover h3 {
  color: var(--accent);
}

.project__next-arrow {
  width: clamp(58px, 7vw, 92px);
  height: clamp(58px, 7vw, 92px);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background 0.4s, color 0.4s, border-color 0.4s, transform 0.4s var(--ease);
}

.project__next-arrow .icon {
  width: 30px;
  height: 30px;
}

.project__next:hover .project__next-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   Toast
   -------------------------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 400;
  transform: translate(-50%, 20px);
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s, transform 0.35s var(--ease);
  max-width: calc(100vw - 40px);
  text-align: center;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* --------------------------------------------------------------------------
   Reveal
   -------------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

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

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1240px) {
  .nav {
    gap: 24px;
  }

  .status {
    display: none;
  }

  .section__head {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 32px;
  }
}

@media (max-width: 1080px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

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

  .header__actions .btn--small {
    display: none;
  }

  .about__grid {
    gap: 56px;
  }

  .contact__grid {
    gap: 60px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 78px;
  }

  .hero__side {
    display: none;
  }

  .hero__title {
    font-size: clamp(44px, 10.2vw, 96px);
  }

  .hero__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 34px;
  }

  .hero__lead {
    max-width: 46ch;
  }

  .hero__actions {
    flex-direction: row;
    align-items: center;
    gap: 18px;
  }

  .orb-link {
    width: 116px;
    height: 116px;
  }

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

  .section__aside {
    grid-column: 1;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    padding-top: 0;
    margin-top: 8px;
  }

  .section__aside p {
    max-width: 34ch;
  }

  .works-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 720px;
    margin-inline: auto;
  }

  .work:nth-child(even) {
    margin-top: 0;
  }

  .statement__foot {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .statement__foot p {
    margin-left: 0;
  }

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

  .about__media-col {
    position: static;
    max-width: 560px;
  }

  .about__media img {
    aspect-ratio: 4 / 3;
  }

  .about__content {
    max-width: 720px;
  }

  .service {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 8px 24px;
    padding: 26px 4px;
  }

  .service__title {
    grid-column: 2;
  }

  .service__text {
    grid-column: 2;
    grid-row: 2;
    margin-top: 4px;
  }

  .service__arrow {
    grid-column: 3;
    grid-row: 1 / 3;
  }

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

  .contact__title {
    max-width: 18ch;
  }

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

  .project__meta {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
  }

  .project__meta-item:nth-child(2) {
    border-top: 1px solid var(--line);
  }

  .project__summary {
    max-width: 40ch;
  }

  .site-footer__row > *:nth-child(4) {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 70px;
    --pad: 20px;
  }

  .brand__mark {
    width: 40px;
    height: 40px;
  }

  .brand__text span {
    display: none;
  }

  .brand__text strong {
    font-size: 12px;
  }

  .hero {
    padding-top: calc(var(--header-h) + 30px);
    padding-bottom: 26px;
  }

  .hero__meta {
    align-items: flex-start;
  }

  .hero__coords {
    display: none;
  }

  .hero__title {
    font-size: clamp(34px, 10.6vw, 58px);
    line-height: 0.94;
  }

  .line--serif .line__inner {
    font-size: 0.86em;
  }

  .line--last .line__inner {
    font-size: 0.9em;
  }

  .hero__lead {
    font-size: 15px;
    padding-left: 16px;
  }

  .orb-link {
    width: 104px;
    height: 104px;
  }

  .orb-link__text {
    font-size: 9px;
  }

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

  .marquee {
    padding: 16px 0;
  }

  .marquee__item {
    font-size: 14px;
    gap: 22px;
    padding-right: 22px;
  }

  .section {
    padding-block: 74px;
  }

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

  .section__index {
    padding-top: 0;
  }

  .section__aside {
    grid-column: 1;
    flex-direction: column;
    gap: 10px;
  }

  .section__title {
    font-size: clamp(34px, 10.4vw, 58px);
  }

  .filters {
    flex-wrap: wrap;
    overflow: visible;
    margin-right: 0;
    padding-right: 0;
  }

  .works-grid {
    gap: 48px;
    margin-top: 34px;
  }

  .work__view {
    width: 64px;
    height: 64px;
    right: 12px;
    bottom: 12px;
    transform: none;
    opacity: 1;
  }

  .work__view .icon {
    width: 20px;
    height: 20px;
  }

  .work__title {
    font-size: 19px;
  }

  .statement {
    padding-block: 74px;
  }

  .statement__text {
    font-size: clamp(31px, 9.4vw, 56px);
  }

  .statement__text br {
    display: none;
  }

  .statement__text em {
    display: inline;
  }

  .about {
    padding-top: 74px;
  }

  .about__media img {
    aspect-ratio: 1 / 1;
  }

  .about__title {
    font-size: 26px;
  }

  .about__text p:first-child {
    font-size: 16px;
  }

  .stats {
    margin-top: 34px;
  }

  .stat {
    padding: 18px 14px 18px 0;
  }

  .stat:nth-child(even) {
    padding-left: 16px;
  }

  .stat__value {
    font-size: 32px;
  }

  .service {
    grid-template-columns: 36px minmax(0, 1fr) 40px;
    padding: 22px 0;
  }

  .service__title {
    font-size: 20px;
  }

  .service__text {
    font-size: 13px;
  }

  .service__arrow {
    width: 38px;
    height: 38px;
  }

  .service:hover {
    padding-left: 0;
    padding-right: 0;
  }

  .contact {
    padding-block: 74px;
  }

  .contact__title {
    font-size: clamp(28px, 8.6vw, 46px);
  }

  .contact__email {
    font-size: 18px;
  }

  .contact__socials {
    gap: 10px 20px;
  }

  .form__foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .btn--accent {
    width: 100%;
    justify-content: center;
  }

  .site-footer__brand {
    font-size: 10.4vw;
  }

  .site-footer__row {
    gap: 10px 18px;
  }

  .site-footer__clock {
    display: none;
  }

  .project__cover {
    padding-block: 24px;
  }

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

  .project__intro h2 {
    font-size: clamp(42px, 12.5vw, 76px);
  }

  .project__hero-media {
    aspect-ratio: 4 / 3;
  }

  .project__body {
    padding-block: 40px;
  }

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

  .project__summary {
    font-size: 19px;
  }

  .project__desc {
    font-size: 15px;
  }

  .project__next h3 {
    font-size: 13vw;
  }

  .project__next-arrow {
    width: 52px;
    height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .line__inner,
  [data-reveal] {
    transform: none !important;
    opacity: 1 !important;
  }

  .grain {
    display: none;
  }
}

/* ==========================================================================
   HOD brand layer — Onest, teal/orange, light & dark themes
   ========================================================================== */

html {
  background: var(--bg);
}

body {
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease);
  letter-spacing: -0.005em;
}

::selection {
  background: var(--accent);
  color: #ffffff;
}

/* --- brand mark ---------------------------------------------------------- */

.logo-on-light {
  display: none;
}

[data-theme="light"] .logo-on-dark {
  display: none;
}

[data-theme="light"] .logo-on-light {
  display: block;
}

.brand {
  flex: none;
}

.brand__logo {
  display: block;
  width: auto;
  height: 44px;
  max-width: 168px;
  object-fit: contain;
}

.brand__logo.logo-on-light {
  display: none;
}

[data-theme="light"] .brand__logo.logo-on-dark {
  display: none;
}

[data-theme="light"] .brand__logo.logo-on-light {
  display: block;
}

/* --- header controls ----------------------------------------------------- */

.site-header::before {
  background: var(--header-bg);
  border-bottom-color: var(--line-soft);
}

.header__actions {
  gap: 14px;
}

.nav {
  gap: clamp(16px, 2vw, 30px);
}

.nav__link {
  font-size: 12.5px;
  font-weight: 500;
}

.status {
  font-size: 8.5px;
  letter-spacing: 0.09em;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.lang-switch__link {
  padding: 3px 2px;
  color: inherit;
  transition: color 0.25s;
}

.lang-switch__link:hover,
.lang-switch__link.is-active {
  color: var(--accent);
}

.theme-toggle {
  width: 38px;
  height: 38px;
  flex: none;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-dim);
  background: transparent;
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.35s var(--ease);
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.theme-toggle .icon {
  width: 17px;
  height: 17px;
}

.theme-toggle .icon-moon {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

.theme-toggle--labelled {
  width: auto;
  height: 40px;
  padding: 0 14px;
  gap: 8px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mobile-menu__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line-soft);
  margin-top: auto;
}

.lang-switch--mobile {
  font-size: 11px;
}

/* --- preloader ----------------------------------------------------------- */

.preloader {
  background: var(--bg);
}

.preloader__logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.preloader__logo img {
  width: clamp(160px, 18vw, 260px);
  height: auto;
}

.preloader__logo .logo-on-light {
  display: none;
}

[data-theme="light"] .preloader__logo .logo-on-dark {
  display: none;
}

[data-theme="light"] .preloader__logo .logo-on-light {
  display: block;
}

.preloader__bar {
  background: var(--line);
}

/* --- typography ---------------------------------------------------------- */

.mono,
.a-eyebrow {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.14em;
}

.eyebrow {
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.hero__title {
  font-weight: 800;
  font-size: clamp(52px, 11.2vw, 188px);
  line-height: 0.88;
  letter-spacing: -0.055em;
}

.line {
  padding: 0.01em 0 0.08em;
  margin-bottom: -0.06em;
}

.line--light .line__inner {
  font-family: var(--display);
  font-style: normal;
  font-weight: 300;
  font-size: 0.78em;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-transform: lowercase;
  color: var(--accent);
  padding-left: 0.02em;
}

.line--light {
  overflow: hidden;
  padding-bottom: 0.16em;
  margin-bottom: -0.12em;
}

.hero__lead {
  color: var(--ink-dim);
  font-size: clamp(16px, 1.35vw, 19px);
  font-weight: 400;
  border-left-color: var(--accent);
}

.hero__coords,
.hero__note,
.hero__side {
  color: var(--faint);
}

.hero__disc,
.hero__disc::before,
.hero__disc::after {
  border-color: var(--line-soft);
}

.hero__glow {
  opacity: 0.18;
}

.orb-link {
  background: var(--accent);
  color: #ffffff;
}

.orb-link:hover {
  background: var(--ink);
  color: var(--bg);
}

.star {
  color: var(--accent);
}

.section__title {
  font-weight: 700;
  font-size: clamp(40px, 5.4vw, 86px);
  letter-spacing: -0.045em;
}

.section__title em {
  font-family: var(--display);
  font-style: normal;
  font-weight: 300;
  color: var(--accent);
  letter-spacing: -0.055em;
}

.section__aside p {
  color: var(--muted);
}

.about__title {
  font-weight: 600;
  letter-spacing: -0.04em;
}

.about__text {
  color: var(--muted);
}

.about__text p:first-child {
  color: var(--ink);
}

.stat__value {
  font-weight: 600;
}

.stat__label {
  color: var(--muted);
}

.service__title {
  font-weight: 600;
}

.service__text {
  color: var(--muted);
}

.contact__title {
  font-weight: 700;
}

.contact__text {
  color: var(--muted);
}

.btn {
  font-weight: 600;
}

.btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.btn--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.btn--accent:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

/* --- statement ----------------------------------------------------------- */

.statement {
  background: var(--statement-bg);
  color: var(--statement-ink);
  border-color: var(--line-soft);
}

.statement::before {
  border-color: rgba(239, 239, 239, 0.08);
}

.statement__text {
  font-weight: 700;
  color: var(--statement-ink);
}

.statement__text em {
  font-family: var(--display);
  font-style: normal;
  font-weight: 300;
  color: var(--accent);
}

.statement__foot p {
  color: var(--statement-muted);
}

.statement__foot .mono,
.statement__inner > .section__index {
  color: var(--statement-muted);
}

/* --- works --------------------------------------------------------------- */

.work__media {
  background: var(--bg-elevated);
  border-color: var(--line-soft);
}

.work__media::after {
  background: linear-gradient(180deg, var(--image-shade), transparent 32%, transparent 62%, var(--image-shade));
}

.work__top {
  border-color: var(--line);
}

.work__title {
  font-weight: 600;
}

.work__subtitle,
.work__year {
  color: var(--muted);
}

.work__tags {
  color: var(--faint);
}

.work__tags li + li::before {
  color: var(--line);
}

.selection {
  background: var(--accent);
}

/* --- clients ------------------------------------------------------------- */

.clients {
  padding-top: clamp(70px, 9vw, 130px);
}

.clients-grid {
  margin-top: clamp(42px, 5.5vw, 72px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: transparent;
}

.client {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  min-height: clamp(180px, 17vw, 238px);
  padding: clamp(18px, 2vw, 28px);
  background: var(--bg);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
  overflow: hidden;
}

.client:hover {
  background: var(--accent);
  color: #ffffff;
}

.client__top,
.client__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.client__num,
.client__industry,
.client__bottom {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  transition: color 0.3s;
}

.client:hover .client__num,
.client:hover .client__industry,
.client:hover .client__bottom {
  color: rgba(255, 255, 255, 0.72);
}

.client__middle {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}

.client__name {
  font-family: var(--display);
  font-size: clamp(22px, 2.1vw, 34px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.client__desc {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  max-width: 26ch;
  transition: color 0.3s;
}

.client:hover .client__desc {
  color: rgba(255, 255, 255, 0.8);
}

.client__logo {
  max-width: 70%;
  max-height: 44px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0);
  transition: filter 0.3s ease;
}

:root[data-theme="dark"] .client__logo {
  filter: brightness(0) invert(1);
}

.client:hover .client__logo {
  filter: brightness(0) invert(1);
}

.client__arrow {
  width: 30px;
  height: 30px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: grid;
  place-items: center;
  opacity: 0.55;
  transition: transform 0.4s var(--ease), opacity 0.3s, background 0.3s, color 0.3s;
}

.client__arrow .icon {
  width: 14px;
  height: 14px;
}

.client:hover .client__arrow {
  opacity: 1;
  background: #ffffff;
  color: var(--accent);
  transform: rotate(45deg);
}

/* --- about / contact ----------------------------------------------------- */

.about__media {
  border-color: var(--line);
}

.about__media-frame {
  border-color: var(--line);
}

.about__caption,
.about__label-row .mono {
  color: var(--faint);
}

.contact {
  border-color: var(--line-soft);
}

.contact__email::after {
  background: var(--accent);
}

.copy-btn {
  border-color: var(--line);
  color: var(--muted);
}

.copy-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.social-link {
  color: var(--muted);
}

.field label {
  color: var(--muted);
}

.field input,
.field textarea {
  border-color: var(--line);
  color: var(--ink);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--faint);
}

.form__note {
  color: var(--faint);
}

/* --- footer -------------------------------------------------------------- */

.site-footer {
  background: var(--bg);
  border-color: var(--line);
}

.site-footer__logo {
  line-height: 0;
}

.site-footer__logo img {
  display: block;
  width: min(200px, 34vw);
  height: auto;
}

.site-footer__logo .logo-on-light {
  display: none;
}

[data-theme="light"] .site-footer__logo .logo-on-dark {
  display: none;
}

[data-theme="light"] .site-footer__logo .logo-on-light {
  display: block;
}

.site-footer__row {
  border-color: var(--line-soft);
  color: var(--muted);
}

.site-footer__clock {
  color: var(--faint);
}

.site-footer__clock span {
  color: var(--ink-dim);
}

 .site-footer__top:hover {
  color: var(--accent);
}

/* --- project ------------------------------------------------------------- */

.project {
  background: var(--bg);
}

.project__bar {
  background: var(--header-bg);
  border-color: var(--line-soft);
}

.project__cover {
  background:
    radial-gradient(ellipse 55% 60% at 78% 20%, rgba(238, 74, 41, 0.1), transparent 65%),
    var(--bg);
  border-color: var(--line-soft);
}

.project__hero-media {
  border-color: var(--line);
  background: var(--bg-elevated);
}

.project__hero-media::after {
  border-color: var(--line);
}

.project__body {
  color: var(--ink);
}

.project__meta-item {
  border-color: var(--line);
}

.project__meta-item dt {
  color: var(--faint);
}

.project__meta-item dd {
  color: var(--ink-dim);
}

.project__summary {
  color: var(--ink);
  border-color: var(--accent);
}

.project__desc {
  color: var(--muted);
}

.project__gallery figure {
  border-color: var(--line-soft);
}

.project__next {
  background: var(--bg-soft);
  border-color: var(--line);
}

.project__next:hover {
  background: var(--surface);
}

.project__next:hover h3 {
  color: var(--accent);
}

.project__next-arrow {
  border-color: var(--line);
}

.project__next:hover .project__next-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

/* --- misc theme surfaces ------------------------------------------------- */

.marquee {
  background: var(--bg);
  border-color: var(--line);
}

.marquee::before {
  background: linear-gradient(90deg, var(--bg), transparent);
}

.marquee::after {
  background: linear-gradient(270deg, var(--bg), transparent);
}

.marquee__item {
  color: var(--ink-dim);
}

.mobile-menu {
  background: var(--bg);
}

.mobile-menu__foot {
  color: var(--muted);
}

.mobile-menu__foot a {
  color: var(--ink);
}

.section__aside .mono {
  color: var(--ink-dim);
}

.filters {
  border-color: var(--line);
}

.filter {
  border-color: var(--line);
  color: var(--ink-dim);
}

.filter span {
  color: var(--faint);
}

.filter.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.filter.is-active span {
  color: rgba(255, 255, 255, 0.64);
}

.works-empty {
  color: var(--muted);
}

.toast {
  background: var(--ink);
  color: var(--bg);
}

.scroll-progress span {
  background: var(--accent);
}

.cursor__dot {
  background: var(--accent);
}

.cursor__ring {
  border-color: var(--line);
}

.grain {
  opacity: 0.045;
}

[data-theme="light"] .grain {
  opacity: 0.035;
}

/* --- theme-specific polish ---------------------------------------------- */

[data-theme="dark"] .btn:hover,
[data-theme="dark"] .btn--accent:hover {
  background: var(--ink);
  color: var(--bg);
}

[data-theme="light"] .site-header.is-scrolled::before {
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .project__cover {
  background:
    radial-gradient(ellipse 55% 60% at 78% 20%, rgba(238, 74, 41, 0.12), transparent 65%),
    var(--bg);
}

[data-theme="light"] .statement {
  color: #efefef;
}

[data-theme="light"] .statement__foot .mono,
[data-theme="light"] .statement__inner > .section__index {
  color: rgba(239, 239, 239, 0.55);
}

[data-theme="light"] .statement__text {
  color: #efefef;
}

/* --- responsive ---------------------------------------------------------- */

@media (max-width: 1240px) {
  .header__actions {
    gap: 10px;
  }

  .brand__logo {
    height: 40px;
  }

  .nav {
    gap: 18px;
  }
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .header__actions .btn--small {
    display: none;
  }

  .status {
    display: none;
  }
}

@media (max-width: 900px) {
  .clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client {
    min-height: 170px;
  }

  .site-footer__logo img {
    width: min(170px, 38vw);
  }
}

@media (max-width: 640px) {
  .brand__logo {
    height: 34px;
    max-width: 130px;
  }

  .brand__logo.logo-on-light {
    height: 34px;
  }

  .lang-switch {
    font-size: 9px;
    gap: 3px;
  }

  .theme-toggle {
    width: 34px;
    height: 34px;
  }

  .theme-toggle .icon {
    width: 15px;
    height: 15px;
  }

  .header__actions {
    gap: 8px;
  }

  .hero__title {
    font-size: clamp(34px, 10.4vw, 60px);
  }

  .line--light .line__inner {
    font-size: 0.82em;
  }

  .line--last .line__inner {
    font-size: 0.9em;
  }

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

  .client {
    min-height: 0;
    padding: 20px;
    gap: 18px;
  }

  .client__name {
    font-size: 30px;
  }

  .site-footer__logo img {
    width: 32vw;
  }

  .mobile-menu__controls {
    margin-top: 20px;
    padding: 16px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  body {
    transition: none;
  }
}

/* mobile menu refinements */
.mobile-menu__inner {
  gap: 28px;
}

.mobile-menu nav {
  margin-top: clamp(20px, 5vh, 54px);
}

.mobile-menu__controls {
  margin-top: auto;
  flex-wrap: wrap;
  padding-top: 18px;
}

.theme-toggle--labelled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  white-space: nowrap;
}

.theme-toggle--labelled .icon {
  width: 15px;
  height: 15px;
}

.mobile-menu__foot {
  margin-top: 0;
  padding-top: 18px;
}

@media (max-width: 640px) {
  .mobile-menu nav a {
    font-size: clamp(30px, 8.8vw, 52px);
  }

  .mobile-menu__controls .theme-toggle--labelled {
    font-size: 9px;
    padding: 0 12px;
  }
}
/* --- legal details ------------------------------------------------------- */

.legal {
  padding-block: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.legal__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}

.legal__intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.legal__intro > .mono {
  color: var(--faint);
}

.legal__title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(24px, 2.7vw, 38px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.legal__note {
  max-width: 38ch;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.legal__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 clamp(22px, 3vw, 44px);
  margin: 0;
}

.legal__item {
  padding: 13px 0;
  border-top: 1px solid var(--line-soft);
  min-width: 0;
}

.legal__item--span-2 {
  grid-column: span 2;
}

.legal__item dt {
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.legal__item dd {
  margin: 0;
  color: var(--ink-dim);
  font-size: 13.5px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.legal__item a {
  color: var(--ink-dim);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  transition: color 0.25s, text-decoration-color 0.25s;
}

.legal__item a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.site-footer__legal {
  color: var(--faint);
  transition: color 0.3s;
}

.site-footer__legal:hover {
  color: var(--ink);
}

@media (max-width: 900px) {
  .legal__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .legal__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
  }
}

@media (max-width: 640px) {
  .legal {
    padding-block: 48px;
  }

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

  .legal__item--span-2 {
    grid-column: auto;
  }
}
/* --- section backgrounds ------------------------------------------------- */

.section,
.legal {
  position: relative;
}

.section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: none;
  overflow: hidden;
  pointer-events: none;
}

.section-bg.is-visible {
  display: block;
}

.section-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: var(--bg-opacity-light, 0);
  filter: saturate(0.9) contrast(0.98);
}

.section-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bg);
  opacity: calc(0.45 * var(--bg-opacity-light, 0));
}

[data-theme="dark"] .section-bg img {
  opacity: var(--bg-opacity-dark, 0);
}

[data-theme="dark"] .section-bg::after {
  opacity: calc(0.45 * var(--bg-opacity-dark, 0));
}

.hero-bg {
  z-index: 0;
}

.section > .section-bg ~ *,
.legal > .section-bg ~ * {
  position: relative;
  z-index: 1;
}

.work__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg-soft);
}

.project__video {
  display: grid;
  gap: 10px;
  margin-top: clamp(28px, 4vw, 48px);
}

.project__video video {
  width: 100%;
  max-height: 72vh;
  border: 1px solid var(--line);
  background: #000;
}

.project__video .mono {
  color: var(--faint);
}
/* Услуги → контакты: убираем двойной разделительный отступ */
.services {
  padding-bottom: clamp(44px, 4.5vw, 64px);
}

.contact {
  padding-top: clamp(52px, 5vw, 72px);
}
/* Декоративное свечение контактов не должно участвовать в потоке:
   общее правило для фоновых слоёв делало его position: relative. */
.contact > .contact__glow {
  position: absolute;
  z-index: 0;
}
.about__content {
  max-width: min(920px, 100%);
}
/* «О бюро»: текст слева, цифры справа — без пустой правой колонки */
.stat__value {
  color: var(--accent);
}

@media (min-width: 901px) {
  .about__content {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    column-gap: clamp(40px, 7vw, 120px);
    align-items: start;
    max-width: none;
  }

  .about__label-row,
  .about__title {
    grid-column: 1 / -1;
  }

  .about__text {
    grid-column: 1;
    max-width: 62ch;
  }

  .about__content .stats {
    grid-column: 2;
    margin-top: clamp(30px, 3.6vw, 46px);
  }
}
/* --- consent and cookies ------------------------------------------------ */

.form__consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
  cursor: pointer;
}

.form__consent input {
  width: 15px;
  height: 15px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--accent);
  cursor: pointer;
}

.form__consent a {
  color: var(--ink-dim);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
  transition: color 0.25s, text-decoration-color 0.25s;
}

.form__consent a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.form__consent.has-error {
  color: var(--accent);
}

.form__consent.has-error a {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-soft) 92%, transparent);
  box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 4vw, 60px);
  padding-block: 16px;
}

.cookie-banner p {
  max-width: 820px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.cookie-banner strong {
  color: var(--ink);
  font-weight: 600;
}

.cookie-banner a {
  color: var(--ink-dim);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

.cookie-banner a:hover {
  color: var(--accent);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: none;
}

.cookie-btn {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--ink-dim);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.cookie-btn:hover {
  border-color: var(--ink-dim);
  color: var(--ink);
}

.cookie-btn--accent {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.cookie-btn--accent:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  opacity: 0.88;
}

@media (max-width: 900px) {
  .cookie-banner__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-btn {
    flex: 1;
  }
}
/* --- direct contact channels ------------------------------------------- */

.contact__channels {
  align-self: center;
  border-top: 1px solid var(--line);
}

.contact-channel {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.contact-channel__label {
  color: var(--faint);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-channel__value {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(19px, 2.1vw, 30px);
  font-weight: 400;
  line-height: 1.15;
  overflow-wrap: anywhere;
  transition: color 0.25s;
}

.contact-channel__arrow {
  display: grid;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-dim);
  place-items: center;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s;
}

.contact-channel__arrow .icon {
  width: 15px;
  height: 15px;
}

.contact-channel:hover .contact-channel__value {
  color: var(--accent);
}

.contact-channel:hover .contact-channel__arrow {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  transform: rotate(-45deg);
}

.contact__channels-note {
  margin-top: 22px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .contact__channels {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .contact-channel {
    grid-template-columns: minmax(0, 1fr) 34px;
    gap: 12px;
    padding: 18px 0;
  }

  .contact-channel__label {
    grid-column: 1 / -1;
    margin-bottom: -8px;
  }

  .contact-channel__value {
    font-size: 19px;
  }

  .contact-channel__arrow {
    width: 34px;
    height: 34px;
  }
}
/* --- previous / next project navigation --------------------------------- */

.project__nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.project__nav .project__next {
  border-top: 0;
}

.project__nav .project__prev {
  border-bottom: 0;
  border-right: 1px solid var(--line);
}

.project__nav .project__next-inner {
  align-items: end;
}

.project__nav .project__next-inner > .mono {
  grid-row: 1;
}

.project__nav .project__next-inner > h3 {
  grid-row: 2;
}

.project__nav > .project__next:not(.project__prev) .project__next-inner > h3 {
  grid-column: 1;
}

.project__nav .project__next:not(.project__prev) .project__next-arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
}

.project__nav h3 {
  min-width: 0;
  font-size: clamp(28px, 4.4vw, 68px);
  overflow-wrap: anywhere;
}



.project__prev .project__next-inner {
  grid-template-columns: auto minmax(0, 1fr);
}

.project__prev .project__next-inner > .mono,
.project__prev .project__next-inner > h3 {
  justify-self: end;
  text-align: right;
}

.project__prev .project__next-inner > .mono {
  grid-column: 2;
}

.project__prev .project__next-inner > h3 {
  grid-column: 2;
  grid-row: 2;
}

.project__prev .project__next-arrow {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: end;
}

.project__prev-arrow .icon {
  transform: rotate(180deg);
}

@media (max-width: 900px) {
  .project__nav {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .project__nav .project__prev {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .project__nav .project__next {
    padding-block: clamp(26px, 5vw, 48px);
  }

  .project__nav .project__next-inner {
    gap: 10px;
  }

  .project__nav h3 {
    font-size: clamp(17px, 5.2vw, 42px);
  }

  .project__nav .project__next-arrow {
    width: clamp(30px, 6vw, 52px);
    height: clamp(30px, 6vw, 52px);
  }

  .project__nav .project__next-arrow .icon {
    width: clamp(11px, 2vw, 18px);
    height: clamp(11px, 2vw, 18px);
  }

  .project__nav .project__next-inner > .mono {
    font-size: 8px;
    letter-spacing: 0.08em;
  }
}

@media (max-width: 600px) {
  .project__nav .project__next {
    padding-block: 22px;
  }

  .project__nav .project__next-inner > .mono {
    font-size: 7px;
    letter-spacing: 0.05em;
  }

  .project__nav .project__next-inner {
    gap: 8px;
  }

  .project__nav h3 {
    font-size: clamp(16px, 5.4vw, 25px);
  }

  .project__nav .project__next-arrow {
    width: 30px;
    height: 30px;
  }

  .project__nav .project__next-arrow .icon {
    width: 11px;
    height: 11px;
  }
}