/* ============================================================
   VELLA MEDIA GROUP — css/style.css v5
   Off-white base · Readable text · Portrait-safe
   Linear.app glow aesthetic · Photo-integrated
   Font: Inter
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── Variables ──────────────────────────────────────────────── */
:root {
  /* Backgrounds — off-white, NOT blinding */
  --bg-root:    #f5f5f7;   /* Apple's exact off-white */
  --bg-white:   #ffffff;
  --bg-section: #f0f0f2;
  --bg-card:    #ffffff;

  /* Text — dark and readable */
  --ink:        #1a1a1a;
  --ink-70:     rgba(26,26,26,0.70);
  --ink-50:     rgba(26,26,26,0.50);
  --ink-30:     rgba(26,26,26,0.30);
  --ink-10:     rgba(26,26,26,0.10);
  --ink-05:     rgba(26,26,26,0.05);

  /* Borders */
  --border:     rgba(26,26,26,0.10);
  --border-md:  rgba(26,26,26,0.16);

  /* Accent — indigo/violet (Linear DNA) */
  --accent:     #6366f1;
  --accent-2:   #8b5cf6;
  --glow-blue:  rgba(99,102,241,0.10);
  --glow-purp:  rgba(139,92,246,0.08);
  --glow-teal:  rgba(20,184,166,0.07);

  /* Dark sections */
  --dark:       #141416;
  --dark-2:     #1c1c1f;
  --dark-3:     #242428;

  /* Type */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  /* Motion */
  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --max-w: 1200px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after {margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg-root);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto;  }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; font-family: var(--font); cursor: pointer; }
input, textarea, select { font-family: var(--font); }

/* ── Cursor — custom cursor disabled, using default system cursor ───── */
#cur-dot, #cur-ring { display: none; }

/* ── Typography ─────────────────────────────────────────────── */
h1 {
  font-size: clamp(3.2rem, 7vw, 8rem);
  font-weight: 700; letter-spacing: -0.04em; line-height: 1.2;
  color: var(--ink);
}
h2 {
  font-size: clamp(2rem, 4.5vw, 4.6rem);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.02;
  color: var(--ink);
}
h3 { font-size: clamp(1.2rem, 2vw, 1.7rem); font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
h4 { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
p  { font-size: .97rem; color: var(--ink-70); line-height: 1.75; font-weight: 400; }

.eyebrow {
  font-size: .68rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-50);          /* Was invisible — now clearly readable */
}
.eyebrow-accent {
  font-size: .68rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}

/* ── Layout ─────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2.5rem; }
.pad    { padding: 120px 0; }
.pad-sm { padding: 72px 0; }

/* ── Glow blobs ─────────────────────────────────────────────── */
.glow-blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); pointer-events: none;
  animation: blobFloat 15s ease-in-out infinite;
  z-index: 0;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .82rem 1.8rem;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  cursor: pointer; position: relative; overflow: hidden;
  border-radius: 10px;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out),
              background .25s, color .25s, border-color .25s;
  white-space: nowrap;
}
.btn span, .btn svg { position: relative; z-index: 1; }
.btn svg { transition: transform .35s var(--ease-out); }
.btn:hover svg { transform: translateX(4px); }
.btn:hover { transform: translateY(-2px); }

.btn-fill {
  background: var(--ink); color: #fff;
  border: 1.5px solid var(--ink);
}
.btn-fill:hover {
  background: #2a2a2a; color: #fff;
  box-shadow: 0 8px 28px rgba(26,26,26,.25);
}
.btn-glass {
  background: rgba(255,255,255,.75);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: var(--ink); border: 1.5px solid var(--border-md);
}
.btn-glass:hover {
  background: #fff; border-color: var(--border-md);
  box-shadow: 0 8px 28px rgba(26,26,26,.12);
}
.btn-white {
  background: #fff; color: var(--ink);
  border: 1.5px solid rgba(255,255,255,.25);
}
.btn-white:hover { box-shadow: 0 8px 28px rgba(0,0,0,.28); }
.btn-ghost-dark {
  background: transparent; color: rgba(255,255,255,.55);
  border: 1.5px solid rgba(255,255,255,.15);
}
.btn-ghost-dark:hover { color: #fff; border-color: rgba(255,255,255,.4); }

/* ── Pills / chips ──────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .32rem .9rem; border-radius: 100px;
  border: 1px solid var(--border-md);
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  font-size: .64rem; font-weight: 600;
  letter-spacing: .10em; text-transform: uppercase;
  color: var(--ink-70);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: #34c759; animation: dotPulse 2.2s ease-in-out infinite; }

.chip {
  display: inline-block; padding: .32rem .85rem; border-radius: 100px;
  border: 1px solid var(--border); background: var(--bg-white);
  font-size: .7rem; font-weight: 500; letter-spacing: .04em;
  color: var(--ink-70);                /* Readable dark text */
  transition: all .25s var(--ease-out); cursor: default;
}
.chip:hover {
  background: var(--ink); color: #fff;
  border-color: var(--ink); transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(26,26,26,.18);
}

/* ============================================================
   NAV
   ============================================================ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  padding: 0 2.5rem;
  transition: background .5s, box-shadow .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
#nav.solid {
  background: rgba(245,245,247,.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: rgba(26,26,26,.08);
  box-shadow: 0 1px 0 rgba(0,0,0,.05);
}
.nav-wrap {
  max-width: var(--max-w); margin: 0 auto; height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}

/* ── LOGO
   Required dimensions: SVG preferred OR PNG @2x minimum.
   Ideal rendered size: height 34px, width auto.
   Provide file at: /media/logo.png (or .svg)
   For retina: /media/logo@2x.png — use srcset.
   Recommended source file: at least 200px tall, transparent background.
─────────────────────────────────────────────────── */
.nav-logo img { height: 34px; width: auto; transition: opacity .3s; }
.nav-logo:hover img { opacity: .55; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: .74rem; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink-70);          /* Was barely visible — now solid readable */
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta .btn { padding: .6rem 1.4rem; font-size: .7rem; }

/* Hamburger */
.hbg { display: none; flex-direction: column; gap: 5px; padding: 6px; cursor: pointer; }
.hbg span { display: block; width: 20px; height: 1.5px; background: var(--ink); transition: all .35s var(--ease); }
.hbg.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hbg.open span:nth-child(2) { opacity: 0; }
.hbg.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile overlay */
.mob-menu {
  position: fixed; inset: 0; background: var(--bg-root); z-index: 899;
  display: flex; flex-direction: column; justify-content: center; padding: 0 2.5rem;
  opacity: 0; pointer-events: none;
  transform: translateX(100%);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.mob-menu.open { opacity: 1; pointer-events: all; transform: translateX(0); }
.mob-menu a {
  font-size: clamp(2.4rem, 8vw, 4rem); font-weight: 700;
  letter-spacing: -0.04em; color: var(--ink-30); line-height: 1.25; transition: color .2s;
}
.mob-menu a:hover { color: var(--ink); }
.mob-foot { position: absolute; bottom: 2.5rem; left: 2.5rem; font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-30); }

/* ============================================================
   HERO — 100dvh, centred, 4K-safe
   ============================================================ */
#hero {
  min-height: 100dvh; height: 100dvh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 68px; background: var(--bg-root);
  position: relative; overflow: hidden;
}

/* Glow orbs */
.h-glow-1 { width: 800px; height: 800px; background: radial-gradient(circle, var(--glow-blue) 0%, transparent 65%); top: -200px; right: -200px; animation-delay: 0s; }
.h-glow-2 { width: 600px; height: 600px; background: radial-gradient(circle, var(--glow-purp) 0%, transparent 65%); bottom: -100px; left: -150px; animation-delay: -7s; }
.h-glow-3 { width: 400px; height: 400px; background: radial-gradient(circle, var(--glow-teal) 0%, transparent 65%); top: 35%; left: 38%; animation-delay: -4s; }

/* Grid texture */
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(26,26,26,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(26,26,26,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 75%);
}

.hero-inner {
  position: relative; z-index: 2;
  max-width: var(--max-w); margin: 0 auto; width: 100%; padding: 0 2.5rem;
}
.hero-eyebrow { margin-bottom: 2.5rem; opacity: 0; animation: riseUp .7s var(--ease-out) .1s forwards; }

/* Staggered headline */
.hero-headline { margin-bottom: 0; }
.h-line { display: block; overflow: hidden; }
.h-line-inner { display: block; transform: translateY(108%); animation: slideUp .9s var(--ease-out) forwards; }
.h-line:nth-child(1) .h-line-inner { animation-delay: .25s; }
.h-line:nth-child(2) .h-line-inner { animation-delay: .40s; }
.h-dim  { color: var(--ink-30); }
.h-grad {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 50%, #ec4899 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; background-size: 200% 200%;
  animation: gradShift 6s ease-in-out infinite alternate;
}

.hero-foot {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-top: 4rem; padding-top: 2rem;
  border-top: 1px solid var(--border);
  gap: 2rem; flex-wrap: wrap;
  opacity: 0; animation: riseUp .8s var(--ease-out) .78s forwards;
}
.hero-desc p { font-size: .97rem; line-height: 1.7; color: var(--ink-70); }
.hero-btns { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }

/* Scroll cue */
.scroll-cue {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  opacity: 0; animation: riseUp 1s var(--ease-out) 1.4s forwards; z-index: 2;
}
.scroll-bar { width: 1px; height: 46px; background: linear-gradient(to bottom, var(--ink-30), transparent); animation: scrollAnim 2.5s ease-in-out infinite; }

/* ============================================================
   HERO PHOTO STRIP — below headline, above fold bottom
   ============================================================ */

.hero-img-strip {
  position: absolute; bottom: 0; right: 0;
  width: 42%; height: 95%;
  z-index: 1; overflow: hidden;
}
.hero-img-strip img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  opacity: .55;
  mask-image: linear-gradient(to left, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, black 50%, transparent 100%);
}

@media (max-width: 768px) {
  .hero-img-strip { display: none; }
}



/* ============================================================
   MARQUEE
   ============================================================ */
.mq-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-white); overflow: hidden; padding: 1.2rem 0;
}
.mq-track { display: flex; width: max-content; animation: mq 30s linear infinite; will-change: transform; }
.mq-band:hover .mq-track { animation-play-state: paused; }
.mq-item {
  display: inline-flex; align-items: center; gap: 2rem; padding: 0 2.5rem;
  font-size: .64rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink-50); transition: color .2s; white-space: nowrap;   /* Readable */
}
.mq-item:hover { color: var(--ink); }
.mq-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-30); flex-shrink: 0; }

/* ============================================================
   ABOUT
   ============================================================ */
#about { background: var(--bg-white); position: relative; overflow: hidden; }
.about-glow { width: 700px; height: 700px; background: radial-gradient(circle, var(--glow-blue) 0%, transparent 65%); top: -200px; right: -100px; animation-delay: -3s; }

.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
  background: var(--bg-white);
  box-shadow: 0 2px 4px rgba(26,26,26,.05), 0 20px 60px rgba(26,26,26,.04);
}
.about-l {
  padding: 5rem; border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 3rem; justify-content: space-between;
}
.about-r { padding: 5rem; display: flex; flex-direction: column; gap: 2rem; }

.sec-num {
  font-size: clamp(6rem, 12vw, 11rem); font-weight: 900;
  letter-spacing: -0.07em; color: var(--ink-05);
  line-height: 1; display: block;
  pointer-events: none; user-select: none; margin-bottom: -2.5rem;
}

.about-l .eyebrow { display: block; margin-bottom: .6rem; }
.about-l h2 { margin-bottom: 1.5rem; }
.about-l p { margin-bottom: 1.2rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.5rem 0; }

/* ── ABOUT PHOTO
   Dimensions: 880px wide × 1100px tall (4:5 ratio)
   Path: /media/about-office.jpg
   Suggested: Bright modern office or co-working space — looking productive.
   Shot angle: wide, lifestyle, natural window light. NOT a portrait.
   This fills the right-hand panel of the about section. */
.about-img-wrap {
  overflow: hidden; border-radius: 12px; border: 1px solid var(--border);
  position: relative;
}
.about-img-wrap img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center;
  transition: transform .8s var(--ease-out), filter .5s;
  filter: brightness(1.02) saturate(1.05);
}
.about-img-wrap:hover img { transform: scale(1.04); }

.about-nums {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border); margin-top: .5rem;
}
.a-num-cell { padding: 1.5rem; border-right: 1px solid var(--border); transition: background .3s; }
.a-num-cell:last-child { border-right: none; padding-left: 1.5rem; }
.a-num-cell:hover { background: var(--bg-root); }
.a-num-n { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.04em; display: block; line-height: 1; margin-bottom: .25rem; color: var(--ink); }
.a-num-l { font-size: .62rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-50); }

/* ============================================================
   SERVICES — Cinematic full-width rows
   ============================================================ */
#services { background: var(--bg-root); position: relative; overflow: hidden; }
.svc-glow { width: 600px; height: 600px; background: radial-gradient(circle, var(--glow-purp) 0%, transparent 65%); top: 50%; left: 50%; transform: translate(-50%, -50%); animation-delay: -2s; }

.svc-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 4rem; flex-wrap: wrap; gap: 2rem; }
.svc-header .eyebrow { display: block; margin-bottom: .6rem; }
.svc-header p { max-width: 360px; }

.svc-rows { border-top: 1px solid var(--border); }
.svc-row {
  display: grid; grid-template-columns: 72px 1fr 2fr 52px;
  align-items: center; gap: 3rem;
  padding: 2.6rem 0; border-bottom: 1px solid var(--border);
  cursor: default; position: relative; overflow: hidden;
  transition: padding-left .5s var(--ease-out), background .4s;
}
.svc-row::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2));
  transform: scaleY(0); transform-origin: top;
  transition: transform .5s var(--ease-out); border-radius: 0 2px 2px 0;
}
.svc-row:hover { padding-left: 2rem; background: rgba(99,102,241,.03); }
.svc-row:hover::after { transform: scaleY(1); }
.svc-row:hover .svc-num  { color: var(--accent); }
.svc-row:hover .svc-name { color: var(--ink); }
.svc-row:hover .svc-btn  { background: var(--ink); color: #fff; border-color: var(--ink); transform: rotate(45deg) scale(1.1); }

.svc-num  { font-size: .68rem; font-weight: 700; letter-spacing: .2em; color: var(--ink-30); transition: color .4s; }
.svc-name { font-size: clamp(1.25rem, 2.4vw, 1.9rem); font-weight: 700; letter-spacing: -0.025em; color: var(--ink-70); transition: color .4s; line-height: 1.1; }
.svc-desc { font-size: .9rem; color: var(--ink-50); line-height: 1.7; }
.svc-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--border-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--ink-50);
  transition: all .4s var(--ease-out); flex-shrink: 0;
}

/* ============================================================
   PHOTO FEATURE — After services, before stats
   Full-bleed lifestyle image band
   ============================================================ */
.photo-band {
  width: 100%; height: 520px; overflow: hidden;
  position: relative; background: var(--bg-section);
}
.photo-band img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
  transition: transform 8s ease-in-out;
  filter: brightness(1.05) saturate(1.1);
}
.photo-band:hover img { transform: scale(1.03); }
.photo-band-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(245,245,247,.6) 0%, transparent 40%, transparent 60%, rgba(245,245,247,.6) 100%);
}
/* PHOTO SLOT: Full-width lifestyle band
   Dimensions: 2400px wide × 900px tall minimum (wide landscape)
   Path: /media/band-lifestyle.jpg
   Suggested: Modern city office interior, floor-to-ceiling windows, bright natural light,
   laptop on desk or team working. Shot should be wide and cinematic.
   Keep the centre clear — text may overlay later. */

/* ============================================================
   STATS — Dark band with glow
   ============================================================ */
#stats { background: var(--dark); color: #fff; position: relative; overflow: hidden; }
.s-glow-1 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(99,102,241,.18) 0%, transparent 65%); top: -100px; left: -100px; animation-delay: -1s; }
.s-glow-2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(139,92,246,.14) 0%, transparent 65%); bottom: -80px; right: -80px; animation-delay: -9s; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; z-index: 1; }
.stat-cell {
  padding: 4.5rem 3rem; border-right: 1px solid rgba(255,255,255,.07);
  position: relative; overflow: hidden; transition: background .4s;
}
.stat-cell:last-child { border-right: none; }
.stat-cell:hover { background: rgba(255,255,255,.03); }
.stat-cell::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(to right, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease-out);
}
.stat-cell:hover::after { transform: scaleX(1); }
.stat-n { font-size: clamp(2.8rem, 5vw, 5rem); font-weight: 800; letter-spacing: -0.05em; display: block; color: #fff; line-height: 1; margin-bottom: .6rem; }
.stat-l { font-size: .64rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.38); }

/* ============================================================
   PROCESS
   ============================================================ */
#process { background: var(--bg-white); position: relative; overflow: hidden; }
.proc-glow { width: 600px; height: 600px; background: radial-gradient(circle, var(--glow-teal) 0%, transparent 65%); bottom: -200px; right: -100px; animation-delay: -5s; }

.proc-head { margin-bottom: 5rem; }
.proc-head .eyebrow { display: block; margin-bottom: .6rem; }

.proc-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  background: var(--bg-white);
  box-shadow: 0 2px 4px rgba(26,26,26,.04), 0 20px 50px rgba(26,26,26,.04);
  position: relative; z-index: 1;
}
.proc-card {
  padding: 3rem 2.5rem; border-right: 1px solid var(--border);
  transition: background .35s; position: relative; overflow: hidden;
}
.proc-card:last-child { border-right: none; }
.proc-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(to right, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.proc-card:hover { background: rgba(99,102,241,.03); }
.proc-card:hover::before { transform: scaleX(1); }
.proc-card:hover .proc-n { color: rgba(99,102,241,.15); }

.proc-n { font-size: 3.5rem; font-weight: 900; letter-spacing: -0.05em; color: var(--ink-05); line-height: 1; display: block; margin-bottom: 1.8rem; transition: color .4s; }
.proc-card h4 { margin-bottom: .6rem; }
.proc-card p { font-size: .88rem; line-height: 1.7; }

/* ============================================================
   TESTIMONIALS — with photo avatars
   ============================================================ */
#testi { background: var(--bg-root); position: relative; overflow: hidden; }
.t-glow { width: 600px; height: 600px; background: radial-gradient(circle, var(--glow-blue) 0%, transparent 65%); top: -100px; left: 50%; transform: translateX(-50%); animation-delay: -6s; }

.testi-head { margin-bottom: 4.5rem; }
.testi-head .eyebrow { display: block; margin-bottom: .6rem; }

.testi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; position: relative; z-index: 1; }
.testi-card {
  background: var(--bg-white); border: 1px solid var(--border); border-radius: 16px; padding: 2.5rem;
  position: relative; overflow: hidden; cursor: default;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s;
  box-shadow: 0 2px 4px rgba(26,26,26,.04);
}
.testi-card::before {
  content: '"'; position: absolute; top: -.5rem; right: 2rem;
  font-size: 8rem; font-weight: 900; color: var(--ink-05); line-height: 1;
  pointer-events: none; transition: color .4s;
}
.testi-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; border-radius: 16px 16px 0 0;
  background: linear-gradient(to right, var(--accent), var(--accent-2));
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out);
}
.testi-card:hover { transform: translateY(-5px); box-shadow: 0 16px 50px rgba(26,26,26,.10); border-color: var(--border-md); }
.testi-card:hover::before { color: var(--ink-10); }
.testi-card:hover::after { transform: scaleX(1); }

.t-stars { display: flex; gap: 3px; margin-bottom: 1.4rem; }
.t-stars span { display: block; width: 10px; height: 10px; background: var(--ink); clip-path: polygon(50% 0%,61% 35%,98% 35%,68% 57%,79% 91%,50% 70%,21% 91%,32% 57%,2% 35%,39% 35%); }
.testi-card > p { font-size: .97rem; color: var(--ink-70); line-height: 1.8; margin-bottom: 1.8rem; position: relative; z-index: 1; }

.t-who { display: flex; align-items: center; gap: 1rem; padding-top: 1.4rem; border-top: 1px solid var(--border); }
/* PHOTO SLOT: Testimonial avatars
   Dimensions: 80px × 80px (displayed at 40px, needs 2× for retina)
   Path: /media/testi-oscar.jpg, /media/testi-mandeep.jpg, /media/testi-anton.jpg, /media/testi-connor.jpg
   Suggested: Friendly professional headshots. Warm natural light. Smile. NOT corporate mugshots.
   Circular crop applied by CSS. */
.t-av { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); background: var(--bg-root); }
.t-who strong { display: block; font-size: .88rem; font-weight: 700; color: var(--ink); }
.t-who span { font-size: .72rem; color: var(--ink-50); }

/* ============================================================
   FAQ
   ============================================================ */
#faq { background: var(--bg-white); }
.faq-wrap { display: grid; grid-template-columns: 1fr 1.5fr; gap: 7rem; align-items: start; }
.faq-l { position: sticky; top: 100px; }
.faq-l .eyebrow { display: block; margin-bottom: .6rem; }
.faq-l h2 { margin-bottom: 1.4rem; }
.faq-l > p { font-size: .93rem; margin-bottom: 2.5rem; }

.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 0; font-size: .97rem; font-weight: 600; letter-spacing: -0.01em;
  color: var(--ink-50); text-align: left; gap: 1rem; cursor: pointer; transition: color .25s;
}
.faq-btn:hover, .faq-item.open .faq-btn { color: var(--ink); }
.faq-icon {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--border-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 300; color: var(--ink-50); flex-shrink: 0;
  transition: all .4s var(--ease-out);
}
.faq-item.open .faq-icon { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-color: transparent; transform: rotate(45deg); }
.faq-body { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease-out); }
.faq-body p { padding-bottom: 1.5rem; font-size: .93rem; }
.faq-item.open .faq-body { max-height: 250px; }

/* ============================================================
   MISSION — Dark with glow + grid
   ============================================================ */
#mission { background: var(--dark); color: #fff; position: relative; overflow: hidden; }
.m-glow-1 { width: 700px; height: 700px; background: radial-gradient(circle, rgba(99,102,241,.18) 0%, transparent 60%); top: -200px; right: -150px; }
.m-glow-2 { width: 500px; height: 500px; background: radial-gradient(circle, rgba(139,92,246,.14) 0%, transparent 60%); bottom: -100px; left: -100px; animation-delay: -8s; }
.m-grid-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 20%, transparent 75%);
  pointer-events: none;
}

.m-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: 55vh; align-items: center; position: relative; z-index: 1; }
.m-left { padding-right: 7rem; border-right: 1px solid rgba(255,255,255,.07); }
.m-left .eyebrow-accent { display: block; margin-bottom: 1.4rem; }
.m-left h2 { color: #fff; margin-bottom: 2rem; }
.m-left > p { color: rgba(255,255,255,.45); margin-bottom: 3rem; }
.m-btns { display: flex; gap: .75rem; flex-wrap: wrap; }

.m-right { padding-left: 7rem; display: flex; flex-direction: column; }
.m-pillar { padding: 2rem 0; border-bottom: 1px solid rgba(255,255,255,.06); transition: padding-left .4s var(--ease-out), background .3s; }
.m-pillar:first-child { border-top: 1px solid rgba(255,255,255,.06); }
.m-pillar:hover { padding-left: .75rem; background: rgba(255,255,255,.02); }
.pil-n { font-size: .6rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: .4rem; opacity: .7; }
.m-pillar h4 { color: #fff; margin-bottom: .4rem; }
.m-pillar p { font-size: .88rem; color: rgba(255,255,255,.38); }

/* ============================================================
   CONTACT
   ============================================================ */
#contact { background: var(--bg-root); position: relative; overflow: hidden; }
.c-glow { width: 600px; height: 600px; background: radial-gradient(circle, var(--glow-blue) 0%, transparent 65%); top: -100px; right: -100px; animation-delay: -3s; }

.c-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 6rem; align-items: start; position: relative; z-index: 1; }
.c-info .eyebrow { display: block; margin-bottom: .6rem; }
.c-info h2 { margin-bottom: 1.8rem; }
.c-info > p { font-size: .93rem; margin-bottom: 2.8rem; }

.c-detail { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--border); transition: padding-left .3s var(--ease-out), background .3s; }
.c-detail:hover { padding-left: .6rem; background: rgba(99,102,241,.03); }
.c-icon { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-white); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.c-icon svg { width: 14px; height: 14px; color: var(--ink-50); }
.c-lbl { font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-50); display: block; margin-bottom: .15rem; }
.c-val { font-size: .92rem; font-weight: 500; color: var(--ink); }

/* Form card */
.c-card {
  background: var(--bg-white); border: 1px solid var(--border); border-radius: 20px; padding: 3rem;
  box-shadow: 0 2px 4px rgba(26,26,26,.04), 0 20px 50px rgba(26,26,26,.05);
}
.f-field { margin-bottom: .9rem; }
.f-field label { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-50); margin-bottom: .45rem; }
.f-field input,
.f-field textarea,
.f-field select {
  width: 100%; padding: .9rem 1rem;
  background: var(--bg-root); border: 1.5px solid var(--border);
  color: var(--ink); font-size: .92rem; outline: none; border-radius: 8px; -webkit-appearance: none;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.f-field input:focus, .f-field textarea:focus, .f-field select:focus {
  border-color: var(--accent); background: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}
.f-field input::placeholder, .f-field textarea::placeholder { color: var(--ink-30); }
.f-field textarea { min-height: 120px; resize: vertical; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.f-note { font-size: .7rem; color: var(--ink-50); margin-top: .75rem; }
.f-note a { color: var(--accent); }

/* Form states */
#form-sending { display: none; text-align: center; padding: 2rem 0; }
#form-sending p { color: var(--ink-70); }
.form-ok { display: none; text-align: center; padding: 3rem 1rem; }
.ok-icon { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; font-size: 1.4rem; color: #fff; }
.form-ok h4 { margin-bottom: .5rem; }
.form-ok p { font-size: .9rem; }
.form-err { display: none; margin-top: .75rem; padding: .75rem 1rem; background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.2); border-radius: 8px; }
.form-err p { font-size: .85rem; color: #dc2626; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { background: var(--dark-2); color: #fff; padding: 80px 0 40px; }
.ft-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem; padding-bottom: 4rem; border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: 2rem; }

/* LOGO in footer
   Same file as nav logo but white version preferred.
   Path: /media/logo-white.png OR apply CSS filter below.
   Dimensions: same as nav — 200px tall source, rendered 28px height. */
.ft-brand img { height: 28px; width: auto; filter: brightness(0) invert(1); opacity: .4; margin-bottom: 1.5rem; }
.ft-brand p { font-size: .82rem; color: rgba(255,255,255,.32); max-width: 260px; line-height: 1.75; }
.ft-col h5 { font-size: .62rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.2); margin-bottom: 1.5rem; }
.ft-col a { display: block; font-size: .82rem; color: rgba(255,255,255,.38); margin-bottom: .75rem; transition: color .2s; }
.ft-col a:hover { color: #fff; }
.ft-bot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.ft-bot p, .ft-bot a { font-size: .72rem; color: rgba(255,255,255,.22); transition: color .2s; }
.ft-bot a:hover { color: #fff; }
.ft-soc { display: flex; gap: .6rem; }
.soc { width: 32px; height: 32px; border-radius: 8px; border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.35); transition: all .25s; }
.soc:hover { border-color: rgba(255,255,255,.35); color: #fff; }
.soc svg { width: 12px; height: 12px; }

/* ============================================================
   ABOUT JAMES PAGE
   ============================================================ */
.jv-hero {
  min-height: 100dvh; height: 100dvh;
  display: flex; align-items: center;
  padding-top: 68px; background: var(--bg-root);
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.jv-g1 { width: 700px; height: 700px; background: radial-gradient(circle, var(--glow-blue) 0%, transparent 65%); top: -200px; right: -150px; }
.jv-g2 { width: 500px; height: 500px; background: radial-gradient(circle, var(--glow-purp) 0%, transparent 65%); bottom: -100px; left: -100px; animation-delay: -7s; }

.jv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; position: relative; z-index: 1; }
.jv-l .eyebrow    { display: block; margin-bottom: 1.8rem; opacity: 0; animation: riseUp .7s var(--ease-out) .1s forwards; }
.jv-l h1          { opacity: 0; animation: riseUp .9s var(--ease-out) .25s forwards; margin-bottom: 2rem; }
.jv-l p           { opacity: 0; animation: riseUp .9s var(--ease-out) .4s forwards; margin-bottom: 2.5rem; max-width: 440px; }
.jv-btns          { display: flex; gap: .75rem; flex-wrap: wrap; opacity: 0; animation: riseUp .9s var(--ease-out) .55s forwards; }
.jv-chips         { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); opacity: 0; animation: riseUp .9s var(--ease-out) .7s forwards; }

/* PHOTO SLOT: James Vella portrait
   Dimensions: 900px wide × 1125px tall (4:5 ratio)
   Path: /media/james-portrait.jpg
   Suggested: Professional headshot — smart casual, modern background (blurred office or neutral),
   natural light, genuine expression. NOT a formal suit portrait. Shot from waist up.
   Bright background preferred to match the light theme. */
.jv-img-wrap {
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 70px rgba(26,26,26,.10);
  opacity: 0; animation: riseUp 1s var(--ease-out) .2s forwards;
}
.jv-img-wrap img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top; transition: transform .8s var(--ease-out); filter: brightness(1.02); }
.jv-img-wrap:hover img { transform: scale(1.04); }

/* Skills */
.sk-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  background: var(--bg-white);
  box-shadow: 0 2px 4px rgba(26,26,26,.04), 0 16px 50px rgba(26,26,26,.04);
}
.sk-card {
  padding: 2.5rem; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  transition: background .4s var(--ease-out); position: relative; overflow: hidden; cursor: default;
}
.sk-card:nth-child(3n)   { border-right: none; }
.sk-card:nth-last-child(-n+3) { border-bottom: none; }
.sk-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(to right, var(--accent), var(--accent-2)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
.sk-card:hover { background: rgba(99,102,241,.04); }
.sk-card:hover::before { transform: scaleX(1); }
.sk-icon { margin-bottom: 1.2rem; color: var(--ink-30); transition: color .4s; }
.sk-card:hover .sk-icon { color: var(--accent); }
.sk-icon svg { width: 24px; height: 24px; }
.sk-card h4 { font-size: .95rem; margin-bottom: .5rem; }
.sk-card p  { font-size: .84rem; line-height: 1.65; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .85s var(--ease-out), transform .85s var(--ease-out); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .1s; } .rv.d2 { transition-delay: .2s; }
.rv.d3 { transition-delay: .3s; } .rv.d4 { transition-delay: .4s; }
.rv-l  { opacity: 0; transform: translateX(-26px); transition: opacity .85s var(--ease-out), transform .85s var(--ease-out); }
.rv-l.in { opacity: 1; transform: none; }

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes riseUp    { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp   { from { transform: translateY(108%); }            to { transform: translateY(0); } }
@keyframes mq        { from { transform: translateX(0); }               to { transform: translateX(-50%); } }
@keyframes scrollAnim{ 0%,100% { opacity: .45; transform: scaleY(1); } 50% { opacity: .15; transform: scaleY(.5); } }
@keyframes dotPulse  { 0%,100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(52,199,89,.3); } 50% { transform: scale(.85); box-shadow: 0 0 0 5px rgba(52,199,89,0); } }
@keyframes blobFloat { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(28px,-22px) scale(1.06); } 66% { transform: translate(-18px,18px) scale(.95); } }
@keyframes gradShift { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }

/* ============================================================
   RESPONSIVE — Stack at 1100px (portrait monitor safe)
   ============================================================ */
/* ── 1100px — Portrait monitors & landscape tablets ─────────── */
@media (max-width: 1100px) {
  .container { padding: 0 2rem; }

  /* All two-column grids → single column */
  .about-grid,
  .m-layout,
  .jv-grid { grid-template-columns: 1fr; }

  .about-l {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 3.5rem 3rem;
  }
  .about-r { padding: 3.5rem 3rem; }

  .m-left {
    border-right: none;
    padding-right: 0;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
  }
  .m-right { padding-left: 0; padding-top: 3rem; }

  .jv-grid { gap: 3rem; }

  /* Services — drop desc column on narrow screens */
  .svc-row { grid-template-columns: 60px 1fr 48px; gap: 1.5rem; }
  .svc-desc { display: none; }

  /* Stats 2×2 */
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-cell:nth-child(2) { border-right: none; }
  .stat-cell:nth-child(3) { border-top: 1px solid rgba(255,255,255,.07); }

  /* Process 2×2 */
  .proc-grid { grid-template-columns: repeat(2, 1fr); }
  .proc-card:nth-child(2) { border-right: none; }
  .proc-card:nth-child(3) { border-top: 1px solid var(--border); }

  /* Testimonials single col */
  .testi-grid { grid-template-columns: 1fr; }

  /* FAQ stacked */
  .faq-wrap { grid-template-columns: 1fr; gap: 3.5rem; }
  .faq-l    { position: static; }

  /* Contact stacked */
  .c-layout { grid-template-columns: 1fr; gap: 3.5rem; }

  /* Footer 2×2 */
  .ft-top { grid-template-columns: 1fr 1fr; gap: 3rem; }

  /* Skills 2-col */
  .sk-grid { grid-template-columns: repeat(2, 1fr); }
  .sk-card:nth-child(3n)      { border-right: 1px solid var(--border); }
  .sk-card:nth-child(2n)      { border-right: none; }
  .sk-card:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
  .sk-card:nth-last-child(-n+2) { border-bottom: none; }

  .photo-band { height: 360px; }

  /* Bio layout on James page — stack to single column */
  .bio-grid {
    grid-template-columns: 1fr !important;
    gap: 2.5rem !important;
  }
  .bio-sticky {
    position: static !important;
  }

  /* Skills header */
  .skills-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .skills-header p { max-width: 100%; }

  /* James page stats — reduce padding at tablet */
  .jv-stat-cell { padding: 2rem 1.5rem; }
  .jv-stat-n { font-size: 2.2rem; }
}

/* ── 768px — Tablets portrait & large phones landscape ──────── */
@media (max-width: 768px) {
  /* Typography */
  h1 { font-size: clamp(2.6rem, 10vw, 4rem); }
  h2 { font-size: clamp(1.8rem, 7vw, 2.8rem); }
  p  { font-size: .95rem; }

  /* Spacing */
  .pad    { padding: 64px 0; }
  .pad-sm { padding: 48px 0; }
  .container { padding: 0 1.25rem; }

  /* Nav — hide links, show hamburger */
  .nav-links, .nav-cta { display: none; }
  .hbg { display: flex; }

  /* Logo — prevent squish, ensure it stays a fixed height */
  .nav-logo img {
    height: 30px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    flex-shrink: 0;
  }
  .nav-wrap {
    /* Stop logo from being crushed by flex layout */
    gap: 0;
  }

  /* Mobile menu links — bigger touch targets */
  .mob-menu a {
    font-size: clamp(1.9rem, 7vw, 3rem);
    padding: .5rem 0;
  }

  /* Hero */
  #hero {
    /* iOS Safari fix — 100vh is unreliable on mobile (doesn't account for browser chrome) */
    min-height: -webkit-fill-available;
    min-height: 100svh;
    height: auto;
    padding-top: 80px;
    padding-bottom: 60px;
    justify-content: flex-end;
  }
  .hero-inner { padding: 0 1.25rem; }
  .hero-eyebrow { margin-bottom: 1.5rem; }
  .hero-foot {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 2.5rem;
    gap: 1.5rem;
  }
  .hero-btns { flex-direction: column; width: 100%; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .scroll-cue { display: none; }

  /* Glow blobs — reduce size on mobile for performance */
  .glow-blob { filter: blur(60px); }
  .h-glow-1 { width: 400px; height: 400px; }
  .h-glow-2 { width: 300px; height: 300px; }
  .h-glow-3 { display: none; }

  /* About */
  .about-grid { border-radius: 16px; }
  .about-l { padding: 2.5rem 1.75rem; gap: 2rem; }
  .about-r { padding: 2.5rem 1.75rem; }
  .about-img-wrap img { aspect-ratio: 16/9; } /* Landscape on mobile — less tall */
  .about-nums { grid-template-columns: 1fr 1fr; }
  .sec-num { font-size: clamp(4rem, 15vw, 7rem); margin-bottom: -1.5rem; }

  /* Services */
  .svc-header { flex-direction: column; margin-bottom: 2.5rem; }
  .svc-header p { max-width: 100%; }
  .svc-row { grid-template-columns: 44px 1fr; gap: 1rem; padding: 1.8rem 0; }
  .svc-btn { display: none; }
  .svc-name { font-size: clamp(1.1rem, 4vw, 1.5rem); }

  /* Photo band */
  .photo-band { height: 240px; }
  .photo-band img { object-position: center center; }

  /* Stats */
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-cell { padding: 3rem 1.5rem; }
  .stat-n { font-size: clamp(2.2rem, 8vw, 3.5rem); }

  /* Process */
  .proc-grid { grid-template-columns: 1fr; border-radius: 12px; }
  .proc-card { border-right: none; border-bottom: 1px solid var(--border); }
  .proc-card:last-child { border-bottom: none; }
  .proc-n { font-size: 2.5rem; margin-bottom: 1.2rem; }

  /* Testimonials */
  .testi-grid { grid-template-columns: 1fr; gap: 1rem; }
  .testi-card { padding: 2rem 1.5rem; }
  .testi-card::before { font-size: 6rem; }

  /* FAQ */
  .faq-wrap { gap: 2.5rem; }
  .faq-btn { font-size: .92rem; padding: 1.25rem 0; }

  /* Mission */
  .m-layout { min-height: auto; gap: 0; }
  .m-left { padding: 0 0 3rem 0; }
  .m-right { padding: 3rem 0 0 0; }

  /* Contact */
  .c-layout { gap: 2.5rem; }
  .c-card { padding: 2rem 1.5rem; border-radius: 16px; }
  .f-row { grid-template-columns: 1fr; }
  .f-field input, .f-field textarea, .f-field select {
    font-size: 16px; /* Prevents iOS auto-zoom on focus */
  }

  /* Footer */
  .ft-top { grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2.5rem; }
  .ft-bot { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .ft-soc { margin-top: .25rem; }

  /* Skills (James page) */
  .sk-grid { grid-template-columns: 1fr; border-radius: 12px; }
  .sk-card { border-right: none !important; border-bottom: 1px solid var(--border) !important; }
  .sk-card:last-child { border-bottom: none !important; }

  /* James page quick stats — 2×2 */
  .jv-stats-row { grid-template-columns: 1fr 1fr !important; }
  .jv-stat-cell:nth-child(3) { border-top: 1px solid var(--border); border-left: none !important; }
  .jv-stat-cell:nth-child(4) { border-top: 1px solid var(--border); }
  .jv-stat-cell:nth-child(odd) { border-left: none !important; }

  /* Bio section — stack to single column */
  .bio-grid { grid-template-columns: 1fr !important; gap: 3rem !important; }
  .bio-sticky { position: static !important; }

  /* Skills header */
  .skills-header { flex-direction: column !important; align-items: flex-start !important; }
  .skills-header p { max-width: 100%; }

  /* James hero — photo below text, content stacked */
  .jv-hero { align-items: flex-start; }
  .jv-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .jv-l    { order: 1; }
  .jv-l p  { max-width: 100%; }
  .jv-img-wrap { order: 2; border-radius: 14px; max-width: 420px; margin: 0 auto; }
  .jv-img-wrap img { aspect-ratio: 4/3; }
  .jv-chips { gap: .35rem; }

  /* Buttons — full width on mobile */
  .jv-btns { flex-direction: column; }
  .jv-btns .btn { width: 100%; justify-content: center; }

  /* Chips — slightly smaller */
  .chip { font-size: .67rem; padding: .28rem .75rem; }
  .pill { font-size: .6rem; }

  /* Glow blobs — smaller for performance */
  .glow-blob { filter: blur(60px); }
  .h-glow-1 { width: 400px; height: 400px; }
  .h-glow-2 { width: 300px; height: 300px; }
  .h-glow-3 { display: none; }
}

/* ── 480px — Phones portrait (PRIMARY mobile target) ─────────── */
@media (max-width: 480px) {
  /* Typography — tighter for small screens */
  h1 { font-size: clamp(2.2rem, 11vw, 3.2rem); letter-spacing: -0.03em; }
  h2 { font-size: clamp(1.6rem, 8vw, 2.4rem); letter-spacing: -0.025em; }

  /* Spacing */
  .pad { padding: 52px 0; }
  .container { padding: 0 1rem; }

  /* Nav */
  .nav-wrap { padding: 0 1rem; height: 60px; }
  .nav-logo img { height: 26px; max-width: 140px; }

  /* Hero */
  #hero { padding-top: 72px; padding-bottom: 48px; }
  .hero-inner { padding: 0 1rem; }
  .hero-eyebrow { margin-bottom: 1.25rem; }

  /* About */
  .about-grid { border-radius: 12px; }
  .about-l, .about-r { padding: 2rem 1.25rem; }
  .about-nums .a-num-n { font-size: 1.8rem; }

  /* Services */
  .svc-row { padding: 1.4rem 0; gap: .75rem; }
  .svc-num { font-size: .62rem; }

  /* Stats */
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-cell { padding: 2.5rem 1rem; }
  .stat-n { font-size: clamp(2rem, 9vw, 3rem); }
  .stat-l { font-size: .58rem; letter-spacing: .12em; }

  /* Testimonials */
  .testi-card { padding: 1.75rem 1.25rem; }

  /* Mission */
  .m-left { padding-bottom: 2.5rem; }
  .m-pillar { padding: 1.5rem 0; }
  .m-btns { flex-direction: column; }
  .m-btns .btn { width: 100%; justify-content: center; }

  /* Contact */
  .c-card { padding: 1.75rem 1.25rem; border-radius: 12px; }
  .c-info h2 { margin-bottom: 1.25rem; }

  /* Process */
  .proc-card { padding: 2rem 1.25rem; }

  /* FAQ */
  .faq-l h2 { margin-bottom: 1rem; }

  /* Footer */
  .ft-top { gap: 1.75rem; }
  .ft-brand p { font-size: .8rem; }
  .ft-col a { font-size: .8rem; margin-bottom: .6rem; }
  .ft-bot p, .ft-bot a { font-size: .68rem; }

  /* James page quick stats */
  .jv-stat-cell { padding: 2rem 1rem; }
  .jv-stat-n { font-size: 2rem; }


  /* Skills */
  .sk-card { padding: 1.75rem 1.25rem ; }

  /* Photo band */
  .photo-band { height: 200px; }
}

/* ── 380px — Very small phones (iPhone SE 1st gen, etc.) ────── */
@media (max-width: 380px) {
  h1 { font-size: clamp(1.9rem, 11vw, 2.6rem); }
  h2 { font-size: clamp(1.4rem, 8vw, 2rem); }
  .container { padding: 0 .875rem; }
  .nav-logo img { height: 24px; max-width: 120px; }
  .stat-cell { padding: 2rem .875rem; }
  .stat-n { font-size: clamp(1.8rem, 10vw, 2.6rem); }
  .about-l, .about-r { padding: 1.75rem 1rem; }
  .c-card, .testi-card { padding: 1.5rem 1rem; }
  .hero-btns .btn, .jv-btns .btn, .m-btns .btn { padding: .75rem 1.25rem; }
  .proc-card { padding: 1.75rem 1rem; }
}

/* ── iOS Safari specific fixes ──────────────────────────────── */
@supports (-webkit-touch-callout: none) {
  /* iOS Safari treats 100vh as the full screen height including browser chrome,
     causing content to be hidden under the address bar.
     100svh (small viewport height) is the correct fix. */
  #hero, .jv-hero {
    min-height: 100svh;
    height: auto;
  }

  /* Prevent double-tap zoom on buttons */
  .btn, button, a {
    touch-action: manipulation;
  }

  /* Fix momentum scrolling */
  body {
    -webkit-overflow-scrolling: touch;
  }
}



/* ── Landscape phone — short hero fix ──────────────────────── */
@media (max-height: 500px) and (orientation: landscape) {
  #hero, .jv-hero {
    min-height: auto;
    height: auto;
    padding-top: 80px;
    padding-bottom: 40px;
  }
  .hero-inner { padding: 0 1.25rem; }
  .scroll-cue { display: none; }
  h1 { font-size: clamp(2rem, 6vw, 3rem); }