/* ═══════════════════════════════════════════════════════════════
   YUPITER-5 — Dark Rose Editorial
   Palette: #0c080a bg, #ec4899 pink, #e879f9 fuchsia
   Typography: Syne (display), IBM Plex Sans (body), IBM Plex Mono (code)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg:           #0c080a;
  --bg-elevated:  #140e12;
  --surface:      #1c1318;
  --surface-2:    #241a22;
  --border:       rgba(244, 114, 182, 0.1);
  --border-strong:rgba(236, 72, 153, 0.32);
  --text:         #fce7f3;
  --text-muted:   #c4a8b8;
  --text-dim:     #8b7280;
  --cyan:         #f472b6;
  --cyan-soft:    rgba(244, 114, 182, 0.12);
  --cyan-glow:    rgba(236, 72, 153, 0.35);
  --indigo:       #e879f9;
  --indigo-soft:  rgba(232, 121, 249, 0.12);
  --mint:         #fb7185;
  --on-accent:    #ffffff;
  --gradient:     linear-gradient(125deg, #ec4899 0%, #e879f9 100%);
  --gradient-soft:linear-gradient(125deg, rgba(236,72,153,0.08), rgba(232,121,249,0.06));
  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    12px;
  --shadow:       0 4px 24px rgba(0, 0, 0, 0.45);
  --shadow-accent:0 8px 32px rgba(236, 72, 153, 0.22);
  --font-display: 'Syne', system-ui, sans-serif;
  --font-body:    'IBM Plex Sans', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', 'Fira Code', monospace;
  --header-h:     72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; height: 100%; -webkit-font-smoothing: antialiased; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100%;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 10%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
code { font-family: var(--font-mono); font-size: 0.88em; }

.shell {
  width: min(100% - 2.5rem, 1180px);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* ═══ TYPOGRAPHY ═══ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
h1 { font-size: clamp(2.6rem, 6vw + 0.5rem, 4.5rem); }
h2 { font-size: clamp(1.9rem, 3.5vw + 0.5rem, 3rem); }
h3 { font-size: clamp(1.05rem, 1.5vw + 0.3rem, 1.35rem); }

.txt-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--gradient);
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--cyan);
  text-transform: uppercase;
}

/* ═══ PANELS & CHIPS ═══ */
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.panel:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-accent);
}
.panel--accent {
  position: relative;
  overflow: hidden;
}
.panel--accent::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient);
}
.panel--inset {
  background: var(--bg-elevated);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.35), inset 0 -1px 0 rgba(255,255,255,0.03);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--text-muted);
  transition: all 0.2s ease;
}
.chip:hover {
  border-color: var(--border-strong);
  color: var(--text);
}
.chip--sm { padding: 0.25rem 0.55rem; font-size: 0.72rem; }
.chip--lg {
  padding: 1.5rem 2rem;
  border-radius: var(--radius-lg);
  flex-direction: column;
  gap: 1rem;
}

/* ═══ BUTTONS ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.btn:hover {
  border-color: var(--border-strong);
  color: var(--cyan);
}
.btn--primary {
  background: var(--gradient);
  color: var(--on-accent);
  border: none;
  font-weight: 600;
}
.btn--primary:hover {
  filter: brightness(1.06);
  color: var(--on-accent);
  box-shadow: var(--shadow-accent);
}
.btn--outline {
  border-color: var(--border-strong);
  color: var(--cyan);
}
.btn--outline:hover {
  background: var(--cyan-soft);
}

/* ═══ HEADER ═══ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}
.site-header--scrolled {
  background: rgba(12, 8, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.site-header--hidden { transform: translateY(-100%); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.brand > span:not(.brand__mark) {
  display: grid;
  line-height: 1.2;
}
.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--gradient);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--on-accent);
  letter-spacing: -0.02em;
}
.brand__text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.brand__sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav__list {
  display: flex;
  gap: 0.15rem;
  align-items: center;
}
.site-nav__list a {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.site-nav__list a:hover {
  color: var(--text);
  background: var(--surface);
}
.site-nav__cta {
  margin-left: 0.5rem;
  padding: 0.45rem 1rem !important;
  background: var(--cyan-soft) !important;
  border: 1px solid var(--border-strong) !important;
  color: var(--cyan) !important;
}
.site-nav__cta:hover {
  background: rgba(236, 72, 153, 0.18) !important;
  color: var(--cyan) !important;
}

.site-nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.site-nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: all 0.3s ease;
}

/* ═══ SECTIONS ═══ */
.section {
  padding-block: 5.5rem;
  position: relative;
}
.section--band {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}
.section--gradient {
  background: var(--gradient-soft);
}
.section__head {
  margin-bottom: 3rem;
  display: grid;
  gap: 0.75rem;
}
.section__head--center {
  text-align: center;
  justify-items: center;
}
.section__head--center .section-label::before { display: none; }
.section__head p {
  color: var(--text-muted);
  max-width: 52ch;
  font-size: 1.05rem;
}

.section__num {
  font-family: var(--font-display);
  font-size: clamp(4rem, 8vw, 7rem);
  font-weight: 800;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.15;
  position: absolute;
  top: 3rem;
  right: 0;
  pointer-events: none;
  user-select: none;
}

/* ═══ HERO ═══ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--header-h);
  position: relative;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.hero__glow--1 {
  width: 600px;
  height: 600px;
  top: -20%;
  right: -10%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.12), transparent 65%);
}
.hero__glow--2 {
  width: 500px;
  height: 500px;
  bottom: -15%;
  left: -15%;
  background: radial-gradient(circle, rgba(232, 121, 249, 0.08), transparent 65%);
}

.hero__layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: center;
  padding-block: 4rem;
}

.hero__content { display: grid; gap: 1.75rem; }

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__title { max-width: 14ch; }

.hero__sub {
  color: var(--text-muted);
  max-width: 48ch;
  font-size: 1.12rem;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.hero__tags code { color: var(--cyan); font-size: 0.72rem; }

.hero__aside {
  display: grid;
  gap: 1rem;
}

.hero__stat-card {
  padding: 1.25rem 1.5rem;
  display: grid;
  gap: 0.35rem;
}
.hero__stat-card .tag { margin-bottom: 0.25rem; }
.hero__stat-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}
.hero__stat-num em {
  font-style: normal;
  font-size: 0.55em;
  color: var(--cyan);
}
.hero__stat-label {
  font-size: 0.82rem;
  color: var(--text-dim);
}

.hero__metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 2rem;
}
.hero__metrics-bar > div {
  padding: 1.25rem 1.5rem;
  border-right: 1px solid var(--border);
  display: grid;
  gap: 0.2rem;
}
.hero__metrics-bar > div:last-child { border-right: none; }
.hero__metrics-bar strong {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--cyan);
}
.hero__metrics-bar span {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  right: 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 48px;
  height: 1px;
  background: var(--gradient);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleX(0.6); }
  50% { opacity: 1; transform: scaleX(1); }
}

/* ═══ ABOUT ═══ */
.about__grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: start;
}

.about__identity {
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  display: grid;
  gap: 1.5rem;
}
.about__identity-card {
  padding: 2rem;
  text-align: center;
  display: grid;
  gap: 1rem;
  justify-items: center;
}
.about__icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  background: var(--gradient-soft);
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
}
.about__identity code {
  font-size: 0.78rem;
  color: var(--cyan);
}
.about__identity span {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.about__content { display: grid; gap: 1.25rem; }

.about__block {
  padding: 1.75rem;
  display: grid;
  gap: 0.75rem;
}
.about__block h3 {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.about__block p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.about__meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.about__meta code { color: var(--text-muted); font-size: 0.72rem; }

/* ═══ SERVICES — EDITORIAL LIST ═══ */
.services__list {
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.service-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 2rem;
  align-items: start;
  padding: 2rem 2.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  transition: background 0.25s ease;
}
.service-row:last-child { border-bottom: none; }
.service-row:hover { background: var(--surface-2); }

.service-row__num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.5;
}
.service-row__body { display: grid; gap: 0.6rem; }
.service-row__body h3 { font-size: 1.15rem; }
.service-row__body p {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 60ch;
}
.service-row__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-self: center;
}

/* ═══ PORTFOLIO ═══ */
.portfolio__layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1rem;
}
.portfolio__main { display: grid; gap: 1rem; }
.portfolio__side { display: grid; gap: 1rem; }

.portfolio-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.portfolio-card__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  background: var(--gradient-soft);
  border-bottom: 1px solid var(--border);
  min-height: 200px;
}
.portfolio-card__visual--sm { padding: 2rem; min-height: 140px; }
.portfolio-card__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--cyan);
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
}
.portfolio-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}
.portfolio-card__body h3 { font-size: 1.2rem; }
.portfolio-card__body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
}
.portfolio-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

/* ═══ STATS BAND ═══ */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stats-band__item {
  padding: 2.5rem 2rem;
  text-align: center;
  border-right: 1px solid var(--border);
  display: grid;
  gap: 0.5rem;
}
.stats-band__item:last-child { border-right: none; }
.stats-band__num {
  font-family: var(--font-mono);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 600;
  color: var(--cyan);
  line-height: 1;
  text-shadow: 0 0 40px var(--cyan-glow);
}
.stats-band__label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}
.stats-band__sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

/* ═══ TECH STACK ═══ */
.tech__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.tech-card {
  padding: 1.75rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.tech-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  margin-bottom: 0.25rem;
}
.tech-card h4 {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
}
.tech-card code {
  font-size: 0.65rem;
  color: var(--indigo);
  letter-spacing: 0.04em;
}
.tech-card p {
  color: var(--text-dim);
  font-size: 0.78rem;
}

/* ═══ WORKFLOW — HORIZONTAL STEPS ═══ */
.workflow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  counter-reset: step;
}
.workflow__step {
  padding: 1.5rem;
  display: grid;
  gap: 0.75rem;
  position: relative;
  counter-increment: step;
}
.workflow__step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.4;
  line-height: 1;
}
.workflow__step h3 { font-size: 0.95rem; }
.workflow__step p {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

/* ═══ TESTIMONIALS ═══ */
.testimonials__layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
}
.testimonial {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100%;
}
.testimonial--featured {
  background: var(--gradient-soft);
  border-color: var(--border-strong);
}
.testimonial__stars {
  display: flex;
  gap: 0.15rem;
  color: var(--cyan);
  font-size: 0.9rem;
}
.testimonial__quote {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.75;
  flex: 1;
}
.testimonial--featured .testimonial__quote {
  font-size: 1.05rem;
  color: var(--text);
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.testimonial__avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--gradient);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.testimonial__avatar span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--on-accent);
}
.testimonial__author strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
}
.testimonial__author span {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ═══ TEAM ═══ */
.team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.team-card {
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}
.team-card__avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--gradient);
  display: grid;
  place-items: center;
  margin-bottom: 0.35rem;
}
.team-card__avatar span {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--on-accent);
}
.team-card h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
}
.team-card code {
  font-size: 0.65rem;
  color: var(--indigo);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.team-card p {
  color: var(--text-muted);
  font-size: 0.82rem;
  max-width: 26ch;
}

/* ═══ CONTACT ═══ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1rem;
}
.contact__info {
  display: grid;
  gap: 1rem;
}
.contact__block {
  padding: 1.75rem;
  display: grid;
  gap: 1rem;
}
.contact__block h3 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}
.contact__list {
  display: grid;
  gap: 0.75rem;
}
.contact__list li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.75rem;
  align-items: baseline;
}
.contact__list code {
  font-size: 0.7rem;
  color: var(--indigo);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.contact__list a {
  color: var(--text-muted);
  transition: color 0.2s;
  border-bottom: 1px dotted var(--border-strong);
}
.contact__list a:hover { color: var(--cyan); }
.contact__list span {
  color: var(--text-muted);
  font-size: 0.88rem;
}
.contact__list--compact { gap: 0.5rem; }
.contact__list--compact span { font-size: 0.82rem; }

.contact__form-wrap {
  padding: 2rem;
}
.contact__form {
  display: grid;
  gap: 1.25rem;
}
.contact__form h3 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
}

.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field {
  display: grid;
  gap: 0.35rem;
}
.field span {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.88rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px var(--cyan-soft);
}
.field textarea { resize: vertical; }
.field--full { grid-column: 1 / -1; }
.field select { cursor: pointer; }
.field select option { background: var(--bg-elevated); color: var(--text); }

.form__actions { display: flex; gap: 0.75rem; margin-top: 0.25rem; }

/* ═══ LEGAL PAGES ═══ */
.legal-page {
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: 4rem;
  min-height: 60vh;
}
.legal-page__inner {
  max-width: 800px;
  margin-inline: auto;
}
.legal-page__title {
  text-align: center;
  margin: 0 0 2rem;
}
.legal-page__sections {
  display: grid;
  gap: 1.25rem;
}
.legal-page__section {
  padding: 2rem 2.5rem;
  text-align: justify;
}
.legal-page__section h2 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 1rem;
}
.legal-page__section p,
.legal-page__section ul {
  margin: 0 0 1rem;
}
.legal-page__section p:last-child,
.legal-page__section ul:last-child {
  margin-bottom: 0;
}
.legal-page__section ul {
  padding-left: 1.5rem;
}
.legal-page__section li {
  margin-bottom: 0.35rem;
}
.legal-page__section li:last-child {
  margin-bottom: 0;
}
.legal-page__section a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.legal-page__section a:hover {
  color: var(--accent);
}
.legal-page__content {
  padding: 2.5rem;
  display: grid;
  gap: 1rem;
}
.legal-page__content h1 {
  margin-top: 0.25rem;
}

/* ═══ FOOTER ═══ */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 3rem 2rem;
  background: var(--bg-elevated);
}
.site-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.site-footer__brand { display: grid; gap: 0.5rem; }
.site-footer__tagline {
  color: var(--text-dim);
  font-size: 0.85rem;
  max-width: 32ch;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.site-footer__grid h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.footer-nav a,
.footer-nav span {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--cyan); }

.site-footer__bottom {
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-nav--inline {
  flex-direction: row;
  gap: 1rem;
}
.site-footer__bottom small {
  color: var(--text-dim);
  font-size: 0.78rem;
}

/* ═══ REVEAL ANIMATIONS ═══ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: revealIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes revealIn {
  to { opacity: 1; transform: translateY(0); }
}

[data-aos] { transition-property: opacity, transform; }
@keyframes aosFallback { to { opacity: 1; transform: none; } }
html:not(.aos-ready) [data-aos] { animation: aosFallback 0s 1.5s forwards; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .hero__layout { grid-template-columns: 1fr; }
  .hero__aside { grid-template-columns: repeat(3, 1fr); }
  .hero__metrics-bar { grid-template-columns: repeat(2, 1fr); }
  .hero__metrics-bar > div:nth-child(2) { border-right: none; }
  .hero__metrics-bar > div { border-bottom: 1px solid var(--border); }
  .hero__metrics-bar > div:nth-last-child(-n+2) { border-bottom: none; }
  .about__grid { grid-template-columns: 1fr; }
  .about__identity { position: static; }
  .service-row { grid-template-columns: 56px 1fr; }
  .service-row__tags { grid-column: 2; margin-top: 0.5rem; }
  .portfolio__layout { grid-template-columns: 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .stats-band__item:nth-child(2) { border-right: none; }
  .stats-band__item { border-bottom: 1px solid var(--border); }
  .stats-band__item:nth-last-child(-n+2) { border-bottom: none; }
  .tech__grid { grid-template-columns: repeat(3, 1fr); }
  .workflow { grid-template-columns: repeat(3, 1fr); }
  .testimonials__layout { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .shell { width: min(100% - 1.5rem, 1180px); }
  .section { padding-block: 4rem; }
  .section__num { display: none; }

  .site-nav__toggle { display: flex; }
  .site-nav__list {
    position: fixed;
    top: var(--header-h);
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    gap: 0.25rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 1000;
  }
  .site-nav__list--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav__list a {
    padding: 0.65rem 1rem;
    width: 100%;
    text-align: center;
  }
  .site-nav__cta { margin-left: 0 !important; }

  .hero { min-height: auto; }
  .hero__layout { padding-block: 3rem 2rem; }
  .hero__aside { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__scroll { display: none; }
  .hero__metrics-bar { grid-template-columns: 1fr; }
  .hero__metrics-bar > div { border-right: none; }
  .hero__metrics-bar > div:not(:last-child) { border-bottom: 1px solid var(--border); }

  .service-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1.5rem;
  }
  .service-row__num { font-size: 1.75rem; }

  .stats-band { grid-template-columns: 1fr; }
  .stats-band__item { border-right: none; }
  .stats-band__item:not(:last-child) { border-bottom: 1px solid var(--border); }

  .tech__grid { grid-template-columns: repeat(2, 1fr); }
  .workflow { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: 1fr; }
  .form__grid { grid-template-columns: 1fr; }
  .field--full { grid-column: 1; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 480px) {
  .tech__grid { grid-template-columns: 1fr; }
  .hero__tags { flex-direction: column; align-items: flex-start; }
  .about__meta { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__scroll-line { animation: none; opacity: 0.5; }
}
