/* ═══════════════════════════════════════════════
   WESLEY D.M. — PORTFOLIO v4
   Mobile-First · Context-Aware Ring Cursor
═══════════════════════════════════════════════ */

:root {
  --black:     #080808;
  --dark:      #0e0e0e;
  --dark-2:    #161616;
  --dark-3:    #202020;
  --dark-4:    #2a2a2a;
  --mid:       #444444;
  --grey:      #777777;
  --grey-lt:   #aaaaaa;
  --border-lt: rgba(255,255,255,0.07);
  --border-dk: rgba(0,0,0,0.1);
  --off-white: #f5f5f3;
  --white:     #ffffff;
  --ink:       #0e0e0e;
  --green:     #22c55e;
  --wa:        #25D366;

  --font-disp: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h:     60px;
  --max:       1160px;
  --r:         3px;
}

/* ─── Reset ─── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}
body { font-family: var(--font-body); background: var(--off-white); color: var(--ink); overflow-x: hidden; }
img  { max-width: 100%; height: auto; display: block; }
a    { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; }
::selection { background: var(--ink); color: var(--white); }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--ink); border-radius: 99px; }

h1,h2,h3,h4 { font-family: var(--font-disp); font-weight: 400; line-height: 1.08; letter-spacing: -0.015em; }
em { font-family: var(--font-disp); font-style: italic; font-weight: 300; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* ═══════════════════════════════════════════════
   CONTEXT-AWARE RING CURSOR
   Black ring on light sections, White ring on dark
═══════════════════════════════════════════════ */
@media (hover: hover) and (pointer: fine) {
  * { cursor: none !important; }
}

.cursor-ring {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--ink);   /* default: dark ring on light bg */
  position: fixed;
  top: 0; left: 0;
  z-index: 99999;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition:
    width .28s var(--ease),
    height .28s var(--ease),
    border-color .22s ease,
    background .22s ease,
    opacity .3s;
  will-change: left, top;
  opacity: 0;  /* hidden until mouse enters */
}
.cursor-ring.active { opacity: 1; }

/* Center dot */
.cursor-ring::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 5px; height: 5px;
  background: var(--ink);
  border-radius: 50%;
  transform: translate(-50%,-50%);
  transition: background .22s ease, width .28s var(--ease), height .28s var(--ease);
}

/* ── White ring state (on dark/black backgrounds) ── */
.cursor-ring.on-dark {
  border-color: rgba(255,255,255,0.88);
}
.cursor-ring.on-dark::after {
  background: rgba(255,255,255,0.88);
}

/* ── Hover expand ── */
.cursor-ring.hovered {
  width: 52px;
  height: 52px;
}
.cursor-ring.hovered::after { width: 6px; height: 6px; }

/* ── Click pulse ── */
.cursor-ring.clicking {
  transform: translate(-50%,-50%) scale(0.78);
}

/* Hide on touch */
@media (hover: none), (pointer: coarse) {
  .cursor-ring { display: none !important; }
}

/* ═══════════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════════ */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.section    { padding: 5rem 0; }
.section-dark { background: var(--dark); color: var(--white); }

.section-label {
  display: inline-flex; align-items: center; gap: .65rem;
  font-size: .63rem; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--grey); margin-bottom: .9rem;
}
.section-label::before {
  content: ''; width: 22px; height: 1px; background: currentColor; flex-shrink: 0;
}
.section-dark .section-label { color: rgba(255,255,255,.35); }
.centered .section-label { justify-content: center; }
.centered .section-label::before { display: none; }

.section-title { font-size: clamp(1.8rem, 6vw, 3.2rem); line-height: 1.06; margin-bottom: 1.2rem; }
.section-sub { font-size: .95rem; color: var(--grey); line-height: 1.8; }
.section-dark .section-sub { color: var(--grey-lt); }
.section-header { margin-bottom: 3.5rem; }
.section-header.centered { text-align: center; }
.section-header.centered .section-sub { max-width: 440px; margin: 0 auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.75rem;
  font-family: var(--font-body); font-size: .8rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  border-radius: var(--r); transition: all .3s var(--ease);
  white-space: nowrap; min-height: 52px; border: 1px solid transparent;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-primary:hover { background: transparent; color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.12); }
.btn-glass { background: rgba(255,255,255,.1); color: var(--white); border-color: rgba(255,255,255,.2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-glass:hover { background: var(--white); color: var(--ink); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--ink); border-color: rgba(0,0,0,.2); }
.btn-outline:hover { background: var(--ink); color: var(--white); transform: translateY(-2px); }
.btn-full { width: 100%; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }

/* ═══════════════════════════════════════════════
   PAGE LOADER
═══════════════════════════════════════════════ */
.page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--black);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.page-loader.hide { opacity: 0; pointer-events: none; transform: scale(1.02); }
.loader-inner { text-align: center; position: relative; z-index: 1; }
.loader-logo { font-family: var(--font-disp); font-size: clamp(2.5rem,8vw,4rem); font-weight: 600; color: var(--white); letter-spacing: -.02em; margin-bottom: 2rem; }
.loader-logo span { color: rgba(255,255,255,.3); }
.loader-bar-wrap { width: min(180px,60vw); height: 1px; background: rgba(255,255,255,.1); margin: 0 auto 1rem; overflow: hidden; }
.loader-bar { height: 100%; width: 0%; background: var(--white); transition: width .05s linear; }
.loader-percent { font-size: .6rem; font-weight: 500; letter-spacing: .22em; color: rgba(255,255,255,.25); }
.loader-bg-text {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  font-family: var(--font-disp); font-size: clamp(60px,14vw,180px); font-weight: 700;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.03);
  pointer-events: none; white-space: nowrap; user-select: none;
}

/* ═══════════════════════════════════════════════
   SCROLL PROGRESS
═══════════════════════════════════════════════ */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 9990;
  background: var(--white); transform-origin: left; transform: scaleX(0);
  transition: transform .1s linear;
}

/* ═══════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 1000;
  transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.navbar.scrolled {
  background: rgba(8,8,8,.95);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border-lt);
}
.nav-container {
  max-width: var(--max); margin: 0 auto; padding: 0 1.25rem;
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav-logo { font-family: var(--font-disp); font-size: 1.3rem; font-weight: 600; color: var(--white); letter-spacing: -.01em; z-index: 1002; flex-shrink: 0; }
.nav-logo span { color: rgba(255,255,255,.4); font-weight: 300; }

/* Desktop links — hidden on mobile by default */
.nav-links { display: none; align-items: center; gap: 1.8rem; }
.nav-link {
  font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.55); transition: color .3s; position: relative;
  padding: .5rem 0; display: flex; align-items: center; min-height: 44px;
}
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background: var(--white); transition: width .35s var(--ease); }
.nav-link:hover,.nav-link.active { color: var(--white); }
.nav-link:hover::after,.nav-link.active::after { width: 100%; }
.nav-cta { padding: .55rem 1.2rem !important; border: 1px solid rgba(255,255,255,.25); border-radius: var(--r); min-height: 40px; }
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

/* Hamburger */
.hamburger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  z-index: 1002; padding: 10px; margin-right: -10px;
  width: 44px; height: 44px; -webkit-tap-highlight-color: transparent;
}
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--white); transition: all .32s var(--ease); transform-origin: center; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav overlay */
.nav-overlay {
  position: fixed; inset: 0; background: rgba(8,8,8,.98);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  z-index: 1001; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .25rem;
  opacity: 0; pointer-events: none; transition: opacity .4s var(--ease);
}
.nav-overlay.open { opacity: 1; pointer-events: all; }
.nav-overlay .nav-link {
  font-family: var(--font-disp); font-size: clamp(2rem,8vw,3rem); font-weight: 400;
  letter-spacing: 0; text-transform: none; color: rgba(255,255,255,.65);
  padding: .7rem 2rem; min-height: 60px; width: 100%; text-align: center;
}
.nav-overlay .nav-link:hover { color: var(--white); }
.nav-overlay .nav-link::after { display: none; }
.nav-overlay .nav-cta {
  margin-top: 1rem; border: 1px solid rgba(255,255,255,.2); border-radius: var(--r);
  font-family: var(--font-body); font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.55);
  padding: .75rem 2.5rem !important; min-height: 52px;
}
.nav-overlay .nav-cta:hover { background: var(--white); color: var(--ink); }

/* ═══════════════════════════════════════════════
   HERO — Mobile first
═══════════════════════════════════════════════ */
.hero {
  min-height: 100dvh;
  background: var(--black);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .25; pointer-events: none; }
.hero-noise {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: .5;
}
.hero-bg-text {
  position: absolute; right: -2%; top: 50%; transform: translateY(-50%);
  font-family: var(--font-disp); font-size: clamp(80px,16vw,220px); font-weight: 700;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.04);
  pointer-events: none; white-space: nowrap; user-select: none; will-change: transform;
  display: none; /* Mobile: hidden */
}
.hero-container {
  max-width: var(--max); margin: 0 auto;
  padding: calc(var(--nav-h) + 2.5rem) 1.25rem 4rem;
  width: 100%; position: relative; z-index: 1;
}
.hero-anim { opacity: 0; transform: translateY(18px); animation: heroIn .9s var(--ease) forwards; animation-delay: calc(var(--i) * .12s + .35s); }
@keyframes heroIn { to { opacity: 1; transform: none; } }

.hero-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .45rem 1rem; border: 1px solid rgba(255,255,255,.15); border-radius: 99px;
  font-size: .66rem; font-weight: 500; letter-spacing: .13em; text-transform: uppercase;
  color: rgba(255,255,255,.6); margin-bottom: 1.75rem;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: bdot 2s ease-in-out infinite; flex-shrink: 0; }
@keyframes bdot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.6)} }

.hero-headline { font-size: clamp(2.4rem,9vw,5.5rem); color: var(--white); font-weight: 400; line-height: 1.04; margin-bottom: 1.5rem; }
.hero-headline em { text-decoration: none; font-style: italic; font-weight: 300; color: rgba(255,255,255,.5); }
.hl-line { position: relative; display: inline-block; }
.hl-line::after { content: ''; position: absolute; bottom: 4px; left: 0; right: 0; height: 1px; background: rgba(255,255,255,.2); }

.hero-sub { font-size: clamp(.92rem,2.5vw,1.08rem); color: rgba(255,255,255,.4); line-height: 1.85; margin-bottom: 2.5rem; max-width: 520px; }

.hero-ctas { display: flex; flex-direction: column; gap: .85rem; margin-bottom: 3.5rem; }
.hero-ctas .btn { width: 100%; }
.hero-ctas .btn-primary { background: var(--white); color: var(--ink); border-color: var(--white); }
.hero-ctas .btn-primary:hover { background: transparent; color: var(--white); }

.hero-stats {
  display: grid; grid-template-columns: repeat(3,1fr);
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 2rem;
}
.stat { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 .5rem; position: relative; }
.stat:not(:last-child)::after { content: ''; position: absolute; right: 0; top: 10%; bottom: 10%; width: 1px; background: rgba(255,255,255,.1); }
.stat-top { display: flex; align-items: baseline; gap: 1px; justify-content: center; }
.stat-num { font-family: var(--font-disp); font-size: clamp(1.8rem,5vw,2.4rem); font-weight: 600; color: var(--white); line-height: 1; }
.stat-plus { font-family: var(--font-disp); font-size: 1.2rem; color: rgba(255,255,255,.4); }
.stat-label { font-size: .6rem; color: rgba(255,255,255,.28); text-transform: uppercase; letter-spacing: .1em; margin-top: .35rem; line-height: 1.4; }

.hero-scroll-hint { display: none; }
.hero-corner-tag  { display: none; }

/* ═══════════════════════════════════════════════
   MARQUEE
═══════════════════════════════════════════════ */
.marquee-strip { background: var(--ink); overflow: hidden; padding: .85rem 0; white-space: nowrap; border-top: 1px solid rgba(255,255,255,.05); }
.marquee-track { display: inline-block; animation: mq 28s linear infinite; }
.marquee-track span { font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.5); padding: 0 1.25rem; }
.marquee-track .msep { color: rgba(255,255,255,.18); padding: 0 .35rem; }
@keyframes mq { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ═══════════════════════════════════════════════
   ABOUT — Mobile first
═══════════════════════════════════════════════ */
.about-grid { display: flex; flex-direction: column; gap: 3rem; }
.about-visual { position: relative; }
.about-img-wrap { position: relative; display: inline-block; width: 100%; }
.about-img-placeholder {
  width: 100%; aspect-ratio: 4/3; background: var(--dark-2);
  border-radius: 3px; display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.abt-orb { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.abt-orb-1 { width: 150px; height: 150px; background: rgba(255,255,255,.04); top: -20px; left: -10px; }
.abt-orb-2 { width: 110px; height: 110px; background: rgba(255,255,255,.03); bottom: 20px; right: -5px; }
.initials { font-family: var(--font-disp); font-size: clamp(3rem,10vw,5.5rem); font-weight: 600; color: rgba(255,255,255,.08); position: relative; z-index: 1; user-select: none; }
.about-accent-box { position: absolute; bottom: -12px; right: -12px; width: 50%; height: 50%; border: 1px solid rgba(0,0,0,.07); border-radius: 2px; z-index: -1; }
.about-float-tag {
  position: absolute; top: 1rem; right: 0;
  background: var(--white); color: var(--ink);
  font-size: .66rem; font-weight: 600; letter-spacing: .07em;
  padding: .4rem .75rem; border-radius: 99px;
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
  display: flex; align-items: center; gap: .4rem; white-space: nowrap;
}
.about-mini-stats { display: flex; align-items: center; gap: 1.25rem; margin-top: 1.5rem; }
.mini-stat { display: flex; align-items: baseline; gap: .3rem; }
.ms-val { font-family: var(--font-disp); font-size: 1.4rem; font-weight: 600; color: var(--ink); }
.ms-label { font-size: .68rem; color: var(--grey); text-transform: uppercase; letter-spacing: .07em; }
.mini-stat-sep { width: 1px; height: 20px; background: var(--border-dk); }
.about-bio { font-size: .97rem; color: var(--mid); line-height: 1.9; margin-bottom: 1.1rem; }
.skills-grid { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.skill-pill {
  padding: .5rem 1.1rem; border: 1px solid var(--border-dk); border-radius: 99px;
  font-size: .76rem; font-weight: 500; color: var(--ink);
  transition: all .28s var(--ease); min-height: 42px; display: flex; align-items: center;
  -webkit-tap-highlight-color: transparent;
}
.skill-pill:hover { background: var(--ink); color: var(--white); border-color: var(--ink); transform: translateY(-2px); }
.about-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 2rem; font-size: .77rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink);
  border-bottom: 1px solid var(--ink); padding-bottom: 2px;
  transition: gap .3s, opacity .3s; min-height: 44px;
}
.about-cta:hover { gap: .85rem; opacity: .6; }

/* ═══════════════════════════════════════════════
   SERVICES — Mobile first
═══════════════════════════════════════════════ */
.services { position: relative; }
.svc-bg-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 28px 28px; pointer-events: none;
}
.services-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--border-lt); border: 1px solid var(--border-lt); }
.service-card {
  background: var(--dark); padding: 2rem 1.5rem; position: relative; overflow: hidden;
  transition: background .4s var(--ease);
}
.service-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: var(--white); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease);
}
.service-card:hover { background: var(--dark-2); }
.service-card:hover::after { transform: scaleX(1); }
.svc-num { font-family: var(--font-disp); font-size: .75rem; color: rgba(255,255,255,.2); margin-bottom: 1.5rem; letter-spacing: .05em; }
.svc-icon { color: rgba(255,255,255,.45); margin-bottom: 1rem; transition: transform .3s var(--ease), color .3s; }
.service-card:hover .svc-icon { transform: translateY(-4px); color: var(--white); }
.svc-title { font-size: 1.1rem; color: var(--white); margin-bottom: .65rem; }
.svc-desc  { font-size: .85rem; color: rgba(255,255,255,.35); line-height: 1.85; }
.svc-arrow { position: absolute; bottom: 1.2rem; right: 1.4rem; font-size: 1rem; color: rgba(255,255,255,.3); opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s var(--ease); }
.service-card:hover .svc-arrow { opacity: 1; transform: none; color: var(--white); }

/* ═══════════════════════════════════════════════
   PORTFOLIO — Mobile first
═══════════════════════════════════════════════ */
.portfolio-header { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 3rem; }
.portfolio-sub { font-size: .92rem; color: var(--grey); line-height: 1.8; }
.portfolio-grid { display: grid; grid-template-columns: 1fr; gap: 2.25rem; }

.project-card { transition: transform .45s var(--ease); -webkit-tap-highlight-color: transparent; }

.proj-img { width: 100%; aspect-ratio: 16/10; border-radius: 3px; position: relative; overflow: hidden; }
.proj-img-1 { background: linear-gradient(145deg,#0a0a0a,#1a1a1a,#111); }
.proj-img-2 { background: linear-gradient(145deg,#0c0c0c,#1c1c1c,#121212); }
.proj-img-3 { background: linear-gradient(145deg,#080808,#181818,#0e0e0e); }

.proj-mockup { position: absolute; inset: 14%; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); border-radius: 5px; overflow: hidden; display: flex; flex-direction: column; }
.pmock-bar { height: 16px; background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.05); display: flex; align-items: center; gap: 4px; padding: 0 8px; flex-shrink: 0; }
.pmock-bar i { display: block; width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.12); }
.pmock-body { flex: 1; padding: 7px; display: flex; flex-direction: column; gap: 5px; }
.pmock-hero  { height: 42%; background: rgba(255,255,255,.06); border-radius: 2px; }
.pmock-grid  { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; }
.pmock-grid div { aspect-ratio:1; background: rgba(255,255,255,.04); border-radius: 2px; }
.pmock-rows  { display: flex; flex-direction: column; gap: 4px; }
.pmock-rows div { height: 6px; background: rgba(255,255,255,.05); border-radius: 2px; }
.pmock-lp-hero  { height: 36%; background: rgba(255,255,255,.06); border-radius: 2px; }
.pmock-lp-cta   { height: 12px; width: 55%; background: rgba(255,255,255,.14); border-radius: 2px; margin: 0 auto; }
.pmock-lp-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; margin-top: 4px; }
.pmock-lp-stats div { height: 16px; background: rgba(255,255,255,.04); border-radius: 2px; }

/* Overlay */
.proj-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.78);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  z-index: 2; opacity: 0; transition: opacity .35s var(--ease);
}
.proj-overlay.show { opacity: 1; }

.proj-overlay-btns {
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center;
  transform: translateY(8px); opacity: 0;
  transition: all .35s var(--ease) .04s;
}
.proj-overlay.show .proj-overlay-btns { transform: none; opacity: 1; }

.proj-view-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .75rem 1.15rem;
  font-family: var(--font-body); font-size: .72rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  border-radius: var(--r); white-space: nowrap;
  transition: all .3s var(--ease); min-height: 48px; min-width: 136px;
  -webkit-tap-highlight-color: transparent;
}
.proj-view-btn.open-modal { background: var(--white); color: var(--ink); border: 1px solid var(--white); }
.proj-view-btn.open-modal:hover { opacity: .88; }
.proj-live-btn  { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.4); }
.proj-live-btn:hover  { background: rgba(255,255,255,.1); border-color: var(--white); }

.proj-tag { position: absolute; top: .75rem; left: .75rem; background: rgba(255,255,255,.92); color: var(--ink); font-size: .58rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .25rem .6rem; border-radius: 2px; z-index: 3; }

.proj-info { padding: 1.2rem 0 0; }
.proj-info-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: .5rem; }
.proj-title { font-size: 1.25rem; color: var(--ink); }
.proj-year  { font-size: .68rem; color: var(--grey); letter-spacing: .05em; }
.proj-desc  { font-size: .85rem; color: var(--grey); line-height: 1.75; margin-bottom: .85rem; }

.proj-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.proj-link {
  font-size: .78rem; font-weight: 600; color: var(--ink); letter-spacing: .04em;
  background: none; border: none; padding: .35rem 0; border-bottom: 1px solid var(--ink);
  transition: opacity .3s; min-height: 44px; display: inline-flex; align-items: center;
  -webkit-tap-highlight-color: transparent;
}
.proj-link:hover { opacity: .5; }
.proj-live-link {
  font-size: .78rem; font-weight: 600; color: var(--grey);
  border-bottom: 1px solid var(--grey); padding: .35rem 0;
  min-height: 44px; display: inline-flex; align-items: center;
  transition: color .3s, border-color .3s;
}
.proj-live-link:hover { color: var(--ink); border-color: var(--ink); }

/* ═══════════════════════════════════════════════
   MODAL — Mobile sheet, Desktop centered
═══════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0; opacity: 0; pointer-events: none; transition: opacity .4s var(--ease);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--off-white); width: 100%; max-height: 93dvh;
  border-radius: 20px 20px 0 0; overflow: hidden; position: relative;
  transform: translateY(40px); transition: transform .45s var(--ease);
  display: flex; flex-direction: column;
  box-shadow: 0 -20px 60px rgba(0,0,0,.5);
}
.modal-overlay.open .modal-box { transform: translateY(0); }

/* Drag handle */
.modal-handle {
  width: 40px; height: 4px; background: rgba(0,0,0,.15); border-radius: 99px;
  margin: 12px auto 0; flex-shrink: 0;
}

.modal-close-btn {
  position: absolute; top: 1rem; right: 1rem; z-index: 10;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0,0,0,.07);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink); transition: background .25s, transform .3s;
  -webkit-tap-highlight-color: transparent;
}
.modal-close-btn:hover { background: var(--ink); color: var(--white); transform: rotate(90deg); }

.modal-scroll-area { overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; }
.modal-scroll-area::-webkit-scrollbar { width: 2px; }
.modal-scroll-area::-webkit-scrollbar-thumb { background: var(--ink); }

.modal-proj-img {
  width: 100%; aspect-ratio: 16/7; background: var(--dark-2);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; flex-shrink: 0;
}
.modal-proj-img::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.015) 1px,transparent 1px), linear-gradient(90deg,rgba(255,255,255,.015) 1px,transparent 1px);
  background-size: 26px 26px;
}
.modal-content { padding: 1.5rem 1.25rem 3rem; }
.modal-tag-pill {
  display: inline-block; padding: .28rem .75rem; border: 1px solid rgba(0,0,0,.12); border-radius: 99px;
  font-size: .62rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--grey); margin-bottom: .7rem;
}
.modal-title { font-size: clamp(1.6rem,5vw,2.4rem); color: var(--ink); margin-bottom: 1.2rem; }
.modal-section-lbl { font-size: .58rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--grey); margin-bottom: .5rem; }
.modal-overview { font-size: .92rem; color: var(--mid); line-height: 1.9; margin-bottom: 1.5rem; }
.modal-meta-grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem;
  margin-bottom: 1.75rem; padding: 1.2rem; background: rgba(0,0,0,.04); border-radius: 3px;
}
.modal-meta-lbl { font-size: .58rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--grey); margin-bottom: .3rem; }
.modal-meta-val { font-size: .88rem; color: var(--ink); line-height: 1.65; }
.modal-result-val { font-weight: 600; }
.modal-cta-row { display: flex; flex-direction: column; gap: .75rem; }
.modal-project-cta, .modal-whatsapp-cta { width: 100%; }

/* ═══════════════════════════════════════════════
   TESTIMONIALS — Mobile first
═══════════════════════════════════════════════ */
.testimonials-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.testimonial-card {
  background: var(--dark-2); border: 1px solid var(--border-lt);
  border-radius: 3px; padding: 1.75rem 1.5rem; position: relative; overflow: hidden;
  transition: border-color .3s, transform .45s var(--ease);
}
.testimonial-card::before { content: '"'; position: absolute; top: -.5rem; left: 1.2rem; font-family: var(--font-disp); font-size: 6rem; line-height: 1; color: rgba(255,255,255,.04); pointer-events: none; }
.testimonial-card:hover { border-color: rgba(255,255,255,.15); transform: translateY(-4px); }
.t-stars { font-size: .7rem; color: rgba(255,255,255,.35); letter-spacing: .2em; margin-bottom: .9rem; }
.t-text  { font-size: .88rem; color: rgba(255,255,255,.55); line-height: 1.9; margin-bottom: 1.5rem; }
.t-author { display: flex; align-items: center; gap: .8rem; }
.t-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; background: var(--dark-4); border: 1px solid var(--border-lt); display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 600; color: rgba(255,255,255,.5); }
.t-name { font-size: .85rem; font-weight: 600; color: var(--white); margin-bottom: .15rem; }
.t-role { font-size: .68rem; color: rgba(255,255,255,.3); line-height: 1.4; }

/* ═══════════════════════════════════════════════
   CTA BAND
═══════════════════════════════════════════════ */
.cta-band { background: var(--black); border-top: 1px solid var(--border-lt); padding: 4rem 0; }
.cta-band-inner { display: flex; flex-direction: column; gap: 2rem; text-align: center; }
.cta-band-heading { font-size: clamp(1.8rem,5vw,2.8rem); color: var(--white); margin-bottom: .6rem; }
.cta-band-heading em { text-decoration: none; color: rgba(255,255,255,.4); font-style: italic; font-weight: 300; }
.cta-band-sub { font-size: .9rem; color: rgba(255,255,255,.35); }
.cta-band .btn-primary { background: var(--white); color: var(--ink); border-color: var(--white); width: 100%; }
.cta-band .btn-primary:hover { background: transparent; color: var(--white); }

/* ═══════════════════════════════════════════════
   CONTACT — Mobile first
═══════════════════════════════════════════════ */
.contact-grid { display: flex; flex-direction: column; gap: 3rem; }
.contact-avail { display: flex; align-items: center; gap: .55rem; font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mid); margin-bottom: 2rem; }
.avail-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex-shrink: 0; animation: ap 2s ease infinite; }
@keyframes ap { 0%,100%{box-shadow:0 0 0 0 rgba(34,197,94,.4)} 60%{box-shadow:0 0 0 8px rgba(34,197,94,0)} }
.contact-details { display: flex; flex-direction: column; gap: .75rem; }
.contact-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.1rem; border: 1px solid var(--border-dk); border-radius: var(--r);
  background: var(--white); transition: all .3s var(--ease); min-height: 68px;
  -webkit-tap-highlight-color: transparent;
}
.contact-item:hover { border-color: var(--ink); transform: translateX(4px); box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.ci-icon { width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,.05); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--ink); transition: background .3s; }
.ci-wa   { background: rgba(37,211,102,.1); color: var(--wa); }
.contact-item:hover .ci-icon { background: var(--ink); color: var(--white); }
.contact-item:hover .ci-wa   { background: var(--wa); color: var(--white); }
.ci-label { font-size: .6rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--grey); margin-bottom: .12rem; }
.ci-value { font-size: .88rem; font-weight: 500; color: var(--ink); }

/* Form */
.contact-form-wrap { background: var(--white); border: 1px solid var(--border-dk); border-radius: 4px; padding: 1.75rem 1.25rem; box-shadow: 0 12px 40px rgba(0,0,0,.05); }
.form-row-2 { display: grid; grid-template-columns: 1fr; gap: 0; }
.form-group { position: relative; margin-bottom: 1.35rem; }
.form-group label { display: block; font-size: .6rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink); margin-bottom: .5rem; }
.form-group input, .form-group textarea {
  width: 100%; padding: .9rem 1rem;
  font-family: var(--font-body); font-size: 1rem; /* 16px = no iOS zoom */
  color: var(--ink); background: var(--off-white);
  border: 1px solid var(--border-dk); border-radius: var(--r);
  outline: none; resize: none; -webkit-appearance: none; appearance: none;
  transition: border-color .3s, box-shadow .3s; min-height: 52px;
}
.form-group textarea { min-height: 130px; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--ink); background: var(--white); box-shadow: 0 0 0 3px rgba(14,14,14,.06); }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(0,0,0,.22); }
.fline { position: absolute; bottom: 0; left: 0; height: 2px; width: 0; background: var(--ink); transition: width .4s var(--ease); pointer-events: none; border-radius: 0 0 var(--r) var(--r); }
.form-group input:focus ~ .fline, .form-group textarea:focus ~ .fline { width: 100%; }
.btn-dots { display: flex; align-items: center; justify-content: center; gap: 5px; }
.btn-dots i { display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--white); animation: db 1.2s ease-in-out infinite; }
.btn-dots i:nth-child(2){animation-delay:.18s} .btn-dots i:nth-child(3){animation-delay:.36s}
@keyframes db{0%,80%,100%{transform:translateY(0)}40%{transform:translateY(-6px)}}
.form-success { display: none; margin-top: 1rem; text-align: center; font-size: .82rem; font-weight: 500; color: #16a34a; padding: .75rem; background: rgba(22,163,74,.06); border: 1px solid rgba(22,163,74,.18); border-radius: var(--r); align-items: center; gap: .5rem; justify-content: center; }

/* ═══════════════════════════════════════════════
   FOOTER — Mobile first
═══════════════════════════════════════════════ */
.footer { background: var(--black); border-top: 1px solid var(--border-lt); padding: 3.5rem 0 2rem; }
.footer-top { display: flex; flex-direction: column; gap: 2.5rem; margin-bottom: 3rem; }
.footer-logo { font-family: var(--font-disp); font-size: 1.4rem; font-weight: 600; color: var(--white); letter-spacing: -.01em; margin-bottom: .6rem; }
.footer-logo span { color: rgba(255,255,255,.3); font-weight: 300; }
.footer-tag { font-size: .78rem; color: rgba(255,255,255,.22); line-height: 1.75; }
.footer-avail {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem;
  font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.42);
}
.footer-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.ft-link { font-size: .8rem; font-weight: 500; color: rgba(255,255,255,.35); transition: color .3s; min-height: 44px; display: flex; align-items: center; }
.ft-link:hover { color: var(--white); }
.footer-social-lbl,
.footer-col-lbl { font-size: .6rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.2); margin-bottom: .75rem; }
.footer-socials { display: flex; gap: .5rem; flex-wrap: wrap; }
.social-link { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.3); transition: all .3s var(--ease); }
.social-link:hover { background: var(--white); border-color: var(--white); color: var(--ink); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid var(--border-lt); padding-top: 1.75rem; display: flex; flex-direction: column; align-items: center; gap: .75rem; text-align: center; font-size: .73rem; color: rgba(255,255,255,.18); }

.footer-wesley-link {
  color: var(--wa);
  font-weight: 700;
  border-bottom: 1px solid rgba(37,211,102,0.4);
  padding-bottom: 1px;
  transition: color .3s, border-color .3s;
}
.footer-wesley-link:hover {
  color: #4ade80;
  border-color: #4ade80;
}

/* ═══════════════════════════════════════════════
   FLOATING ELEMENTS
═══════════════════════════════════════════════ */
.wa-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 900;
  display: flex; align-items: center; gap: 0;
  background: var(--wa); border-radius: 99px;
  box-shadow: 0 8px 28px rgba(37,211,102,.35); overflow: hidden;
  opacity: 0; pointer-events: none; transform: translateY(10px) scale(.9);
  transition: all .4s var(--ease);
}
.wa-float.visible { opacity: 1; pointer-events: all; transform: none; }
.wa-pulse-ring { position: absolute; inset: 0; border-radius: 99px; animation: wr 2.5s ease infinite; }
@keyframes wr { 0%,100%{box-shadow:0 0 0 0 rgba(37,211,102,.4)} 70%{box-shadow:0 0 0 14px rgba(37,211,102,0)} }
.wa-btn-inner { width: 54px; height: 54px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--white); }
.wa-tooltip { max-width: 0; overflow: hidden; white-space: nowrap; font-size: .78rem; font-weight: 600; color: var(--white); letter-spacing: .04em; transition: max-width .4s var(--ease), padding .4s var(--ease); }
.wa-float:hover .wa-tooltip { max-width: 90px; padding-right: 1rem; }

.back-top {
  position: fixed; bottom: 1.5rem; left: 1.5rem; z-index: 900;
  width: 44px; height: 44px; background: var(--dark-2);
  border: 1px solid var(--border-lt); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.45); box-shadow: 0 4px 20px rgba(0,0,0,.3);
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: all .35s var(--ease); -webkit-tap-highlight-color: transparent;
}
.back-top.visible { opacity: 1; pointer-events: all; transform: none; }
.back-top:hover { background: var(--white); border-color: var(--white); color: var(--ink); transform: translateY(-3px); }

/* ═══════════════════════════════════════════════
   HERO — AUTOMATION LINK
═══════════════════════════════════════════════ */
.hero-auto-link {
  display: inline-flex; align-items: center; gap: .55rem;
  margin: -2rem 0 3rem;
  font-size: .95rem; font-weight: 700; letter-spacing: .02em;
  color: rgba(255,255,255,.82);
  border-bottom: 1px solid rgba(255,255,255,.12); padding-bottom: .55rem;
  transition: color .3s, border-color .3s, gap .3s;
}
.hero-auto-link:hover { color: var(--white); border-color: rgba(255,255,255,.4); gap: .8rem; }
.hal-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green);
  flex-shrink: 0; animation: bdot 2s ease-in-out infinite;
}

/* Nav "new" marker */
.nav-link-new { position: relative; }
.nav-link-new::before {
  content: ''; position: absolute; top: 10px; right: -8px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--green);
  animation: bdot 2s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════
   ABOUT — "WHAT I DO" GRID
═══════════════════════════════════════════════ */
.about-bio strong { font-weight: 600; color: var(--ink); }

.about-do { margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid var(--border-dk); }
.about-do-lbl {
  font-size: .58rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--grey); margin-bottom: 1rem;
}
.about-do-grid { display: grid; grid-template-columns: 1fr; gap: .5rem; }
.do-item {
  display: flex; align-items: flex-start; gap: .8rem;
  padding: .85rem .95rem; border: 1px solid var(--border-dk); border-radius: var(--r);
  background: var(--white); transition: all .3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.do-item:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.06); }
.do-ico {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: rgba(0,0,0,.05); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: background .3s, color .3s;
}
.do-item:hover .do-ico { background: var(--ink); color: var(--white); }
.do-text { font-size: .76rem; color: var(--grey); line-height: 1.6; }
.do-item-new .do-text { padding-right: 2.2rem; }
.do-text b { display: block; font-size: .82rem; font-weight: 600; color: var(--ink); margin-bottom: .15rem; }

.do-item-new { position: relative; border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.035); }
.do-item-new::after {
  content: 'NEW'; position: absolute; top: .6rem; right: .7rem;
  font-size: .5rem; font-weight: 700; letter-spacing: .14em; color: var(--green);
}
.do-item-new .do-ico { background: rgba(34,197,94,.12); color: #15803d; }
.do-item-new:hover { border-color: var(--green); }
.do-item-new:hover .do-ico { background: var(--green); color: var(--white); }

.skill-pill-accent { border-color: rgba(34,197,94,.4); color: #15803d; }
.skill-pill-accent:hover { background: var(--green); border-color: var(--green); color: var(--white); }

/* ═══════════════════════════════════════════════
   SERVICES — FEATURED AUTOMATION CARD
═══════════════════════════════════════════════ */
.svc-featured {
  display: flex; flex-direction: column; gap: 1.5rem;
  background: var(--dark-2);
}
.svc-featured:hover { background: var(--dark-3); }
.svc-feat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.svc-feat-top .svc-num { margin-bottom: 0; }
.svc-badge {
  font-size: .53rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--green); border: 1px solid rgba(34,197,94,.35); border-radius: 99px;
  padding: .25rem .6rem;
}
.svc-featured .svc-icon { color: rgba(255,255,255,.6); }
.svc-featured .svc-desc { max-width: 62ch; }
.svc-feat-side { display: flex; flex-direction: column; gap: 1.25rem; }
.svc-tools { display: flex; flex-wrap: wrap; gap: .4rem; }
.svc-tool {
  font-size: .66rem; font-weight: 500; letter-spacing: .04em;
  color: rgba(255,255,255,.55);
  border: 1px solid rgba(255,255,255,.12); border-radius: 99px;
  padding: .35rem .8rem; transition: all .3s var(--ease);
}
.svc-featured:hover .svc-tool { border-color: rgba(255,255,255,.22); color: rgba(255,255,255,.75); }
.svc-feat-cta {
  display: inline-flex; align-items: center; gap: .5rem; align-self: flex-start;
  font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--white); border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: .35rem;
  transition: gap .3s, border-color .3s;
}
.svc-featured:hover .svc-feat-cta { gap: .8rem; border-color: var(--white); }

/* ═══════════════════════════════════════════════
   AUTOMATION & WORKFLOWS
═══════════════════════════════════════════════ */
.automation { position: relative; border-top: 1px solid var(--border-lt); }
.automation .container { position: relative; z-index: 1; }
.section-header.centered .section-sub.auto-lead { max-width: 660px; }

/* Tool chips */
.auto-tools {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: .5rem; margin: -1.75rem auto 3.25rem; max-width: 720px;
}
.auto-tool {
  font-size: .68rem; font-weight: 500; letter-spacing: .05em;
  color: rgba(255,255,255,.6); background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.1); border-radius: 99px;
  padding: .45rem .95rem; transition: all .3s var(--ease);
}
.auto-tool:hover { color: var(--white); border-color: rgba(255,255,255,.3); transform: translateY(-2px); }
.auto-tool-sep { display: none; }

/* Trigger → Logic → Action strip */
.auto-flow {
  display: flex; flex-direction: column; gap: 1px;
  background: var(--border-lt); border: 1px solid var(--border-lt);
  margin-bottom: 4.5rem;
}
.af-step { background: var(--dark); padding: 1.5rem 1.4rem; flex: 1; }
.af-num { display: block; font-family: var(--font-disp); font-size: .75rem; color: rgba(255,255,255,.2); margin-bottom: .9rem; }
.af-lbl { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--white); margin-bottom: .5rem; }
.af-txt { display: block; font-size: .82rem; color: rgba(255,255,255,.35); line-height: 1.75; }
.af-line { display: none; }

/* Sub-header */
.auto-sub-header { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 3rem; }
.auto-sub-title { font-size: clamp(1.5rem,4.5vw,2.2rem); color: var(--white); line-height: 1.1; }
.auto-sub-title em { color: rgba(255,255,255,.45); }
.auto-sub-text { font-size: .9rem; color: var(--grey-lt); line-height: 1.8; }

/* Builds */
.auto-builds { display: flex; flex-direction: column; gap: 4rem; }
.auto-build { display: flex; flex-direction: column; gap: 1.75rem; }

.ab-index {
  font-size: .58rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.3); margin-bottom: .85rem;
  display: inline-flex; align-items: center; gap: .6rem;
}
.ab-index::before { content: ''; width: 20px; height: 1px; background: currentColor; }
.ab-title { font-size: clamp(1.35rem,4vw,1.75rem); color: var(--white); margin-bottom: .8rem; }
.ab-desc { font-size: .87rem; color: rgba(255,255,255,.45); line-height: 1.9; margin-bottom: 1.25rem; }

.ab-points { list-style: none; display: flex; flex-direction: column; gap: .55rem; margin-bottom: 1.4rem; }
.ab-points li {
  position: relative; padding-left: 1.35rem;
  font-size: .8rem; color: rgba(255,255,255,.55); line-height: 1.65;
}
.ab-points li::before {
  content: ''; position: absolute; left: 0; top: .5rem;
  width: 5px; height: 5px; border-radius: 50%; background: var(--green);
}
.ab-stack { display: flex; flex-wrap: wrap; gap: .4rem; }
.ab-chip {
  font-size: .62rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.12);
  border-radius: 2px; padding: .32rem .65rem;
}

/* Gallery */
.ab-gallery { min-width: 0; }
.ab-stage {
  position: relative; border: 1px solid var(--border-lt); border-radius: 4px;
  background: var(--dark-2); overflow: hidden;
}
.ab-frame { position: relative; width: 100%; aspect-ratio: 1366 / 768; }
.ab-shot {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  opacity: 0; transform: scale(1.01);
  transition: opacity .45s var(--ease), transform .55s var(--ease);
  pointer-events: none;
}
.ab-shot.is-active { opacity: 1; transform: none; }

.ab-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(8,8,8,.6); border: 1px solid rgba(255,255,255,.18);
  color: var(--white); display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background .28s, border-color .28s, opacity .28s;
  -webkit-tap-highlight-color: transparent;
}
.ab-nav:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.ab-prev { left: .6rem; }
.ab-next { right: .6rem; }

.ab-zoom {
  position: absolute; top: .6rem; right: .6rem; z-index: 3;
  width: 32px; height: 32px; border-radius: 3px;
  background: rgba(8,8,8,.6); border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.8); display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background .28s, color .28s;
  -webkit-tap-highlight-color: transparent;
}
.ab-zoom:hover { background: var(--white); color: var(--ink); }

.ab-counter {
  position: absolute; bottom: .6rem; left: .6rem; z-index: 3;
  font-size: .6rem; font-weight: 600; letter-spacing: .14em;
  color: rgba(255,255,255,.75); background: rgba(8,8,8,.6);
  border: 1px solid rgba(255,255,255,.14); border-radius: 99px;
  padding: .28rem .7rem;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.ab-cur { color: var(--white); }

.ab-caption {
  font-size: .8rem; color: rgba(255,255,255,.42); line-height: 1.75;
  margin: 1rem 0 1.1rem; min-height: 4rem;
}
.ab-caption b { color: rgba(255,255,255,.8); font-weight: 600; }

.ab-thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .5rem; }
.ab-thumb {
  position: relative; aspect-ratio: 1366 / 768; overflow: hidden;
  border: 1px solid rgba(255,255,255,.1); border-radius: 3px;
  background: var(--dark-2); padding: 0;
  opacity: .4; transition: opacity .3s, border-color .3s, transform .3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.ab-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.ab-thumb span {
  position: absolute; bottom: 2px; left: 4px;
  font-size: .52rem; font-weight: 700; letter-spacing: .1em;
  color: var(--white); text-shadow: 0 1px 4px rgba(0,0,0,.9);
}
.ab-thumb:hover { opacity: .75; transform: translateY(-2px); }
.ab-thumb.is-active { opacity: 1; border-color: rgba(255,255,255,.5); }

/* Section CTA */
.auto-cta {
  display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
  text-align: center; margin-top: 4.5rem; padding-top: 3rem;
  border-top: 1px solid var(--border-lt);
}
.auto-cta-text { font-size: .95rem; color: rgba(255,255,255,.45); line-height: 1.8; max-width: 480px; }
.auto-cta .btn { width: 100%; }

/* ═══════════════════════════════════════════════
   LIGHTBOX
═══════════════════════════════════════════════ */
.lightbox {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(4,4,4,.95);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 3.5rem 1rem 1rem;
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
}
.lightbox.open { opacity: 1; pointer-events: all; }
.lb-figure {
  max-width: 1200px; width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.lb-figure img {
  max-width: 100%; max-height: 72vh; object-fit: contain;
  border: 1px solid rgba(255,255,255,.12); border-radius: 4px;
  transform: scale(.97); transition: transform .4s var(--ease);
}
.lightbox.open .lb-figure img { transform: none; }
.lb-figure figcaption {
  font-size: .82rem; color: rgba(255,255,255,.5); line-height: 1.75;
  text-align: center; max-width: 640px;
}
.lb-figure figcaption b { color: var(--white); font-weight: 600; }
.lb-close {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  color: var(--white); display: flex; align-items: center; justify-content: center;
  transition: background .28s, transform .3s;
}
.lb-close:hover { background: var(--white); color: var(--ink); transform: rotate(90deg); }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  color: var(--white); display: flex; align-items: center; justify-content: center;
  transition: background .28s, color .28s;
}
.lb-nav:hover { background: var(--white); color: var(--ink); }
.lb-prev { left: .75rem; }
.lb-next { right: .75rem; }

/* ═══════════════════════════════════════════════
   RESPONSIVE — 600px+ (Large phones / small tablets)
═══════════════════════════════════════════════ */
@media (min-width: 600px) {
  .container { padding: 0 1.75rem; }
  .hero-ctas { flex-direction: row; flex-wrap: wrap; }
  .hero-ctas .btn { width: auto; }
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .portfolio-grid { grid-template-columns: repeat(2,1fr); }
  .testimonials-grid { grid-template-columns: repeat(2,1fr); }
  .form-row-2 { grid-template-columns: repeat(2,1fr); gap: 1rem; }
  .modal-meta-grid { grid-template-columns: repeat(2,1fr); }
  .modal-cta-row { flex-direction: row; }
  .modal-project-cta, .modal-whatsapp-cta { width: auto; flex: 1; }
  .cta-band .btn-primary { width: auto; }

  /* Automation */
  .about-do-grid { grid-template-columns: repeat(2,1fr); }
  .auto-cta .btn { width: auto; }
  .svc-featured { grid-column: 1 / -1; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — 768px+ (Tablets)
═══════════════════════════════════════════════ */
@media (min-width: 768px) {
  :root { --nav-h: 68px; }
  .container { padding: 0 2rem; }
  .section { padding: 7rem 0; }

  /* About 2-col */
  .about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: center; }
  .about-img-placeholder { aspect-ratio: 3/4; max-width: 360px; }
  .about-float-tag { right: -1rem; top: 1.5rem; }

  /* Hero extras */
  .hero-bg-text { display: block; }
  .hero-scroll-hint { display: flex; position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%); flex-direction: column; align-items: center; gap: .5rem; color: rgba(255,255,255,.2); font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; }
  .hero-corner-tag { display: block; position: absolute; bottom: 2.5rem; right: 2rem; font-size: .6rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.18); }

  /* Services 4-col */
  .services-grid { grid-template-columns: repeat(4,1fr); }

  /* Contact 2-col */
  .contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 5rem; align-items: start; }
  .contact-form-wrap { padding: 2.25rem 2rem; }

  /* Modal — centered dialog */
  .modal-overlay { align-items: center; padding: 2rem; }
  .modal-box { max-width: 700px; max-height: 88vh; border-radius: 6px; transform: translateY(24px) scale(.97); }
  .modal-overlay.open .modal-box { transform: none; }
  .modal-handle { display: none; }
  .modal-content { padding: 2rem 2.25rem 2.5rem; }

  /* Footer — 2×2 on tablet, nav in two columns */
  .footer-top { display: grid; grid-template-columns: repeat(2,1fr); gap: 2.75rem 2.5rem; align-items: start; }
  .footer-nav {
    display: grid; grid-auto-flow: column;
    grid-template-columns: repeat(2,1fr); grid-template-rows: repeat(3,auto);
    gap: .4rem 1.5rem;
  }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }

  /* CTA band row */
  .cta-band-inner { flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
  .cta-band .btn-primary { width: auto; }

  /* Portfolio header */
  .portfolio-header { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .portfolio-sub { text-align: right; max-width: 320px; }

  /* ── Automation ── */
  .hero-auto-link { margin: -2.25rem 0 3.5rem; }

  /* Flow strip → horizontal */
  .auto-flow { flex-direction: row; align-items: stretch; background: transparent; border: none; gap: 0; }
  .af-step {
    background: var(--dark-2); border: 1px solid var(--border-lt);
    border-radius: 3px; padding: 1.6rem 1.5rem;
    transition: border-color .3s, transform .4s var(--ease);
  }
  .af-step:hover { border-color: rgba(255,255,255,.18); transform: translateY(-3px); }
  .af-line {
    display: block; flex: 0 0 32px; align-self: center; height: 1px;
    background: linear-gradient(90deg, rgba(255,255,255,.05), rgba(255,255,255,.22), rgba(255,255,255,.05));
    position: relative;
  }
  .af-line::after {
    content: ''; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.3);
  }

  /* Sub-header → row */
  .auto-sub-header { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .auto-sub-text { text-align: right; max-width: 320px; }

  /* Featured service card → 2 columns */
  .svc-featured { flex-direction: row; align-items: center; gap: 3rem; padding: 2.5rem 2rem; }
  .svc-feat-main { flex: 1.55; min-width: 0; }
  .svc-feat-side { flex: 1; min-width: 0; }

  .auto-cta { flex-direction: row; justify-content: center; gap: 2.5rem; text-align: left; }
  .auto-cta-text { max-width: 400px; }

  .lightbox { padding: 4rem 3.5rem 2rem; }
  .lb-prev { left: 1.25rem; }
  .lb-next { right: 1.25rem; }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — 1024px+ (Desktop)
═══════════════════════════════════════════════ */
@media (min-width: 1024px) {
  .section { padding: 8rem 0; }

  /* Show desktop nav */
  .nav-links { display: flex; }
  .hamburger { display: none; }
  .nav-overlay { display: none; }

  /* Portfolio 3-col */
  .portfolio-grid { grid-template-columns: repeat(3,1fr); gap: 2.5rem; }

  /* Testimonials 3-col */
  .testimonials-grid { grid-template-columns: repeat(3,1fr); }

  /* Hover interactions */
  .project-card { cursor: none; }
  .project-card:hover { transform: translateY(-7px); }
  .project-card:hover .proj-overlay { opacity: 1; }
  .project-card:hover .proj-overlay-btns { transform: none; opacity: 1; }
  .service-card { cursor: none; }

  /* About — top-align so the portrait anchors to the heading, not mid-air.
     (The bio column got much taller when the automation copy was added.) */
  .about-grid { gap: 6.5rem; align-items: start; }
  .about-visual { padding-top: .5rem; }

  /* Hero container padding */
  .hero-container { padding: calc(var(--nav-h) + 4rem) 2rem 5rem; }

  /* ── Footer — single compact row ── */
  .footer { padding: 4.5rem 0 2rem; }
  .footer-top { grid-template-columns: 1.6fr 1.1fr auto; gap: 4rem; margin-bottom: 3.5rem; }
  .footer-nav { gap: .75rem 2.5rem; }
  .ft-link { min-height: 0; padding: .12rem 0; transition: color .3s, transform .3s var(--ease); }
  .ft-link:hover { transform: translateX(3px); }
  .footer-socials { flex-wrap: nowrap; }

  /* ── Automation — split layout ── */
  .auto-builds { gap: 5.5rem; }
  .auto-build {
    display: grid; grid-template-columns: 0.82fr 1.18fr;
    gap: 3.5rem; align-items: center;
  }
  .auto-build-alt .ab-head    { order: 2; }
  .auto-build-alt .ab-gallery { order: 1; }

  .ab-caption { min-height: 3.4rem; }

  /* Nav arrows reveal on hover (pointer devices) — but stay visible for keyboard */
  .ab-nav { opacity: 0; }
  .ab-stage:hover .ab-nav,
  .ab-stage:focus-within .ab-nav { opacity: 1; }
  .ab-thumb { cursor: none; }
  .auto-tool:hover { transform: translateY(-3px); }
}