/* ==========================================================================
   Buildario — front-end design & development portfolio
   Ported from the original Claude Design export to vanilla CSS.
   ========================================================================== */

:root {
  --bg: #090909;
  --surface: #141414;
  --surface-2: #1b1b1b;

  --text: #ffffff;
  --muted: #a8a8a8;

  --accent: #4f8cff;
  --accent-2: #7b5cff;
  --grad: linear-gradient(135deg, var(--accent), var(--accent-2));

  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --fill: rgba(255, 255, 255, 0.04);

  --shell: 1400px;
  --gutter: 48px;
  /* Rendered height of the bar, not its padding: 22px + a 48px-tall control +
     22px. The old 76px left anchors tucking under the nav by ~16px. */
  --nav-h: 92px;
  --tap: 44px;   /* minimum touch target */

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color 0.25s ease; }
a:hover { color: var(--accent-2); }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==========================================================================
   Keyframes
   ========================================================================== */

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-18px); }
}
@keyframes blobPulse {
  0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.55; }
  50%      { transform: scale(1.15) translate(20px, -10px); opacity: 0.8; }
}
@keyframes spinCube {
  0%   { transform: rotateX(-18deg) rotateY(0deg); }
  100% { transform: rotateX(-18deg) rotateY(360deg); }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes particleDrift {
  0%, 100% { transform: translate(0, 0); opacity: 0.3; }
  50%      { transform: translate(15px, -25px); opacity: 0.9; }
}

/* ==========================================================================
   Chrome — loader, cursor glow, scroll progress
   ========================================================================== */

.loader { display: none; }

.js .loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 6px;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.js .loader.done { opacity: 0; visibility: hidden; }

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 500px;
  height: 500px;
  margin: -250px 0 0 -250px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(79, 140, 255, 0.12) 0%,
    rgba(123, 92, 255, 0.06) 40%,
    transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  opacity: 0;
  z-index: 40;
  will-change: transform;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  z-index: 60;
}
.scroll-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* ==========================================================================
   Nav
   ========================================================================== */

#nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
}
#nav.scrolled {
  background: rgba(9, 9, 9, 0.72);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--line);
}

.brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand:hover { color: var(--text); }

.nav-links { display: flex; gap: 40px; align-items: center; }
.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}
.nav-link:hover,
.nav-link.active { color: var(--text); }

/* --- mobile drawer ------------------------------------------------------ */

/* Drawer-only. Needs two classes to outrank `.btn { display: inline-flex }`,
   which is declared later in the sheet at equal specificity. */
.nav-links .drawer-cta { display: none; }

.nav-toggle {
  display: none;               /* shown below the drawer breakpoint */
  place-items: center;
  /* the drawer is a sibling inside #nav's stacking context and would otherwise
     paint over the toggle, leaving no visible way to close it */
  position: relative;
  z-index: 65;
  width: var(--tap);
  height: var(--tap);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--fill);
  cursor: pointer;
}
.nav-toggle-bars {
  display: grid;
  gap: 4px;
  width: 18px;
}
.nav-toggle-bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}
/* three bars fold into an X */
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(9, 9, 9, 0.6);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-scrim.on { opacity: 1; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 30px;
  border: 1px solid transparent;
  border-radius: 100px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.25s ease,
              border-color 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover { color: var(--text); }
.btn-sm { padding: 12px 24px; font-size: 14px; gap: 8px; }

.btn-primary {
  background: var(--grad);
  box-shadow: 0 12px 32px rgba(79, 140, 255, 0.3);
}
.btn-sm.btn-primary { box-shadow: 0 8px 24px rgba(79, 140, 255, 0.25); }
.btn-primary:hover { box-shadow: 0 16px 40px rgba(79, 140, 255, 0.42); }

.btn-ghost {
  background: var(--fill);
  border-color: rgba(255, 255, 255, 0.1);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  padding: 14px 26px;
  font-size: 14px;
  gap: 8px;
}
.btn-outline:hover { background: var(--fill); border-color: rgba(255, 255, 255, 0.28); }

/* ==========================================================================
   Layout primitives
   ========================================================================== */

.section {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 100px var(--gutter);
}

.section-head { margin-bottom: 64px; }
.section-head-center { text-align: center; }

.kicker {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.overline {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
}

h2 {
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 700px;
}
.section-head-center h2 { margin: 0 auto; font-size: clamp(30px, 4vw, 44px); }

.grad-text {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ==========================================================================
   Hero
   ========================================================================== */

/* Full-bleed: the hero owns the whole viewport width so its glow reaches both
   edges at any screen size. Only the content is capped to --shell. */
.hero {
  position: relative;
  width: 100%;
  padding: 180px 0 140px;
  overflow: hidden;
}
/* base wash — guarantees the sides are never flat black on ultrawide screens */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(75% 65% at 18% 28%, rgba(79, 140, 255, 0.10), transparent 72%),
    radial-gradient(70% 60% at 84% 78%, rgba(123, 92, 255, 0.09), transparent 72%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
  animation: blobPulse 10s ease-in-out infinite;
}
/* sized and placed in viewport units so they track the edges, not the 1400px shell */
.blob-a {
  top: -140px;
  left: -6vw;
  width: min(640px, 62vw);
  height: min(640px, 62vw);
  background: radial-gradient(circle, rgba(79, 140, 255, 0.18), transparent 70%);
}
.blob-b {
  bottom: -160px;
  right: -6vw;
  width: min(580px, 56vw);
  height: min(580px, 56vw);
  background: radial-gradient(circle, rgba(123, 92, 255, 0.16), transparent 70%);
  animation-duration: 12s;
  animation-delay: 2s;
}

.particles { position: absolute; inset: 0; pointer-events: none; }
.particle {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
  animation: particleDrift var(--dur, 6s) ease-in-out infinite var(--delay, 0s);
}

.hero-copy { position: relative; z-index: 2; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  color: var(--muted);
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.hero-sub {
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 44px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }

/* --- 3D cube ------------------------------------------------------------ */

.hero-visual {
  position: relative;
  z-index: 2;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.cube {
  position: relative;
  width: 220px;
  height: 220px;
  transform-style: preserve-3d;
  animation: spinCube 18s linear infinite;
}
.face {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(79, 140, 255, 0.5);
  background: rgba(79, 140, 255, 0.05);
  backdrop-filter: blur(6px);
}
.face-front  { transform: translateZ(110px); }
.face-back   { transform: rotateY(180deg) translateZ(110px); }
.face-right  { transform: rotateY(90deg) translateZ(110px); }
.face-left   { transform: rotateY(-90deg) translateZ(110px); }
.face-right,
.face-left {
  border-color: rgba(123, 92, 255, 0.4);
  background: rgba(123, 92, 255, 0.04);
}
.face-top    { transform: rotateX(90deg) translateZ(110px); }
.face-bottom { transform: rotateX(-90deg) translateZ(110px); }
.face-top,
.face-bottom {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   Work
   ========================================================================== */

#work { padding-top: 160px; padding-bottom: 60px; }
#work .section-head { margin-bottom: 80px; }

.project {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 160px;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  transition: transform 0.15s ease, box-shadow 0.4s ease;
}
.project:last-child { margin-bottom: 0; }
.project:hover { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }

.project-media { position: relative; height: 420px; }

.project-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.project h3 {
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.project-desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 24px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.tags li {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--fill);
  font-size: 13px;
  color: var(--muted);
}

/* --- live screenshots --------------------------------------------------- */

.shot {
  display: block;
  object-fit: cover;
  background: var(--surface-2);
}
.shot-desktop {
  width: 100%;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  object-position: top center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}
.shot-mobile {
  position: absolute;
  right: -24px;
  bottom: -30px;
  width: 120px;
  height: 220px;
  border: 4px solid var(--bg);
  border-radius: 24px;
  object-position: top center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   Cards — services
   ========================================================================== */

.grid { display: grid; gap: 24px; }
.grid-services { grid-template-columns: repeat(3, 1fr); }

.card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-2);
}

.service {
  padding: 40px 32px;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.service:hover {
  transform: translateY(-8px);
  border-color: rgba(79, 140, 255, 0.3);
  box-shadow: 0 0 0 1px rgba(79, 140, 255, 0.3),
              0 20px 50px rgba(79, 140, 255, 0.12);
}
.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(79, 140, 255, 0.18), rgba(123, 92, 255, 0.12));
}
.service-icon span {
  width: 16px;
  height: 16px;
  border: 2px solid var(--accent);
  border-radius: 4px;
}
.service h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.service p { font-size: 15px; line-height: 1.65; color: var(--muted); }

/* ==========================================================================
   Process
   ========================================================================== */

.process {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}
.process::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, rgba(79, 140, 255, 0.5), rgba(123, 92, 255, 0.1));
}

.step {
  position: relative;
  display: flex;
  gap: 32px;
  padding-bottom: 56px;
}
.step:last-child { padding-bottom: 0; }
.step-n {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: var(--surface-2);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  z-index: 1;
}
.step > div { padding-top: 8px; }
.step h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 520px; }

/* ==========================================================================
   Toolkit
   ========================================================================== */

.toolkit {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.toolkit .overline { margin-bottom: 48px; }
.tech {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.tech li {
  padding: 14px 24px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  animation: floatY var(--dur, 5s) ease-in-out infinite var(--delay, 0s);
}

/* ==========================================================================
   Why choose us
   ========================================================================== */

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: 20px;
  overflow: hidden;
}
.why { background: var(--surface); padding: 36px 28px; }
.why-dot {
  display: block;
  width: 10px;
  height: 10px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--accent);
}
.why h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.why p { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-section { max-width: 900px; }
.faq-section .section-head { margin-bottom: 56px; }

.faq {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.faq-item { background: var(--surface); }

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 26px 28px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.faq-icon {
  flex-shrink: 0;
  font-size: 20px;
  color: var(--accent);
  transition: transform 0.3s ease;
}
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease, visibility 0s linear 0.35s;
}
/* --max-h is written by main.js from the panel's measured scrollHeight, so a
   long answer can never be clipped. The 60em fallback covers a no-JS open. */
.faq-a.open {
  max-height: var(--max-h, 60em);
  opacity: 1;
  visibility: visible;
  transition: max-height 0.35s ease, opacity 0.3s ease, visibility 0s;
}
.faq-a p {
  padding: 0 28px 26px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

/* ==========================================================================
   Contact CTA
   ========================================================================== */

.cta {
  position: relative;
  max-width: var(--shell);
  margin: 60px auto 0;
  padding: 140px var(--gutter);
  text-align: center;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 700px;
  height: 400px;
  margin: -200px 0 0 -350px;
  background: radial-gradient(circle, rgba(79, 140, 255, 0.16), transparent 70%);
  filter: blur(50px);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; }
.cta h2 {
  font-size: clamp(34px, 5vw, 60px);
  letter-spacing: -0.03em;
  max-width: 820px;
  margin: 0 auto 24px;
}
.cta p {
  font-size: 19px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 44px;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.cta .btn { padding: 18px 32px; }

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 56px var(--gutter) 40px;
}
.footer-rule {
  height: 2px;
  margin-bottom: 48px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent));
  background-size: 200% 100%;
  animation: gradientShift 6s linear infinite;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 -10px; }
/* padded out to a 44px touch target — the bare text only measured 21px tall */
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 10px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--muted);
}
.footer-links a:hover,
.footer-links a:focus-visible { color: var(--text); background: var(--fill); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: var(--muted);
}
.footer-bottom a:hover { color: var(--text); }

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */

.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1080px) {
  :root { --gutter: 32px; }

  .hero { padding: 150px 0 100px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 340px; order: -1; }
  .cube { width: 170px; height: 170px; }
  .face-front  { transform: translateZ(85px); }
  .face-back   { transform: rotateY(180deg) translateZ(85px); }
  .face-right  { transform: rotateY(90deg) translateZ(85px); }
  .face-left   { transform: rotateY(-90deg) translateZ(85px); }
  .face-top    { transform: rotateX(90deg) translateZ(85px); }
  .face-bottom { transform: rotateX(-90deg) translateZ(85px); }

  .project { grid-template-columns: 1fr; gap: 40px; margin-bottom: 100px; padding: 32px; }
  .project-media { height: 320px; }

  .grid-services { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  :root { --nav-h: 84px; }
  /* above the drawer (55) so the toggle stays tappable and shows its X state */
  #nav { padding: 18px var(--gutter); z-index: 60; }

  .nav-toggle { display: grid; }
  .nav-cta { display: none; }        /* the drawer carries the CTA instead */

  /* Slide-in drawer. Off-screen by default and inert to the keyboard via
     `visibility`, so tabbing never lands on a hidden link. */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    width: min(320px, 84vw);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    padding: calc(var(--nav-h) + 16px) 20px 32px;
    background: #101010;
    border-left: 1px solid var(--line);
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.35s var(--ease), visibility 0s linear 0.35s;
    overflow-y: auto;
  }
  .nav-links.open {
    transform: translateX(0);
    visibility: visible;
    transition: transform 0.35s var(--ease), visibility 0s;
  }

  /* full-width rows, comfortably past the 44px touch minimum */
  .nav-links .nav-link {
    display: flex;
    align-items: center;
    min-height: var(--tap);
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 17px;
    color: var(--text);
  }
  .nav-links .nav-link:hover,
  .nav-links .nav-link:focus-visible { background: var(--fill); }
  .nav-links .nav-link.active { background: var(--fill); color: var(--accent); }

  .nav-links .drawer-cta {
    display: inline-flex;
    margin-top: 20px;
    justify-content: center;
    width: 100%;
  }

  /* the drawer is open — stop the page behind it from scrolling */
  body.nav-open { overflow: hidden; }
}

@media (max-width: 680px) {
  .section { padding: 72px var(--gutter); }
  #work { padding-top: 100px; }
  .section-head,
  #work .section-head { margin-bottom: 48px; }

  .hero-sub { font-size: 17px; margin-bottom: 32px; }
  .btn { width: 100%; justify-content: center; }
  .btn-sm { width: auto; }

  .grid-services,
  .why-grid { grid-template-columns: 1fr; }

  .shot-mobile { width: 96px; height: 176px; right: -12px; bottom: -20px; }

  .cta { padding: 100px var(--gutter); }
  .footer-top { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .cursor-glow { display: none; }
  .blob,
  .particle,
  .cube,
  .tech li,
  .footer-rule { animation: none !important; }

  .js .reveal { opacity: 1; transform: none; transition: none; }
  .service:hover { transform: none; }

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
