/* ──────────────────────────────────────────
   LVM Dev — style.css
   Mobile-first.
   Breakpoints:
     - base:                < 760px (mobile)
     - @media (min-width: 760px):  tablet
     - @media (min-width: 1024px): desktop
   ────────────────────────────────────────── */


/* ── Variables ──────────────────────────── */
:root {
  /* Color */
  --bg: #1f2937;
  --bg-2: #2a3441;
  --surface: #2f3a48;
  --surface-2: #38434f;
  --border: #43505f;
  --border-2: #556373;
  --text: #f8fafc;
  --text-2: #c4ccd8;
  --text-3: #8b95a3;
  --accent: #2563eb;
  --accent-2: #3b82f6;
  --accent-glow: #1d4ed8;
  --accent-soft: rgba(59,130,246,0.12);

  /* Layout */
  --max: 1200px;
  --pad-x: 20px;
  --space-section: 72px;
  --radius: 14px;
  --ease: cubic-bezier(.2,.7,.2,1);

  /* Tipografía */
  --fs-h1: 36px;
  --fs-h2: 28px;
  --fs-lead: 16px;
  --fs-body: 15px;
}

@media (min-width: 760px) {
  :root {
    --pad-x: 32px;
    --space-section: 100px;
    --fs-h1: 56px;
    --fs-h2: 42px;
    --fs-lead: 17px;
    --fs-body: 16px;
  }
}

@media (min-width: 1024px) {
  :root {
    --pad-x: 40px;
    --space-section: 140px;
    --fs-h1: 88px;
    --fs-h2: 56px;
    --fs-lead: 18px;
    --fs-body: 16px;
  }
}


/* ── Reset & base ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: var(--fs-body);
  line-height: 1.55;
}
/* Bloquea scroll cuando el menú mobile está abierto */
body.menu-open { overflow: hidden; }

::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }


/* ── Background grain + gradient ───────── */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background:
    radial-gradient(800px 400px at 80% -10%, rgba(37,99,235,0.18), transparent 60%),
    radial-gradient(600px 300px at 0% 30%, rgba(59,130,246,0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' /></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.5'/></svg>");
  opacity: 0.025;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
}


/* ── Container & section ────────────────── */
section {
  position: relative;
  z-index: 2;
  padding: var(--space-section) var(--pad-x);
  width: 100%;
  max-width: 100%;
}
.container {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}


/* ── Tipografía ─────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--accent-2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 100px;
  max-width: 100%;
}
.eyebrow::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 8px var(--accent-2);
  flex-shrink: 0;
}

.h1 {
  font-size: var(--fs-h1);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 20px 0 24px;
  /* Distribuye palabras de forma equilibrada sin partir con guión */
  text-wrap: balance;
  overflow-wrap: break-word;
  max-width: 100%;
}
.h1 em { font-style: italic; font-weight: 400; color: var(--text-2); }
.h1 .accent { color: var(--accent-2); }

.h2 {
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
  max-width: 100%;
}
.h2 em { font-style: italic; color: var(--text-2); font-weight: 400; }

.lead {
  font-size: var(--fs-lead);
  color: var(--text-2);
  max-width: 580px;
  line-height: 1.55;
  text-wrap: pretty;
  overflow-wrap: break-word;
}

@media (min-width: 1024px) {
  .h1 { line-height: 1; letter-spacing: -0.04em; margin: 24px 0 28px; }
}


/* ── Header ─────────────────────────────── */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px var(--pad-x);
  width: 100%;
  max-width: 100%;
  transition: background .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(31,41,55,0.85);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

/* Logo (compartido entre header y menú mobile) */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
}
.logo-mark {
  width: 44px;
  height: 32px;
  flex-shrink: 0;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  min-width: 0;
  overflow: hidden;
}
.logo-text .name {
  color: var(--text);
  font-size: 19px;
  font-weight: 700;
  font-family: 'Outfit', system-ui, sans-serif;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo-text .sub {
  color: var(--text-3);
  font-size: 13px;
  font-weight: 400;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* En pantallas muy chicas oculto el subtítulo del logo */
@media (max-width: 380px) {
  .logo-text .sub { display: none; }
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.nav a:not(.cta-pill) {
  display: none;
  color: var(--text-2);
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav a:not(.cta-pill):hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

/* Botón "Pedir presupuesto" del header — oculto en mobile */
.cta-pill {
  display: none;
  padding: 9px 18px;
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  border-radius: 100px;
  border: none;
  white-space: nowrap;
  margin-left: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.cta-pill:hover {
  transform: translateY(-1px);
  background: #fff;
  color: var(--bg);
}

.menu-btn {
  background: none;
  border: none;
  color: var(--text);
  padding: 6px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

@media (min-width: 760px) {
  .header { padding: 18px var(--pad-x); }
  .logo-mark { width: 48px; height: 36px; }
  .logo-text .name { font-size: 20px; }
  .logo-text .sub { font-size: 13px; }
  .nav a:not(.cta-pill) { display: inline-block; }
  .cta-pill { display: inline-block; }
  .menu-btn { display: none; }
}

@media (min-width: 1024px) {
  .logo-mark { width: 52px; height: 38px; }
  .logo-text .name { font-size: 23px; }
  .logo-text .sub { font-size: 14px; margin-top: 6px; }
}


/* ── Mobile Menu ────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(31,41,55,0.96);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  display: flex;
  flex-direction: column;
  padding: 14px var(--pad-x) 24px;
  /* Oculto por defecto */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s;
}

@media (min-width: 760px) {
  /* En desktop el menú nunca aparece */
  .mobile-menu { display: none; }
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.mobile-menu-close {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background .2s var(--ease);
}
.mobile-menu-close:hover { background: var(--surface); }

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 4px;
}
.mobile-menu-nav a {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 8px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  transition: padding .2s var(--ease), color .2s var(--ease);
}
.mobile-menu-nav a:hover,
.mobile-menu-nav a:active {
  padding-left: 16px;
  color: var(--accent-2);
}
.mobile-menu-nav a:hover .num,
.mobile-menu-nav a:active .num {
  color: var(--accent-2);
}
.mobile-menu-nav a .num {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  transition: color .2s var(--ease);
}
.mobile-menu-nav a .label {
  flex: 1;
}
.mobile-menu-nav a svg {
  color: var(--text-3);
  flex-shrink: 0;
}

.mobile-menu-footer {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-menu-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 24px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 100px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset, 0 8px 24px -8px var(--accent-glow);
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.mobile-menu-cta:hover,
.mobile-menu-cta:active {
  background: var(--accent-2);
  transform: translateY(-1px);
}

.mobile-menu-channels {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.mobile-menu-channels a {
  font-size: 13px;
  color: var(--text-3);
  font-family: 'Geist Mono', monospace;
}
.mobile-menu-channels a:hover { color: var(--text-2); }
.mobile-menu-channels span { color: var(--text-3); font-size: 12px; }


/* ── Hero ───────────────────────────────── */
.hero {
  padding-top: 100px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

.hero-grid > div {
  min-width: 0;
}

.hero-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 100px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset, 0 8px 24px -8px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-1px); background: var(--accent-2); }
.btn-ghost {
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border-color: var(--border-2);
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: #3a4356; }
.btn .arrow {
  display: inline-block;
  transition: transform .2s var(--ease);
}
.btn:hover .arrow { transform: translate(2px, -2px); }

.hero-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  margin-top: 48px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-meta > div {
  padding: 18px 20px;
  background: var(--bg);
  min-width: 0;
}
.hero-meta .num {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--accent-2);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.hero-meta .lbl { font-size: 14px; color: var(--text); }
.hero-meta .desc { font-size: 12px; color: var(--text-3); margin-top: 4px; }

@media (min-width: 760px) {
  .hero { padding-top: 130px; }
  .hero-grid { gap: 48px; }
  .hero-cta { gap: 14px; margin-top: 32px; }
  .btn { padding: 16px 26px; font-size: 14px; }
  .hero-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 64px; }
  .hero-meta > div { padding: 22px 24px; }
}

@media (min-width: 1024px) {
  .hero { padding-top: 160px; min-height: 100vh; justify-content: center; }
  .hero-meta { margin-top: 80px; }
}


/* ── Ticker ─────────────────────────────── */
.ticker {
  margin-top: 56px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 14px 0;
  width: 100%;
  max-width: 100%;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker-track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: scroll 38s linear infinite;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ticker-track span {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 32px;
  flex-shrink: 0;
}
.ticker-track span::after { content: "✦"; color: var(--accent-2); }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (min-width: 760px) {
  .ticker { margin-top: 80px; padding: 18px 0; }
  .ticker-track { gap: 48px; font-size: 13px; }
  .ticker-track span { gap: 48px; }
}


/* ── Section head ───────────────────────── */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.section-head .h2 { margin-top: 16px; }

@media (min-width: 880px) {
  .section-head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 60px;
    margin-bottom: 80px;
    align-items: end;
  }
  .section-head .h2 { margin-top: 24px; }
}


/* ── Services ───────────────────────────── */
.services {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.service {
  position: relative;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.service::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(600px 200px at var(--mx,50%) var(--my,0%), rgba(59,130,246,0.08), transparent 60%);
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
}
.service:hover { border-color: var(--border-2); transform: translateY(-2px); }
.service:hover::before { opacity: 1; }

.service-num {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--accent-2);
  letter-spacing: 0.1em;
}
.service-icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  margin: 18px 0 24px;
  color: var(--accent-2);
  flex-shrink: 0;
}
.service h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  overflow-wrap: break-word;
}
.service p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 24px;
  flex: 1;
  overflow-wrap: break-word;
  text-wrap: pretty;
}
.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.service-list li {
  font-size: 13px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-wrap: break-word;
}
.service-list li::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent-2);
  flex-shrink: 0;
}

@media (min-width: 760px) {
  .services { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
  .service { padding: 36px; min-height: 320px; }
  .service h3 { font-size: 24px; }
}


/* ── Portfolio ──────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.project {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .3s var(--ease), transform .4s var(--ease);
  min-width: 0;
}
.project:hover { border-color: var(--accent); transform: translateY(-4px); }

.project-media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--bg-2);
}
.project-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform .6s var(--ease), filter .4s var(--ease);
  filter: saturate(0.92);
}
.project-media.placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2f3a48 0%, #1f2937 100%);
}
.project-media.placeholder::after {
  content: attr(data-name);
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.project:hover .project-media img { transform: scale(1.04); filter: saturate(1.1); }

.project-badge {
  position: absolute;
  top: 14px; right: 14px;
  padding: 6px 10px;
  background: rgba(31,41,55,0.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 1;
}

.project-info {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}
.project-info > div:first-child {
  min-width: 0;
  flex: 1;
}
.project-info h4 {
  font-size: 17px;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-info .cat {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}
.project-info .arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text-2);
  flex-shrink: 0;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.project-info .arrow svg { transition: transform .3s var(--ease); }
.project:hover .project-info .arrow {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.project:hover .project-info .arrow svg { transform: translate(2px, -2px); }

@media (hover: hover) {
  /* En desktop el badge aparece solo al hover */
  .project-badge {
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .3s var(--ease), transform .3s var(--ease);
  }
  .project:hover .project-badge { opacity: 1; transform: translateY(0); }
}

@media (min-width: 600px) {
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (min-width: 1024px) {
  .portfolio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .project-info { padding: 22px 24px; }
}


/* ── Modal ──────────────────────────────── */
.modal {
  position: fixed; inset: 0;
  background: rgba(20,26,36,0.85);
  backdrop-filter: blur(8px);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.modal.open { display: flex; opacity: 1; }
.modal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  transform: scale(0.96);
  transition: transform .3s var(--ease);
}
.modal.open .modal-card { transform: scale(1); }
.modal-media {
  aspect-ratio: 3 / 2;
  background: var(--bg-2);
  overflow: hidden;
}
.modal-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top;
}
.modal-body { padding: 28px 24px 32px; position: relative; }
.modal-body .cat {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--accent-2);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.modal-body h3 {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 8px 0 16px;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.modal-body p {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 640px;
  overflow-wrap: break-word;
  text-wrap: pretty;
}
.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.modal-meta div .l {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: 'Geist Mono', monospace;
}
.modal-meta div .v {
  font-size: 14px;
  color: var(--text);
  margin-top: 4px;
  overflow-wrap: break-word;
}
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(31,41,55,0.85);
  border: 1px solid var(--border-2);
  color: #fff;
  display: grid;
  place-items: center;
  backdrop-filter: blur(8px);
}

@media (min-width: 760px) {
  .modal { padding: 32px; }
  .modal-card { border-radius: 18px; }
  .modal-body { padding: 36px 40px 40px; }
  .modal-body h3 { font-size: 36px; }
  .modal-body p { font-size: 15px; }
  .modal-meta { gap: 24px; }
  .modal-close { top: 24px; right: 24px; width: 40px; height: 40px; }
}


/* ── About ──────────────────────────────── */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.about-portrait {
  aspect-ratio: 1 / 1;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
  align-self: center;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 30% 30%, rgba(59,130,246,0.4), transparent 50%),
    linear-gradient(135deg, #3d4a5c 0%, #2a3441 100%);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.about-portrait::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}
.about-glyph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
  color: rgba(255,255,255,0.85);
}
.about-glyph svg { max-width: 60%; height: auto; }

.about-tag {
  position: absolute;
  bottom: 20px; left: 20px; right: 20px;
  z-index: 3;
  padding: 14px 16px;
  background: rgba(31,41,55,0.78);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.about-tag > div:first-child { min-width: 0; overflow: hidden; }
.about-tag .name { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.about-tag .role { font-size: 12px; color: var(--text-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.about-tag .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  flex-shrink: 0;
}

.about-text { min-width: 0; }
.about-text h2 { margin-bottom: 20px; }
.about-text p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 20px;
  max-width: 540px;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}
.about-stats .num {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text);
}
.about-stats .num em { font-style: normal; color: var(--accent-2); }
.about-stats .lbl { font-size: 13px; color: var(--text-3); margin-top: 4px; }

@media (min-width: 880px) {
  .about { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; }
  .about-portrait { max-width: 480px; }
  .about-text p { font-size: 16px; }
  .about-text h2 { margin-bottom: 28px; }
  .about-stats { padding-top: 32px; margin-top: 36px; }
  .about-stats .num { font-size: 36px; }
}


/* ── Contact ────────────────────────────── */
.contact-wrap {
  background:
    radial-gradient(800px 300px at 50% 0%, rgba(37,99,235,0.18), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}
.contact-wrap::before {
  content: "";
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}
.contact-info { min-width: 0; }
.contact-info h2 { margin-bottom: 20px; }
.contact-info p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
  max-width: 440px;
  overflow-wrap: break-word;
  text-wrap: pretty;
}
.contact-channels {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.contact-channel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: var(--surface-2);
  transition: background .2s var(--ease);
  gap: 12px;
  min-width: 0;
}
.contact-channel:hover { background: #1c2230; }
.contact-channel .left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}
.contact-channel .left > div:last-child { min-width: 0; overflow: hidden; }
.contact-channel .ico {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  color: var(--accent-2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.contact-channel .lbl {
  font-size: 11px;
  color: var(--text-3);
  font-family: 'Geist Mono', monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contact-channel .val {
  font-size: 14px;
  color: var(--text);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contact-channel .arr {
  color: var(--text-3);
  flex-shrink: 0;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.field label {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.field input,
.field select,
.field textarea {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color .2s var(--ease), background .2s var(--ease);
  width: 100%;
  max-width: 100%;
}
.field textarea {
  resize: vertical;
  min-height: 120px;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  background: #252f3d;
}
.field input.error,
.field textarea.error { border-color: #ef4444; }
.field .err {
  font-size: 12px;
  color: #ef4444;
  min-height: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.submit-btn {
  margin-top: 8px;
  padding: 16px 28px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform .2s var(--ease), background .2s var(--ease);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset, 0 8px 24px -8px var(--accent-glow);
}
.submit-btn:hover { transform: translateY(-1px); background: var(--accent-2); }
.submit-btn:disabled { opacity: 0.6; cursor: wait; }

.form-success {
  display: none;
  padding: 28px;
  text-align: center;
  border: 1px solid rgba(34,197,94,0.3);
  background: rgba(34,197,94,0.06);
  border-radius: 12px;
  color: var(--text);
}
.form-success.show { display: block; }
.form-success .check {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(34,197,94,0.15);
  color: #22c55e;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}

@media (min-width: 600px) {
  .form-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (min-width: 760px) {
  .contact-wrap { padding: 56px 40px; border-radius: 20px; }
  .contact-info h2 { margin-bottom: 24px; }
  .contact-info p { font-size: 16px; }
}

@media (min-width: 880px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; }
  .contact-wrap { padding: 80px clamp(40px, 6vw, 80px); }
}


/* ── Footer ─────────────────────────────── */
footer {
  padding: 40px var(--pad-x) 32px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-inner small {
  font-size: 11px;
  color: var(--text-3);
  font-family: 'Geist Mono', monospace;
  letter-spacing: 0.04em;
  overflow-wrap: break-word;
}
.footer-links {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-2);
}
.footer-links a:hover { color: var(--text); }

@media (min-width: 760px) {
  footer { padding: 60px var(--pad-x) 40px; }
  .footer-inner small { font-size: 12px; }
  .footer-links { gap: 24px; }
}


/* ── Reveal animations ──────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: 400ms; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: 480ms; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: 560ms; }
.reveal-stagger.in > *:nth-child(9) { transition-delay: 640ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
}
