/* ZenByte v3 — Clean, fast, no bugs */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=Inter:wght@300;400;500&family=JetBrains+Mono:wght@400&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: 'Inter', sans-serif;
  background: #0a0a0a;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: #fff; color: #0a0a0a; }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #333; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px;
  transition: background .4s, border-color .4s, padding .4s;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(10,10,10,.95);
  backdrop-filter: blur(16px);
  border-bottom-color: rgba(255,255,255,.07);
  padding: 14px 48px;
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 400;
  color: #fff; text-decoration: none;
}
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.4); text-decoration: none;
  transition: color .25s;
}
.nav-links a:hover, .nav-links a.nav-cta:hover { color: #fff; }
.nav-cta {
  font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
  padding: 9px 22px; border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.6); text-decoration: none;
  transition: border-color .25s, color .25s;
}
.nav-cta:hover { border-color: #fff; color: #fff; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 1px; background: rgba(255,255,255,.5); }

/* ── REVEAL ── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }
.reveal.d4 { transition-delay: .4s; }
.reveal.d5 { transition-delay: .5s; }

/* ── UTILS ── */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 48px; }
.label {
  font-family: 'JetBrains Mono', monospace;
  font-size: .65rem; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.28); margin-bottom: 20px; display: block;
}
.heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 300; line-height: .95; letter-spacing: -.01em; color: #fff;
}
.heading em { font-style: italic; color: rgba(255,255,255,.45); }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 0 72px; position: relative; overflow: hidden;
}
.hero-watermark {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(8rem, 22vw, 22rem);
  font-weight: 700; letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.03);
  pointer-events: none; white-space: nowrap; user-select: none;
  animation: wm-drift 18s ease-in-out infinite alternate;
}
@keyframes wm-drift {
  from { transform: translate(-50%,-52%); }
  to   { transform: translate(-50%,-48%); }
}
.hero-inner {
  position: relative; z-index: 2;
}
.hero-top {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding-top: 120px; gap: 60px;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(4rem, 8.5vw, 9rem);
  font-weight: 300; line-height: .92; letter-spacing: -.02em; color: #fff;
  animation: hero-in .9s ease both;
}
.hero-title em { font-style: italic; color: rgba(255,255,255,.4); }
@keyframes hero-in {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: none; }
}
.hero-aside {
  max-width: 260px; flex-shrink: 0;
  animation: hero-in .9s ease .2s both;
}
.hero-aside p { font-size: .875rem; color: rgba(255,255,255,.4); line-height: 1.75; margin-bottom: 28px; }
.hero-btns { display: flex; flex-direction: column; gap: 10px; }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; background: #fff; color: #0a0a0a;
  font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; transition: opacity .25s, transform .25s;
}
.btn-primary:hover { opacity: .85; transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.5); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; transition: border-color .25s, color .25s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.4); color: #fff; }

.hero-divider { border: none; border-top: 1px solid rgba(255,255,255,.07); margin: 48px 0 0; }
.hero-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  animation: hero-in .9s ease .35s both;
}
.hero-status { display: flex; align-items: center; gap: 10px; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.35); animation: blink 3s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:.3;} 50%{opacity:.9;} }
.hero-status span { font-family: 'JetBrains Mono', monospace; font-size: .62rem; letter-spacing: .1em; color: rgba(255,255,255,.25); }
.hero-nums { display: flex; gap: 40px; }
.hero-num { text-align: right; }
.hero-num-val { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 300; color: #fff; line-height: 1; }
.hero-num-lbl { font-family: 'JetBrains Mono', monospace; font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.22); margin-top: 2px; }

/* ── SERVICES ── */
#services { padding: 120px 0; }
.services-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 70px; gap: 40px;
}
.services-head .sub { font-size: .9rem; color: rgba(255,255,255,.35); line-height: 1.7; max-width: 300px; flex-shrink: 0; }
.svc-grid { display: grid; grid-template-columns: repeat(3,1fr); }
.svc {
  padding: 40px 32px;
  border-top: 1px solid rgba(255,255,255,.07);
  border-right: 1px solid rgba(255,255,255,.07);
  position: relative; overflow: hidden;
  transition: background .35s;
}
.svc:nth-child(3n) { border-right: none; }
.svc:hover { background: rgba(255,255,255,.03); }
.svc::before {
  content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: #fff; transform: scaleX(0); transform-origin: left;
  transition: transform .5s ease;
}
.svc:hover::before { transform: scaleX(1); }
.svc-n { font-family: 'JetBrains Mono', monospace; font-size: .6rem; letter-spacing: .15em; color: rgba(255,255,255,.18); margin-bottom: 40px; }
.svc-icon { font-size: 1.5rem; margin-bottom: 18px; opacity: .5; transition: opacity .3s, transform .4s ease; display: block; }
.svc:hover .svc-icon { opacity: .9; transform: translateY(-3px); }
.svc-title { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 400; color: #fff; margin-bottom: 10px; }
.svc-desc { font-size: .82rem; color: rgba(255,255,255,.32); line-height: 1.7; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.svc-tag { font-family: 'JetBrains Mono', monospace; font-size: .6rem; letter-spacing: .08em; color: rgba(255,255,255,.25); border: 1px solid rgba(255,255,255,.1); padding: 3px 8px; }

/* ── TECH MARQUEE ── */
#technologies { padding: 80px 0; background: #070707; border-top: 1px solid rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.05); }
.tech-label { margin-bottom: 36px; }
.marquee-wrap { overflow: hidden; position: relative; }
.marquee-wrap::before, .marquee-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.marquee-wrap::before { left: 0; background: linear-gradient(to right, #070707, transparent); }
.marquee-wrap::after  { right: 0; background: linear-gradient(to left, #070707, transparent); }
.marquee-track {
  display: flex; animation: marquee 28s linear infinite; width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }
@keyframes marquee { from{transform:translateX(0);} to{transform:translateX(-50%);} }
.tech-item {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 32px; border-right: 1px solid rgba(255,255,255,.06);
  white-space: nowrap;
}
.tech-item span { font-size: .82rem; color: rgba(255,255,255,.3); letter-spacing: .04em; }
.tech-item em { font-style: normal; font-size: 1.2rem; opacity: .5; }

/* ── STATS ── */
#stats { padding: 100px 0; }
.stats-row {
  display: grid; grid-template-columns: repeat(4,1fr);
  border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.stat {
  padding: 52px 40px;
  border-right: 1px solid rgba(255,255,255,.07);
  transition: background .35s;
}
.stat:last-child { border-right: none; }
.stat:hover { background: rgba(255,255,255,.02); }
.stat-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 4vw, 4.5rem);
  font-weight: 300; line-height: 1; color: #fff; margin-bottom: 10px;
}
.stat-lbl { font-size: .8rem; color: rgba(255,255,255,.3); }
.stat-sub { font-family: 'JetBrains Mono', monospace; font-size: .6rem; letter-spacing: .1em; color: rgba(255,255,255,.15); margin-top: 4px; }

/* ── PORTFOLIO ── */
#portfolio { padding: 120px 0; }
.portfolio-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 56px; gap: 40px;
}
.pf-filters { display: flex; gap: 8px; flex-shrink: 0; }
.pf-btn {
  padding: 7px 16px; background: none; cursor: pointer;
  border: 1px solid rgba(255,255,255,.1);
  font-family: 'JetBrains Mono', monospace;
  font-size: .62rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.3); transition: all .25s;
}
.pf-btn:hover, .pf-btn.active { border-color: rgba(255,255,255,.4); color: #fff; }
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.07); }
.pf-card {
  position: relative; overflow: hidden; background: #0a0a0a;
  aspect-ratio: 4/3; transition: opacity .4s, transform .4s;
}
.pf-card:first-child { grid-row: span 2; aspect-ratio: auto; }
.pf-bg {
  position: absolute; inset: 0; background: #111;
  display: flex; align-items: center; justify-content: center;
  transition: transform .6s ease, filter .6s ease;
}
.pf-card:hover .pf-bg { transform: scale(1.04); filter: brightness(.6); }
/* mini mockup inside card */
.mini-mock { width: 72%; border-radius: 4px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.mm-bar { height: 24px; background: #1a1a1a; display: flex; align-items: center; gap: 5px; padding: 0 10px; }
.mm-dot { width: 7px; height: 7px; border-radius: 50%; background: #2a2a2a; }
.mm-body { background: #141414; padding: 14px; }
.mm-line { height: 6px; border-radius: 3px; background: #1f1f1f; margin-bottom: 7px; }
.mm-line.w40 { width: 40%; height: 3px; background: #333; }
.mm-line.w75 { width: 75%; }
.mm-line.w55 { width: 55%; }
.mm-line.w80 { width: 80%; }
.mm-cells { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.mm-cell { height: 30px; background: #1a1a1a; border-radius: 3px; border: 1px solid rgba(255,255,255,.04); }
.pf-info {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,.96) 0%, transparent 50%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px;
}
.pf-tag { font-family: 'JetBrains Mono', monospace; font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.28); margin-bottom: 6px; }
.pf-title { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 400; color: #fff; margin-bottom: 6px; }
.pf-desc { font-size: .8rem; color: rgba(255,255,255,.4); line-height: 1.55; max-width: 380px; opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s ease; }
.pf-card:hover .pf-desc { opacity: 1; transform: none; }
.pf-metrics { display: flex; gap: 16px; margin-top: 10px; }
.pf-metric { font-family: 'JetBrains Mono', monospace; font-size: .6rem; letter-spacing: .08em; color: rgba(255,255,255,.3); }
.pf-metric strong { color: rgba(255,255,255,.65); }

/* ── PROCESS ── */
#process { padding: 120px 0; background: #070707; border-top: 1px solid rgba(255,255,255,.05); }
.process-head { margin-bottom: 72px; }
.process-cols { display: grid; grid-template-columns: repeat(5,1fr); border-top: 1px solid rgba(255,255,255,.07); }
.proc {
  padding: 40px 24px; border-right: 1px solid rgba(255,255,255,.07);
  position: relative; transition: background .35s;
}
.proc:last-child { border-right: none; }
.proc:hover { background: rgba(255,255,255,.02); }
.proc-bar { position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .5s ease; }
.proc:hover .proc-bar { transform: scaleX(1); }
.proc-n { font-family: 'JetBrains Mono', monospace; font-size: .58rem; letter-spacing: .15em; color: rgba(255,255,255,.18); margin-bottom: 44px; }
.proc-title { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-weight: 400; color: #fff; margin-bottom: 10px; }
.proc-desc { font-size: .78rem; color: rgba(255,255,255,.3); line-height: 1.7; }

/* ── TESTIMONIALS ── */
#testimonials { padding: 120px 0; }
.test-head { margin-bottom: 56px; }
.test-scroll { overflow: hidden; position: relative; }
.test-scroll::before, .test-scroll::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.test-scroll::before { left: 0; background: linear-gradient(to right, #0a0a0a, transparent); }
.test-scroll::after  { right: 0; background: linear-gradient(to left, #0a0a0a, transparent); }
.test-track { display: flex; animation: marquee 45s linear infinite; width: max-content; }
.test-track:hover { animation-play-state: paused; }
.t-card {
  width: 360px; flex-shrink: 0;
  padding: 36px; border-right: 1px solid rgba(255,255,255,.07);
  transition: background .35s;
}
.t-card:hover { background: rgba(255,255,255,.02); }
.t-stars { color: rgba(255,255,255,.25); font-size: .75rem; letter-spacing: 2px; margin-bottom: 18px; }
.t-text { font-family: 'Cormorant Garamond', serif; font-size: 1rem; font-weight: 300; font-style: italic; color: rgba(255,255,255,.5); line-height: 1.65; margin-bottom: 24px; }
.t-author { display: flex; align-items: center; gap: 12px; }
.t-av { width: 34px; height: 34px; border-radius: 50%; background: #1a1a1a; border: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; font-size: .65rem; color: rgba(255,255,255,.35); letter-spacing: .04em; flex-shrink: 0; }
.t-name { font-size: .82rem; font-weight: 500; color: rgba(255,255,255,.75); }
.t-role { font-family: 'JetBrains Mono', monospace; font-size: .6rem; letter-spacing: .08em; color: rgba(255,255,255,.25); margin-top: 2px; }

/* ── CONTACT ── */
#contact { padding: 120px 0; }
.contact-intro { text-align: center; margin-bottom: 80px; }
.contact-intro .heading { font-size: clamp(2.5rem, 5vw, 5rem); }
.contact-intro p { font-size: .9rem; color: rgba(255,255,255,.35); margin-top: 16px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.c-details { display: flex; flex-direction: column; }
.c-row { padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.07); display: flex; gap: 20px; align-items: flex-start; }
.c-row:first-child { border-top: 1px solid rgba(255,255,255,.07); }
.c-lbl { font-family: 'JetBrains Mono', monospace; font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.22); width: 80px; flex-shrink: 0; padding-top: 2px; }
.c-val { font-size: .88rem; color: rgba(255,255,255,.5); }
.c-note { margin-top: 40px; padding: 24px; border: 1px solid rgba(255,255,255,.07); border-left: 2px solid rgba(255,255,255,.15); }
.c-note-title { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 400; color: #fff; margin-bottom: 8px; }
.c-note-text { font-size: .8rem; color: rgba(255,255,255,.3); line-height: 1.65; }
.c-available { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.c-available-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.3); animation: blink 3s infinite; }
.c-available span { font-family: 'JetBrains Mono', monospace; font-size: .6rem; letter-spacing: .1em; color: rgba(255,255,255,.22); text-transform: uppercase; }

/* Form */
.contact-form { display: flex; flex-direction: column; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fg { position: relative; margin-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.1); }
.fg:focus-within { border-bottom-color: rgba(255,255,255,.45); }
.fg label { display: block; font-family: 'JetBrains Mono', monospace; font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.22); padding-top: 18px; transition: color .25s; }
.fg:focus-within label { color: rgba(255,255,255,.55); }
.fg input, .fg textarea, .fg select {
  width: 100%; padding: 8px 0 16px; background: none; border: none; outline: none;
  color: rgba(255,255,255,.8); font-family: 'Inter', sans-serif; font-size: .9rem;
  -webkit-appearance: none;
}
.fg select option { background: #111; }
.fg input::placeholder, .fg textarea::placeholder { color: rgba(255,255,255,.14); }
.fg textarea { resize: none; height: 90px; }
.f-submit {
  margin-top: 36px; padding: 15px 0;
  background: #fff; color: #0a0a0a;
  border: none; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: .78rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: opacity .25s, transform .25s;
}
.f-submit:hover { opacity: .85; transform: translateY(-1px); }
.f-submit:disabled { opacity: .5; transform: none; cursor: default; }

/* ── FOOTER ── */
footer { padding: 56px 0 36px; border-top: 1px solid rgba(255,255,255,.07); }
.foot-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px; margin-bottom: 56px; }
.foot-brand { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 300; color: #fff; margin-bottom: 12px; }
.foot-desc { font-size: .82rem; color: rgba(255,255,255,.27); line-height: 1.7; max-width: 260px; }
.foot-social { display: flex; gap: 10px; margin-top: 24px; }
.foot-soc { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; font-size: .7rem; color: rgba(255,255,255,.3); text-decoration: none; transition: border-color .25s, color .25s; }
.foot-soc:hover { border-color: rgba(255,255,255,.35); color: #fff; }
.foot-col-title { font-family: 'JetBrains Mono', monospace; font-size: .6rem; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.22); margin-bottom: 18px; }
.foot-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.foot-links a { font-size: .82rem; color: rgba(255,255,255,.3); text-decoration: none; transition: color .25s; }
.foot-links a:hover { color: rgba(255,255,255,.7); }
.foot-bottom { padding-top: 28px; border-top: 1px solid rgba(255,255,255,.06); display: flex; justify-content: space-between; align-items: center; }
.foot-copy { font-family: 'JetBrains Mono', monospace; font-size: .6rem; letter-spacing: .06em; color: rgba(255,255,255,.18); }
.foot-status { display: flex; align-items: center; gap: 7px; font-family: 'JetBrains Mono', monospace; font-size: .6rem; letter-spacing: .06em; color: rgba(255,255,255,.18); }
.foot-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.25); animation: blink 3s infinite; }

/* ── LOADER ── */
#loader {
  position: fixed; inset: 0; z-index: 10000;
  background: #0a0a0a;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 40px;
  transition: opacity .9s ease, visibility .9s;
}
#loader.gone { opacity: 0; visibility: hidden; }
.loader-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300; letter-spacing: -.02em;
  color: #fff; opacity: 0;
  animation: ld-in 1s ease .2s forwards;
}
.loader-bar { width: 160px; height: 1px; background: rgba(255,255,255,.08); position: relative; overflow: hidden; }
.loader-progress { position: absolute; top: 0; left: 0; height: 100%; background: rgba(255,255,255,.5); animation: ld-prog 1.8s ease forwards; }
@keyframes ld-in { to { opacity: 1; } }
@keyframes ld-prog { from { width: 0; } to { width: 100%; } }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc:nth-child(3n) { border-right: 1px solid rgba(255,255,255,.07); }
  .svc:nth-child(2n) { border-right: none; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3) { border-top: 1px solid rgba(255,255,255,.07); border-right: 1px solid rgba(255,255,255,.07); }
  .stat:nth-child(4) { border-top: 1px solid rgba(255,255,255,.07); border-right: none; }
  .process-cols { grid-template-columns: 1fr 1fr 1fr; }
  .proc:nth-child(3) { border-right: none; }
  .proc:nth-child(4) { border-top: 1px solid rgba(255,255,255,.07); }
  .proc:nth-child(5) { border-top: 1px solid rgba(255,255,255,.07); border-right: none; }
  .pf-grid { grid-template-columns: 1fr; }
  .pf-card:first-child { grid-row: auto; aspect-ratio: 4/3; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .hero-top { flex-direction: column; align-items: flex-start; gap: 40px; }
  .hero-aside { max-width: 100%; }
  .hero-btns { flex-direction: row; }
}
@media (max-width: 768px) {
  nav { padding: 18px 24px; }
  nav.scrolled { padding: 12px 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 32px;
    position: fixed; inset: 0; background: rgba(10,10,10,.97);
    backdrop-filter: blur(20px); align-items: center; justify-content: center;
    z-index: 99; animation: fade-in .3s ease;
  }
  .nav-links.open a { font-size: 1.2rem; color: rgba(255,255,255,.6); }
  @keyframes fade-in { from{opacity:0;} to{opacity:1;} }
  .wrap { padding: 0 24px; }
  section, #services, #stats, #portfolio, #process, #testimonials, #contact { padding: 80px 0; }
  .svc-grid { grid-template-columns: 1fr; }
  .svc, .svc:nth-child(n) { border-right: none; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .process-cols { grid-template-columns: 1fr 1fr; }
  .proc:nth-child(3) { border-right: none; border-top: 1px solid rgba(255,255,255,.07); }
  .proc:nth-child(4) { border-top: 1px solid rgba(255,255,255,.07); }
  .proc:nth-child(5) { border-top: 1px solid rgba(255,255,255,.07); grid-column: span 2; border-right: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .foot-bottom { flex-direction: column; gap: 12px; }
  .services-head, .portfolio-head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .hero-nums { gap: 24px; }
  .f-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; }
  .stat:nth-child(n) { border-right: none !important; border-top: 1px solid rgba(255,255,255,.07); }
  .stat:first-child { border-top: none; }
  .process-cols { grid-template-columns: 1fr; }
  .proc:nth-child(n) { border-right: none; border-top: 1px solid rgba(255,255,255,.07); grid-column: auto; }
  .proc:first-child { border-top: none; }
  .foot-top { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .hero-nums { gap: 20px; }
}
