/* Torbelion - estilos */

/* Tipografías (alojadas en el propio servidor) */
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque-variable.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/geist-variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }


:root {
  --bg:      #0B0D12;
  --bg-2:    #12151D;
  --bg-3:    #1A1F2A;
  --line:    rgba(255, 255, 255, 0.08);
  --line-2:  rgba(255, 255, 255, 0.16);
  --ink:     #F3F5F9;
  --mute:    #8B93A5;
  --accent:  #2C78FF;
  --accent-2:#6FA6FF;
  --accent-d:#0B3FB8;

  --f-display: "Bricolage Grotesque", system-ui, sans-serif;
  --f-body:    "Geist", system-ui, sans-serif;
  --f-mono:    "Geist Mono", ui-monospace, monospace;

  --pad: clamp(16px, 5vw, 72px);
  --max: 1320px;
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 800; letter-spacing: -0.03em; line-height: 0.98; }
p { margin: 0; }
::selection { background: var(--accent); color: #fff; }

section { padding: clamp(80px, 12vw, 160px) var(--pad); max-width: var(--max); margin: 0 auto; position: relative; }

.label {
  font: 500 13px/1 var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 28px;
}
.section-head { display: grid; gap: 0; margin-bottom: clamp(48px, 7vw, 88px); }
.section-title { font-size: clamp(40px, 6.4vw, 92px); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 26px; border-radius: 999px;
  font: 600 16px/1 var(--f-body);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .4s var(--ease), background .3s, border-color .3s, box-shadow .3s;
}
.btn span { transition: transform .4s var(--ease); }
.btn:hover span { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 40px -10px rgba(44,120,255,.7); }
.btn-primary:hover { background: #4189FF; transform: translateY(-2px); box-shadow: 0 16px 50px -10px rgba(44,120,255,.9); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  transition: background .4s, backdrop-filter .4s, border-color .4s, padding .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 13, 18, .72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-color: var(--line);
  padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 36px; height: 36px; transition: transform .8s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-120deg); }
.brand-word { height: 20px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 34px; font-size: 15px; color: var(--mute); }
.nav-links a { position: relative; transition: color .3s; }
.nav-links a:not(.nav-cta):hover { color: var(--ink); }
.nav-links a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { color: var(--ink); padding: 11px 20px; border-radius: 999px; border: 1px solid var(--line-2); transition: background .3s, border-color .3s; }
.nav-cta:hover { background: var(--accent); border-color: var(--accent); }
.nav-toggle { display: none; }

/* Hero */
.hero {
  max-width: none; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 140px; padding-bottom: 40px;
  overflow: hidden; isolation: isolate;
}
.hero-gradient {
  position: absolute; inset: -20%; z-index: -3;
  background:
    radial-gradient(circle 520px at var(--mx, 70%) var(--my, 35%), rgba(44,120,255,.85) 0%, transparent 60%),
    radial-gradient(circle 700px at calc(var(--mx, 70%) - 25%) calc(var(--my, 35%) + 30%), rgba(11,63,184,.8) 0%, transparent 60%),
    radial-gradient(circle 420px at calc(100% - var(--mx, 70%)) 20%, rgba(111,166,255,.35) 0%, transparent 60%),
    var(--bg);
  filter: blur(60px) saturate(130%);
  transition: background .25s linear;
}
.hero-grid {
  position: absolute; 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: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
}
.hero-swirl {
  height: auto;
  position: absolute; z-index: -1; pointer-events: none;
  width: min(62vw, 820px); right: -8vw; top: 6vh;
  opacity: .16; filter: brightness(1.6) saturate(0);
  animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-inner { max-width: var(--max); width: 100%; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 13px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); padding: 10px 16px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line-2);
  margin-bottom: 32px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3BE58A; box-shadow: 0 0 0 0 rgba(59,229,138,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(59,229,138,0); } 100% { box-shadow: 0 0 0 0 rgba(59,229,138,0); } }

.hero-title { font-size: clamp(52px, 10.2vw, 168px); line-height: .92; letter-spacing: -0.045em; }
.hl {
  display: inline-block; position: relative;
  color: #fff; padding: 0 .14em .04em;
  background: var(--accent);
  border-radius: .12em;
  transform: rotate(-2deg);
  box-shadow: 0 30px 80px -20px rgba(44,120,255,.8);
}
.hero-foot {
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end;
  margin-top: clamp(36px, 5vw, 64px);
}
.hero-lead { max-width: 46ch; font-size: clamp(17px, 1.5vw, 21px); color: #C9CFDB; }
.hero-lead strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-tags {
  max-width: var(--max); width: 100%; margin: clamp(48px, 7vw, 96px) auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-2);
}
.hero-tags li {
  padding: 18px 0 0; font: 500 13px/1.3 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--mute);
}
.hero-tags li::before { content: "↳ "; color: var(--accent); }

/* Marquee */
.marquee {
  border-block: 1px solid var(--line);
  overflow: hidden; padding: 26px 0;
  background: var(--bg-2);
}
.marquee-track {
  display: flex; align-items: center; gap: 40px; width: max-content;
  animation: marquee 38s linear infinite;
  font: 700 clamp(24px, 3vw, 40px)/1 var(--f-display); letter-spacing: -0.02em;
  color: #3A4152; white-space: nowrap;
}
.marquee-track span { transition: color .3s; }
.marquee-track span:hover { color: var(--ink); }
.marquee-track i { font-style: normal; color: var(--accent); font-size: .6em; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Manifesto */
.manifesto-text {
  font: 500 clamp(28px, 4.2vw, 60px)/1.15 var(--f-display);
  letter-spacing: -0.025em; max-width: 22ch;
}
.manifesto-text .mute { color: #4A5266; }
.manifesto-text .accent { color: var(--accent-2); }

/* Servicios */
.service-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service {
  position: relative; display: flex; flex-direction: column; gap: 18px;
  padding: 36px 32px 32px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--line);
  transition: transform .5s var(--ease), border-color .4s, background .4s;
  overflow: hidden;
}
.service::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0;
  background: radial-gradient(circle 280px at var(--cx, 50%) var(--cy, 0%), rgba(44,120,255,.22), transparent 70%);
  transition: opacity .4s;
}
.service > * { position: relative; z-index: 1; }
.service:hover { transform: translateY(-6px); border-color: rgba(44,120,255,.5); }
.service:hover::before { opacity: 1; }
.service-num { font: 500 13px/1 var(--f-mono); color: var(--mute); }
.service h3 { font-size: clamp(30px, 2.8vw, 40px); margin-top: 28px; }
.service p { color: #B4BBC9; }
.service ul { display: grid; gap: 10px; margin-top: 6px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 15px; }
.service li { display: flex; gap: 10px; }
.service li::before { content: "✓"; color: var(--accent-2); font-weight: 600; }
.service-tag {
  margin-top: auto; align-self: flex-start;
  font: 500 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em;
  padding: 9px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--mute);
}
.service-featured { background: linear-gradient(160deg, #1B4FC9 0%, var(--accent) 55%, #5A97FF 100%); border-color: transparent; }
.service-featured p, .service-featured .service-num { color: rgba(255,255,255,.82); }
.service-featured ul { border-color: rgba(255,255,255,.25); }
.service-featured li::before { color: #fff; }
.service-featured .service-tag { background: #fff; color: var(--accent-d); border-color: #fff; }
.service-actions { display: grid; gap: 12px; justify-items: center; margin-top: 6px; }
.service-actions .btn { width: 100%; }
.service-form { font-size: 14px; color: var(--mute); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); transition: color .3s; }
.service-form:hover { color: var(--ink); }
.service-featured .service-form { color: rgba(255,255,255,.85); text-decoration-color: rgba(255,255,255,.4); }
.service-featured .service-form:hover { color: #fff; }
.btn-white { background: #fff; color: var(--accent-d); box-shadow: 0 10px 30px -12px rgba(0,0,0,.5); }
.btn-white:hover { transform: translateY(-2px); background: #EEF4FF; }

/* Franja de llamado a la acción */
.cta-band {
  margin-top: clamp(40px, 6vw, 72px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
  padding: clamp(24px, 3.5vw, 40px); border-radius: 24px;
  background:
    radial-gradient(circle 360px at 100% 0%, rgba(44,120,255,.28), transparent 70%),
    var(--bg-2);
  border: 1px solid rgba(44,120,255,.3);
}
.cta-band-title { font: 700 clamp(22px, 2.4vw, 32px)/1.15 var(--f-display); letter-spacing: -0.02em; }
.cta-band-text { color: var(--mute); margin-top: 6px; }
.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.sectors-cta { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; margin-top: 40px; }
.sectors-cta p { color: var(--mute); }

.faq-more { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px 0 0; }
.faq-more p { font: 700 20px/1.2 var(--f-display); letter-spacing: -0.015em; }
.service-featured:hover { border-color: transparent; }

/* Incluye */
.include-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.include-grid li {
  padding: 32px 28px 36px; display: grid; gap: 10px; align-content: start;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background .4s;
}
.include-grid li:hover { background: var(--bg-2); }
.include-grid b { font: 700 22px/1.1 var(--f-display); letter-spacing: -0.02em; }
.include-grid b::before { content: ""; display: block; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); margin-bottom: 22px; }
.include-grid span { color: var(--mute); font-size: 15px; }

/* Proyectos */
.work-list { border-top: 1px solid var(--line-2); }
.work-row { border-bottom: 1px solid var(--line-2); }
.work-head {
  width: 100%; display: grid; grid-template-columns: 70px 1fr auto 40px; align-items: center; gap: 24px;
  padding: 30px 0; background: none; border: 0; color: inherit; text-align: left; cursor: pointer;
  font-family: inherit;
}
.work-idx { font: 500 14px/1 var(--f-mono); color: var(--mute); }
.work-name {
  font: 800 clamp(30px, 5vw, 72px)/1 var(--f-display); letter-spacing: -0.035em;
  transition: transform .5s var(--ease), color .3s;
}
.work-cat { font: 500 13px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--mute); text-align: right; }
.work-plus { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); transition: background .3s, border-color .3s, transform .5s var(--ease); }
.work-plus::before, .work-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.work-plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.work-head:hover .work-name { transform: translateX(14px); color: var(--accent-2); }
.work-head:hover .work-plus { background: var(--accent); border-color: var(--accent); }
.work-row.is-open .work-plus { background: var(--accent); border-color: var(--accent); }
.work-row.is-open .work-plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.work-row.is-open .work-name { color: var(--accent-2); }

.work-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.work-row.is-open .work-body { grid-template-rows: 1fr; }
.work-body-inner { overflow: hidden; display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: end; }
.work-body-inner img {
  height: auto;
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top;
  border-radius: 14px; border: 1px solid var(--line-2); margin-bottom: 36px;
}
.work-body-inner p { color: #B4BBC9; font-size: 18px; margin-bottom: 36px; max-width: 34ch; }

/* Proceso */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 64px; }
.stat { padding: 32px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 20px; min-width: 0; }
.stat b { font: 800 clamp(56px, 6.4vw, 108px)/.85 var(--f-display); letter-spacing: -0.05em; color: var(--accent); }
.stat span { color: var(--mute); font: 500 13px/1.4 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; text-align: right; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 24px; left: 24px; right: 0; height: 1px; background: linear-gradient(90deg, var(--accent), var(--line) 80%); }
.step { padding-right: 32px; position: relative; }
.step-n {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--accent); color: var(--accent-2);
  font: 500 15px/1 var(--f-mono); margin-bottom: 28px; position: relative;
  transition: background .3s, color .3s;
}
.step:hover .step-n { background: var(--accent); color: #fff; }
.step h3 { font-size: 28px; margin-bottom: 12px; letter-spacing: -0.02em; }
.step p { color: var(--mute); font-size: 16px; }

/* Rubros */
.sectors-lead { font: 500 clamp(26px, 3.4vw, 46px)/1.15 var(--f-display); letter-spacing: -0.025em; max-width: 24ch; margin-bottom: 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 14px 22px; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: 17px; transition: background .3s, border-color .3s, transform .4s var(--ease);
}
.chips li:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-3px) rotate(-2deg); }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.faq .section-head { position: sticky; top: 120px; }
.faq-list { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer; padding: 26px 48px 26px 0; position: relative;
  font: 700 clamp(20px, 1.9vw, 26px)/1.25 var(--f-display); letter-spacing: -0.015em;
  transition: color .3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 28px/1 var(--f-body); color: var(--accent-2); transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--accent-2); }
.faq details p { color: #B4BBC9; padding: 0 48px 28px 0; max-width: 60ch; }

/* Contacto */
.contact { text-align: center; overflow: hidden; isolation: isolate; max-width: none; }
.contact > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.contact-glow {
  position: absolute; z-index: -1; left: 50%; top: 40%; width: 900px; height: 600px; max-width: none;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(44,120,255,.45), transparent 65%); filter: blur(40px);
}
.contact-title { font-size: clamp(56px, 11vw, 180px); line-height: .9; letter-spacing: -0.05em; }
.contact-link {
  display: inline-flex; gap: 12px; margin-top: 36px;
  font: 700 clamp(22px, 2.6vw, 34px)/1.2 var(--f-display); letter-spacing: -0.02em; color: var(--accent-2);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  padding-bottom: 6px; transition: background-size .5s var(--ease);
}
.contact-link:hover { background-size: 100% 2px; }
.contact-mail { margin-top: 14px; color: var(--mute); font-size: 17px; }
.contact-mail a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); transition: text-decoration-color .3s; }
.contact-mail a:hover { text-decoration-color: var(--accent); }
.contact-form {
  margin-top: 72px !important; max-width: 760px !important; text-align: left;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  padding: 32px; border-radius: 24px; background: rgba(18,21,29,.8); border: 1px solid var(--line-2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.contact-form label { display: grid; gap: 8px; }
.contact-form label span { font: 500 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--mute); }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; padding: 15px 16px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--line-2); color: var(--ink);
  font: 400 16px/1.4 var(--f-body); transition: border-color .3s, box-shadow .3s;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(44,120,255,.2); }
.contact-form .btn { margin-top: 8px; }
.contact-form .btn:disabled { opacity: .6; cursor: wait; transform: none; }
.contact-form label span em { font-style: normal; text-transform: none; letter-spacing: 0; color: #5D6578; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .check { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.contact-form .check input {
  appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; padding: 0; margin: 0;
  border-radius: 6px; background: var(--bg); border: 1px solid var(--line-2); cursor: pointer;
  display: grid; place-items: center;
}
.contact-form .check input::after { content: "✓"; color: #fff; font-size: 14px; transform: scale(0); transition: transform .2s var(--ease); }
.contact-form .check input:checked { background: var(--accent); border-color: var(--accent); }
.contact-form .check input:checked::after { transform: scale(1); }
.contact-form .check span { font: 400 15px/1.4 var(--f-body); text-transform: none; letter-spacing: 0; color: #B4BBC9; }
.contact-form .check a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.form-status { min-height: 1.4em; margin: 0; font-size: 15px; text-align: center; color: var(--mute); }
.form-status.is-ok { color: #3BE58A; }
.form-status.is-error { color: #FF7A7A; }
.footer p a { text-decoration: underline; text-underline-offset: 3px; }
.footer p a:hover { color: var(--ink); }

/* Página legal */
.legal { max-width: 820px; margin: 0 auto; padding: 160px var(--pad) clamp(80px, 10vw, 140px); box-sizing: content-box; }
.legal ul + p { margin-top: 14px; }
.legal h1 { font-size: clamp(44px, 7vw, 88px); margin-bottom: 20px; }
.legal .updated { font: 500 13px/1 var(--f-mono); color: var(--mute); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 56px; }
.legal h2 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.02em; line-height: 1.2; margin: 48px 0 14px; }
.legal p, .legal li { color: #B4BBC9; }
.legal p + p { margin-top: 14px; }
.legal ul { display: grid; gap: 8px; margin-top: 12px; }
.legal li { padding-left: 22px; position: relative; }
.legal li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.legal a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.legal .back { display: inline-flex; margin-top: 64px; }

/* Footer */
.footer {
  max-width: var(--max); margin: 0 auto; padding: 48px var(--pad) 40px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  border-top: 1px solid var(--line); color: var(--mute); font-size: 14px;
}
.verse {
  grid-column: 1 / -1; margin: 0 0 32px; text-align: center;
  font: 400 15px/1.6 var(--f-mono); color: #5D6578; max-width: 70ch; justify-self: center;
}
.verse cite { display: block; margin-top: 8px; font-style: normal; color: var(--accent-2); }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 700 18px/1 var(--f-display); }
.footer-social { display: flex; gap: 22px; justify-content: flex-end; }
.footer-social a:hover { color: var(--ink); }

.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #fff; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6);
  transition: transform .4s var(--ease);
}
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1024px) {
  .service-cards { grid-template-columns: 1fr; }
  .include-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .steps::before { display: none; }
  .faq { grid-template-columns: 1fr; gap: 0; }
  .faq .section-head { position: static; }
  .stats { grid-template-columns: 1fr; gap: 12px; }
  .service-actions { justify-items: start; grid-template-columns: auto auto; align-items: center; justify-content: start; gap: 12px 20px; }
  .service-actions .btn { width: auto; }
  .hero-tags { grid-template-columns: repeat(2, 1fr); row-gap: 4px; }
}

@media (max-width: 960px) {
  .nav-toggle {
    display: grid; gap: 6px; place-content: center; width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,.06); border: 1px solid var(--line-2); cursor: pointer; z-index: 2;
  }
  .nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease); }
  .nav.is-open .nav-toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav.is-open .nav-toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav-links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 26px;
    background: var(--bg); font: 800 34px/1 var(--f-display); color: var(--ink);
    opacity: 0; pointer-events: none; transition: opacity .4s;
  }
  .nav.is-open .nav-links { opacity: 1; pointer-events: auto; }
  .nav-cta { font: 600 17px/1 var(--f-body); background: var(--accent); border-color: var(--accent); padding: 16px 26px; margin-top: 10px; }
  .hero-foot { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .brand-word { height: 16px; }

  .hero { padding-top: 120px; }
  .hero-swirl { width: 120vw; right: -50vw; top: 8vh; }
  .hero-actions .btn { flex: 1; }

  .include-grid { grid-template-columns: 1fr; }
  .work-head { grid-template-columns: 1fr 40px; gap: 8px 16px; padding: 24px 0; }
  .work-idx { display: none; }
  .work-cat { grid-column: 1; grid-row: 2; text-align: left; }
  .work-plus { grid-column: 2; grid-row: 1 / span 2; }
  .work-body-inner { grid-template-columns: 1fr; gap: 0; }
  .work-body-inner img { margin-bottom: 16px; }
  .work-body-inner p { font-size: 16px; }

  .stats { grid-template-columns: 1fr; }
  .stat { padding: 24px; }
  .steps { grid-template-columns: 1fr; row-gap: 36px; }

  .contact-form { grid-template-columns: 1fr; padding: 20px; }
  .service-actions { grid-template-columns: 1fr; justify-items: center; }
  .service-actions .btn { width: 100%; white-space: normal; padding: 15px 18px; font-size: 15px; }
  .service { padding: 30px 22px 24px; }
  .cta-band-actions, .cta-band-actions .btn, .sectors-cta .btn, .faq-more .btn { width: 100%; }
  .cta-band-actions { flex-direction: column; }
  .footer { grid-template-columns: 1fr; text-align: center; }
  .footer-brand, .footer-social { justify-content: center; }
}
