/* Students Build Co. — light theme
   White and faint-blue surfaces, navy text, brand blue for actions.
   One typeface (Geist) + Geist Mono for small technical labels and code. */

@font-face { font-family: "Geist"; font-weight: 400; font-display: swap; src: url("../assets/fonts/geist-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 500; font-display: swap; src: url("../assets/fonts/geist-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 600; font-display: swap; src: url("../assets/fonts/geist-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 700; font-display: swap; src: url("../assets/fonts/geist-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 500; font-display: swap; src: url("../assets/fonts/geist-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --bg: #FFFFFF;
  --bg-soft: #F6F9FE;
  --bg-tint: #EEF4FF;
  --line: #E4EAF3;
  --line-2: #D5DEEC;
  --ink: #0B1736;
  --text: #3B4862;
  --muted: #66748F;
  --blue: #2563EB;
  --blue-d: #1D4ED8;
  --blue-l: #DCE8FF;
  --sky: #60A5FA;
  --deep: #1E3A8A;
  --ok: #16A34A;

  --sans: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", Consolas, ui-monospace, monospace;

  --r: 14px;
  --r-lg: 20px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 30px -14px rgba(15, 23, 42, .14);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .04), 0 30px 60px -24px rgba(30, 58, 138, .28);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 400 1.0625rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 700; text-wrap: balance; }
p { margin: 0; }
em { font-style: normal; color: var(--blue); }
::selection { background: var(--blue-l); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: clamp(18px, 4vw, 40px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 .82rem/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.h-xl { font-size: clamp(2.3rem, 4.3vw, 3.5rem); line-height: 1.08; letter-spacing: -.035em; }
.h-lg { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.12; letter-spacing: -.03em; }
.h-md { font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.15; letter-spacing: -.025em; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.18rem); color: var(--muted); max-width: 62ch; line-height: 1.65; }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 24px; border-radius: 12px; border: 1px solid transparent; font: 600 .98rem/1 var(--sans); cursor: pointer; white-space: nowrap; transition: background .2s, box-shadow .2s, transform .2s var(--ease), border-color .2s, color .2s; }
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-light { background: var(--blue); color: #fff; box-shadow: 0 1px 2px rgba(37, 99, 235, .3), 0 8px 20px -8px rgba(37, 99, 235, .55); }
.btn-light:hover { background: var(--blue-d); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-wa { background: #16A34A; color: #fff; }
.btn-wa:hover { background: #15803D; transform: translateY(-1px); }
.btn-sm { height: 42px; padding: 0 18px; font-size: .92rem; border-radius: 10px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 600; font-size: .95rem; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); background: rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s; view-transition-name: site-header; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(15, 23, 42, .3); }
.header-row { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 9px 14px; border-radius: 10px; font-size: .96rem; font-weight: 500; color: var(--text); transition: color .2s, background .2s; }
.nav a:hover { color: var(--blue); background: var(--bg-soft); }
.nav a[aria-current="page"] { color: var(--blue); background: var(--bg-tint); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.menu-btn span:first-child { top: 17px; } .menu-btn span:last-child { top: 25px; }
.menu-open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }
.mobile-menu { display: none; }

/* ---------- layout ---------- */
main { padding-top: var(--header-h); }
.section { padding-block: clamp(72px, 9vw, 112px); position: relative; }
.section.soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 760px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head .lead { margin-top: 2px; }
.page-hero { padding-block: clamp(64px, 8vw, 104px) clamp(40px, 5vw, 64px); background: linear-gradient(180deg, var(--bg-tint) 0%, var(--bg) 100%); position: relative; overflow: hidden; }
.page-hero::before, .hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(37, 99, 235, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(37, 99, 235, .06) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(80% 90% at 70% 0%, #000 0%, transparent 70%); }
.page-hero .wrap { position: relative; display: grid; gap: 18px; }
.page-hero .lead { max-width: 640px; }

/* ---------- home hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 96px) clamp(64px, 8vw, 104px); background: linear-gradient(180deg, #EAF1FF 0%, #F6F9FE 55%, #FFFFFF 100%); }
.hero .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 24px; min-width: 0; }
.status { justify-self: start; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); font-size: .88rem; font-weight: 500; color: var(--text); box-shadow: var(--shadow); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(22, 163, 74, .14); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { display: flex; gap: 10px 22px; flex-wrap: wrap; font-size: .92rem; color: var(--muted); }
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note svg { width: 16px; height: 16px; color: var(--ok); }

.hero-visual { position: relative; min-width: 0; padding: 24px 40px 56px 0; }
.browser { border-radius: 14px; background: #fff; border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); overflow: hidden; }
.browser .bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #FAFCFF; }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: #E3E8F0; }
.browser .bar i:nth-child(1) { background: #FCA5A5; } .browser .bar i:nth-child(2) { background: #FCD34D; } .browser .bar i:nth-child(3) { background: #86EFAC; }
.browser .url { margin-left: 12px; flex: 1; max-width: 300px; height: 24px; border-radius: 6px; background: var(--bg-soft); border: 1px solid var(--line); font: 500 .72rem/22px var(--mono); color: var(--muted); padding-inline: 10px; overflow: hidden; white-space: nowrap; }
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; }
.phone-mock { position: absolute; right: 0; bottom: 0; width: 34%; border-radius: 26px; padding: 7px; background: #0B1736; box-shadow: var(--shadow-lg); }
.phone-mock img { border-radius: 20px; aspect-ratio: 9 / 18; object-fit: cover; object-position: top; width: 100%; }
.float { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 12px 14px; display: flex; align-items: center; gap: 12px; font-size: .86rem; }
.float b { display: block; color: var(--ink); font-weight: 600; font-size: .9rem; }
.float span { color: var(--muted); }
.float .ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #DCFCE7; color: var(--ok); }
.float .ic svg { width: 18px; height: 18px; }
.float.order { left: -28px; bottom: 26px; }
.code-card { position: absolute; left: 18%; top: -14px; background: #0F1B3D; color: #CFE0FF; border-radius: 12px; padding: 12px 16px; font: 500 .78rem/1.7 var(--mono); box-shadow: var(--shadow-lg); white-space: nowrap; }
.code-card .p { color: #60A5FA; } .code-card .ok { color: #4ADE80; }

/* hero visual: brand cube + service pills */
.hero-visual { padding: 0; position: relative; }
.orbit { position: relative; width: min(540px, 100%); aspect-ratio: 1; margin: 0 auto; }
.cube-art { width: 100%; height: 100%; display: block; overflow: visible; }
.cube-art .dot { transform-origin: 260px 250px; animation: orbitSpin 40s linear infinite; }
.cube-art .d2 { animation-duration: 55s; } .cube-art .d3 { animation-duration: 70s; animation-direction: reverse; }
@keyframes orbitSpin { to { transform: rotate(360deg); } }
.svc-pill { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); animation: pillFloat 7s ease-in-out infinite; white-space: nowrap; }
.svc-pill .pi { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--bg-tint); color: var(--blue); flex: none; }
.svc-pill .pi svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.svc-pill b { display: block; font-size: .95rem; color: var(--ink); line-height: 1.25; }
.svc-pill small { font-size: .8rem; color: var(--muted); }
.svc-pill.p1 { left: -4%; top: 14%; }
.svc-pill.p2 { right: -6%; top: 26%; animation-delay: -2s; }
.svc-pill.p3 { left: -8%; bottom: 22%; animation-delay: -4s; }
.svc-pill.p4 { right: -2%; bottom: 8%; animation-delay: -1s; }
@keyframes pillFloat { 50% { transform: translateY(-8px); } }

/* ---------- 3D motion ---------- */
.orbit { container-type: inline-size; perspective: 1500px; }
.stage3d { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition: transform .7s var(--ease); }
.stage3d .svc-pill { translate: 0 0 90px; }
.c3 { --a: 31cqw; position: absolute; left: 50%; top: 48.1%; width: var(--a); height: var(--a); margin: calc(var(--a) / -2) 0 0 calc(var(--a) / -2); transform-style: preserve-3d; translate: 0 0 30px; }
@supports not (width: 1cqw) { .c3 { --a: clamp(100px, 11.7vw, 160px); } }  /* Safari 15 and older */
.c3-float, .c3-iso, .c3-spin { position: absolute; inset: 0; transform-style: preserve-3d; }
.c3-float { animation: c3Float 6s ease-in-out infinite; }
.c3-iso { transform: rotateX(-35.26deg) rotateY(-45deg); }
.c3-spin { animation: c3Intro 2.2s cubic-bezier(.16,.8,.2,1) .3s both, c3Sway 10s ease-in-out 2.5s infinite; }
.c3 .f { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 3px; }
.c3 .f svg { width: 100%; height: 100%; fill: none; stroke: #fff; stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; }
.c3 .mid { background: linear-gradient(135deg, #3B82F6, #1D4ED8); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.c3 .dark { background: linear-gradient(135deg, #1E40AF, #172554); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.c3 .f-top { background: linear-gradient(135deg, #BFDBFE, #60A5FA); box-shadow: inset 0 0 0 1px rgba(255,255,255,.5); }
.c3 .f-bottom { background: #172554; }
.c3 .f-front  { transform: translateZ(calc(var(--a) / 2)); }
.c3 .f-back   { transform: rotateY(180deg) translateZ(calc(var(--a) / 2)); }
.c3 .f-right  { transform: rotateY(90deg) translateZ(calc(var(--a) / 2)); }
.c3 .f-left   { transform: rotateY(-90deg) translateZ(calc(var(--a) / 2)); }
.c3 .f-top    { transform: rotateX(90deg) translateZ(calc(var(--a) / 2)); }
.c3 .f-bottom { transform: rotateX(-90deg) translateZ(calc(var(--a) / 2)); }
@keyframes c3Float { 50% { transform: translateY(-12px); } }
@keyframes c3Intro { from { transform: rotateY(-360deg) rotateX(0deg); } }
@keyframes c3Sway { 0%, 100% { transform: rotateY(0deg); } 30% { transform: rotateY(-22deg); } 70% { transform: rotateY(14deg); } }

/* 3D tilt on cards (added by JS on devices with a mouse) */
.tilt { position: relative; transform-style: preserve-3d; will-change: transform; }
.tilt::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: radial-gradient(380px circle at var(--gx, 50%) var(--gy, 50%), rgba(96,165,250,.13), transparent 55%);
  opacity: 0; transition: opacity .3s; }
.tilt.tilting::before { opacity: 1; }
.tilt.tilting { transition: transform .12s linear, box-shadow .25s !important; }
.tilt.settle { transition: transform .6s var(--ease), box-shadow .25s !important; }

/* ---------- clients strip ---------- */
.clients { padding-block: 28px; border-bottom: 1px solid var(--line); background: #fff; }
.clients .wrap { display: flex; align-items: center; gap: 18px 44px; flex-wrap: wrap; justify-content: space-between; }
.clients .label { font-size: .85rem; font-weight: 500; color: var(--muted); }
.client, .client.sans { font: 700 1.05rem/1 var(--sans); color: #8794AD; letter-spacing: -.01em; white-space: nowrap; }

/* ---------- cards ---------- */
.glass { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.svc { padding: 28px 26px; display: grid; gap: 12px; align-content: start; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue-l); }
.svc .ico, .ind .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-tint); color: var(--blue); margin-bottom: 4px; }
.svc .ico svg, .ind .ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.svc h3 { font-size: 1.18rem; letter-spacing: -.015em; }
.svc p { color: var(--muted); font-size: .97rem; }

.industries { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.ind { padding: 24px 22px; display: grid; gap: 8px; align-content: start; }
.ind h3 { font-size: 1.05rem; }
.ind p { font-size: .92rem; color: var(--muted); }

.work-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 22px; }
.work-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); transition: box-shadow .25s, transform .25s var(--ease); }
.work-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.work-card .shot { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.work-card .shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.work-card .shot.phone-bg { display: flex; justify-content: center; align-items: flex-end; padding: 28px 24px 0; background: linear-gradient(180deg, var(--bg-tint), #fff); }
.work-card .shot.phone-bg img { width: 46%; height: auto; border-radius: 20px 20px 0 0; border: 6px solid #0B1736; border-bottom: 0; }
.work-card .body { padding: 22px 24px 26px; display: grid; gap: 8px; }
.work-card .tag { font: 600 .74rem/1 var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--blue); }
.work-card h3 { font-size: 1.22rem; letter-spacing: -.015em; }
.work-card p { color: var(--muted); font-size: .96rem; }
.work-card.span-6 { grid-column: span 6; } .work-card.span-7 { grid-column: span 7; } .work-card.span-5 { grid-column: span 5; } .work-card.span-12 { grid-column: span 12; }

/* sample websites */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip { font: 600 .92rem/1 var(--sans); color: var(--text); background: #fff; border: 1px solid var(--line-2); border-radius: 999px; padding: 11px 18px; cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.sample-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sample-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .25s, transform .25s var(--ease); }
.sample-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.sample-card[hidden] { display: none !important; }
.sample-card .shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.sample-card .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .8s var(--ease); }
.sample-card:hover .shot img { transform: scale(1.04); }
.sample-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.sample-card .tag { font: 600 .74rem/1 var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--blue); }
.sample-card h3 { font-size: 1.2rem; letter-spacing: -.015em; }
.sample-card p { color: var(--muted); font-size: .94rem; flex: 1; }
.card-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.card-actions .btn { height: 40px; padding: 0 16px; font-size: .88rem; }

/* process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 22px; display: grid; gap: 8px; align-content: start; box-shadow: var(--shadow); }
.steps li::before { content: counter(s, decimal-leading-zero); width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font: 600 .85rem/1 var(--mono); color: var(--blue); background: var(--bg-tint); margin-bottom: 8px; }
.steps h3 { font-size: 1.06rem; }
.steps p { font-size: .93rem; color: var(--muted); }

/* tech */
.tech-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-row span { font: 500 .9rem/1 var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 14px; display: inline-flex; align-items: center; gap: 8px; }
.tech-row span::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--sky); }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.split > * { min-width: 0; }

.why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.why { padding: 24px; display: grid; gap: 8px; align-content: start; }
.why .n { display: none; }
.why h3 { font-size: 1.06rem; }
.why p { color: var(--muted); font-size: .94rem; }

/* CTA */
.cta { border-radius: 24px; padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 64px); display: grid; gap: 18px; justify-items: center; text-align: center; background: linear-gradient(135deg, #E8F0FF 0%, #F3F7FF 50%, #E6F4FF 100%); border: 1px solid var(--blue-l); position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(37, 99, 235, .14) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(60% 80% at 50% 50%, transparent 30%, #000 100%); }
.cta > * { position: relative; }
.cta .lead { max-width: 54ch; }
.cta .row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

/* ---------- services page ---------- */
.svc-detail { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 80px); padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.svc-detail:first-child { border-top: 0; padding-top: 0; }
.svc-detail > * { min-width: 0; }
.svc-detail .num { font: 600 .85rem/1 var(--mono); color: var(--blue); background: var(--bg-tint); padding: 6px 10px; border-radius: 8px; display: inline-block; }
.svc-detail h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.03em; line-height: 1.15; margin-top: 16px; }
.svc-detail .copy { display: grid; gap: 20px; align-content: start; }
.svc-detail .copy .lead { color: var(--text); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: .97rem; font-weight: 500; }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: #DCFCE7 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M6 10.3l2.6 2.6L14 7.4' fill='none' stroke='%2316A34A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 20px no-repeat; }
.best-for { font-size: .95rem; color: var(--muted); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.best-for b { color: var(--ink); font-weight: 600; }

.packages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.pkg { padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; }
.pkg.featured { border: 2px solid var(--blue); box-shadow: var(--shadow-lg); }
.pkg .badge { align-self: flex-start; font: 600 .72rem/1 var(--sans); text-transform: uppercase; letter-spacing: .06em; color: #fff; background: var(--blue); padding: 6px 10px; border-radius: 999px; }
.pkg h3 { font-size: 1.2rem; }
.pkg .for { font-size: .92rem; color: var(--muted); min-height: 3em; }
.pkg .price { font: 700 1.5rem/1 var(--sans); color: var(--ink); letter-spacing: -.02em; }
.pkg .price small { display: block; font: 500 .78rem/1.4 var(--sans); color: var(--muted); margin-bottom: 6px; }
.pkg ul { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; flex: 1; }
.pkg li { display: flex; gap: 10px; font-size: .93rem; color: var(--text); }
.pkg li::before { content: "✓"; color: var(--ok); font-weight: 700; }
.pkg .btn { width: 100%; }

.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: var(--blue-l); box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--ink); font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--sans); color: var(--blue); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* ---------- work page ---------- */
.case { padding-block: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); }
.case:first-of-type { border-top: 0; padding-top: 0; }
.case-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: end; margin-bottom: 32px; }
.case-head > * { min-width: 0; }
.case-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -.03em; line-height: 1.12; margin-top: 12px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; margin: 0; }
.facts div { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.facts dt { font: 600 .72rem/1 var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.facts dd { margin: 0; color: var(--ink); font-size: .95rem; font-weight: 500; }
.gallery { display: grid; grid-template-columns: 2.2fr 1fr 1fr; gap: 16px; }
.gallery figure { margin: 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); box-shadow: var(--shadow); }
.gallery img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.gallery figure:first-child img { object-position: left top; }
.gallery.two { grid-template-columns: 2.6fr 1fr; }
.gallery.solo { grid-template-columns: 1fr; }
.gallery.solo figure { display: flex; justify-content: center; padding: 40px 24px 0; background: linear-gradient(180deg, var(--bg-tint), #fff); }
.gallery.solo img { width: min(280px, 70%); height: auto; border-radius: 24px 24px 0 0; border: 7px solid #0B1736; border-bottom: 0; }
.case-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 48px); margin-top: 36px; }
.case-body h3 { font: 600 .78rem/1 var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--blue); margin-bottom: 12px; }
.case-body p, .case-body li { font-size: .97rem; }
.case-body ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font: 500 .8rem/1 var(--mono); color: var(--deep); padding: 8px 11px; border-radius: 8px; background: var(--bg-tint); }

/* ---------- about ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); }
.story > * { min-width: 0; }
.story .copy { display: grid; gap: 18px; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.value { padding: 28px 26px; display: grid; gap: 10px; }
.value .n { font: 600 .85rem/1 var(--mono); color: var(--blue); }
.value h3 { font-size: 1.15rem; }
.value p { color: var(--muted); }
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.member { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .25s, transform .25s var(--ease); }
.member:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.member .photo { aspect-ratio: 4 / 4.4; overflow: hidden; background: var(--bg-soft); }
.member .photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.member figcaption { padding: 18px 20px 20px; display: grid; gap: 2px; }
.member strong { color: var(--ink); font-size: 1.12rem; }
.member span { font-size: .9rem; font-weight: 500; color: var(--blue); }
.member.empty .photo { display: grid; place-items: center; background: linear-gradient(180deg, var(--bg-tint), #F8FAFF); }
.member.empty .photo img { display: none; }
.member.empty .photo::before { content: attr(data-initials); width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--blue-l); color: var(--blue); font: 700 1.8rem/1 var(--sans); box-shadow: var(--shadow); }

/* team pyramid: founder on top, then 2, then 3 */
.team-pyramid { display: grid; gap: 24px; }
.team-row { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.team-row .member { flex: 0 1 340px; min-width: 0; }
.team-row.founder .member { flex-basis: 380px; }
.team-row.founder .member strong { font-size: 1.3rem; }
.member .photo { aspect-ratio: 4 / 4.2; }
.member figcaption { gap: 4px; }
.member .role { font-size: .9rem; font-weight: 600; color: var(--blue); }
.member .edu { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .9rem; line-height: 1.5; color: var(--muted); }
.member .phone { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 600; font-size: .95rem; color: var(--ink); }
.member .phone svg { width: 16px; height: 16px; color: var(--blue); }
.member .phone:hover { color: var(--blue); }
.member .links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 8px; }
.member .links .phone { margin-top: 0; }
.member .linkedin { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: .95rem; color: #0A66C2; }
.member .linkedin svg { width: 16px; height: 16px; border-radius: 3px; }
.member .linkedin:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- start a project ---------- */
.start { display: grid; grid-template-columns: 1.5fr .9fr; gap: 24px; align-items: start; }
.start > * { min-width: 0; }
.brief { padding: clamp(22px, 4vw, 40px); overflow: hidden; }
.progress { display: flex; gap: 6px; margin-bottom: 28px; }
.progress span { flex: 1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; position: relative; }
.progress span::after { content: ""; position: absolute; inset: 0; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.progress span.done::after { transform: scaleX(1); }
.step { display: none; gap: 20px; }
.step.active { display: grid; animation: slideIn .45s var(--ease) both; }
.step.back { animation-name: slideInBack; }
@keyframes slideIn { from { opacity: 0; transform: translateX(32px); } }
@keyframes slideInBack { from { opacity: 0; transform: translateX(-32px); } }
.step-label { font: 600 .78rem/1 var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--blue); }
.step h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.025em; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; border: 0; padding: 0; margin: 0; }
.options legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt label { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-weight: 600; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.opt label:hover { border-color: var(--sky); }
.opt label small { display: block; color: var(--muted); font-weight: 400; font-size: .86rem; margin-top: 2px; }
.opt label::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-2); background: #fff; }
.opt input[type="radio"] + label::before { border-radius: 50%; }
.opt input:checked + label { border-color: var(--blue); background: var(--bg-tint); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.opt input:checked + label::before { background: var(--blue) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M5.5 10.2l3 3 6-6.4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 18px no-repeat; border-color: var(--blue); }
.opt input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: 2px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .9rem; font-weight: 600; color: var(--ink); }
.field input, .field textarea { width: 100%; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); font: 400 1rem/1.5 var(--sans); resize: vertical; transition: border-color .2s, box-shadow .2s; }
.field input::placeholder, .field textarea::placeholder { color: #9AA6BC; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }
.step-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.form-error { color: #DC2626; font-size: .92rem; min-height: 1.4em; }
.summary { display: grid; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 0; }
.summary div { display: grid; grid-template-columns: 8rem 1fr; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--line); }
.summary div:nth-child(odd) { background: var(--bg-soft); }
.summary div:first-child { border-top: 0; }
.summary dt { font-size: .85rem; font-weight: 600; color: var(--muted); }
.summary dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.send { display: flex; gap: 12px; flex-wrap: wrap; }
.aside { padding: 30px 28px; display: grid; gap: 24px; position: sticky; top: calc(var(--header-h) + 24px); }
.aside h3 { font-size: 1.15rem; }
.aside dl { margin: 0; display: grid; gap: 16px; }
.aside dt { font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.aside dd { margin: 0; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.aside dd a:hover { color: var(--blue); }
.aside .next { display: grid; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.aside ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--text); font-size: .95rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding-block: 64px 32px; margin-top: clamp(56px, 7vw, 96px); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.foot-grid > * { min-width: 0; }
.foot-brand { display: grid; gap: 16px; align-content: start; }
.foot-brand img { height: 40px; width: auto; }
.foot-brand p { color: var(--muted); max-width: 34ch; font-size: .95rem; }
.foot-col h4 { font-size: .85rem; font-weight: 700; color: var(--ink); margin-bottom: 16px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-col a, .foot-col li { color: var(--muted); font-size: .95rem; overflow-wrap: anywhere; }
.foot-col a:hover { color: var(--blue); }
.wordmark-xl { display: none; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.foot-bottom .mono { font-family: var(--mono); }

.wa-float { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 54px; height: 54px; border-radius: 50%; background: #16A34A; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(22, 163, 74, .6); transition: transform .2s var(--ease); }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 27px; height: 27px; fill: #fff; }

/* ---------- motion ---------- */
.js .reveal { opacity: 0; transform: perspective(1100px) translateY(30px) rotateX(14deg); transform-origin: 50% 100%; transition: opacity .8s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .06s; } .js .reveal.d2 { transition-delay: .12s; } .js .reveal.d3 { transition-delay: .18s; }
.rise { animation: rise .8s var(--ease) both; }
.rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .3s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .45s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateX(-3%); } }
@keyframes vt-in { from { opacity: 0; transform: translateX(4%); } }

/* ---------- site-wide motion graphics (added by js/motion.js) ---------- */
.scroll-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 60; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--sky), var(--blue), var(--deep)); pointer-events: none; }

/* headings: words slide up into place */
.wsplit .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.wsplit .wi { display: inline-block; transform: translateY(110%); opacity: 0;
  transition: transform .9s var(--ease), opacity .6s ease; transition-delay: calc(80ms + var(--i) * 45ms); }
.wsplit.go .wi { transform: none; opacity: 1; }
.js .reveal.wsplit { transform: none; }

/* touch phones (iPhone Safari especially): flat, quicker reveals. The 3D tilt blurs text mid-animation there. */
@media (hover: none) and (pointer: coarse) {
  .js .reveal { transform: translateY(16px); transition: opacity .45s ease, transform .5s var(--ease); }
  .js .reveal.d1 { transition-delay: .03s; } .js .reveal.d2 { transition-delay: .06s; } .js .reveal.d3 { transition-delay: .09s; }
  .wsplit .wi { transform: translateY(60%); transition: transform .5s var(--ease), opacity .35s ease; transition-delay: calc(20ms + var(--i) * 22ms); }
}

/* background grid glides slowly */
.hero::before, .page-hero::before { animation: gridPan 36s linear infinite; }
@keyframes gridPan { to { background-position: 44px 44px, 44px 44px; } }

/* floating mini 3D cubes */
.page-hero, .cta { position: relative; }
.page-hero .wrap, .cta > * { position: relative; z-index: 1; }
.mc { position: absolute; z-index: 0; width: var(--s); height: var(--s); perspective: 700px; pointer-events: none;
  translate: calc(var(--mx, 0) * var(--depth) * 1px) calc(var(--my, 0) * var(--depth) * 1px);
  transition: translate .8s var(--ease); animation: mcFloat var(--fd) ease-in-out infinite; }
.mc-spin { position: absolute; inset: 0; transform-style: preserve-3d; animation: mcSpin var(--sd) linear infinite; }
.mc.rev .mc-spin { animation-direction: reverse; }
.mf { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 2px; }
.mf svg { width: 100%; height: 100%; fill: none; stroke: #fff; stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; }
.mf.mid { background: linear-gradient(135deg, #3B82F6, #1D4ED8); }
.mf.dark { background: linear-gradient(135deg, #1E40AF, #172554); }
.mf.top { background: linear-gradient(135deg, #BFDBFE, #60A5FA); }
.mf.bottom { background: #172554; }
.mf.front { transform: translateZ(calc(var(--s) / 2)); }
.mf.back { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.mf.right { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.mf.left { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.mf.top { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.mf.bottom { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
@keyframes mcSpin { from { transform: rotateX(-30deg) rotateY(0deg); } to { transform: rotateX(-30deg) rotateY(360deg); } }
@keyframes mcFloat { 50% { transform: translateY(-14px); } }
.cta .mc { opacity: .9; }

/* small details */
.btn-light { position: relative; overflow: hidden; }
.btn-light::after { content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.38), transparent); transform: skewX(-20deg); transition: left .7s var(--ease); }
.btn-light:hover::after { left: 130%; }
.svc:hover .ico svg, .ind:hover .ico svg, .sample-card:hover .tag { animation: icoPop .6s var(--ease); }
@keyframes icoPop { 40% { transform: translateY(-3px) scale(1.15) rotate(-6deg); } }
.member .photo img { transition: transform .9s var(--ease); }
.member:hover .photo img { transform: scale(1.05); }
.steps li.in::before { animation: numPop .7s var(--ease) .15s both; }
@keyframes numPop { from { transform: scale(.4) rotate(-20deg); opacity: 0; } }
.sample-card.pop { animation: cardIn .55s var(--ease) both; animation-delay: calc(var(--k, 0) * 50ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #16A34A; animation: waPulse 2.8s ease-out infinite; pointer-events: none; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
.faq details[open] p { animation: faqIn .45s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .services-grid, .packages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .industries { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sample-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery figure:first-child { grid-column: 1 / -1; }
}
@media (max-width: 1240px) {
  .page-hero .mc:not(.mob) { display: none; }
}
@media (max-width: 900px) {
  .cta .mc:not(.mob) { display: none; }
  .nav, .header-cta .btn { display: none; }
  .menu-btn { display: block; }
  .mobile-menu { position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; display: grid; align-content: start; gap: 2px; padding: 20px clamp(18px, 4vw, 40px); background: #fff; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
  .menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
  .mobile-menu a:not(.btn) { font-size: 1.35rem; font-weight: 600; color: var(--ink); padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .mobile-menu a[aria-current="page"] { color: var(--blue); }
  .mobile-menu .btn { margin-top: 20px; }
  .hero-grid, .story, .case-head, .start, .svc-detail, .split { grid-template-columns: minmax(0, 1fr); }
  .orbit { width: min(440px, 100%); }
  .work-card.span-7, .work-card.span-5, .work-card.span-6 { grid-column: span 12; }
  .values { grid-template-columns: minmax(0, 1fr); }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-body { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .brand img { height: 32px; }
  .services-grid, .packages, .steps, .options, .fields, .checks, .facts, .why-grid, .industries, .sample-grid { grid-template-columns: minmax(0, 1fr); }
  .svc-pill { padding: 8px 12px 8px 8px; gap: 8px; border-radius: 12px; }
  .svc-pill .pi { width: 30px; height: 30px; }
  .svc-pill small { display: none; }
  .svc-pill.p1 { left: 0; } .svc-pill.p2 { right: 0; } .svc-pill.p3 { left: 0; } .svc-pill.p4 { right: 0; }

  .code-card { left: 8%; font-size: .7rem; }
  .gallery, .gallery.two { grid-template-columns: minmax(0, 1fr); }
  .team { gap: 14px; }
  .team-row .member, .team-row.founder .member { flex-basis: 100%; }
  .member figcaption { padding: 14px; }
  .member strong { font-size: 1rem; }
  .summary div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-actions .btn { flex: 1 1 auto; }
}
.sample-card .shot picture { display: block; height: 100%; }
.m-dots { display: none; }

.mc.mob { display: none; }
@media (max-width: 640px) {
  .mc.mob { display: block; }
  .page-hero { padding-top: 76px; }
  .page-hero .eyebrow { justify-self: start; }
  .stage3d.phone-3d { transition: transform .35s ease-out; }
  .flow { transition: transform .12s linear, opacity .12s linear !important; will-change: transform; }
  .pressing { transition: transform .15s ease-out !important; }
  .ind, .member, #sample-grid .sample-card, .steps li, .faq details, .aside { transition: transform .45s var(--ease), box-shadow .25s; }
}

/* ---------- phone layout (designed for phones, laptop layout unchanged) ---------- */
@media (max-width: 640px) {
  .section { padding-block: 56px; }
  .section-head { margin-bottom: 26px; gap: 10px; }
  .section-head.center { text-align: left; justify-items: start; }
  .h-xl { font-size: 2.35rem; }
  .h-lg { font-size: 1.8rem; }
  .lead { font-size: 1rem; }
  .page-hero { padding-block: 40px 30px; }
  .hero { padding-block: 26px 36px; }
  .hero-copy { gap: 18px; }
  .orbit { width: min(350px, 100%); }
  .svc-pill.p1 { left: 0; top: 2%; } .svc-pill.p2 { right: 0; left: auto; top: 2%; }
  .svc-pill.p3 { left: 0; bottom: 3%; top: auto; } .svc-pill.p4 { right: 0; left: auto; bottom: 3%; top: auto; }
  .svc-pill b { font-size: .84rem; }
  .wa-float { width: 50px; height: 50px; right: 14px; } .wa-float svg { width: 25px; height: 25px; }

  /* swipe carousels */
  .services-grid, .why-grid, .packages, .values, .sample-grid:not(#sample-grid) {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px;
    margin-inline: -18px; padding: 6px 18px 16px; scroll-padding-inline: 18px; scrollbar-width: none; }
  .services-grid::-webkit-scrollbar, .why-grid::-webkit-scrollbar, .packages::-webkit-scrollbar,
  .values::-webkit-scrollbar, .sample-grid::-webkit-scrollbar, .filters::-webkit-scrollbar { display: none; }
  .services-grid > *, .why-grid > *, .packages > *, .values > *, .sample-grid:not(#sample-grid) > * { flex: 0 0 82%; scroll-snap-align: start; }
  .js .services-grid > .reveal, .js .why-grid > .reveal, .js .packages > .reveal, .js .values > .reveal,
  .js .sample-grid > .reveal { opacity: 1; transform: none; }
  .m-dots { display: flex; justify-content: center; gap: 6px; margin-top: 2px; }
  .m-dots i { width: 6px; height: 6px; border-radius: 99px; background: var(--line-2); transition: width .3s var(--ease), background .3s; }
  .m-dots i.on { width: 20px; background: var(--blue); }
  .svc { padding: 22px 20px; }
  .sample-grid:not(#sample-grid) .sample-card .shot { aspect-ratio: 4 / 3; }

  /* industries: compact 2-column grid */
  .industries { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ind { padding: 16px 14px; gap: 4px; }
  .ind .ico { width: 38px; height: 38px; margin-bottom: 6px; }
  .ind h3 { font-size: .95rem; }
  .ind p { font-size: .8rem; line-height: 1.45; }
  .ind:last-child { grid-column: 1 / -1; }

  /* process: numbered timeline */
  .steps { gap: 0; }
  .steps li { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; row-gap: 2px; padding: 0 0 22px; background: none; border: 0; box-shadow: none; border-radius: 0; position: relative; }
  .steps li::before { grid-row: 1 / span 2; margin: 0; }
  .steps li::after { content: ""; position: absolute; left: 19px; top: 46px; bottom: 6px; width: 2px; background: var(--line-2); }
  .steps li:last-child::after { display: none; }
  .steps h3 { grid-column: 2; padding-top: 9px; }
  .steps p { grid-column: 2; }

  /* why us + tech */
  .why { padding: 20px; }
  .tech-row span { padding: 9px 11px; font-size: .84rem; }

  /* samples page: compact 2-column grid of phone previews */
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -18px; padding: 2px 18px 6px; scrollbar-width: none; margin-bottom: 18px; }
  .chip { flex: none; padding: 10px 15px; }
  #sample-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  #sample-grid .sample-card { position: relative; border-radius: 16px; }
  #sample-grid .sample-card .shot { aspect-ratio: 3 / 4; }
  #sample-grid .sample-card .shot::after { content: ""; position: absolute; inset: 0; z-index: 1; }
  #sample-grid .sample-card .body { padding: 10px 12px 13px; gap: 3px; }
  #sample-grid .sample-card p, #sample-grid .card-actions { display: none; }
  #sample-grid .sample-card h3 { font-size: .95rem; }
  #sample-grid .sample-card .tag { font-size: .62rem; letter-spacing: .04em; }

  /* services page */
  .svc-detail { padding-block: 34px; gap: 16px; }
  .svc-detail h2 { font-size: 1.6rem; margin-top: 10px; }
  .checks { grid-template-columns: 1fr 1fr; gap: 10px 14px; }
  .checks li { font-size: .86rem; gap: 8px; }
  .checks li::before { width: 18px; height: 18px; background-size: 18px; }
  .pkg { padding: 24px 20px; }
  .faq summary { padding: 17px 18px; font-size: .98rem; }
  .faq details p { padding: 0 18px 18px; font-size: .95rem; }

  /* about: founder large, co-founders as compact rows */
  .story .copy { font-size: 1rem; gap: 14px; }
  .value { padding: 24px 20px; }
  .team-pyramid { gap: 12px; }
  .team-row { flex-direction: column; gap: 12px; }
  .team-row .member, .team-row.founder .member { flex: none; width: 100%; }
  .team-row.founder .member .photo { aspect-ratio: 4 / 3.6; }
  .team-row:not(.founder) .member { display: grid; grid-template-columns: 118px 1fr; }
  .team-row:not(.founder) .member .photo { aspect-ratio: auto; height: 100%; min-height: 168px; }
  .team-row:not(.founder) .member figcaption { padding: 14px 14px 14px 16px; align-content: center; }
  .team-row:not(.founder) .member strong { font-size: 1rem; }
  .team-row:not(.founder) .member .edu { font-size: .76rem; line-height: 1.45; margin-top: 6px; padding-top: 6px; }
  .team-row:not(.founder) .member .phone { font-size: .86rem; margin-top: 6px; }
  .member.empty .photo::before { width: 64px; height: 64px; font-size: 1.3rem; }

  /* contact: two choices per row */
  .options { grid-template-columns: 1fr 1fr; gap: 10px; }
  .opt label { padding: 13px 12px; gap: 10px; font-size: .9rem; align-items: flex-start; }
  .opt label small { font-size: .76rem; }
  .opt label::before { margin-top: 2px; width: 18px; height: 18px; }
  .brief { padding: 22px 18px; }
  .aside { padding: 24px 20px; }

  /* CTA + footer */
  .cta { padding: 40px 20px; border-radius: 20px; }
  .site-footer { padding-block: 44px 26px; margin-top: 40px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .foot-brand, .foot-col:last-child { grid-column: 1 / -1; }
  .foot-bottom { margin-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}
