/* ==========================================================
   Juan Carlos Gutiérrez — Portfolio
   ========================================================== */
:root {
  --bg: #0a0d14;
  --bg-2: #0f141e;
  --surface: #131a26;
  --surface-2: #182132;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #e8ecf3;
  --muted: #9aa5b8;
  --dim: #6b7689;
  --accent: #5eead4;
  --accent-2: #f5b851;
  --accent-3: #8b9dff;
  --accent-ink: #052e2a;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
  --max: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- Language switching ---------- */
html[data-lang="en"] body [lang="es"],
html[data-lang="es"] body [lang="en"] { display: none !important; }

/* ---------- Layout ---------- */
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
section { position: relative; padding: 110px 0; }
.eyebrow {
  font: 600 12px/1 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 52px); margin: 18px 0 16px; }
.section-head p { color: var(--muted); font-size: 18px; }

/* ---------- Background decoration ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: .45;
}
.bg-glow {
  position: fixed; z-index: -1; pointer-events: none; filter: blur(90px); opacity: .35; border-radius: 50%;
}
.bg-glow.g1 { width: 520px; height: 520px; background: #0f766e; top: -180px; left: -120px; }
.bg-glow.g2 { width: 460px; height: 460px; background: #3b3f9e; top: 120px; right: -160px; opacity: .28; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 50;
  transition: background .25s, border-color .25s, backdrop-filter .25s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(10, 13, 20, .78); backdrop-filter: blur(14px); border-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; font-size: 17px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), #22b8a5); color: var(--accent-ink);
  font: 700 14px/1 var(--mono);
}
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14.5px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; background: rgba(255,255,255,.03);
}
.lang-toggle button {
  border: 0; background: transparent; color: var(--muted); font: 600 12px/1 var(--mono);
  padding: 7px 11px; border-radius: 999px; cursor: pointer; letter-spacing: .06em;
}
.lang-toggle button.active { background: var(--text); color: var(--bg); }
.menu-btn { display: none; background: none; border: 1px solid var(--line-2); color: var(--text); border-radius: 10px; width: 40px; height: 40px; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; transition: transform .2s, background .2s, border-color .2s, color .2s; cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #7af2df; }
.btn-ghost { border-color: var(--line-2); color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero { padding: 150px 0 90px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 64px; align-items: center; }
.status {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(94, 234, 212, .06); font-size: 13.5px; color: var(--muted);
}
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } }
.hero h1 { font-size: clamp(40px, 6.2vw, 76px); margin: 26px 0 24px; font-weight: 700; }
.hero h1 .grad {
  background: linear-gradient(100deg, var(--accent) 10%, var(--accent-3) 60%, var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 620px; }
.hero .lead strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-photo { position: relative; }
.hero-photo .frame {
  position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4/5;
  border: 1px solid var(--line-2); box-shadow: var(--shadow);
  background: var(--surface);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.hero-photo .frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10,13,20,.85)); }
.hero-photo .caption { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.float-chip {
  position: absolute; z-index: 3; background: rgba(19, 26, 38, .92); backdrop-filter: blur(10px);
  border: 1px solid var(--line-2); border-radius: 14px; padding: 11px 14px; font-size: 13px;
  display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow);
}
.float-chip i { color: var(--accent); font-size: 16px; }
.float-chip b { display: block; font-size: 14px; color: var(--text); }
.float-chip span { color: var(--muted); font-size: 12px; }
.float-chip.c1 { top: 26px; left: -38px; }
.float-chip.c2 { bottom: 76px; right: -30px; }
.float-chip.c2 i { color: var(--accent-2); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 80px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: var(--bg-2); padding: 26px 24px; }
.stat b { display: block; font: 700 clamp(28px, 3vw, 38px)/1 var(--display); letter-spacing: -.03em; }
.stat span { display: block; color: var(--muted); font-size: 14px; margin-top: 10px; }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding: 22px 0; overflow: hidden; background: var(--bg-2); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: scroll 40s linear infinite; }
.marquee-track span { font: 500 15px/1 var(--mono); color: var(--dim); white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.marquee-track span::after { content: "✦"; color: var(--accent); opacity: .5; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Cards / generic ---------- */
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font: 500 12px/1 var(--mono); padding: 7px 10px; border-radius: 8px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line); color: var(--muted);
}
.tag.hl { color: var(--accent); border-color: rgba(94,234,212,.25); background: rgba(94,234,212,.06); }
.check-list li { position: relative; padding-left: 28px; color: var(--muted); margin-bottom: 10px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 5px;
  background: rgba(94,234,212,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%235eead4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.check-list li strong { color: var(--text); font-weight: 600; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service { padding: 30px; transition: border-color .25s, transform .25s; }
.service:hover { border-color: rgba(94,234,212,.35); transform: translateY(-4px); }
.service .ico {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 20px; margin-bottom: 22px;
  background: rgba(94,234,212,.1); color: var(--accent); border: 1px solid rgba(94,234,212,.2);
}
.service:nth-child(3n+2) .ico { background: rgba(139,157,255,.1); color: var(--accent-3); border-color: rgba(139,157,255,.25); }
.service:nth-child(3n) .ico { background: rgba(245,184,81,.1); color: var(--accent-2); border-color: rgba(245,184,81,.25); }
.service h3 { font-size: 21px; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: 15px; }

/* ---------- Featured project (CRM) ---------- */
.feature { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.feature h3 { font-size: clamp(28px, 3vw, 38px); margin: 16px 0 16px; }
.feature .desc { color: var(--muted); font-size: 17px; margin-bottom: 26px; }
.demo-box {
  margin-top: 28px; padding: 20px; border-radius: var(--radius-sm); border: 1px dashed rgba(94,234,212,.35);
  background: rgba(94,234,212,.04);
}
.demo-box .row { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 12px 0 16px; font-size: 14px; color: var(--muted); }
.demo-box code { font-family: var(--mono); color: var(--text); background: rgba(255,255,255,.06); padding: 3px 8px; border-radius: 6px; }
.demo-box .btns { display: flex; flex-wrap: wrap; gap: 10px; }

.browser {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: #fff; box-shadow: var(--shadow);
}
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #1b2232; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a4458; display: block; }
.browser-bar i:nth-child(1) { background: #ff5f57; } .browser-bar i:nth-child(2) { background: #febc2e; } .browser-bar i:nth-child(3) { background: #28c840; }
.browser-bar .url { margin-left: 10px; flex: 1; font: 12px/1 var(--mono); color: var(--dim); background: rgba(255,255,255,.05); padding: 6px 10px; border-radius: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.browser img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; object-position: top left; transition: opacity .3s; }
.shots { margin-top: 14px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.shots button {
  padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--surface);
  opacity: .55; transition: opacity .2s, border-color .2s; position: relative;
}
.shots button img { aspect-ratio: 16/10; object-fit: cover; object-position: top left; width: 100%; }
.shots button.active, .shots button:hover { opacity: 1; border-color: var(--accent); }
.shot-caption { margin-top: 12px; font-size: 14px; color: var(--muted); min-height: 24px; }
.shot-caption b { color: var(--text); }

/* ---------- Apps ---------- */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.app { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, border-color .25s; }
.app:hover { transform: translateY(-6px); border-color: var(--line-2); }
.app-cover { position: relative; aspect-ratio: 1024/500; overflow: hidden; }
.app-cover img { width: 100%; height: 100%; object-fit: cover; }
.app-body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.app-head { display: flex; align-items: center; gap: 14px; }
.app-head img { width: 52px; height: 52px; border-radius: 14px; border: 1px solid var(--line); }
.app-head h3 { font-size: 20px; }
.app-head span { font-size: 13px; color: var(--dim); }
.app p { color: var(--muted); font-size: 15px; }
.app .phones { display: flex; gap: 8px; margin-top: 4px; }
.app .phones img { width: calc(33.33% - 6px); border-radius: 10px; border: 1px solid var(--line); aspect-ratio: 9/16; object-fit: cover; object-position: top; }
.app .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 6px; }
.play-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 13px; border-radius: 10px;
  background: #000; border: 1px solid var(--line-2); font-size: 13px; line-height: 1.1;
}
.play-btn i { font-size: 18px; color: var(--accent); }
.play-btn small { display: block; font-size: 10px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.app-note {
  margin-top: 26px; padding: 18px 22px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  display: flex; gap: 16px; align-items: center; color: var(--muted); font-size: 15px; background: var(--bg-2);
}
.app-note i { color: var(--accent-2); font-size: 20px; }

/* ---------- Case studies ---------- */
.case { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 64px 0; border-top: 1px solid var(--line); }
.case:first-of-type { border-top: 0; padding-top: 0; }
.case > *, .feature > *, .hero-grid > * { min-width: 0; }
.case.reverse .case-visual { order: -1; }
.case-num { font: 600 13px/1 var(--mono); color: var(--dim); }
.case h3 { font-size: clamp(26px, 2.8vw, 34px); margin: 14px 0 14px; }
.case .desc { color: var(--muted); margin-bottom: 22px; font-size: 16.5px; }
.case .check-list { margin-bottom: 22px; }
.nda { display: inline-flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--dim); margin-top: 16px; }

/* Picking mock */
.pick-stage {
  position: relative; border-radius: 22px; padding: 34px; overflow: hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(94,234,212,.18), transparent 50%),
    radial-gradient(circle at 90% 90%, rgba(139,157,255,.18), transparent 55%),
    var(--surface);
  border: 1px solid var(--line);
  display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center;
}
.device {
  width: 230px; border-radius: 30px; padding: 12px; background: #05070b; border: 1px solid #2a3245; box-shadow: var(--shadow);
}
.device .screen { border-radius: 20px; overflow: hidden; background: #f6f7f9; color: #111827; font-size: 11px; }
.device .s-top { background: #0f172a; color: #fff; padding: 12px 12px 10px; }
.device .s-top b { font-size: 12.5px; display: block; }
.device .s-top span { color: #94a3b8; font-size: 10px; }
.device .progress { height: 5px; background: #1e293b; border-radius: 9px; margin-top: 9px; overflow: hidden; }
.device .progress i { display: block; height: 100%; width: 57%; background: var(--accent); border-radius: 9px; animation: grow 3s ease-in-out infinite alternate; }
@keyframes grow { from { width: 42%; } to { width: 71%; } }
.device .scan { margin: 10px; padding: 8px 10px; border-radius: 10px; background: #fff; border: 2px solid var(--accent); display: flex; align-items: center; gap: 8px; color: #64748b; font-family: var(--mono); font-size: 10px; position: relative; overflow: hidden; }
.device .scan::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: #ef4444; top: 50%; animation: laser 1.6s ease-in-out infinite; opacity: .7; }
@keyframes laser { 0%,100% { transform: translateY(-9px); } 50% { transform: translateY(9px); } }
.device .item { margin: 0 10px 7px; padding: 8px 10px; border-radius: 10px; background: #fff; border: 1px solid #e5e7eb; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; }
.device .item b { font-size: 10.5px; }
.device .item small { color: #64748b; font-size: 9.5px; font-family: var(--mono); }
.device .item em { grid-row: span 2; align-self: center; font-style: normal; font-weight: 700; font-size: 11px; padding: 4px 7px; border-radius: 7px; background: #f1f5f9; }
.device .item.ok { border-color: #a7f3d0; background: #ecfdf5; }
.device .item.ok em { background: #10b981; color: #fff; }
.device .item.now { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(94,234,212,.25); }
.device .s-btn { margin: 10px; padding: 9px; text-align: center; border-radius: 10px; background: #0f172a; color: #fff; font-weight: 600; font-size: 11px; }
.flow { display: grid; gap: 10px; }
.flow-step { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: rgba(10,13,20,.55); border: 1px solid var(--line); font-size: 13.5px; }
.flow-step i { color: var(--accent); width: 18px; text-align: center; margin-top: 3px; }
.flow-step b { display: block; font-size: 14px; }
.flow-step span { color: var(--muted); font-size: 12.5px; line-height: 1.45; display: block; }
.flow-step.sap i { color: var(--accent-2); }

/* FEL mock */
.fel-stage { border-radius: 22px; padding: 30px; background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.fel-stage::before { content: ""; position: absolute; width: 300px; height: 300px; right: -80px; top: -80px; background: radial-gradient(circle, rgba(245,184,81,.2), transparent 65%); }
.invoice {
  position: relative; background: #fbfaf7; color: #1f2937; border-radius: 14px; padding: 20px 22px; box-shadow: var(--shadow);
  font-size: 12px; max-width: 360px;
}
.invoice .inv-h { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px dashed #d1d5db; padding-bottom: 12px; margin-bottom: 12px; }
.invoice .inv-h b { font-family: var(--display); font-size: 16px; }
.invoice .inv-h small { display: block; color: #6b7280; font-family: var(--mono); font-size: 10px; }
.invoice .stamp { border: 2px solid #059669; color: #059669; font: 700 10px/1 var(--mono); padding: 6px 8px; border-radius: 6px; transform: rotate(-6deg); letter-spacing: .08em; }
.invoice .line { display: flex; justify-content: space-between; padding: 4px 0; color: #4b5563; }
.invoice .total { display: flex; justify-content: space-between; border-top: 1px solid #e5e7eb; margin-top: 8px; padding-top: 10px; font-weight: 700; font-size: 14px; }
.invoice .uuid { margin-top: 12px; padding: 8px 10px; background: #f3f4f6; border-radius: 8px; font: 10px/1.4 var(--mono); color: #6b7280; word-break: break-all; }
.code-card {
  position: relative; margin: -40px 0 0 auto; max-width: 340px; background: #0b1020; border: 1px solid var(--line-2); border-radius: 14px;
  font: 11.5px/1.6 var(--mono); color: #a5b4cc; padding: 16px 18px; box-shadow: var(--shadow); z-index: 2; overflow-x: auto;
}
.code-card .k { color: #8b9dff; } .code-card .s { color: #5eead4; } .code-card .c { color: #5b6780; } .code-card .n { color: #f5b851; }

/* Maps */
.maps-stage { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: 440px; }
.maps-stage figure { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); position: relative; background: var(--surface); }
.maps-stage figure:first-child { grid-row: span 2; }
.maps-stage img { width: 100%; height: 100%; object-fit: cover; }
.maps-stage figcaption { position: absolute; left: 10px; bottom: 10px; font: 600 11px/1 var(--mono); padding: 7px 9px; border-radius: 7px; background: rgba(10,13,20,.85); color: var(--text); }

/* Integrations hub */
.hub { position: relative; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); padding: 26px; overflow: hidden; }
.hub svg { width: 100%; height: auto; display: block; }
.hub .node rect { fill: #0f1522; stroke: rgba(255,255,255,.14); }
.hub .node text { fill: #e8ecf3; font: 600 12px var(--font); }
.hub .node text.sub { fill: #8794a9; font: 500 10px var(--mono); }
.hub .core rect { fill: #2a2416; stroke: #f5b851; }
.hub .wire { stroke: rgba(94,234,212,.35); stroke-width: 1.5; fill: none; stroke-dasharray: 4 6; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -20; } }

/* ---------- Stack ---------- */
.stack { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stack .card h4 { font-size: 16px; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.stack .card h4 i { color: var(--accent); }
.polyglot {
  margin-top: 18px; padding: 30px 34px; border-radius: var(--radius); border: 1px solid rgba(94,234,212,.25);
  background: linear-gradient(110deg, rgba(94,234,212,.08), rgba(139,157,255,.06));
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.polyglot h3 { font-size: 24px; flex: 1 1 320px; }
.polyglot p { flex: 2 1 380px; color: var(--muted); }

/* ---------- Experience ---------- */
.timeline { position: relative; display: grid; gap: 14px; }
.job { display: grid; grid-template-columns: 200px 1fr; gap: 30px; padding: 26px 28px; }
.job .when { font: 500 13px/1.5 var(--mono); color: var(--dim); }
.job .when b { display: block; color: var(--accent); font-weight: 600; }
.job h3 { font-size: 19px; margin-bottom: 4px; }
.job .org { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.job p { color: var(--muted); font-size: 15px; }
.edu { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.edu .card { display: flex; gap: 16px; align-items: center; padding: 22px 24px; }
.edu i { font-size: 22px; color: var(--accent-3); }
.edu b { display: block; }
.edu span { color: var(--muted); font-size: 14px; }

/* ---------- Contact ---------- */
.contact {
  border-radius: 28px; padding: clamp(36px, 6vw, 72px); text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, rgba(94,234,212,.18), transparent 60%), var(--surface);
  border: 1px solid var(--line-2);
}
.contact h2 { font-size: clamp(32px, 5vw, 58px); margin: 18px auto 18px; max-width: 820px; }
.contact p { color: var(--muted); max-width: 620px; margin: 0 auto 34px; font-size: 18px; }
.contact .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.contact-meta { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; margin-top: 34px; color: var(--muted); font-size: 14.5px; }
.contact-meta span { display: inline-flex; align-items: center; gap: 8px; }
.contact-meta i { color: var(--accent); }

footer { padding: 40px 0 50px; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5,7,11,.92); display: none; place-items: center; padding: 30px; cursor: zoom-out; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 90vh; border-radius: 12px; box-shadow: var(--shadow); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  * { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .stack { grid-template-columns: repeat(2, 1fr); }
  .float-chip.c1 { left: -12px; } .float-chip.c2 { right: -12px; }
}
@media (max-width: 960px) {
  section { padding: 84px 0; }
  .hero-grid, .feature, .case { grid-template-columns: 1fr; gap: 40px; }
  .case.reverse .case-visual { order: 0; }
  .hero-photo { max-width: 380px; }
  .services, .apps { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; padding: 20px 24px 26px; gap: 18px;
    background: rgba(10,13,20,.97); border-bottom: 1px solid var(--line); font-size: 16px;
  }
  .menu-btn { display: inline-grid; place-items: center; }
  .nav-actions .btn { display: none; }
  .nav-actions { margin-left: auto; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .hero { padding-top: 120px; }
  .services, .apps, .stack, .edu { grid-template-columns: 1fr; }
  .job { grid-template-columns: 1fr; gap: 10px; }
  .pick-stage { grid-template-columns: 1fr; justify-items: center; padding: 22px; }
  .maps-stage { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 150px; height: auto; }
  .maps-stage figure:first-child { grid-row: auto; grid-column: span 2; }
  .shots { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .code-card { margin: 14px 0 0; max-width: none; }
  .float-chip { display: none; }
  .stat { padding: 20px 18px; }
  .hero-cta .btn { flex: 1 1 auto; }
}
