/* ═══════════════════════════════════════════════════════════
   MAEVING LANDING PAGE  ·  CSS  ·  by DJF
   Aesthetic: Deep-space tech / editorial minimalism
   Palette:   Near-black + electric blue + ghost white + teal
═══════════════════════════════════════════════════════════ */

/* ── Google Fonts import ─────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Mono:wght@300;400&display=swap');

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  --bg:          #050507;
  --bg-1:        #0a0a10;
  --bg-2:        #0d0d15;
  --surface:     rgba(255,255,255,0.04);
  --border:      rgba(255,255,255,0.08);
  --text:        #e8e8f0;
  --text-dim:    rgba(232,232,240,0.55);
  --accent:      #4f7fff;
  --accent-glow: rgba(79,127,255,0.25);
  --teal:        #00d4aa;
  --teal-glow:   rgba(0,212,170,0.2);
  --purple:      #b44fff;
  --white:       #ffffff;
  --radius:      12px;
  --nav-h:       72px;
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg);
}
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

body.maeving-body,
#maeving-root {
  background: var(--bg);
  color: var(--text);
  font-family: 'Syne', sans-serif;
  overflow-x: hidden;
  width: 100%;
}

/* ── Canvas ──────────────────────────────────────────────── */
#maeving-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* ── Cursor ──────────────────────────────────────────────── */
#m-cursor {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width 0.3s var(--ease-out),
              height 0.3s var(--ease-out),
              background 0.3s,
              border-color 0.3s;
  mix-blend-mode: difference;
}
#m-cursor.hovering {
  width: 64px;
  height: 64px;
  background: rgba(79,127,255,0.15);
  border-color: var(--teal);
}
#m-cursor-dot {
  position: absolute;
  top: 50%; left: 50%;
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%,-50%);
}

/* ── Nav ─────────────────────────────────────────────────── */
#m-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 80px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
}
#m-nav.scrolled {
  background: rgba(5,5,7,0.85);
  border-color: var(--border);
  backdrop-filter: blur(20px);
}
.m-nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.logo-m { color: var(--accent); }
.logo-rest { color: var(--white); }

.m-nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.m-nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.25s;
}
.m-nav-links a:hover { color: var(--white); }

/* ── Buttons ─────────────────────────────────────────────── */
.m-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 100px;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  position: relative;
  z-index: 1;
}
.m-btn-primary:hover {
  background: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 0 40px var(--teal-glow);
}
.m-btn-xl { font-size: 1.1rem; padding: 18px 40px; }

.m-btn-ghost {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--white);
  padding: 10px 22px;
  border-radius: 100px;
  border: 1px solid var(--border);
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: border-color 0.25s, background 0.25s;
}
.m-btn-ghost:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}

/* ── Container ───────────────────────────────────────────── */
.m-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
  position: relative;
  z-index: 1;
}

/* ── Reveal animation ────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Sections ────────────────────────────────────────────── */
.m-section {
  position: relative;
  z-index: 1;
}

/* ── Section typography ──────────────────────────────────── */
.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.section-headline {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 60px;
}

/* ════════════════════════════════════

/* ════════════════════════════════════

/* ════════════════════════════════════

/* ════════════════════════════════════

/* ════════════════════════════════════
   HERO - scroll-pinned code typewriter
════════════════════════════════════ */

/* Outer div: tall enough for scroll-driven animation */
#hero-pin-outer {
  height: 400vh;
  position: relative;
}

/* JS sets this to position:fixed while scrolling through the outer div.
   CSS sticky is unreliable inside WordPress theme wrappers with overflow:hidden. */
#hero-pin-sticky {
  position: relative; /* JS overrides to fixed */
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  will-change: transform;
}

/* ═══ LEFT COPY ════════════════════════════════════════════ */
/* Starts collapsed. On .revealed it grows to 50% */
.hero-left {
  width: 0;
  flex-shrink: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Animate width and opacity together */
  transition:
    width    0.85s cubic-bezier(0.22, 1, 0.36, 1),
    opacity  0.6s  cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}
#hero-pin-sticky.revealed .hero-left {
  width: 50%;
  opacity: 1;
  pointer-events: auto;
  padding: 0 clamp(24px, 4vw, 60px) 0 clamp(28px, 5vw, 80px);
}

.hero-tag-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.hero-tag-text {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  white-space: nowrap;
}
.hero-tag-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0.35;
  min-width: 0;
}

.hero-headline {
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}
.hero-word {
  display: block;
  overflow: hidden;
  transform: translateY(110%);
  transition: transform 0.7s var(--ease-out);
}
.hero-word[data-word="0"] { transition-delay: 0.15s; }
.hero-word[data-word="1"] { transition-delay: 0.28s; }
.hero-word[data-word="2"] { transition-delay: 0.42s; }
.hero-word--accent { color: var(--teal); }
#hero-pin-sticky.revealed .hero-word { transform: translateY(0); }

.hero-sub {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-dim);
  margin-bottom: 18px;
  max-width: 340px;
}
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Mono', monospace;
  font-size: 0.63rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 12px;
  white-space: nowrap;
}
.hero-pill svg { color: var(--teal); flex-shrink: 0; }

.hero-cta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-scroll-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.68rem;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.08em;
}
.hero-scroll-hint svg { width: 14px; height: 24px; }
.scroll-dot { animation: scrollBounce 2s ease-in-out infinite; }
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* ═══ BROWSER WRAP ═════════════════════════════════════════ */
/* Takes up all remaining width. When left copy is hidden,
   this fills 100%. When revealed, it fills the other 50%. */
.hero-browser-wrap {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* top padding accounts for nav so browser sits centred visually */
  padding: calc(var(--nav-h) + 20px) clamp(20px, 4vw, 60px) 24px;
  box-sizing: border-box;
}

/* The actual browser chrome element.
   Height is constrained via aspect ratio on the viewport.  */
.hero-browser {
  width: 100%;
  max-width: 840px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 24px 60px rgba(0,0,0,0.65),
    0 0 80px rgba(79,127,255,0.07);
  /* shrinks smoothly as left column opens */
  transition: max-width 0.85s cubic-bezier(0.22,1,0.36,1);
}
#hero-pin-sticky.revealed .hero-browser {
  max-width: 600px;
}

/* Browser top bar */
.hb-bar {
  background: #1c1c26;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hb-dots { display: flex; gap: 6px; flex-shrink: 0; }
.hb-dot  { width: 12px; height: 12px; border-radius: 50%; }
.hb-dot--r { background: #ff5f57; }
.hb-dot--y { background: #febc2e; }
.hb-dot--g { background: #28c840; }

.hb-url-bar {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border-radius: 5px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-dim);
  overflow: hidden;
}
.hb-status {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--teal);
  opacity: 0.85;
  flex-shrink: 0;
  min-width: 80px;
  text-align: right;
  transition: color 0.3s;
}

/* Viewport - fixed aspect ratio so it never overflows vertically */
.hb-viewport {
  position: relative;
  /* 16:9 keeps the browser nicely proportioned on any screen */
  aspect-ratio: 16 / 9;
  background: #0c0c12;
  overflow: hidden;
  /* Hard cap: never taller than 65% of the viewport height */
  max-height: 65vh;
}

/* ── Code editor ─────────────────────────────────── */
.hb-editor {
  position: absolute;
  inset: 0;
  display: flex;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  line-height: 1.8;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.hb-editor.hidden {
  opacity: 0;
  transform: translateX(-12px);
  pointer-events: none;
}
.hb-editor-gutter {
  flex-shrink: 0;
  width: 38px;
  padding: 14px 10px 14px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  border-right: 1px solid rgba(255,255,255,0.06);
  user-select: none;
  overflow: hidden;
}
.hb-editor-gutter span {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.18);
  line-height: 1.8;
}
.hb-editor-code {
  flex: 1;
  padding: 14px 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hb-line {
  white-space: pre;
  line-height: 1.8;
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.hb-line.show {
  opacity: 1;
  transform: translateX(0);
}
/* Syntax colours */
.hb-k { color: #ff79c6; }
.hb-a { color: #50fa7b; }
.hb-s { color: #f1fa8c; }
.hb-c { color: #6272a4; font-style: italic; }
.hb-v { color: #e1e4e8; }

.hb-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--teal);
  vertical-align: text-bottom;
  animation: cursorBlink 0.8s step-end infinite;
  margin-left: 1px;
}
@keyframes cursorBlink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── Running overlay ─────────────────────────────── */
.hb-run-overlay {
  position: absolute;
  inset: 0;
  background: #0c0c12;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.hb-run-overlay.show    { opacity: 1; pointer-events: auto; }
.hb-run-overlay.fade-out { opacity: 0; }

.hb-run-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}
.hb-run-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  animation: runPulse 0.6s ease-in-out infinite alternate;
}
.hb-run-dot:nth-child(2) { animation-delay: .15s; background: var(--accent); }
.hb-run-dot:nth-child(3) { animation-delay: .3s;  background: var(--purple); }
@keyframes runPulse {
  from { transform: scale(0.6); opacity: 0.4; }
  to   { transform: scale(1.3); opacity: 1; }
}

/* ── Deployed status screen ──────────────────────────────── */
.hb-deployed {
  position: absolute;
  inset: 0;
  background: #07070d;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
  z-index: 1;
}
.hb-deployed.show { opacity: 1; }

.hb-deployed-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px;
  width: 100%;
  max-width: 360px;
}

.hb-deploy-status {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hb-deploy-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #28c840;
  box-shadow: 0 0 12px rgba(40,200,64,0.7);
  animation: deployPulse 2s ease-in-out infinite;
}
@keyframes deployPulse {
  0%,100% { box-shadow: 0 0 8px rgba(40,200,64,0.5); }
  50%      { box-shadow: 0 0 20px rgba(40,200,64,0.9); }
}
.hb-deploy-live {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: #28c840;
}

.hb-deploy-url {
  font-family: 'DM Mono', monospace;
  font-size: 1rem;
  color: var(--white);
  letter-spacing: 0.04em;
}

.hb-deploy-meta {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 6px;
  overflow: hidden;
}
.hb-deploy-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.hb-deploy-row:last-child { border-bottom: none; }
.hb-deploy-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}
.hb-deploy-val {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  color: var(--text-dim);
}
.hb-deploy-green { color: #28c840; }

.hb-deploy-log {
  width: 100%;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.hb-log-line {
  font-family: 'DM Mono', monospace;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.03em;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.hb-log-line.show { opacity: 1; transform: translateX(0); }
.hb-log-success   { color: #28c840 !important; }

/* ── Footer progress ─────────────────────────────── */
.hb-footer {
  background: #151520;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hb-progress-track {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
}
.hb-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  border-radius: 2px;
  transition: width 0.05s linear;
}
.hb-progress-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.58rem;
  color: var(--text-dim);
  min-width: 28px;
  text-align: right;
}

/* ═══ RESPONSIVE ═══════════════════════════════════════════ */
@media (max-width: 860px) {
  /* Disable the pinned scroll animation on small screens -
     just show everything stacked normally */
  #hero-pin-outer  { height: auto; }
  #hero-pin-sticky {
    position: relative;
    height: auto;
    flex-direction: column;
  }

  /* Show the left copy immediately on mobile */
  .hero-left {
    width: 100% !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    padding: calc(var(--nav-h) + 28px) clamp(20px,5vw,60px) 32px !important;
  }
  #hero-pin-sticky.revealed .hero-left {
    width: 100% !important;
    padding: calc(var(--nav-h) + 28px) clamp(20px,5vw,60px) 32px !important;
  }
  .hero-word { transform: translateY(0) !important; }

  .hero-browser-wrap {
    padding: 0 clamp(20px,5vw,60px) 56px;
  }
  .hero-browser {
    max-width: 100% !important;
  }
  .hb-viewport {
    aspect-ratio: 16 / 9;
    max-height: 50vw;
  }
}
@media (max-width: 500px) {
  .hero-pills { gap: 6px; }
  .hero-cta   { flex-direction: column; align-items: flex-start; }
  .hero-headline { font-size: clamp(2rem, 9vw, 3rem); }
}

/* ════════════════════════════════════
   MARQUEE
════════════════════════════════════ */
.m-marquee-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
  background: var(--bg-1);
}
.m-marquee-track { overflow: hidden; }
.m-marquee-inner {
  display: flex;
  align-items: center;
  gap: 36px;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.m-marquee-inner .dot { color: var(--accent); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ════════════════════════════════════
   PIN / WORK SECTION
════════════════════════════════════ */
.m-pin-section {
  min-height: 250vh;
  background: var(--bg-1);
}
.pin-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
  padding: 0 clamp(24px, 6vw, 100px);
  overflow: hidden;
}

.pin-left {
  display: flex;
  flex-direction: column;
}
.pin-label { 
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.pin-headline {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 24px;
}
.pin-headline em { font-style: normal; color: var(--teal); }
.pin-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 360px;
  margin-bottom: 48px;
}
.pin-progress-bar {
  width: 100%;
  max-width: 320px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.pin-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s linear;
}

.pin-right {
  position: relative;
  height: 420px;
}

.project-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(40px) scale(0.97);
  transition: opacity 0.5s var(--ease-out),
              transform 0.5s var(--ease-out);
  pointer-events: none;
}
.project-card.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.project-card.exit {
  opacity: 0;
  transform: translateY(-40px) scale(0.97);
}

.card-inner {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--bg);
}
.card-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, var(--g2) 0%, var(--g1) 70%);
}
.card-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.card-glow {
  position: absolute;
  top: -60px; right: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}
.card-body {
  position: relative;
  z-index: 2;
  padding: 36px;
}
.card-num {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  display: block;
  margin-bottom: 12px;
}
.card-body h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.card-body p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-dim);
  margin-bottom: 20px;
  max-width: 380px;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.card-tags span {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* ════════════════════════════════════
   SERVICES
════════════════════════════════════ */
.m-services-section {
  padding: 140px 0;
  background: var(--bg);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.service-item {
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 44px 36px;
  position: relative;
  overflow: hidden;
  transition: background 0.3s, border-color 0.3s;
  transition-delay: var(--d, 0s);
  cursor: default;
}
.service-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 0% 100%, var(--accent-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.service-item:hover::before { opacity: 1; }
.service-item:hover { border-color: rgba(79,127,255,0.4); }

.si-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 24px;
}
.si-icon svg { width: 100%; height: 100%; }

.service-item h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.service-item p {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-dim);
}
.si-number {
  position: absolute;
  top: 28px; right: 28px;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--border);
  letter-spacing: 0.08em;
}

/* ════════════════════════════════════
   PROCESS
════════════════════════════════════ */
.m-process-section {
  padding: 140px 0;
  background: var(--bg-2);
}
.process-timeline {
  position: relative;
  padding-left: 0;
}
.timeline-line {
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--accent), var(--teal), transparent);
  opacity: 0.3;
}
.process-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 32px;
  align-items: flex-start;
  padding: 0 0 56px;
  transition-delay: var(--d, 0s);
}
.ps-node {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-2);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.ps-node span {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.ps-body h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  padding-top: 10px;
}
.ps-body p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 560px;
}

/* ════════════════════════════════════
   TESTIMONIAL
════════════════════════════════════ */
.m-testimonial-section {
  padding: 140px 0;
  background: var(--bg);
}
.testimonial-ring {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.testimonial-ring::before {
  content: '"';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 8rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.15;
  line-height: 1;
  font-family: 'Syne', sans-serif;
  pointer-events: none;
}
.t-quote {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 600;
  line-height: 1.6;
  color: var(--white);
  margin-bottom: 40px;
  font-style: italic;
  letter-spacing: -0.01em;
}
.t-attribution {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.t-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
}
.t-attribution strong { display: block; font-size: 0.9rem; color: var(--white); }
.t-attribution small { font-family: 'DM Mono', monospace; font-size: 0.72rem; color: var(--text-dim); }

/* ════════════════════════════════════
   CONTACT
════════════════════════════════════ */
.m-contact-section {
  padding: 160px 0;
  background: var(--bg-1);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.contact-orb {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,127,255,0.12) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: orbPulse 6s ease-in-out infinite;
}
@keyframes orbPulse {
  0%,100% { transform: translate(-50%,-50%) scale(1);   opacity: 0.6; }
  50%      { transform: translate(-50%,-50%) scale(1.15); opacity: 1; }
}
.contact-headline {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--white);
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.contact-sub {
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 52px;
  font-family: 'DM Mono', monospace;
  letter-spacing: 0.04em;
}

/* ════════════════════════════════════
   FOOTER
════════════════════════════════════ */
.m-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  background: var(--bg);
  position: relative;
  z-index: 1;
}
.m-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.footer-centre {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); }

/* ════════════════════════════════════
   RESPONSIVE
════════════════════════════════════ */
@media (max-width: 900px) {
  .pin-sticky { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .pin-right { height: 360px; }
  .hero-chips { display: none; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .m-footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .m-nav-links a:not(.m-btn-ghost) { display: none; }
}

/* ════════════════════════════════════
   MOST RECENT WORK
════════════════════════════════════ */
.m-work-section {
  padding: 140px 0 200px;
  background: var(--bg-1);
}
.work-projects { display:flex; flex-direction:column; gap:160px; }
.work-project {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: center;
}
.work-project--alt { grid-template-columns: 1.6fr 1fr; }
.work-project--alt .work-project-meta { order:2; }
.work-project--alt .laptop-mockup-wrap { order:1; }

.work-project-meta { display:flex; flex-direction:column; gap:16px; }
.wp-num { font-family:'DM Mono',monospace; font-size:.72rem; color:var(--accent); letter-spacing:.12em; }
.wp-info h3 { font-size:clamp(1.6rem,3vw,2.4rem); font-weight:800; color:var(--white); letter-spacing:-.03em; margin-bottom:14px; line-height:1.1; }
.wp-info p { font-size:.95rem; line-height:1.7; color:var(--text-dim); margin-bottom:20px; max-width:400px; }
.wp-tags { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:28px; }
.wp-tags span { font-family:'DM Mono',monospace; font-size:.68rem; padding:5px 12px; border-radius:100px; border:1px solid var(--border); color:var(--text-dim); letter-spacing:.06em; }
.wp-link { display:inline-flex; align-items:center; gap:8px; font-family:'DM Mono',monospace; font-size:.78rem; color:var(--accent); text-decoration:none; letter-spacing:.06em; text-transform:uppercase; border-bottom:1px solid rgba(79,127,255,0.3); padding-bottom:2px; transition:color .2s,border-color .2s; }
.wp-link:hover { color:var(--teal); border-color:var(--teal); }

/* ────────────────────────────────────
   LAPTOP MOCKUP (work section)
   Same realistic treatment as hero.
   lm- prefix = laptop mockup
──────────────────────────────────── */
.laptop-mockup-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Now an <a> tag - reset link styles */
.laptop-mockup {
  display: block;
  width: 100%;
  max-width: 600px;
  cursor: pointer;
  position: relative;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.55));
  transition: filter 0.4s cubic-bezier(0.22,1,0.36,1), transform 0.4s cubic-bezier(0.22,1,0.36,1);
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.laptop-mockup:hover {
  transform: translateY(-5px);
  filter:
    drop-shadow(0 32px 56px rgba(0,0,0,0.6))
    drop-shadow(0 0 40px rgba(79,127,255,0.15));
}

/* LID */
.lm-lid {
  width: 100%;
  background: linear-gradient(160deg, #28283a 0%, #19191f 50%, #121218 100%);
  border-radius: 12px 12px 3px 3px;
  border: 1.5px solid #32323f;
  border-bottom: 1.5px solid #1e1e28;
  padding: 10px 12px 0;
  position: relative;
  box-shadow:
    0 -1px 0 rgba(255,255,255,0.08) inset,
    -1px 0 0 rgba(255,255,255,0.03) inset,
    1px 0 0 rgba(255,255,255,0.03) inset;
}
/* glass shine */
.lm-lid::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(255,255,255,0.042) 0%, transparent 100%);
  border-radius: 12px 12px 0 0;
  pointer-events: none;
}

/* BEZEL */
.lm-bezel {
  background: #06060c;
  border-radius: 5px 5px 0 0;
  padding: 9px 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
}
/* inner glass reflection */
.lm-bezel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 30%;
  background: linear-gradient(180deg, rgba(255,255,255,0.022) 0%, transparent 100%);
  pointer-events: none;
  z-index: 3;
  border-radius: 5px 5px 0 0;
}

.lm-cam {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #16162a;
  border: 1px solid #222238;
  flex-shrink: 0;
  position: relative; z-index: 2;
}
.lm-cam::after {
  content:''; position:absolute; inset:1.5px; border-radius:50%;
  background: radial-gradient(circle, #253025 0%, #0e0e0e 100%);
}

.lm-screen {
  width: 100%;
  aspect-ratio: 16/10;
  background: #fff;
  border-radius: 2px 2px 0 0;
  overflow: hidden;
  position: relative;
  pointer-events: none;
}

.lm-iframe {
  position: absolute; top:0; left:0;
  width: 1280px; height: 800px;
  border: none; background: #fff;
  transform-origin: top left;
  pointer-events: none;
  display: block;
}

/* invisible click-capture layer */
.lm-overlay {
  position: absolute; inset: 0;
  z-index: 4;
  cursor: pointer;
  background: transparent;
}

/* HINGE */
.lm-hinge {
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg,
    #04040a 0%,
    #18182a 8%,
    #252538 30%,
    #303044 50%,
    #252538 70%,
    #18182a 92%,
    #04040a 100%
  );
  position: relative;
  z-index: 3;
  box-shadow: 0 2px 4px rgba(0,0,0,0.7);
}
.lm-hinge::after {
  content:''; position:absolute;
  top:1px; left:18%; right:18%; height:1px;
  background: rgba(255,255,255,0.07);
}

/* BASE */
.lm-base {
  width: 104%;
  margin-left: -2%;
  background: linear-gradient(180deg, #1d1d28 0%, #131320 100%);
  border-radius: 0 0 10px 10px;
  border: 1.5px solid #28283a;
  border-top: none;
  padding: 10px 22px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  position: relative;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.04) inset,
    0 10px 30px rgba(0,0,0,0.6);
}
/* bottom chamfer / foot edge */
.lm-base::before {
  content:''; position:absolute;
  bottom:-1px; left:4%; right:4%;
  height:3px;
  background: linear-gradient(90deg, transparent, #080812 25%, #080812 75%, transparent);
  border-radius: 0 0 10px 10px;
}
/* feet (two visible rubber bumps bottom-left and right) */
.lm-base::after {
  content:''; position:absolute;
  bottom:2px; left:8%; right:8%;
  height:2px;
  background:
    radial-gradient(6px 3px at 0% 50%, rgba(0,0,0,0.5) 100%, transparent) left no-repeat,
    radial-gradient(6px 3px at 100% 50%, rgba(0,0,0,0.5) 100%, transparent) right no-repeat;
  background-size: 10% 100%, 10% 100%;
}

/* KEYBOARD */
.lm-keyboard {
  width: 90%;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.lm-row {
  display: flex;
  gap: 2.5px;
  width: 100%;
}
.lm-key {
  flex: 1;
  height: 9px;
  min-width: 0;
  background: linear-gradient(180deg, #232335 0%, #181826 100%);
  border-radius: 2px;
  border: 1px solid #0c0c18;
  border-bottom: 1.5px solid #08080e;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.07) inset,
    0 0 0 0.5px rgba(255,255,255,0.02) inset;
}
/* wider special keys - explicit widths via flex */
.lm-key--fn       { flex: 1.4; }
.lm-key--tab      { flex: 1.6; }
.lm-key--caps     { flex: 1.8; }
.lm-key--backspace{ flex: 2.0; }
.lm-key--enter    { flex: 2.2; }
.lm-key--shift    { flex: 2.4; }
.lm-key--shift-r  { flex: 2.4; }
.lm-key--ctrl     { flex: 1.4; }
.lm-key--alt      { flex: 1.2; }
.lm-key--cmd      { flex: 1.7; }
.lm-key--space    { flex: 5.5; }

/* TRACKPAD */
.lm-trackpad {
  width: 30%;
  height: 10px;
  background: linear-gradient(180deg, #1c1c2e 0%, #141422 100%);
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.05) inset,
    0 1px 3px rgba(0,0,0,0.4);
}

/* SHADOW under laptop */
.lm-shadow {
  width: 80%;
  height: 24px;
  background: radial-gradient(ellipse, rgba(79,127,255,0.18) 0%, transparent 70%);
  filter: blur(12px);
  margin-top: -4px;
}

.lm-hint {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 10px;
  animation: hintPulse 2.5s ease-in-out infinite;
}
@keyframes hintPulse { 0%,100%{opacity:.4} 50%{opacity:.9} }

   FULLSCREEN MODAL
════════════════════════════════════ */
#site-modal {
  /* Base state set via inline style="display:none;opacity:0" in PHP */
  position: fixed; inset: 0; z-index: 99999;
  align-items: center; justify-content: center;
  transition: opacity 0.4s cubic-bezier(0.22,1,0.36,1);
}

#site-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(2,2,6,0.96);
  backdrop-filter: blur(20px);
  cursor: pointer;
}

#site-modal-shell {
  position: relative; z-index: 1;
  width: calc(100vw - 32px);
  max-width: 1440px;
  height: calc(100vh - 32px);
  display: flex; flex-direction: column;
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 40px 100px rgba(0,0,0,0.8);
  transform: scale(0.95) translateY(16px);
  transition: transform 0.45s cubic-bezier(0.22,1,0.36,1);
}
#site-modal.open #site-modal-shell { transform: scale(1) translateY(0); }

#site-modal-bar {
  flex-shrink: 0; height: 42px;
  background: #1c1c26;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex; align-items: center;
  padding: 0 16px; gap: 12px;
}
.smb-dots { display:flex; gap:7px; align-items:center; flex-shrink:0; }
.smb-dot { width:13px; height:13px; border-radius:50%; border:none; display:block; flex-shrink:0; }
.smb-dot--red    { background:#ff5f57; cursor:pointer; }
.smb-dot--yellow { background:#febc2e; }
.smb-dot--green  { background:#28c840; }
.smb-dot--red:hover { filter: brightness(1.2); }

.smb-url {
  flex:1; background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.08);
  border-radius:6px; height:26px; display:flex; align-items:center;
  padding:0 12px; font-family:'DM Mono',monospace; font-size:.7rem; color:var(--text-dim);
  overflow:hidden; white-space:nowrap; text-overflow:ellipsis; letter-spacing:.02em;
}
.smb-open {
  color:var(--text-dim); display:flex; align-items:center; padding:6px;
  border-radius:4px; transition:color .2s,background .2s; text-decoration:none; flex-shrink:0;
}
.smb-open:hover { color:var(--accent); background:rgba(255,255,255,0.06); }

#site-modal-viewport { flex:1; position:relative; overflow:hidden; background:#fff; }
#site-modal-iframe { position:absolute; inset:0; width:100%; height:100%; border:none; background:#fff; }

/* ── Blurred swear ──────────────────────────────────────── */
.blur-word { display:inline-block; filter:blur(5px); cursor:pointer; transition:filter .4s; color:var(--teal); position:relative; }
.blur-word::after { content:"tap to reveal"; position:absolute; bottom:calc(100% + 6px); left:50%; transform:translateX(-50%); background:var(--bg-2); border:1px solid var(--border); color:var(--text-dim); font-size:.65rem; font-family:'DM Mono',monospace; padding:3px 8px; border-radius:4px; white-space:nowrap; opacity:0; pointer-events:none; transition:opacity .2s; letter-spacing:.06em; }
.blur-word:hover, .blur-word.revealed { filter:blur(0); }
.blur-word:hover::after { opacity:1; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .work-project, .work-project--alt { grid-template-columns:1fr; gap:40px; }
  .work-project--alt .work-project-meta { order:0; }
  .work-project--alt .laptop-mockup-wrap { order:1; }
  #site-modal-shell { width:calc(100vw - 12px); height:calc(100vh - 12px); border-radius:6px; }
}

/* ════════════════════════════════════════════════════════════
   MOBILE - comprehensive responsive overrides
   Breakpoints: 860px (tablet), 600px (phone), 380px (small)
════════════════════════════════════════════════════════════ */

/* ── Hide custom cursor on touch devices ─────────────────── */
@media (hover: none), (pointer: coarse) {
  #m-cursor { display: none !important; }
}

/* ── NAV ─────────────────────────────────────────────────── */
@media (max-width: 600px) {
  #m-nav { padding: 0 20px; }
  .m-nav-links a:not(.m-btn-ghost) { display: none; }
  .m-btn-ghost { padding: 8px 14px; font-size: 0.78rem; }
  .logo-rest { display: none; } /* Just show "M" on very small screens */
}
@media (max-width: 380px) {
  .m-btn-ghost { display: none; } /* hide CTA too on tiny screens */
}

/* ── HERO - mobile layout ────────────────────────────────── */
@media (max-width: 860px) {
  /* Disable JS pinning - show content stacked */
  #hero-pin-outer  { height: auto !important; }
  #hero-pin-sticky {
    position: relative !important;
    height: auto !important;
    flex-direction: column !important;
    top: auto !important; left: auto !important; width: 100% !important;
  }

  /* Left copy: always visible, not hidden */
  .hero-left {
    width: 100% !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    padding: calc(var(--nav-h) + 24px) 20px 28px !important;
    order: 2;
  }
  .hero-word { transform: translateY(0) !important; }

  /* Browser: full width, above the copy */
  .hero-browser-wrap {
    padding: calc(var(--nav-h) + 16px) 20px 0 !important;
    order: 1;
  }
  .hero-browser { max-width: 100% !important; }
  .hb-viewport  { max-height: 48vw !important; aspect-ratio: 16/9; }

  /* Progress bar less prominent on mobile */
  .hb-footer { padding: 5px 12px; }
}

@media (max-width: 600px) {
  .hero-left { padding: calc(var(--nav-h) + 20px) 20px 24px !important; }
  .hero-headline { font-size: clamp(2.2rem, 8vw, 3.2rem) !important; }
  .hero-sub   { font-size: 0.85rem; }
  .hero-pills { gap: 6px; }
  .hero-pill  { font-size: 0.6rem; padding: 5px 10px; }
  .hero-cta   { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero-scroll-hint { display: none; } /* No scroll hint needed on mobile */
  .hero-browser-wrap { padding: calc(var(--nav-h) + 12px) 16px 0 !important; }
  .hb-viewport { max-height: 52vw !important; }
  .hb-bar { padding: 8px 10px; gap: 8px; }
  .hb-url-bar { display: none; } /* Too cramped on phone */
  .hb-status  { min-width: 60px; font-size: 0.55rem; }
  .hb-editor  { font-size: 0.6rem !important; }
  .hb-editor-gutter { width: 28px !important; }
  .hb-deploy-meta { display: none; } /* Show just the status on mobile */
  .hb-deployed-inner { gap: 12px; }
  .hb-deploy-url { font-size: 0.85rem; }
}

@media (max-width: 380px) {
  .hero-headline { font-size: clamp(1.9rem, 9vw, 2.8rem) !important; }
  .hb-viewport { max-height: 56vw !important; }
}

/* ── MARQUEE ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  .m-marquee-inner { font-size: 0.7rem; gap: 24px; }
}

/* ── WORK SECTION ────────────────────────────────────────── */
@media (max-width: 900px) {
  .m-work-section { padding: 80px 0 120px; }
  .work-projects  { gap: 80px; }
  .work-project,
  .work-project--alt { grid-template-columns: 1fr; gap: 28px; }
  .work-project--alt .work-project-meta { order: 0; }
  .work-project--alt .laptop-mockup-wrap { order: 1; }
}
@media (max-width: 600px) {
  .m-work-section { padding: 60px 0 80px; }
  .work-projects  { gap: 60px; }
  .wp-info h3     { font-size: 1.5rem; }
  /* Laptop mockup: cap height on phone */
  .lm-screen { max-height: 50vw; }
}

/* ── SERVICES ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .m-services-section { padding: 80px 0; }
  .services-grid { grid-template-columns: 1fr 1fr; gap: 1px; }
  .section-headline { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 40px; }
}
@media (max-width: 540px) {
  .services-grid  { grid-template-columns: 1fr; }
  .service-item   { padding: 28px 24px; }
  .section-headline { font-size: clamp(1.8rem, 7vw, 2.6rem); }
}

/* ── PROCESS ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  .m-process-section { padding: 60px 0; }
  .process-step { grid-template-columns: 44px 1fr; gap: 20px; padding-bottom: 40px; }
  .ps-node { width: 40px; height: 40px; }
}

/* ── TESTIMONIAL ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .m-testimonial-section { padding: 60px 0; }
  .t-quote { font-size: 1.05rem; }
  .testimonial-ring::before { font-size: 5rem; top: -40px; }
}

/* ── CONTACT ─────────────────────────────────────────────── */
@media (max-width: 600px) {
  .m-contact-section { padding: 80px 0; }
  .contact-headline   { font-size: clamp(2rem, 8vw, 3rem); }
  .m-btn-xl { font-size: 0.9rem; padding: 14px 24px; }
}

/* ── FOOTER ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .m-footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .footer-centre { font-size: 0.65rem; }
}

/* ── GENERAL container padding on mobile ─────────────────── */
@media (max-width: 600px) {
  .m-container { padding: 0 20px; }
}

/* ════════════════════════════════════
   CUSTOM BUILDS SECTION
════════════════════════════════════ */
.m-builds-section {
  padding: 100px 0;
  background: var(--teal);
  position: relative;
  overflow: hidden;
}

/* multi-colour gradient wash across the top */
.m-builds-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 0% 0%,   rgba(79,127,255,0.35) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 100% 100%, rgba(180,79,255,0.25) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 80% 10%,  rgba(255,255,255,0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* grain texture overlay */
.m-builds-section::after {
  content: '';
  position: absolute;
  inset: -50%;
  width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.06'/%3E%3C/svg%3E");
  opacity: 0.15;
  pointer-events: none;
  animation: grainShift 8s steps(2) infinite;
  z-index: 0;
}
@keyframes grainShift {
  0%   { transform: translate(0,0); }
  25%  { transform: translate(-2%,-1%); }
  50%  { transform: translate(1%,2%); }
  75%  { transform: translate(-1%,1%); }
  100% { transform: translate(0,0); }
}

.m-builds-section .m-container {
  position: relative;
  z-index: 1;
}

/* text colours */
.m-builds-section .section-label {
  color: rgba(0,0,0,0.45);
  border-color: rgba(0,0,0,0.15);
}
.builds-headline {
  margin-bottom: 16px;
  color: #000;
}
/* white on the 'Need something' part */
.builds-white {
  color: #fff;
}
/* gradient stays on 'more bespoke?' via accent-word */
.m-builds-section .accent-word {
  background: linear-gradient(90deg, #4f7fff, #b44fff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.builds-sub {
  font-size: 1.05rem;
  color: rgba(0,0,0,0.6);
  margin-bottom: 44px;
  max-width: 520px;
}
/* "nothing is too much" in white */
.builds-sub .builds-white {
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.builds-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* base chip - all uniform, white text, more contrast */
.build-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: #fff;
  background: rgba(0,0,0,0.25);
  border: 1.5px solid rgba(255,255,255,0.55);
  border-radius: 8px;
  padding: 12px 18px;
  cursor: default;
  will-change: transform;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.build-chip svg { color: #fff; opacity: 0.8; flex-shrink: 0; }

/* remove per-chip colour tints */
.build-chip:nth-child(1),
.build-chip:nth-child(2),
.build-chip:nth-child(3),
.build-chip:nth-child(4),
.build-chip:nth-child(5),
.build-chip:nth-child(6) {
  background: rgba(0,0,0,0.25);
  border-color: rgba(255,255,255,0.55);
}

.build-chip:hover {
  background: rgba(0,0,0,0.4) !important;
  border-color: rgba(255,255,255,0.9) !important;
  box-shadow: 0 8px 28px rgba(0,0,0,0.2);
}

.build-chip--dim {
  color: rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.12) !important;
  border-color: rgba(255,255,255,0.25) !important;
  font-style: italic;
}
.build-chip--dim:hover {
  background: rgba(0,0,0,0.25) !important;
  border-color: rgba(255,255,255,0.45) !important;
  box-shadow: none;
}

@media (max-width: 600px) {
  .builds-grid { gap: 8px; }
  .build-chip { font-size: 0.72rem; padding: 10px 14px; }
}
}

/* ════════════════════════════════════
   ENQUIRY FORM SECTION
════════════════════════════════════ */
.m-enquiry-section {
  padding: 100px 0;
  background: var(--bg-1);
}
.enquiry-sub {
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 48px;
  max-width: 500px;
}

/* Form layout */
.enquiry-form {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.eq-row {
  display: grid;
  gap: 16px;
}
.eq-row--3 { grid-template-columns: 1fr 1fr 1fr; }
.eq-row--2 { grid-template-columns: 1fr 1fr; }

/* Field */
.eq-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.eq-field label {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.eq-req { color: var(--teal); }
.eq-hint { font-style: italic; text-transform: none; letter-spacing: 0; font-size: 0.65rem; }

/* Inputs */
.eq-field input,
.eq-field select,
.eq-field textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--white);
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  padding: 12px 16px;
  transition: border-color 0.25s, background 0.25s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  -webkit-appearance: none;
}
.eq-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.eq-field select option { background: #1a1a24; color: var(--white); }
.eq-field input::placeholder,
.eq-field textarea::placeholder { color: rgba(255,255,255,0.2); }
.eq-field input:focus,
.eq-field select:focus,
.eq-field textarea:focus {
  border-color: var(--accent);
  background: rgba(79,127,255,0.06);
}
.eq-field textarea { resize: vertical; min-height: 110px; }

/* Budget radio options */
.eq-budget-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.eq-budget-opt {
  cursor: pointer;
}
.eq-budget-opt input[type="radio"] { display: none; }
.eq-budget-opt span {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-dim);
  background: rgba(255,255,255,0.03);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.eq-budget-opt input:checked + span {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(0,212,170,0.08);
}
.eq-budget-opt:hover span {
  border-color: rgba(255,255,255,0.25);
  color: var(--white);
}

/* Submit row */
.eq-submit-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.eq-submit-btn { position: relative; }
.eq-privacy {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  margin: 0;
}

/* Success / error */
.eq-success, .eq-error {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
}
.eq-success {
  background: rgba(40,200,64,0.1);
  border: 1px solid rgba(40,200,64,0.3);
  color: #28c840;
}
.eq-error {
  background: rgba(255,80,80,0.08);
  border: 1px solid rgba(255,80,80,0.25);
  color: #ff6060;
}
.eq-error a { color: var(--teal); }

/* Mobile */
@media (max-width: 700px) {
  .eq-row--3 { grid-template-columns: 1fr; }
  .eq-row--2 { grid-template-columns: 1fr; }
  .eq-submit-row { flex-direction: column; align-items: flex-start; }
  .builds-grid { gap: 8px; }
  .build-chip { font-size: 0.72rem; padding: 10px 14px; }
}

/* ════════════════════════════════════
   ENQUIRY FORM
════════════════════════════════════ */
.m-enquiry-section {
  padding: 100px 0 120px;
  background: var(--bg-1);
}
.enquiry-sub {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 48px;
  max-width: 500px;
}

.enquiry-form {
  max-width: 860px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* rows */
.eq-row { display: flex; gap: 16px; }
.eq-row--3 .eq-field { flex: 1; min-width: 0; }
.eq-row--2 .eq-field { flex: 1; min-width: 0; }
.eq-row > .eq-field  { flex: 1; min-width: 0; }

/* labels */
.eq-field label {
  display: block;
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.eq-req  { color: var(--teal); }
.eq-hint { font-size: 0.6rem; text-transform: none; letter-spacing: 0; color: rgba(255,255,255,0.25); }

/* inputs, selects, textarea */
.eq-field input[type="text"],
.eq-field input[type="email"],
.eq-field input[type="tel"],
.eq-field select,
.eq-field textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--white);
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.25s, background 0.25s;
  box-sizing: border-box;
  -webkit-appearance: none;
}
.eq-field input::placeholder,
.eq-field textarea::placeholder { color: rgba(255,255,255,0.2); }
.eq-field select { cursor: pointer; color: var(--text-dim); }
.eq-field select option { background: #1a1a28; color: var(--white); }
.eq-field input:focus,
.eq-field select:focus,
.eq-field textarea:focus {
  border-color: var(--accent);
  background: rgba(79,127,255,0.05);
}
.eq-field textarea { resize: vertical; min-height: 110px; }

/* budget radio chips */
.eq-budget-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}
.eq-budget-opt {
  display: flex;
  align-items: center;
  cursor: pointer;
}
.eq-budget-opt input[type="radio"] { display: none; }
.eq-budget-opt span {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-dim);
  background: rgba(255,255,255,0.03);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  user-select: none;
}
.eq-budget-opt:hover span {
  border-color: rgba(79,127,255,0.4);
  color: var(--white);
}
.eq-budget-opt input:checked + span {
  border-color: var(--accent);
  background: rgba(79,127,255,0.12);
  color: var(--white);
}

/* submit row */
.eq-submit-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.eq-privacy {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.04em;
  margin: 0;
}

/* success / error messages */
.eq-success, .eq-error {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
}
.eq-success {
  background: rgba(40,200,64,0.1);
  border: 1px solid rgba(40,200,64,0.3);
  color: #28c840;
}
.eq-error {
  background: rgba(255,80,80,0.1);
  border: 1px solid rgba(255,80,80,0.3);
  color: #ff5050;
}
.eq-error a { color: var(--accent); }

/* mobile */
@media (max-width: 700px) {
  .eq-row, .eq-row--3, .eq-row--2 {
    flex-direction: column;
    gap: 14px;
  }
  .eq-budget-options { gap: 8px; }
  .eq-budget-opt span { font-size: 0.7rem; padding: 7px 13px; }
  .eq-submit-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .m-enquiry-section { padding: 60px 0 80px; }
}

/* ════════════════════════════════════
   DOG GAME SECTION
════════════════════════════════════ */
.m-dog-section {
  padding: 80px 0 60px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.dog-sub {
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 32px;
}
.dog-game-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  max-width: 700px;
}
#dog-canvas {
  width: 100%;
  max-width: 700px;
  height: auto;
  border-radius: 12px;
  background: #0a0a12;
  border: 1px solid var(--border);
  display: block;
  cursor: default;
}
.dog-throw-area {
  width: 100%;
  max-width: 700px;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  position: relative;
}
.dog-bone {
  cursor: grab;
  user-select: none;
  position: absolute;
  left: 20px;
  transition: filter 0.2s;
  filter: drop-shadow(0 2px 8px rgba(200,168,120,0.3));
}
.dog-bone:active { cursor: grabbing; }
.dog-bone:hover  { filter: drop-shadow(0 2px 16px rgba(0,212,170,0.5)); }
.dog-score-line {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-top: 10px;
}
.dog-score-line span {
  color: var(--teal);
  font-weight: 600;
}
@media (max-width: 600px) {
  .dog-game-wrap { max-width: 100%; }
  #dog-canvas    { max-width: 100%; }
  .dog-throw-area { max-width: 100%; }
}

/* ════════════════════════════════════
   WORK PROJECT - one-liner + feature pills
════════════════════════════════════ */
.wp-oneliner {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}

.wp-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
}

.wp-pill {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 11px;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}
.wp-pill:hover {
  border-color: rgba(0,212,170,0.4);
  color: var(--teal);
}

/* ════════════════════════════════════
   HERO SCROLL NUDGE
════════════════════════════════════ */
#hero-scroll-nudge {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.6s ease;
}
#hero-scroll-nudge.hidden { opacity: 0; }

.hsn-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.4);
}

.hsn-wheel {
  animation: hsnBounce 2s ease-in-out infinite;
}
.hsn-dot {
  animation: hsnScroll 2s ease-in-out infinite;
}
@keyframes hsnBounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(5px); }
}
@keyframes hsnScroll {
  0%   { transform: translateY(0);   opacity: 1; }
  60%  { transform: translateY(8px); opacity: 0; }
  61%  { transform: translateY(0);   opacity: 0; }
  100% { transform: translateY(0);   opacity: 1; }
}

.hsn-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hsn-chevrons { opacity: 0.6; }
.hsn-c1 { animation: hsnChev 1.4s ease-in-out infinite; }
.hsn-c2 { animation: hsnChev 1.4s ease-in-out infinite 0.2s; }
@keyframes hsnChev {
  0%,100% { opacity: 0.3; transform: translateY(0); }
  50%      { opacity: 1;   transform: translateY(3px); }
}

@media (max-width: 860px) {
  #hero-scroll-nudge { bottom: 20px; }
}
