/* ============================================
   ALOPEX TECHNOLOGIES
   Warm, bright, approachable. Snow fox energy.
   ============================================ */

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #fff;
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ---------- Tokens ---------- */
:root {
  --fox: #e86a20;
  --fox-bright: #f28332;
  --fox-deep: #c4560f;
  --fox-glow: rgba(232, 106, 32, 0.12);
  --fox-wash: #fef5ee;
  --fox-tint: #fde8d3;

  --ink: #1c1917;
  --ink-light: #44403c;
  --ink-muted: #78716c;
  --ink-faint: #a8a29e;
  --ink-ghost: #d6d3d1;

  --surface: #fafaf9;
  --surface-warm: #fef7f0;
  --surface-dark: #1c1917;

  --white: #ffffff;
  --white-on-dark: #fafaf9;
  --white-on-dark-muted: rgba(250, 250, 249, 0.6);

  --border: #e7e5e4;
  --border-light: #f5f5f4;

  --radius: 20px;
  --radius-sm: 10px;
  --radius-pill: 100px;

  --nav-h: 64px;
  --max-w: 1120px;
}

/* ---------- Accessibility ---------- */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 16px;
  padding: 12px 24px;
  background: var(--fox);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
}

.skip-to-content:focus { top: 12px; }

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 32px;
  transition: background 0.3s, box-shadow 0.3s;
}

.site-nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.2px;
  color: var(--ink);
}

img.logo-mark {
  height: 26px;
  width: auto;
  flex-shrink: 0;
}

.logo-accent {
  color: var(--fox);
  font-weight: 600;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-menu a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 0.15s;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--ink);
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--fox);
  border-radius: 1px;
}

.nav-cta-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--fox) !important;
  transition: opacity 0.15s;
}

.nav-cta-link:hover { opacity: 0.8; }
.nav-cta-link::after { display: none !important; }

/* Hamburger */
.menu-btn {
  display: none;
  width: 32px;
  height: 32px;
  position: relative;
}

.menu-btn span {
  position: absolute;
  left: 5px;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-btn span:nth-child(1) { top: 10px; }
.menu-btn span:nth-child(2) { top: 15px; }
.menu-btn span:nth-child(3) { top: 20px; }

.menu-btn.open span:nth-child(1) { top: 15px; transform: rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { top: 15px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: 160px 0 80px;
  position: relative;
  background: linear-gradient(180deg, var(--fox-wash) 0%, #fff 60%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 40% at 80% 30%, var(--fox-glow), transparent);
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-text {
  max-width: 520px;
}

.hero h1 {
  font-family: 'Outfit', 'DM Sans', sans-serif;
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
  color: var(--ink);
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--fox);
}

.hero-sub {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-light);
  margin-bottom: 36px;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero mockups — tilted for depth */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-stack {
  position: relative;
  width: 100%;
  max-width: 460px;
  height: 380px;
}

.mock {
  position: absolute;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--border-light);
}

.mock-bar.dark {
  background: #1e1e1e;
  border-bottom-color: #333;
}

.mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-ghost);
}

.mock-dot.red { background: #ff5f57; }
.mock-dot.yellow { background: #febc2e; }
.mock-dot.green { background: #28c840; }

.mock-url {
  flex: 1;
  height: 20px;
  margin-left: 8px;
  background: var(--white);
  border-radius: 6px;
  border: 1px solid var(--border-light);
}

.mock-body {
  padding: 20px;
  background: var(--white);
}

.mock-body.dark {
  background: #1e1e1e;
  padding: 16px 18px;
}

.mock-line {
  height: 10px;
  border-radius: 5px;
  background: var(--border);
  margin-bottom: 8px;
}

.mock-line.w40 { width: 40%; }
.mock-line.w60 { width: 60%; }
.mock-line.w70 { width: 70%; }
.mock-line.w80 { width: 80%; }

.mock-spacer { height: 16px; }
.mock-spacer-sm { height: 12px; }

.mock-row { display: flex; gap: 12px; }

.mock-block {
  flex: 1;
  height: 56px;
  border-radius: 8px;
  background: var(--fox-wash);
  border: 1px solid var(--fox-tint);
}

.mock-btn-sm {
  width: 80px;
  height: 28px;
  border-radius: var(--radius-pill);
  background: var(--fox);
}

.mock-cmd {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  line-height: 2;
  color: #e5e5e5;
}

.mock-cmd.dim { color: #777; }
.mock-cmd.success { color: #4ade80; }
.mock-prompt { color: var(--fox-bright); margin-right: 6px; }

.mock-browser {
  width: 85%;
  top: 0;
  left: 0;
  z-index: 1;
  border: 1px solid var(--border);
  background: var(--white);
}

.mock-phone {
  width: 140px;
  right: -8px;
  top: 24px;
  z-index: 3;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--white);
}

.mock-phone .mock-body {
  padding: 16px;
  border-radius: 0 0 20px 20px;
}

.mock-phone-notch {
  width: 60px;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin: 10px auto 0;
}

.mock-terminal {
  width: 70%;
  bottom: 0;
  left: 8%;
  z-index: 2;
  border: 1px solid #333;
}

/* ---------- Numbers Strip ---------- */
.numbers-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
  background: var(--white);
}

.numbers-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
}

.number-item {
  text-align: center;
}

.number-item strong {
  display: block;
  font-family: 'Outfit', 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.number-item span {
  font-size: 13px;
  color: var(--ink-muted);
}

.numbers-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}

.btn-fox {
  background: var(--fox);
  color: #fff;
}

.btn-fox:hover {
  background: var(--fox-deep);
  box-shadow: 0 6px 20px rgba(232, 106, 32, 0.3);
}

.btn-fox:active { transform: scale(0.97); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--ink-ghost);
  background: var(--surface);
}

.btn-ghost .arr { transition: transform 0.2s; }
.btn-ghost:hover .arr { transform: translateX(3px); }

/* ---------- Section ---------- */
.sect {
  padding: 100px 0;
}

.sect-intro {
  max-width: 520px;
  margin-bottom: 56px;
}

.sect-intro.centered {
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.sect-tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--fox);
  margin-bottom: 12px;
}

.sect-heading {
  font-family: 'Outfit', 'DM Sans', sans-serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-bottom: 16px;
}

.sect-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-muted);
}

/* ---------- Services ---------- */
.services-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.svc {
  padding: 36px 32px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 24px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.3s, transform 0.3s;
  position: relative;
  border-left: 3px solid transparent;
}

.svc:hover {
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), 0 16px 48px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
  border-left-color: var(--fox);
}

.svc-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.svc-icon svg { width: 22px; height: 22px; stroke-width: 1.8; }
.svc-icon.orange { background: var(--fox-wash); color: var(--fox); }
.svc-icon.slate { background: #f1f5f9; color: #475569; }
.svc-icon.stone { background: #f5f5f4; color: var(--ink-light); }
.svc-icon.fox-wash { background: var(--fox-tint); color: var(--fox-deep); }

.svc h3 {
  font-family: 'Outfit', 'DM Sans', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.svc p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-muted);
  margin-bottom: 20px;
}

.svc-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.svc-tags span {
  font-size: 11.5px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-muted);
  border: 1px solid var(--border-light);
}

/* ---------- How We Work ---------- */
.how-sect {
  background: var(--surface-warm);
}

.timeline {
  display: flex;
  gap: 0;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 23px;
  left: 24px;
  right: 24px;
  height: 2px;
  background: var(--fox-tint);
}

.tl-step {
  flex: 1;
  position: relative;
  padding-top: 56px;
  text-align: center;
}

.tl-dot {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  background: var(--white);
  border: 2.5px solid var(--fox);
  border-radius: 50%;
  z-index: 1;
}

.tl-dot::after {
  content: '';
  position: absolute;
  inset: 5px;
  background: var(--fox);
  border-radius: 50%;
}

.tl-step h4 {
  font-family: 'Outfit', 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.tl-step p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 200px;
  margin: 0 auto;
}

/* ---------- Why Alopex ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.why-item {
  display: flex;
  gap: 16px;
  padding: 28px 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.why-item:hover {
  background: var(--surface);
  border-color: var(--fox-tint);
  box-shadow: 0 4px 16px rgba(232, 106, 32, 0.06);
}

.why-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--fox-wash);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fox);
}

.why-icon svg { width: 18px; height: 18px; stroke-width: 2; }

.why-item h4 {
  font-family: 'Outfit', 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.why-item p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* ---------- About ---------- */
.about-sect {
  background: var(--surface);
}

.about-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: start;
}

.about-aside {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}

.about-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--fox-wash), var(--white));
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 20px;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.about-photo-placeholder {
  font-size: 13px;
  color: var(--ink-faint);
}

.about-name {
  font-family: 'Outfit', 'DM Sans', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.about-role {
  font-size: 14px;
  font-weight: 600;
  color: var(--fox);
  margin-bottom: 16px;
}

.about-social { display: flex; gap: 8px; }

.about-social a {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  transition: border-color 0.15s, color 0.15s;
  background: var(--white);
}

.about-social a:hover {
  border-color: var(--fox-tint);
  color: var(--fox);
}

.about-social svg { width: 16px; height: 16px; }

/* About quote */
.about-quote {
  font-family: 'Outfit', 'DM Sans', sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
  padding: 28px 32px;
  border-left: 3px solid var(--fox);
  background: var(--white);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 28px;
}

.about-body p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-light);
  margin-bottom: 16px;
}

.about-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.about-skills span {
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--fox-wash);
  color: var(--fox-deep);
}

/* ---------- Portfolio ---------- */
.portfolio-sect {
  background: var(--white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.folio-featured {
  grid-row: 1 / 4;
}

.folio-featured .folio-thumb {
  aspect-ratio: auto;
  flex: 1;
  min-height: 280px;
}

.folio-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  transition: box-shadow 0.3s, transform 0.3s;
}

.folio-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.folio-featured {
  display: flex;
  flex-direction: column;
}

.folio-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--border-light), var(--border));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--ink-faint);
  overflow: hidden;
}

.folio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.folio-info {
  padding: 20px 24px 24px;
}

.folio-type {
  font-size: 11px;
  font-weight: 600;
  color: var(--fox);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.folio-card h3 {
  font-family: 'Outfit', 'DM Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.folio-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-muted);
}

.portfolio-more {
  text-align: center;
  margin-top: 40px;
}

.folio-thumb {
  cursor: pointer;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lightbox.lb-open {
  opacity: 1;
  pointer-events: auto;
}

.lb-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  transform: scale(0.92);
  transition: transform 0.3s ease;
}

.lightbox.lb-open .lb-img {
  transform: scale(1);
}

.lb-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 1;
}

.lb-close:hover {
  opacity: 1;
}

/* ---------- CTA ---------- */
.cta-sect {
  padding: 60px 0 100px;
}

.cta-banner {
  background: var(--fox);
  border-radius: var(--radius);
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(255, 255, 255, 0.1), transparent),
    radial-gradient(ellipse 40% 40% at 80% 20%, rgba(255, 255, 255, 0.08), transparent);
  pointer-events: none;
}

.cta-banner h2 {
  font-family: 'Outfit', 'DM Sans', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  position: relative;
  letter-spacing: -0.5px;
}

.cta-banner p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  max-width: 440px;
  margin: 0 auto 28px;
  position: relative;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--fox-deep);
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  position: relative;
}

.btn-white:hover {
  background: var(--fox-wash);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface-dark);
  padding: 48px 24px 32px;
  color: var(--white-on-dark);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-brand { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.footer-brand img { width: 20px; height: auto; }
.footer-brand span { color: var(--fox-bright); }

.footer-links { display: flex; gap: 24px; }

.footer-links a {
  font-size: 13px;
  color: var(--white-on-dark-muted);
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--white-on-dark); }

.footer-copy {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1), transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.vis {
  opacity: 1;
  transform: none;
}

.r-d1 { transition-delay: 0.05s; }
.r-d2 { transition-delay: 0.1s; }
.r-d3 { transition-delay: 0.15s; }
.r-d4 { transition-delay: 0.2s; }
.r-d5 { transition-delay: 0.25s; }
.r-d6 { transition-delay: 0.3s; }

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

@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
  }

  .folio-featured {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .folio-featured .folio-thumb {
    min-height: 320px;
  }

  .about-layout { gap: 40px; }
  .hero .wrap { gap: 40px; }

  .numbers-row { gap: 32px; }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    height: calc(100vh - var(--nav-h));
    height: calc(100dvh - var(--nav-h));
    background: #fff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    z-index: 999;
  }

  .nav-menu.open { display: flex; }
  .nav-menu a { font-size: 22px; }

  .nav-menu .nav-cta-link {
    font-size: 18px;
    padding: 12px 32px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-pill);
    color: var(--ink-muted) !important;
  }

  .menu-btn { display: block; }

  .hero { padding: 120px 0 60px; }

  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero h1 { font-size: clamp(32px, 8vw, 48px); }
  .hero-visual { display: none; }

  .numbers-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .numbers-divider { display: none; }
  .number-item { text-align: left; }

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

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .folio-featured {
    grid-column: auto;
    grid-row: auto;
  }

  .folio-featured .folio-thumb {
    min-height: 200px;
  }

  .timeline {
    flex-direction: column;
    gap: 32px;
    padding-left: 32px;
  }

  .timeline::before {
    top: 12px;
    bottom: 12px;
    left: 11px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .tl-step {
    padding-top: 0;
    padding-left: 24px;
    text-align: left;
  }

  .tl-dot {
    top: 2px;
    left: -32px;
    transform: none;
  }

  .tl-step p { max-width: none; margin: 0; }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-aside {
    position: static;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    align-items: center;
  }

  .about-photo { aspect-ratio: 1; margin-bottom: 0; }
  .about-name { font-size: 20px; }
  .about-quote { font-size: 17px; padding: 20px 24px; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .footer-links { flex-wrap: wrap; justify-content: center; }
  .sect { padding: 72px 0; }
  .sect-intro { margin-bottom: 40px; }
}

@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .cta-banner { padding: 40px 24px; }

  .numbers-row { grid-template-columns: 1fr; }

  .about-aside {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-photo { max-width: 160px; margin: 0 auto; }
  .about-social { justify-content: center; }
}

/* ============================================
   Animations
   ============================================ */

/* --- Hero text clip-reveal --- */
.h-line {
  display: block;
  overflow: hidden;
  padding-bottom: 4px;
}

.h-line-inner {
  display: block;
  transform: translateY(105%);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero.in-view .h-line-inner {
  transform: translateY(0);
}

.h-line:nth-child(2) .h-line-inner {
  transition-delay: 0.12s;
}

/* --- Hero fade-ins (subtitle, buttons) --- */
.anim-fade {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: 0.45s;
}

.anim-fade-d2 {
  transition-delay: 0.55s;
}

.hero.in-view .anim-fade {
  opacity: 1;
  transform: none;
}

/* --- Mockup staggered entrance --- */
.mock {
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mock-browser {
  transform: rotate(-2deg) translateY(40px) translateX(-20px);
  transition-delay: 0.3s;
}

.mock-phone {
  transform: rotate(3deg) translateY(30px) translateX(20px);
  transition-delay: 0.45s;
}

.mock-terminal {
  transform: rotate(1deg) translateY(40px);
  transition-delay: 0.6s;
}

.hero.in-view .mock-browser {
  opacity: 1;
  transform: rotate(-2deg);
}

.hero.in-view .mock-phone {
  opacity: 1;
  transform: rotate(3deg);
}

.hero.in-view .mock-terminal {
  opacity: 1;
  transform: rotate(1deg);
}

/* Hover still works after entrance */
.hero.in-view .hero-stack:hover .mock-browser {
  transform: rotate(-1deg) translateY(-4px);
}

.hero.in-view .hero-stack:hover .mock-phone {
  transform: rotate(2deg) translateY(-4px);
}

.hero.in-view .hero-stack:hover .mock-terminal {
  transform: rotate(0deg) translateY(-4px);
}

/* --- Mockup float (after entrance) --- */
.hero.in-view .mock-browser {
  animation: float-a 6s ease-in-out 1.2s infinite;
}

.hero.in-view .mock-phone {
  animation: float-b 5s ease-in-out 1.5s infinite;
}

.hero.in-view .mock-terminal {
  animation: float-c 7s ease-in-out 1.8s infinite;
}

@keyframes float-a {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(-2deg) translateY(-6px); }
}

@keyframes float-b {
  0%, 100% { transform: rotate(3deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-5px); }
}

@keyframes float-c {
  0%, 100% { transform: rotate(1deg) translateY(0); }
  50% { transform: rotate(1deg) translateY(-4px); }
}

/* --- Timeline progressive fill --- */
.timeline::before {
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline.tl-active::before {
  transform: scaleX(1);
}

.tl-dot {
  transform: translateX(-50%) scale(0);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tl-step.tl-step-vis .tl-dot {
  transform: translateX(-50%) scale(1);
}

.tl-step h4,
.tl-step p {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.tl-step.tl-step-vis h4,
.tl-step.tl-step-vis p {
  opacity: 1;
  transform: none;
}

.tl-step.tl-step-vis h4 { transition-delay: 0.1s; }
.tl-step.tl-step-vis p { transition-delay: 0.15s; }

/* --- Service icon hover animations --- */
.svc-icon {
  transition: transform 0.3s ease;
}

.svc:nth-child(1):hover .svc-icon {
  transform: rotate(-8deg) scale(1.1);
}

.svc:nth-child(2):hover .svc-icon {
  transform: translateY(-4px) scale(1.05);
}

.svc:nth-child(3):hover .svc-icon {
  transform: rotate(8deg) scale(1.1);
}

.svc:nth-child(4):hover .svc-icon {
  transform: translateY(-4px) scale(1.1);
}

/* --- CTA shimmer --- */
.cta-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 255, 255, 0.08) 40%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.08) 60%,
    transparent 80%
  );
  animation: shimmer 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

/* --- Why-item hover icon pulse --- */
.why-item:hover .why-icon {
  animation: icon-pop 0.4s ease;
}

@keyframes icon-pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* --- Portfolio card image zoom --- */
.folio-thumb img,
.folio-thumb {
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.folio-card:hover .folio-thumb img,
.folio-card:hover .folio-thumb {
  transform: scale(1.03);
}

/* --- About quote entrance --- */
.about-quote {
  position: relative;
}

.about-quote::before {
  content: '';
  position: absolute;
  top: 0;
  left: -3px;
  width: 3px;
  height: 0;
  background: var(--fox);
  transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-quote {
  border-left-color: transparent;
}

.about-quote.aq-vis::before {
  height: 100%;
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal { opacity: 1 !important; transform: none !important; }
  .h-line-inner { transform: none !important; }
  .anim-fade { opacity: 1 !important; transform: none !important; }
  .mock { opacity: 1 !important; }
  .mock-browser { transform: rotate(-2deg) !important; }
  .mock-phone { transform: rotate(3deg) !important; }
  .mock-terminal { transform: rotate(1deg) !important; }
  .timeline::before { transform: scaleX(1) !important; }
  .tl-dot { transform: translateX(-50%) scale(1) !important; }
  .tl-step h4, .tl-step p { opacity: 1 !important; transform: none !important; }
  .about-quote::before { height: 100% !important; }
  html { scroll-behavior: auto; }
}
