/* Schibsted Grotesk (SIL OFL 1.1, see fonts/OFL.txt), self-hosted so no visitor data goes to third parties */
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/schibsted-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/schibsted-grotesk-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/schibsted-grotesk-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --papel: #EFF1EC;
  --papel-2: #E4E8E1;
  --tinta: #13203A;
  --tinta-2: #4A5568;
  --celda: #D3DACF;
  --planilla: #1E7145;
  --sistema: #3A3AF4;
  --marca: #F5C542;
  --blanco: #FFFFFF;

  --font: "Schibsted Grotesk", system-ui, sans-serif;
  --cell: 48px;
  --pad: clamp(20px, 5vw, 72px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  interpolate-size: allow-keywords;
}

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--sistema);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 10px 14px;
  background: var(--tinta);
  color: var(--papel);
  z-index: 50;
}
.skip:focus { top: 12px; }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .85em 1.35em;
  background: var(--sistema);
  color: var(--blanco);
  font-weight: 650;
  text-decoration: none;
  border-radius: 999px;
  transition: transform .18s var(--ease-out), background-color .18s;
}
.btn:hover { background: #2A2AD8; }
.btn:active { transform: scale(.97); }

.btn-ghost {
  background: transparent;
  color: var(--tinta);
  box-shadow: inset 0 0 0 1.5px var(--tinta);
}
.btn-ghost:hover { background: var(--tinta); color: var(--papel); }

.btn-small { padding: .55em 1.1em; font-size: .95rem; }
.btn-big { font-size: clamp(1rem, 2.2vw, 1.3rem); padding: 1em 1.6em; }

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--pad);
  background: color-mix(in srgb, var(--papel) 86%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--celda);
}

.nav ul { display: flex; gap: 28px; }
.nav ul a {
  text-decoration: none;
  font-weight: 500;
  color: var(--tinta-2);
  transition: color .15s;
}
.nav ul a:hover { color: var(--tinta); }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -.02em;
}
.logo-cell {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 30px;
  background: var(--blanco);
  border: 2px solid var(--planilla);
  color: var(--planilla);
  font-size: 1rem;
  position: relative;
}
/* The fill handle of a selected spreadsheet cell */
.logo-cell::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 7px;
  height: 7px;
  background: var(--planilla);
  border: 1.5px solid var(--papel);
}

/* Hero */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  min-height: calc(100svh - 64px);
  padding: clamp(40px, 7vw, 96px) var(--pad);
  overflow: hidden;
  isolation: isolate;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, var(--celda) 1px, transparent 1px),
    linear-gradient(to bottom, var(--celda) 1px, transparent 1px);
  background-size: calc(var(--cell) * 2) var(--cell);
  mask-image: linear-gradient(100deg, #000 10%, rgba(0,0,0,.35) 60%, transparent 95%);
  -webkit-mask-image: linear-gradient(100deg, #000 10%, rgba(0,0,0,.35) 60%, transparent 95%);
}

.cell-cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--cell) * 2 + 1px);
  height: calc(var(--cell) + 1px);
  border: 2px solid var(--planilla);
  opacity: 0;
  transition: transform .12s var(--ease-out), opacity .2s;
  pointer-events: none;
}
.cell-cursor::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 6px;
  height: 6px;
  background: var(--planilla);
}
.hero:hover .cell-cursor { opacity: 1; }

.hero h1 {
  font-size: clamp(2.6rem, 6.4vw, 5.6rem);
  line-height: .98;
  font-weight: 850;
  letter-spacing: -.045em;
  max-width: 11ch;
  text-wrap: balance;
}

.lead {
  margin-top: 28px;
  max-width: 46ch;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--tinta-2);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* Hero load sequence: copy settles, then the panel orders itself */
.hero-copy > * {
  animation: rise .8s var(--ease-out) both;
}
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
}

/* Demo panel */

.hero-demo {
  margin: 0;
  background: var(--blanco);
  border: 1px solid var(--celda);
  border-radius: 14px;
  box-shadow: 0 1px 0 var(--celda), 0 30px 60px -30px rgba(19, 32, 58, .35);
  overflow: hidden;
}

.formula {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--celda);
  font-size: .85rem;
  height: 38px;
  background: #F7F8F6;
}
.namebox {
  width: 64px;
  padding: 0 12px;
  border-right: 1px solid var(--celda);
  font-variant-numeric: tabular-nums;
  color: var(--tinta-2);
}
.fx {
  padding: 0 12px;
  font-style: italic;
  font-weight: 600;
  color: var(--tinta-2);
  border-right: 1px solid var(--celda);
}
.formula-text {
  padding: 0 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .3s;
}
.is-ordered .formula-text { color: var(--sistema); }

.stage {
  position: relative;
  aspect-ratio: 5 / 4;
  margin: 18px;
}

.frag {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  width: calc(var(--w) * 1%);
  height: calc(var(--h) * 1%);
  border-radius: 8px;
  font-size: clamp(.62rem, 1.05vw, .85rem);
  will-change: transform;
  transition: background-color .45s, border-color .45s, color .45s, box-shadow .45s;
}

/* Raw (chaos) look: spreadsheet cells, notes, filenames */
.frag {
  background: var(--blanco);
  border: 1.5px solid var(--planilla);
  color: var(--planilla);
  box-shadow: 0 8px 18px -10px rgba(19, 32, 58, .4);
}
.frag-chart { background: #FFF6CF; border-color: #E2B93B; color: #6B5310; }

.raw, .clean {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 .9em;
  transition: opacity .35s, transform .45s var(--ease-out);
  white-space: nowrap;
  overflow: hidden;
}
.raw { font-weight: 600; }
.raw.err { color: #B42318; }
.raw.note {
  white-space: normal;
  font-size: 1.15em;
  font-weight: 650;
  font-style: italic;
  line-height: 1.25;
  padding: .9em 1.2em;
  align-items: flex-start;
}
.clean { opacity: 0; transform: translateY(6px); }

/* Ordered (system) look */
.frag.set {
  border-color: transparent;
  box-shadow: none;
  color: var(--tinta);
}
.set .raw { opacity: 0; transform: translateY(-6px); }
.set .clean { opacity: 1; transform: none; }

.frag-bar.set {
  background: var(--tinta);
  color: var(--papel);
}
.frag-bar .clean { justify-content: space-between; }
.dot-live {
  font-style: normal;
  font-size: .9em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: .8;
}
.dot-live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ADE80;
}

.frag-nav.set { background: transparent; color: var(--tinta-2); }
.frag-nav.set.is-active { background: #ECECFE; color: var(--sistema); font-weight: 650; }

.frag-kpi.set { background: var(--papel); }
.frag-kpi .clean {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
}
.frag-kpi small { color: var(--tinta-2); font-size: .95em; }
.frag-kpi strong {
  font-size: 2.3em;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.frag-chart.set { background: var(--papel); }
.chart {
  align-items: flex-end;
  gap: 4%;
  padding: 1em 1.2em;
}
.chart i {
  flex: 1;
  height: calc(var(--v) * 100%);
  background: var(--sistema);
  border-radius: 4px 4px 0 0;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .7s var(--ease-out);
}
.chart i:nth-child(even) { background: #8B8BFA; }
.set .chart i { transform: scaleY(1); }
.set .chart i:nth-child(1) { transition-delay: .15s; }
.set .chart i:nth-child(2) { transition-delay: .2s; }
.set .chart i:nth-child(3) { transition-delay: .25s; }
.set .chart i:nth-child(4) { transition-delay: .3s; }
.set .chart i:nth-child(5) { transition-delay: .35s; }
.set .chart i:nth-child(6) { transition-delay: .4s; }
.set .chart i:nth-child(7) { transition-delay: .45s; }
.set .chart i:nth-child(8) { transition-delay: .5s; }

.frag-row.set {
  background: transparent;
  border-radius: 0;
  border-bottom: 1px solid var(--celda);
}
.frag-row .clean { gap: 4%; }
.frag-row b { flex: 1.4; font-weight: 600; }
.frag-row em { flex: 1; font-style: normal; color: var(--tinta-2); font-variant-numeric: tabular-nums; }
.chip {
  font-style: normal;
  font-size: .85em;
  font-weight: 600;
  padding: .2em .7em;
  border-radius: 999px;
}
.chip.ok { background: #DDF5E6; color: var(--planilla); }

.hero-demo figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-top: 1px solid var(--celda);
  font-size: .9rem;
  color: var(--tinta-2);
}

.toggle {
  font: inherit;
  font-weight: 650;
  color: var(--sistema);
  background: #ECECFE;
  border: 0;
  border-radius: 999px;
  padding: .45em 1em;
  cursor: pointer;
  transition: transform .15s var(--ease-out), background-color .15s;
  flex-shrink: 0;
}
.toggle:hover { background: #DDDDFD; }
.toggle:active { transform: scale(.96); }

/* Services */

.services {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(80px, 11vw, 160px) var(--pad);
  background: var(--tinta);
  color: var(--papel);
}

.services-head { align-self: start; position: sticky; top: 110px; }
.services h2,
.projects h2,
.process h2,
.about h2 {
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.04em;
}
.services-head p {
  margin-top: 22px;
  max-width: 38ch;
  color: #B9C2D3;
}

.service-list li {
  padding: 30px 0;
  border-top: 1px solid #2B3A5A;
}
.service-list li:last-child { border-bottom: 1px solid #2B3A5A; }
.service-list h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -.02em;
}
.service-list p {
  margin-top: 10px;
  max-width: 56ch;
  color: #B9C2D3;
}

/* Projects */

.projects { padding: clamp(80px, 11vw, 160px) var(--pad); }
.projects-intro { margin-top: 14px; color: var(--tinta-2); }

.project-list {
  margin-top: 48px;
  border-top: 2px solid var(--tinta);
}

.project { border-bottom: 1px solid var(--celda); }
.project summary {
  display: grid;
  grid-template-columns: 1fr auto 44px;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  cursor: pointer;
  list-style: none;
}
.project summary::-webkit-details-marker { display: none; }

.p-name {
  font-size: clamp(1.6rem, 4.2vw, 3.2rem);
  font-weight: 750;
  letter-spacing: -.035em;
  line-height: 1.05;
  transition: color .2s;
}
.project summary:hover .p-name { color: var(--sistema); }
.p-kind { color: var(--tinta-2); }

.p-plus {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--tinta);
  transition: background-color .2s, transform .35s var(--ease-out);
}
.p-plus::before, .p-plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  translate: -50% -50%;
}
.p-plus::after { rotate: 90deg; }
.project[open] .p-plus { transform: rotate(45deg); background: var(--marca); border-color: var(--marca); }

.project::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size .45s var(--ease-out), content-visibility .45s allow-discrete;
}
.project[open]::details-content { block-size: auto; }

.p-body {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  padding: 0 0 32px;
}
.p-body p { max-width: 60ch; color: var(--tinta-2); font-size: 1.1rem; }
.p-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: start;
}
.p-tags li {
  padding: .35em .85em;
  border: 1.5px solid var(--planilla);
  color: var(--planilla);
  font-size: .9rem;
  font-weight: 600;
  background: var(--blanco);
}

/* Process: a real sequence, so numbered */

.process {
  padding: clamp(80px, 11vw, 160px) var(--pad);
  background: var(--papel-2);
}

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 56px;
}
.steps li {
  counter-increment: step;
  padding: 0 28px 0 0;
  position: relative;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--tinta);
  color: var(--papel);
  font-weight: 800;
  font-size: 1.25rem;
  position: relative;
  z-index: 1;
}
/* Connector line between steps */
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 26px;
  left: 52px;
  right: 0;
  height: 0;
  border-top: 2px dashed var(--tinta);
}
.steps li:last-child::before { background: var(--sistema); }
.steps h3 {
  margin-top: 22px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.steps p { margin-top: 8px; color: var(--tinta-2); max-width: 30ch; }

/* About */

.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 112px);
  padding: clamp(80px, 11vw, 160px) var(--pad);
}

.about-card {
  margin-top: 40px;
  background: var(--blanco);
  border: 1px solid var(--celda);
  border-radius: 14px;
  box-shadow: 0 1px 0 var(--celda), 0 30px 60px -30px rgba(19, 32, 58, .35);
  overflow: hidden;
}
.about-card .formula-text { color: var(--tinta); }

.about-grid { position: relative; }
.about-sheet { margin: 0; }
.about-sheet div {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
}
.about-sheet div + div { border-top: 1px solid var(--celda); }
.about-sheet dt,
.about-sheet dd { padding: 16px 18px; }
.about-sheet dt {
  background: #F7F8F6;
  border-right: 1px solid var(--celda);
  color: var(--tinta-2);
}
.about-sheet dd { margin: 0; font-weight: 600; }

/* Celda seleccionada que recorre la ficha */
.about-cursor {
  position: absolute;
  top: 0;
  left: 0;
  border: 2px solid var(--planilla);
  pointer-events: none;
  opacity: 0;
  transition:
    transform .38s var(--ease-out),
    width .38s var(--ease-out),
    height .38s var(--ease-out),
    opacity .2s;
}
.about-cursor::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 6px;
  height: 6px;
  background: var(--planilla);
}
.about-cursor.is-placed { opacity: 1; }

/* Entrada: la ficha se completa celda por celda y luego aparece el texto */
.about.is-armed .about-sheet dd {
  clip-path: inset(0 100% 0 0);
  transition: clip-path .45s var(--ease-out);
}
.about.is-armed .about-sheet .is-filled dd {
  clip-path: inset(0 0 0 0);
  animation: cell-flash 1s ease-out;
}
@keyframes cell-flash {
  from { background: #ECECFE; }
  to { background: transparent; }
}
.about.is-armed .about-text > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s, transform .7s var(--ease-out);
}
.about.is-done .about-text > * { opacity: 1; transform: none; }
.about.is-done .about-text > :nth-child(2) { transition-delay: .08s; }
.about.is-done .about-text > :nth-child(3) { transition-delay: .16s; }
.about.is-done .about-text > :nth-child(4) { transition-delay: .24s; }

.about-text { align-self: end; }
.about-text p { max-width: 54ch; color: var(--tinta-2); font-size: 1.1rem; }
.about-text p + p { margin-top: 18px; }
.about-text .about-lead {
  max-width: 24ch;
  margin-bottom: 28px;
  color: var(--tinta);
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.about-text .btn { margin-top: 32px; }

/* Contact */

.contact {
  padding: clamp(96px, 14vw, 200px) var(--pad);
  background: var(--sistema);
  color: var(--blanco);
  text-align: center;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: calc(var(--cell) * 2) var(--cell);
}
.contact h2 {
  font-size: clamp(2.4rem, 6.6vw, 5.8rem);
  line-height: 1;
  font-weight: 850;
  letter-spacing: -.045em;
  max-width: 16ch;
  margin-inline: auto;
  text-wrap: balance;
}
.contact-lead {
  margin: 24px auto 48px;
  max-width: 44ch;
  font-size: 1.15rem;
  color: #DCDCFF;
}
.contact .btn { background: var(--marca); color: var(--tinta); border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.contact .btn:hover { background: #FFD45C; }
.contact .btn:disabled { opacity: .7; cursor: progress; }
.contact :focus-visible { outline-color: var(--marca); }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}
.field { display: grid; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 650; }
.optional { font-weight: 400; color: #C9C9FF; }

.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem; /* 16px keeps iOS from zooming in on focus */
  color: var(--tinta);
  background: var(--blanco);
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 14px 16px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.field input::placeholder,
.field textarea::placeholder { color: #8A93A6; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--marca);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--marca) 40%, transparent);
}
/* Only flag fields after someone has tried to send */
.was-sent .field :invalid { border-color: #FF8A80; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 4px;
}
.form-status { color: var(--blanco); font-weight: 600; }
.form-note { flex-basis: 100%; font-size: .9rem; color: #DCDCFF; }
.form-note a { color: var(--blanco); }
.form-status.is-error { color: #FFE3A3; }

.form-done {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px;
  border-radius: 14px;
  background: var(--blanco);
  color: var(--tinta);
  animation: rise .5s var(--ease-out) both;
}
.form-done:focus { outline: none; }
.form-done h3 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.form-done p { margin-top: 6px; color: var(--tinta-2); }

.contact-alt { margin-top: 40px; color: #DCDCFF; }
.contact-alt a { color: var(--blanco); font-weight: 650; }

@media (max-width: 640px) {
  .contact-form { grid-template-columns: 1fr; }
  .form-foot .btn { width: 100%; justify-content: center; }
}

/* Footer */

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px var(--pad);
  font-size: .9rem;
  color: var(--tinta-2);
}
.logo-small { font-size: 1rem; color: var(--tinta); }
.footer a { color: var(--tinta); }
.logo-small .logo-cell { width: 32px; height: 26px; font-size: .85rem; }

/* Responsive */

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero h1 { max-width: 13ch; }
  .services { grid-template-columns: 1fr; }
  .services-head { position: static; }
  .about { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .steps li:nth-child(2)::after { display: none; }
  .p-body { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 640px) {
  .nav ul { display: none; }
  .frag { font-size: .58rem; border-radius: 5px; }
  .stage { margin: 12px; }
  .project summary { grid-template-columns: 1fr 40px; gap: 12px; }
  .p-kind { grid-row: 2; font-size: .9rem; }
  .p-plus { grid-row: 1 / span 2; grid-column: 2; width: 40px; height: 40px; }
  .steps { grid-template-columns: 1fr; }
  .about-sheet div { grid-template-columns: 8.75rem 1fr; }
  .about-sheet dt { font-size: .9rem; }
  .about-sheet dt,
  .about-sheet dd { padding: 14px 12px; }
  .steps li::after { display: none; }
  .hero-demo figcaption { font-size: .8rem; }
}

@media (hover: none) {
  .cell-cursor { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}

/* Loose fragments float a little while they wait to be ordered */
.frag:not(.set) {
  animation: drift 3.2s ease-in-out infinite alternate;
  animation-delay: calc(var(--i, 0) * -.4s);
}
@keyframes drift {
  to { translate: 0 -4px; }
}

.p-text { display: grid; gap: 22px; justify-items: start; }
.p-kind-wip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.p-kind-wip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--marca);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--marca) 35%, transparent);
}

/* Legal page */

.legal {
  max-width: 68ch;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 120px) var(--pad);
}
.legal h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1;
  font-weight: 850;
  letter-spacing: -.045em;
}
.legal-updated { margin-top: 14px; color: var(--tinta-2); }
.legal h2 {
  margin-top: 48px;
  font-size: 1.5rem;
  font-weight: 750;
  letter-spacing: -.02em;
}
.legal p, .legal ul { margin-top: 14px; }
.legal > p:nth-of-type(2) { margin-top: 36px; font-size: 1.15rem; }
.legal ul { padding-left: 1.2em; list-style: disc; }
.legal li + li { margin-top: 8px; }
.legal li::marker { color: var(--planilla); }
.legal a { color: var(--sistema); }
