@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,300;12..96,400;12..96,500;12..96,700;12..96,800&family=Instrument+Serif:ital@0;1&display=swap');

/* ─────────────────────────────────────────
   TOKENS
───────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:      #0a0a0f;
  --bg2:     #111118;
  --bg3:     #18181f;
  --surface: #1e1e28;

  /* Brand — principal */
  --brand:      #5464ff;
  --brand-dark: #3d52ff;
  --brand-dim:  rgba(84, 100, 255, 0.14);
  --brand-glow: rgba(84, 100, 255, 0.28);

  /* Acento cálido (destacados secundarios) */
  --accent:     #ff6b6b;
  --accent-dim: rgba(255, 107, 107, 0.12);

  /* Estado / indicadores */
  --green:     #22d3a5;
  --green-dim: rgba(34, 211, 165, 0.1);
  --yellow:    #f5c842;

  /* Tipografía */
  --white: #f0f0f5;
  --muted: #7070a0;

  /* Bordes */
  --border: rgba(255, 255, 255, 0.07);

  /* UI */
  --r:  8px;
  --rl: 16px;
  --t:  0.3s cubic-bezier(.25, .46, .45, .94);
}

/* ─────────────────────────────────────────
   RESET
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Bricolage Grotesque', sans-serif;
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ─────────────────────────────────────────
   CURSOR
───────────────────────────────────────── */
#cur {
  width: 10px; height: 10px;
  background: var(--brand);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s, background .2s, opacity .2s;
  mix-blend-mode: screen;
}
#cur.big { width: 40px; height: 40px; background: var(--green); opacity: .5; }

/* ─────────────────────────────────────────
   NOISE
───────────────────────────────────────── */
body::before {
  content: ''; position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .03; pointer-events: none; z-index: 1000;
}

/* ─────────────────────────────────────────
   TYPOGRAPHY
───────────────────────────────────────── */
h1, h2, h3 { font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.serif { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; }
.label { font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* ─────────────────────────────────────────
   LAYOUT
───────────────────────────────────────── */
.wrap { width: min(100%, 1160px); margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 3rem); }

/* ─────────────────────────────────────────
   NAV
───────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 1.5rem 0;
  transition: background var(--t), backdrop-filter var(--t);
}
nav.sc {
  background: rgba(10, 10, 15, .88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; }
.nav-logo-img { height: 36px; width: auto; display: block; transition: opacity var(--t); }
.nav-logo-img:hover { opacity: .8; }
.nav-dot { display: none; }
.footer-logo-img { height: 28px; width: auto; display: block; opacity: .7; }
@keyframes pulse { 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.5); opacity:.6; } }

.nav-links { display: flex; align-items: center; gap: 2.5rem; }
.nav-links a { font-size: .85rem; font-weight: 500; color: var(--muted); transition: color var(--t); position: relative; }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--brand);
  transform: scaleX(0); transform-origin: right; transition: transform var(--t);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  font-size: .82rem !important; font-weight: 700 !important;
  border: 1px solid var(--border) !important;
  padding: .5rem 1.25rem !important; border-radius: 100px !important;
  color: var(--white) !important;
  transition: background var(--t), border-color var(--t) !important;
}
.nav-cta:hover { background: var(--surface) !important; border-color: rgba(255,255,255,.2) !important; }
.nav-cta::after { display: none !important; }

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: none; padding: 4px; }
.nav-burger span { display: block; width: 22px; height: 1.5px; background: var(--white); border-radius: 2px; transition: var(--t); }

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
#hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 5rem 0 4rem; position: relative; overflow: hidden; }

#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; opacity: .45; }

.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(130px); will-change: transform; }
.orb1 { width: 650px; height: 650px; top: -200px; right: -100px; background: radial-gradient(circle, rgba(84,100,255,.22) 0%, transparent 70%); }
.orb2 { width: 450px; height: 450px; bottom: -120px; left: -120px; background: radial-gradient(circle, rgba(34,211,165,.12) 0%, transparent 70%); }
.orb3 { width: 350px; height: 350px; top: 35%; left: 38%; background: radial-gradient(circle, rgba(255,107,107,.07) 0%, transparent 70%); }

.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: clamp(2rem, 5vw, 4rem); }
.hero-top { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 2rem; }
.hero-tags { display: flex; flex-direction: column; gap: .75rem; }
.hero-tag { display: inline-flex; align-items: center; gap: .6rem; font-size: .78rem; font-weight: 600; color: var(--muted); }
.hero-tag-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.hero-tag-dot.brand { background: var(--brand); }
.hero-status { display: flex; align-items: center; gap: .6rem; font-size: .78rem; font-weight: 600; color: var(--green); background: var(--green-dim); border: 1px solid rgba(34,211,165,.15); padding: .4rem .9rem; border-radius: 100px; align-self: flex-start; }
.hero-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2s ease-in-out infinite; }

/* Staggered fade-in */
.hero-fade { opacity: 0; transform: translateY(16px); transition: opacity .7s ease var(--d,0s), transform .7s ease var(--d,0s); }
.hero-fade.in { opacity: 1; transform: none; }

/* Title lines animate up */
.hero-body { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: end; }
h1.hero-title { font-size: clamp(3.5rem, 7vw, 7rem); font-weight: 800; letter-spacing: -0.05em; line-height: .92; }
.hero-line { display: inline-block; opacity: 0; transform: translateY(44px) skewY(2deg); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.hero-line:nth-child(1) { transition-delay: .25s; }
.hero-line:nth-child(3) { transition-delay: .42s; }
.hero-line:nth-child(5) { transition-delay: .59s; }
.hero-line.in { opacity: 1; transform: none; }
h1.hero-title .accent { color: var(--brand); }
h1.hero-title em.soft { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; color: var(--muted); }

.hero-foot { display: flex; flex-direction: column; gap: 2rem; padding-bottom: .25rem; }
.hero-desc { font-size: clamp(.9rem, 1.4vw, 1.05rem); line-height: 1.75; color: var(--muted); max-width: 44ch; }
.hero-desc strong { color: var(--white); font-weight: 600; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* Stats row */
.hero-stats { display: flex; align-items: center; gap: 2rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.hstat { display: flex; flex-direction: column; gap: .1rem; }
.hstat-num { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -0.05em; color: var(--brand); line-height: 1; font-variant-numeric: tabular-nums; display: inline; }
.hstat-plus { font-size: 1.2rem; font-weight: 800; color: var(--brand); }
.hstat-label { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: .3rem; }
.hstat-div { width: 1px; height: 2.5rem; background: var(--border); flex-shrink: 0; }


.btn-primary { display: inline-flex; align-items: center; gap: .6rem; font-size: .9rem; font-weight: 700; background: var(--brand); color: var(--white); padding: .9rem 1.75rem; border-radius: 100px; transition: background var(--t), transform var(--t), box-shadow var(--t); box-shadow: 0 0 40px var(--brand-glow); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 0 60px rgba(84,100,255,.45); }

.btn-ghost { display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; font-weight: 600; color: var(--muted); transition: color var(--t); }
.btn-ghost:hover { color: var(--white); }

.btn-send { background: var(--white); color: var(--bg); border: none; cursor: none; padding: 1rem 2rem; border-radius: 100px; font-family: 'Bricolage Grotesque', sans-serif; font-size: .9rem; font-weight: 800; transition: background var(--t), transform var(--t); align-self: flex-start; display: flex; align-items: center; gap: .5rem; }
.btn-send:hover { background: var(--brand); color: var(--white); transform: translateY(-2px); }

/* ─────────────────────────────────────────
   MARQUEE
───────────────────────────────────────── */
.marquee-wrap { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; padding: 1rem 0; background: var(--bg2); }
.marquee-track { display: flex; gap: 3rem; animation: marquee 22s linear infinite; width: max-content; }
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item { display: flex; align-items: center; gap: .75rem; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.marquee-item svg { color: var(--brand); flex-shrink: 0; }

/* ─────────────────────────────────────────
   ABOUT
───────────────────────────────────────── */
#about { padding: clamp(5rem, 10vw, 8rem) 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(3rem, 6vw, 7rem); align-items: center; }
.about-photo-area { position: relative; }
.about-photo-frame { aspect-ratio: 3/4; border-radius: var(--rl); overflow: hidden; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; position: relative; }
.about-photo-frame::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(84,100,255,.05) 0%, rgba(34,211,165,.05) 100%); }
.photo-placeholder { display: flex; flex-direction: column; align-items: center; gap: 1rem; position: relative; z-index: 1; }
.photo-placeholder svg { opacity: .15; }
.photo-placeholder span { font-size: .72rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.about-float-card { position: absolute; bottom: -1.5rem; right: -1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--rl); padding: 1.25rem 1.5rem; min-width: 170px; }
.float-num { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.05em; color: var(--brand); line-height: 1; }
.float-label { font-size: .75rem; color: var(--muted); margin-top: .25rem; }
.about-content { display: flex; flex-direction: column; gap: 2rem; }
.about-intro { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.2; }
.about-body { font-size: .95rem; line-height: 1.8; color: var(--muted); }
.about-body strong { color: var(--white); font-weight: 600; }
.about-body p + p { margin-top: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { font-size: .72rem; font-weight: 600; padding: .35rem .85rem; border-radius: 100px; border: 1px solid var(--border); color: var(--muted); transition: all var(--t); cursor: default; }
.chip:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-dim); }

/* ─────────────────────────────────────────
   PROJECTS
───────────────────────────────────────── */
#projects { padding: clamp(5rem, 10vw, 8rem) 0; background: var(--bg2); }
.section-head { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
.section-num { font-size: .7rem; font-weight: 700; letter-spacing: .15em; color: var(--brand); border: 1px solid var(--brand-dim); padding: .2rem .6rem; border-radius: 4px; }

/* Grid cards */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--rl);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
  cursor: none;
}
.project-card:hover {
  border-color: rgba(84,100,255,.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(84,100,255,.12);
}
.project-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}
.project-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.project-card:hover .project-thumb img { transform: scale(1.04); }
.project-thumb-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(84,100,255,.15) 0%, rgba(34,211,165,.06) 100%);
  position: relative;
}
.project-thumb-placeholder::after {
  content: 'Image placeholder';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(84,100,255,.3);
}
.project-card-body {
  padding: 1.5rem;
  display: flex; flex-direction: column; gap: .65rem;
  flex: 1;
}
.project-card h3 { font-size: 1rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.project-card p { font-size: .82rem; color: var(--muted); line-height: 1.55; flex: 1; }

/* Keep row-meta, row-tags, row-tag, row-client, row-via for cards too */
.row-meta { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.row-client { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.row-via { font-size: .68rem; color: var(--muted); }
.row-tags { display: flex; gap: .4rem; flex-wrap: wrap; }
.row-tag { font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .18rem .5rem; border-radius: 3px; background: var(--bg3); color: var(--muted); }

/* ─────────────────────────────────────────
   TOOLS
───────────────────────────────────────── */
#tools { padding: clamp(5rem, 10vw, 8rem) 0; }
.tools-header { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: end; margin-bottom: 3rem; }
.tools-header h2 { font-size: clamp(2rem, 4vw, 3rem); }
.tools-header-right { font-size: .9rem; line-height: 1.75; color: var(--muted); }
.tools-header-right strong { color: var(--white); }
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tool-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--rl); padding: 1.75rem; display: flex; flex-direction: column; gap: 1rem; transition: border-color var(--t), transform var(--t); position: relative; overflow: hidden; }
.tool-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--brand), var(--green)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--t); }
.tool-card:hover { border-color: rgba(255,255,255,.12); transform: translateY(-3px); }
.tool-card:hover::after { transform: scaleX(1); }
.tool-emoji { font-size: 1.75rem; line-height: 1; }
.tool-card h3 { font-size: .95rem; font-weight: 700; letter-spacing: -.02em; }
.tool-card p { font-size: .82rem; line-height: 1.65; color: var(--muted); flex: 1; }
.tool-pill { display: inline-flex; align-items: center; gap: .4rem; font-size: .65rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .65rem; border-radius: 100px; align-self: flex-start; }
.tool-pill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.tool-pill.soon { background: rgba(245,200,66,.1); color: var(--yellow); border: 1px solid rgba(245,200,66,.2); }
.tool-pill.live { background: var(--green-dim); color: var(--green); border: 1px solid rgba(34,211,165,.2); }

/* ─────────────────────────────────────────
   CONTACT
───────────────────────────────────────── */
#contact { padding: clamp(5rem, 10vw, 8rem) 0; background: var(--bg2); position: relative; overflow: hidden; }
.contact-orb { position: absolute; bottom: -200px; right: -200px; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(84,100,255,.1) 0%, transparent 70%); pointer-events: none; }
.contact-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(3rem, 6vw, 7rem); align-items: start; position: relative; z-index: 1; }
.contact-left { display: flex; flex-direction: column; gap: 2rem; }
.contact-bigtext { font-size: clamp(2.2rem, 5vw, 4.5rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1.0; }
.contact-bigtext .serif { color: var(--brand); }
.contact-desc { font-size: .93rem; line-height: 1.75; color: var(--muted); }
.contact-desc strong { color: var(--white); }
.contact-email { display: inline-flex; align-items: center; gap: .6rem; font-size: .9rem; font-weight: 700; color: var(--green); transition: gap var(--t); }
.contact-email:hover { gap: 1rem; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.form-group input, .form-group textarea, .form-group select { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: .85rem 1rem; color: var(--white); font-family: 'Bricolage Grotesque', sans-serif; font-size: .9rem; transition: border-color var(--t), background var(--t); width: 100%; resize: none; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--muted); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--brand); background: var(--brand-dim); }
.form-group select option { background: var(--bg2); color: var(--white); }
#form-ok { font-size: .82rem; color: var(--green); display: none; padding-top: .25rem; }

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
footer { padding: 2rem 0; border-top: 1px solid var(--border); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-logo { display: flex; align-items: center; }
.footer-logo-img { height: 28px; width: auto; display: block; opacity: .85; transition: opacity var(--t); }
.footer-logo-img:hover { opacity: 1; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { font-size: .8rem; color: var(--muted); transition: color var(--t); }
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: .75rem; color: var(--muted); }

/* ─────────────────────────────────────────
   SCROLL REVEAL
───────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ─────────────────────────────────────────
   PROJECT PAGE
───────────────────────────────────────── */
.project-hero { min-height: 70vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 9rem 0 4rem; background: var(--bg2); position: relative; overflow: hidden; }
.project-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 80% at 70% 20%, rgba(84,100,255,.12) 0%, transparent 65%); pointer-events: none; }
.project-hero-grid { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: end; position: relative; z-index: 1; }
.project-hero-meta { display: flex; flex-direction: column; gap: 1.5rem; }
.project-hero-pills { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.project-hero h1 { font-size: clamp(2rem, 5vw, 4rem); font-weight: 800; letter-spacing: -.05em; line-height: 1.0; }
.project-hero > .wrap > .project-hero-grid > .project-hero-meta > p { color: var(--muted); line-height: 1.75; max-width: 52ch; font-size: .95rem; }
.project-desc { color: var(--muted); line-height: 1.75; max-width: 52ch; font-size: .95rem; }
.project-info-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--rl); padding: 1.75rem; display: flex; flex-direction: column; gap: 1.25rem; }
.info-row { display: flex; flex-direction: column; gap: .25rem; }
.info-row dt { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.info-row dd { font-size: .87rem; }
.project-cover { width: 100%; aspect-ratio: 21/9; background: linear-gradient(135deg, rgba(84,100,255,.1) 0%, rgba(34,211,165,.05) 100%); display: flex; align-items: center; justify-content: center; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.project-cover span { font-size: .7rem; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.project-body { padding: clamp(4rem, 8vw, 7rem) 0; }
.project-layout { display: grid; grid-template-columns: 250px 1fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; }
.project-sidebar { position: sticky; top: 7rem; display: flex; flex-direction: column; gap: 2rem; }
.sidebar-list { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.sidebar-list li { padding: .6rem .9rem; font-size: .82rem; border-bottom: 1px solid var(--border); color: var(--muted); }
.sidebar-list li:last-child { border-bottom: none; }
.project-content h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 800; letter-spacing: -.03em; margin: 2.5rem 0 1rem; }
.project-content h2:first-child { margin-top: 0; }
.project-content p { color: var(--muted); line-height: 1.85; margin-bottom: 1rem; }
.project-content strong { color: var(--white); }
.project-gallery { padding: 0 0 clamp(4rem, 8vw, 7rem); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--rl); display: flex; align-items: center; justify-content: center; }
.gallery-item:first-child { grid-column: span 2; aspect-ratio: 16/9; }
.gallery-item:not(:first-child) { aspect-ratio: 4/3; }
.gallery-item span { font-size: .68rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.project-nav { padding: 2.5rem 0; border-top: 1px solid var(--border); }
.project-nav-inner { display: flex; justify-content: space-between; align-items: center; }
.back-link { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; color: var(--muted); transition: color var(--t); }
.back-link:hover { color: var(--white); }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-body { grid-template-columns: 1fr; gap: 2rem; }
  .hero-stats { gap: 1.5rem; }
  .about-grid { grid-template-columns: 1fr; }
  .about-float-card { right: -.5rem; bottom: -.5rem; }
  .tools-header { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .project-hero-grid { grid-template-columns: 1fr; }
  .project-layout { grid-template-columns: 1fr; }
  .project-sidebar { position: static; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:first-child { grid-column: span 1; aspect-ratio: 4/3; }
}
@media (max-width: 640px) {
  body { cursor: auto; }
  #cur { display: none; }
  .nav-links { display: none; position: fixed; inset: 0; background: var(--bg); flex-direction: column; justify-content: center; align-items: center; gap: 2.5rem; }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.5rem; }
  .nav-burger { display: flex; position: relative; z-index: 201; }
  .projects-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}
