/* ============================================================
   BRANDOG — main.css
   ============================================================ */

/* --- Variables -------------------------------------------- */
:root {
  --bg:        #0a0a0a;
  --bg-2:      #111111;
  --bg-3:      #161616;
  --text:      #f0f0f0;
  --white-bg:  #ffffff;
  --text-muted:#999999;
  --text-dim:  #2a2a2a;
  --accent:    #ff5c01;
  --accent-dim:#cc4a01;
  --border:    #1e1e1e;
  --radius:    6px;
  --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --t:         0.4s;
  --container: 1320px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { border: none; background: none; cursor: none; }
input, textarea, select { font-family: inherit; }

/* --- Cursor: Paw ------------------------------------------ */
.cursor-paw {
  position: fixed;
  width: 26px;
  height: 30px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%) rotate(0deg);
  filter: drop-shadow(0 0 6px rgba(255,92,1,0.5));
  transition: opacity 0.2s;
}
.cursor-paw svg { width: 100%; height: 100%; fill: var(--accent); }

.cursor-paw.wiggle { animation: pawWiggle 0.4s ease-in-out infinite; }
.cursor-paw.hide   { opacity: 0; }

@keyframes pawWiggle {
  0%, 100% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
  25%  { transform: translate(-50%, -50%) rotate(-15deg) scale(1.1); }
  75%  { transform: translate(-50%, -50%) rotate(15deg) scale(1.1); }
}

/* Trail paws */
.paw-trail {
  position: fixed;
  width: 14px;
  height: 16px;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
}
.paw-trail svg { width: 100%; height: 100%; fill: var(--accent); }
.paw-trail--right svg { transform: scaleX(-1); }

/* "Смотреть" circle on work cards */
.cursor-view {
  position: fixed;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.35s var(--ease-out);
}
.cursor-view.active { transform: translate(-50%, -50%) scale(1); }

/* --- Container -------------------------------------------- */
.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

/* --- Typography ------------------------------------------- */
.display {
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.lead {
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-muted);
}

/* --- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background var(--t) var(--ease), color var(--t) var(--ease),
              transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}

.btn--accent {
  background: var(--accent);
  color: #ffffff;
}
.btn--accent:hover {
  background: #ff7a2e;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,92,1,0.25);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  padding-inline: 0;
}
.btn--ghost::after {
  content: '↗';
  transition: transform 0.3s var(--ease);
}
.btn--ghost:hover::after { transform: translate(3px, -3px); }

/* --- Header ----------------------------------------------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: padding var(--t) var(--ease), background var(--t) var(--ease),
              border-color var(--t) var(--ease);
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  padding: 1rem 0;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* --- Logo ------------------------------------------------- */
.logo {
  display: flex;
  align-items: flex-end;
  gap: 0.1em;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  flex-shrink: 0;
  transition: opacity 0.2s;
}
.logo:hover { opacity: 0.8; }

.logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1em;
  height: 1.85em;
  padding: 0.12em;
  background: transparent;
  color: #0a0a0a;
  border-radius: 0.3em;
  flex-shrink: 0;
  overflow: hidden;
  transition: transform 0.3s var(--ease);
}
.logo__mark svg { width: 100%; height: 100%; }
.logo:hover .logo__mark { transform: rotate(-5deg) scale(1.05); }

.logo__text { color: var(--text); }
.logo__text svg { width: 40%; height: 65%; }

/* --- Navigation ------------------------------------------- */
.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav__link {
  padding: 0.5rem 0.875rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 100px;
  transition: color var(--t), background var(--t);
}
.nav__link:hover       { color: var(--text); background: rgba(255,255,255,0.06); }
.nav__link--active     { color: var(--text); }

.header__cta { margin-left: 1rem; font-size: 0.85rem; padding: 0.65rem 1.5rem; }

/* --- Burger ----------------------------------------------- */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  margin-left: auto;
  padding: 4px;
}
.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }

/* --- Mobile Menu ------------------------------------------ */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.mobile-nav__link {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-muted);
  transition: color 0.2s;
  transform: translateY(20px);
  opacity: 0;
  transition: color 0.2s, transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.mobile-nav__link:hover, .mobile-nav__link--active { color: var(--text); }
.mobile-menu.open .mobile-nav__link {
  transform: translateY(0);
  opacity: 1;
}
.mobile-menu.open .mobile-nav__link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-nav__link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.open .mobile-nav__link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-nav__link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.open .mobile-nav__link:nth-child(5) { transition-delay: 0.3s; }
.mobile-nav__cta { margin-top: 1.5rem; transform: translateY(20px); opacity: 0; }
.mobile-menu.open .mobile-nav__cta { transform: translateY(0); opacity: 1; transition-delay: 0.35s; }

/* --- Section Base ----------------------------------------- */
.section { padding: 7rem 0; }
.section--sm { padding: 4rem 0; }
.section--lg { padding: 10rem 0; }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 4rem;
}
.section__head--center { flex-direction: column; align-items: center; text-align: center; }

/* --- Reveal animation base -------------------------------- */
.reveal { opacity: 0; transform: translateY(40px); }
.reveal-left { opacity: 0; transform: translateX(-40px); }
.reveal-right { opacity: 0; transform: translateX(40px); }
.reveal-scale { opacity: 0; transform: scale(0.92); }

/* ============================================================
   HERO v2 — Zigzag typographic hero
   ============================================================ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 7rem;
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,92,1,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,92,1,0.03) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
  animation: float 10s ease-in-out infinite;
}
.hero__orb--1 {
  width: 600px; height: 600px;
  background: var(--accent);
  top: -150px; right: -100px;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

.hero__dog-decor {
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  width: 50vw;
  max-width: 600px;
  opacity: 0.035;
  pointer-events: none;
}
.hero__dog-decor svg { width: 100%; height: auto; fill: #fff; }

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

.hero__label {
  margin-bottom: 2.5rem;
  opacity: 0;
}

/* Headline zigzag */
.hero__headline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 3.5rem;
}

.hero__row {
  overflow: hidden;
  line-height: 1;
}

.hero__row span {
  display: inline-block;
  font-weight: 900;
  letter-spacing: -0.04em;
  transform: translateY(110%);
}

.hero__row--1 {
  text-align: left;
}
.hero__row--1 span {
  font-size: clamp(3rem, 7.5vw, 7rem);
}

.hero__row--2 {
  text-align: right;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.4em;
}
.hero__row--2 span {
  font-size: clamp(3.5rem, 9vw, 8.5rem);
}

.hero__row--3 {
  text-align: left;
}
.hero__row--3 span {
  font-size: clamp(3rem, 7.5vw, 7rem);
}

/* Morphing word */
.hero__morph-wrap {
  position: relative;
  display: inline-block;
}

.hero__morph {
  color: var(--accent);
  position: relative;
}

.hero__morph::after {
  content: '|';
  animation: blink 0.8s step-end infinite;
  color: var(--accent);
  font-weight: 300;
  margin-left: 0.05em;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* Thin contrasting text */
.hero__thin {
  font-weight: 300 !important;
  font-size: clamp(1.8rem, 4vw, 3.5rem) !important;
  color: var(--text-muted);
  letter-spacing: -0.02em !important;
}

/* Hero bottom */
.hero__bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: end;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  opacity: 0;
}

.hero__desc-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero__desc-col .lead { max-width: 480px; }

.hero__actions {
  display: flex;
  gap: 1rem;
}

.hero__stats-col {
  display: flex;
  gap: 3rem;
}

.hero__stat-mini {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.hero__stat-num {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}
.hero__stat-suffix { color: var(--accent); font-weight: 900; font-size: inherit; }
.hero__stat-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

@media (max-width: 768px) {
  .hero { padding-top: 6rem; padding-bottom: 3rem; justify-content: flex-end; }
  .hero__row--2 { text-align: left; justify-content: flex-start; }
  .hero__bottom { grid-template-columns: 1fr; gap: 2rem; }
  .hero__stats-col { justify-content: flex-start; gap: 2rem; }
  .hero__stat-mini { align-items: flex-start; text-align: left; }
  .hero__dog-decor { width: 80vw; right: -20%; opacity: 0.025; }
  .hero__thin { font-size: clamp(1.2rem, 3vw, 2rem) !important; }
}

/* ============================================================
   WORD SCATTER (replaces ticker)
   ============================================================ */
.word-scatter {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.6rem 1.8rem;
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.word-scatter__item {
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-dim);
  cursor: default;
  transition: color 0.4s, transform 0.4s var(--ease-out), text-shadow 0.4s;
  user-select: none;
  line-height: 1.1;
}

.word-scatter__item:hover {
  color: var(--accent);
  transform: scale(1.08) translateY(-2px);
  text-shadow: 0 0 30px rgba(255,92,1,0.3);
}

.word-scatter__item--xl { font-size: clamp(2.5rem, 5vw, 4rem); color: var(--text-muted); }
.word-scatter__item--lg { font-size: clamp(1.6rem, 3.5vw, 2.8rem); }
.word-scatter__item--md { font-size: clamp(1.1rem, 2vw, 1.7rem); }
.word-scatter__item--sm { font-size: clamp(0.85rem, 1.2vw, 1.1rem); font-weight: 600; }
.word-scatter__item--outline {
  color: transparent;
  -webkit-text-stroke: 1px var(--text-dim);
  font-size: clamp(2rem, 4vw, 3.2rem);
}
.word-scatter__item--outline:hover {
  -webkit-text-stroke-color: var(--accent);
  color: transparent;
  text-shadow: none;
}
.word-scatter__item--accent { color: var(--accent); opacity: 0.3; }
.word-scatter__item--accent:hover { opacity: 1; }

@media (max-width: 768px) {
  .word-scatter { gap: 0.5rem 1rem; padding: 2.5rem 0; }
}

/* ============================================================
   GEOGRAPHY MAP
   ============================================================ */
.geo {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.geo__head {
  text-align: center;
  margin-bottom: 3.5rem;
}
.geo__head h2 { margin-top: 0.5rem; }

.geo__wrap {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.geo__map {
  width: 100%;
  height: auto;
  opacity: 0.15;
}

.geo__pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: default;
}

.geo__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(255,92,1,0.5);
}
.geo__dot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0;
  animation: ping 2s ease-out infinite;
}

@keyframes ping {
  0%   { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(2.2); opacity: 0; }
}

.geo__pin:nth-child(2) .geo__dot::after { animation-delay: 0.3s; }
.geo__pin:nth-child(3) .geo__dot::after { animation-delay: 0.7s; }
.geo__pin:nth-child(4) .geo__dot::after { animation-delay: 1.1s; }
.geo__pin:nth-child(5) .geo__dot::after { animation-delay: 0.5s; }
.geo__pin:nth-child(6) .geo__dot::after { animation-delay: 0.9s; }
.geo__pin:nth-child(7) .geo__dot::after { animation-delay: 1.3s; }

.geo__city {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.2s;
}
.geo__pin:hover .geo__city { color: var(--accent); }
.geo__pin:hover .geo__dot { box-shadow: 0 0 20px rgba(255,92,1,0.8); }

.geo__footer {
  text-align: center;
  margin-top: 2.5rem;
}

@media (max-width: 768px) {
  .geo__city { font-size: 0.7rem; }
  .geo__dot { width: 8px; height: 8px; }
}

/* ============================================================
   NUMBERS / STATS
   ============================================================ */
.stats {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat {
  padding: 2rem 3rem;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }

.stat__number {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
}

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

.stat__label {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ============================================================
   SERVICES — Interactive expanding panels (homepage)
   ============================================================ */
.service-panels {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}

.service-panel {
  position: relative;
  display: block;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
}

.service-panel__accent {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease-out);
  z-index: 2;
}
.service-panel:hover .service-panel__accent { transform: scaleY(1); }

.service-panel__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,92,1,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.service-panel:hover .service-panel__bg { opacity: 1; }

.service-panel__header {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  align-items: center;
  padding: 2rem 1.5rem;
  position: relative;
  z-index: 1;
}

.service-panel__num {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--text-dim);
  letter-spacing: -0.04em;
  line-height: 1;
  transition: color 0.4s;
}
.service-panel:hover .service-panel__num { color: var(--accent); }

.service-panel__title {
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: transform 0.4s var(--ease-out), color 0.3s;
}
.service-panel:hover .service-panel__title { transform: translateX(10px); }

.service-panel__toggle {
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--text-dim);
  transition: transform 0.5s var(--ease-out), color 0.4s;
  line-height: 1;
}
.service-panel:hover .service-panel__toggle {
  transform: rotate(45deg);
  color: var(--accent);
}

.service-panel__body {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem 0 calc(5.5rem + 1.5rem);
  position: relative;
  z-index: 1;
  transition: max-height 0.6s var(--ease-out), padding-bottom 0.6s;
}
.service-panel:hover .service-panel__body {
  max-height: 300px;
  padding-bottom: 2rem;
}

.service-panel__body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  max-width: 560px;
}

.service-panel__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.service-panel__tags span {
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: border-color 0.3s, color 0.3s, transform 0.3s;
}
.service-panel:hover .service-panel__tags span {
  border-color: rgba(255,92,1,0.3);
  color: var(--text);
}
.service-panel:hover .service-panel__tags span:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .service-panel__header { grid-template-columns: 3rem 1fr auto; padding: 1.5rem 1rem; }
  .service-panel__body { padding-left: calc(3rem + 1rem); padding-right: 1rem; }
  .service-panel__num { font-size: 1.5rem; }
}

/* ============================================================
   WORKS GRID
   ============================================================ */
.works-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.work-card {
  position: relative;
  border-radius: calc(var(--radius) * 2);
  overflow: hidden;
  background: var(--bg-2);
  cursor: none;
}

.work-card:nth-child(1) { grid-column: span 7; }
.work-card:nth-child(2) { grid-column: span 5; }
.work-card:nth-child(3) { grid-column: span 5; }
.work-card:nth-child(4) { grid-column: span 7; }
.work-card:nth-child(5) { grid-column: span 6; }
.work-card:nth-child(6) { grid-column: span 6; }

.work-card__visual {
  width: 100%;
  padding-top: 65%;
  position: relative;
  overflow: hidden;
}

.work-card:nth-child(1) .work-card__visual { padding-top: 55%; }
.work-card:nth-child(3) .work-card__visual,
.work-card:nth-child(2) .work-card__visual { padding-top: 70%; }

.work-card__bg {
  position: absolute;
  inset: 0;
  transition: transform 0.6s var(--ease);
}
.work-card:hover .work-card__bg { transform: scale(1.04); }

/* Individual work card backgrounds */
.work-card:nth-child(1) .work-card__bg {
  background: linear-gradient(135deg, #0d1b4b 0%, #1a3a8f 40%, #00c8e0 100%);
}
.work-card:nth-child(2) .work-card__bg {
  background: linear-gradient(135deg, #1a0a2e 0%, #4a1a7a 50%, #c830ff 100%);
}
.work-card:nth-child(3) .work-card__bg {
  background: linear-gradient(135deg, #0a2010 0%, #0d5c20 50%, #00e05a 100%);
}
.work-card:nth-child(4) .work-card__bg {
  background: linear-gradient(135deg, #2b0a00 0%, #8a2000 50%, #ff5500 100%);
}
.work-card:nth-child(5) .work-card__bg {
  background: linear-gradient(135deg, #0a0a20 0%, #1a1a6a 50%, #4444ff 100%);
}
.work-card:nth-child(6) .work-card__bg {
  background: linear-gradient(135deg, #1a100a 0%, #5a3000 50%, #c87000 100%);
}
.work-card:nth-child(7) .work-card__bg {
  background: linear-gradient(135deg, #0a1a1a 0%, #0d5c50 50%, #00e0c8 100%);
}
.work-card:nth-child(8) .work-card__bg {
  background: linear-gradient(135deg, #1a1a0a 0%, #4a4a00 50%, #c8c800 100%);
}
.work-card:nth-child(9) .work-card__bg {
  background: linear-gradient(135deg, #1a0a10 0%, #6a0030 50%, #ff0066 100%);
}

/* Decorative elements inside work cards */
.work-card__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  mix-blend-mode: overlay;
}

.work-card__decor {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-card__decor svg {
  width: 40%;
  height: 40%;
  opacity: 0.12;
  transition: opacity 0.4s, transform 0.6s var(--ease);
}
.work-card:hover .work-card__decor svg {
  opacity: 0.2;
  transform: scale(1.1) rotate(5deg);
}

.work-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.work-card:hover .work-card__overlay { opacity: 1; }

.work-card__info {
  padding: 1.25rem 1.5rem;
}

.work-card__category {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.work-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.work-card__link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* works page full grid */
.works-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.works-full-grid .work-card { grid-column: span 1 !important; }
.works-full-grid .work-card .work-card__visual { padding-top: 70% !important; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  padding: 8rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, rgba(255,92,1,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section__email {
  display: inline-block;
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text);
  border-bottom: 2px solid var(--border);
  transition: color 0.3s, border-color 0.3s;
  margin: 1.5rem 0 2rem;
}
.cta-section__email:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 5rem 0 2.5rem;
}

.footer__inner { display: flex; flex-direction: column; gap: 3rem; }

.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer__tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.footer__col-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__nav a, .footer__address {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer__nav a:hover { color: var(--text); }
.footer__address { font-size: 0.9rem; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer__copy { font-size: 0.9rem; color: var(--text-muted); }

.footer__socials {
  display: flex;
  gap: 0.75rem;
}

.footer__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
}
.footer__social:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   PAGE: HERO variants
   ============================================================ */
.page-hero {
  padding: 10rem 0 5rem;
  border-bottom: 1px solid var(--border);
}

.page-hero__label { margin-bottom: 1rem; }
.page-hero__title { margin-bottom: 1.5rem; }
.page-hero__desc  { max-width: 540px; }

/* ============================================================
   PAGE: SERVICES
   ============================================================ */
.service-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1.5px solid var(--border);
  border-radius: calc(var(--radius) * 2);
  overflow: hidden;
}

.service-card {
  background: var(--bg);
  padding: 3rem;
  transition: background 0.3s;
}
.service-card:hover { background: var(--bg-2); }

.service-card__icon {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  background: rgba(255,92,1,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  color: var(--accent);
  transition: background 0.3s;
}
.service-card:hover .service-card__icon { background: rgba(255,92,1,0.18); }

.service-card__title { margin-bottom: 0.75rem; font-size: 1.3rem; }

.service-card__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-card__list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.service-card__list li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}
.service-card__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ============================================================
   PAGE: ABOUT
   ============================================================ */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-intro__visual {
  aspect-ratio: 1;
  border-radius: calc(var(--radius) * 3);
  overflow: hidden;
  position: relative;
  background: var(--bg-2);
}

.about-visual-inner {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0d1b4b 0%, #0a2010 40%, #1a0a2e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-visual-text {
  font-size: 10rem;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,92,1,0.2);
  letter-spacing: -0.06em;
  line-height: 1;
  user-select: none;
}

.about-intro__content { display: flex; flex-direction: column; gap: 1.5rem; }
.about-intro__title { margin-bottom: 0; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
}

.value-card {
  padding: 2rem;
  background: var(--bg-2);
  border-radius: calc(var(--radius) * 2);
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.3s;
}
.value-card:hover { border-color: rgba(255,92,1,0.3); transform: translateY(-4px); }

.value-card__num {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent);
  opacity: 0.3;
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 1rem;
}
.value-card__title { margin-bottom: 0.5rem; font-size: 1.1rem; }
.value-card__desc { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }

/* ============================================================
   PAGE: CONTACT
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 2.5rem; }

.contact-detail__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.contact-detail__value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
}
a.contact-detail__value:hover { color: var(--accent); }

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.5rem; }

.form-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-input {
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,92,1,0.1);
}
.form-input::placeholder { color: var(--text-muted); }

textarea.form-input {
  resize: vertical;
  min-height: 120px;
  max-height: 300px;
}

.form-submit { margin-top: 0.5rem; }

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.5rem;
}

/* ============================================================
   WORKS FILTER
   ============================================================ */
.works-filter {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.6rem 1.5rem;
  border: 1.5px solid var(--text-dim);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  transition: all 0.25s;
}
.filter-btn:hover    { border-color: var(--text-muted); color: var(--text); background: rgba(255,255,255,0.04); }
.filter-btn.active   { background: var(--accent); border-color: var(--accent); color: #ffffff; }

/* ============================================================
   UTILITIES
   ============================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.text-accent { color: var(--accent); }
.text-muted  { color: var(--text-muted); }
.font-bold   { font-weight: 700; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* Loading overlay */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.page-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.loader__logo {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.loader__bar-wrap {
  width: 200px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.loader__bar {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  width: 0%;
  transition: width 0.05s linear;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .works-grid .work-card:nth-child(1),
  .works-grid .work-card:nth-child(2),
  .works-grid .work-card:nth-child(3),
  .works-grid .work-card:nth-child(4),
  .works-grid .work-card:nth-child(5),
  .works-grid .work-card:nth-child(6) { grid-column: span 6; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-bottom: 1px solid var(--border); }
  .stat:nth-child(2), .stat:nth-child(4) { border-right: none; }
}

@media (max-width: 900px) {
  .about-intro  { grid-template-columns: 1fr; gap: 3rem; }
  .service-cards { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .works-full-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --container: calc(100% - 2.5rem); }

  body { cursor: auto; }
  .cursor-paw, .cursor-view { display: none !important; }

  .nav, .header__cta { display: none; }
  .burger { display: flex; }

  .mobile-menu { display: flex; }

  .works-grid { grid-template-columns: 1fr; }
  .works-grid .work-card { grid-column: span 1 !important; }
  .works-grid .work-card .work-card__visual { padding-top: 65% !important; }

  .works-full-grid { grid-template-columns: 1fr; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 1.5rem; }

  .hero__bottom { flex-direction: column; align-items: flex-start; }
  .footer__top  { flex-direction: column; gap: 0.5rem; }
  .footer__bottom { flex-direction: column; gap: 0.75rem; }
  .footer__grid { grid-template-columns: 1fr; }

  .values-grid { grid-template-columns: 1fr; }
  .section__head { flex-direction: column; align-items: flex-start; }
}
