/* ==========================================================================
   Amed Reyes — Digital Systems Workshop
   Identity: off-white #FAFAF7 · navy #102A43 · teal #1FA69A · dark teal #147C74
             mint #DDF3EF · gray #52606D · white #FFFFFF
   Type:     Sora (display) · Manrope (body) · IBM Plex Mono (annotations)
   ========================================================================== */

:root {
  --bg: #FAFAF7;
  --navy: #102A43;
  --navy-deep: #0C2233;
  --navy-ink: #071B29;
  --teal: #1FA69A;
  --teal-dark: #147C74;
  --mint: #DDF3EF;
  --gray: #52606D;
  --white: #FFFFFF;
  --line: rgba(16, 42, 67, .16);
  --line-soft: rgba(16, 42, 67, .09);
  --font-display: 'Sora', 'Trebuchet MS', sans-serif;
  --font-body: 'Manrope', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Consolas', monospace;
  --pad-x: clamp(18px, 4vw, 28px);
}

/* ---------- Base ---------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--teal-dark); }
a:hover { color: var(--teal); }

::selection { background: var(--mint); color: var(--navy); }

input, select, textarea, button { font-family: var(--font-body); }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.mono { font-family: var(--font-mono); }

.container { max-width: 1280px; margin: 0 auto; }

.annot {
  display: block;
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--gray);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 300;
  background: var(--navy);
  color: var(--bg);
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus-visible { top: 12px; color: var(--bg); }

/* Shared animations */
@keyframes arPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .3; transform: scale(.75); }
}
@keyframes arScroll {
  0%        { transform: translateY(-110%); }
  55%, 100% { transform: translateY(110%); }
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  animation: arPulse 2s infinite;
  flex: none;
}

/* Reveal on scroll (classes applied by app.js — page is fully visible without JS) */
.reveal-pending { opacity: 0; transform: translateY(22px); }
.reveal-in {
  opacity: 1;
  transform: none;
  transition: opacity .5s ease, transform .55s cubic-bezier(.22, .61, .36, 1);
}
.drawline-pending { transform: scaleY(0); }
.drawline-in { transform: scaleY(1); transition: transform 1.1s cubic-bezier(.22, .61, .36, 1); }

/* Corner marks for blueprint panels */
.panel-corners { position: relative; }
.corner { position: absolute; width: 10px; height: 10px; pointer-events: none; }
.corner--tl { top: -1px;    left: -1px;  border-top: 2px solid var(--teal);    border-left: 2px solid var(--teal); }
.corner--tr { top: -1px;    right: -1px; border-top: 2px solid var(--teal);    border-right: 2px solid var(--teal); }
.corner--bl { bottom: -1px; left: -1px;  border-bottom: 2px solid var(--teal); border-left: 2px solid var(--teal); }
.corner--br { bottom: -1px; right: -1px; border-bottom: 2px solid var(--teal); border-right: 2px solid var(--teal); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 24px;
  border-radius: 8px;
  border: none;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.btn:active { transform: translateY(1px); }
.btn--navy { background: var(--navy); color: var(--bg); }
.btn--navy:hover { background: var(--teal-dark); color: var(--bg); }
.btn--teal { background: var(--teal); color: var(--navy-ink); font-weight: 800; }
.btn--teal:hover { background: var(--mint); color: var(--navy-ink); }
.btn--outline { background: transparent; color: var(--navy); border: 1.5px solid rgba(16, 42, 67, .55); }
.btn--outline:hover { background: var(--mint); color: var(--navy); border-color: var(--teal-dark); }

/* Section headers */
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.sec-label { font-size: 11px; letter-spacing: .16em; color: var(--teal-dark); }
.sec-label--teal { color: var(--teal); }
.sec-title {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 62px);
  letter-spacing: -.02em;
  line-height: 1.02;
}
.sec-note { margin: 0; max-width: 340px; font-size: 14.5px; line-height: 1.6; color: var(--gray); }

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 120;
  background: rgba(250, 250, 247, .9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(16, 42, 67, .1);
}
.nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 64px;
  padding: 0 clamp(16px, 3vw, 28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand__mark {
  width: 36px; height: 36px;
  background: var(--navy);
  color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  border-radius: 8px;
  flex: none;
}
.brand__mark--lg { width: 40px; height: 40px; font-size: 15px; }
.brand__mark--xl { width: 44px; height: 44px; font-size: 16px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.brand__tag { font-size: 9px; letter-spacing: .14em; color: var(--gray); }

.nav__desktop { display: flex; align-items: center; gap: 24px; }
.nav__link {
  text-decoration: none;
  color: var(--gray);
  font-size: 14px;
  font-weight: 600;
  transition: color .2s;
}
.nav__link:hover { color: var(--navy); }
.nav__cta {
  text-decoration: none;
  background: var(--navy);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  transition: background .25s;
}
.nav__cta:hover { background: var(--teal-dark); color: var(--bg); }
.nav__cta:active { transform: translateY(1px); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid rgba(16, 42, 67, .18);
  border-radius: 8px;
  padding: 3px;
}
.lang-btn {
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: .08em;
  background: transparent;
  color: var(--gray);
  transition: background .2s ease, color .2s ease;
}
.lang-btn.is-active { background: var(--navy); color: var(--bg); }

.nav__mobile { display: none; align-items: center; gap: 10px; }
.burger {
  width: 44px; height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--white);
  border: 1px solid rgba(16, 42, 67, .2);
  border-radius: 8px;
  cursor: pointer;
}
.burger span { width: 18px; height: 2px; background: var(--navy); display: block; }

/* Mobile full-screen menu */
.mmenu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: 12px 24px 28px;
  overflow-y: auto;
}
.mmenu[hidden] { display: none; }
.mmenu__top { display: flex; justify-content: space-between; align-items: center; height: 52px; }
.mmenu__close {
  width: 44px; height: 44px;
  background: var(--white);
  border: 1px solid rgba(16, 42, 67, .2);
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  color: var(--navy);
}
.mmenu__nav { display: flex; flex-direction: column; margin-top: 26px; }
.mmenu__nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 2px;
  border-bottom: 1px solid rgba(16, 42, 67, .12);
  text-decoration: none;
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -.02em;
}
.mmenu__num { font-size: 11px; color: var(--teal); }
.mmenu__cta {
  margin-top: 26px;
  background: var(--navy);
  color: var(--bg);
  text-align: center;
  padding: 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
}
.mmenu__cta:hover { color: var(--bg); }
.mmenu__cta:active { transform: translateY(1px); }
.mmenu__foot { margin-top: auto; padding-top: 28px; display: flex; flex-direction: column; gap: 6px; }
.mmenu__foot a, .mmenu__foot span { font-size: 12px; text-decoration: none; }
.mmenu__foot span { color: var(--gray); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(104px, 15vw, 150px) var(--pad-x) clamp(36px, 6vw, 56px);
  background-image:
    linear-gradient(rgba(16, 42, 67, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 42, 67, .045) 1px, transparent 1px);
  background-size: 76px 76px;
}
.hero .container { width: 100%; }

.hero__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.hero__kicker { font-size: 10.5px; letter-spacing: .16em; color: var(--teal-dark); }
.hero__coords { font-size: 10.5px; letter-spacing: .14em; color: var(--gray); }

.hero__grid {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(30px, 5vw, 48px);
  align-items: stretch;
  margin-top: clamp(28px, 4vw, 44px);
}
.hero__left { flex: 1 1 540px; min-width: 0; }

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(56px, 9.5vw, 136px);
  line-height: .95;
  letter-spacing: -.035em;
  text-transform: uppercase;
  color: var(--navy);
}
.hero__title-outline {
  display: block;
  margin-left: .5em;
  color: rgba(16, 42, 67, .06);
  -webkit-text-stroke: 2px var(--navy);
}
.hero__sq {
  display: inline-block;
  width: .12em;
  height: .12em;
  background: var(--teal);
  margin-left: .06em;
  -webkit-text-stroke: 0 transparent;
}

.hero__role-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: clamp(18px, 3vw, 28px);
  flex-wrap: wrap;
}
.hero__role-dot { width: 10px; height: 10px; background: var(--teal); border-radius: 2px; flex: none; }
.hero__role { font-family: var(--font-display); font-weight: 600; font-size: clamp(16px, 2vw, 20px); }
.hero__loc { font-size: 14px; color: var(--gray); }

.hero__statement {
  margin: 22px 0 0;
  max-width: 600px;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.55;
  font-weight: 500;
  color: var(--navy);
}
.hero__em { border-bottom: 2px solid var(--teal); }
.hero__sub { margin: 14px 0 0; max-width: 540px; font-size: 15.5px; line-height: 1.65; color: var(--gray); }
.hero__actions { display: flex; gap: 12px; margin-top: clamp(24px, 4vw, 36px); flex-wrap: wrap; }

.hero__right {
  flex: 1 1 340px;
  max-width: 520px;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  min-width: 0;
}

/* System map */
.sysmap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.sysmap--desktop { padding: 22px 22px 16px; box-shadow: 0 24px 60px rgba(16, 42, 67, .08); }
.sysmap--mobile { display: none; padding: 16px 14px 14px; box-shadow: 0 18px 44px rgba(16, 42, 67, .08); }

.sysmap__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.sysmap--desktop .sysmap__head { padding-bottom: 14px; border-bottom: 1px solid rgba(16, 42, 67, .1); }
.sysmap__title { font-size: 10.5px; letter-spacing: .16em; color: var(--navy); }
.sysmap__live { display: flex; align-items: center; gap: 6px; }
.sysmap__live .mono { font-size: 9.5px; letter-spacing: .12em; color: var(--gray); }

.sysmap__rail { position: relative; padding-left: 24px; margin-top: 14px; }
.sysmap__spine {
  position: absolute;
  left: 8px; top: 8px; bottom: 8px;
  width: 2px;
  background: rgba(16, 42, 67, .12);
}
.sysmap__nodes { display: flex; flex-direction: column; gap: 2px; }

.sysmap__node {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 11px 14px;
  cursor: pointer;
  font-family: inherit;
  transition: background .25s ease;
  position: relative;
  color: inherit;
}
.sysmap__node.is-active { background: var(--mint); }
.sysmap__mark {
  position: absolute;
  left: -21px; top: 16px;
  width: 11px; height: 11px;
  border-radius: 3px;
  background: var(--white);
  border: 1px solid #9FB3C8;
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
}
.sysmap__node.is-active .sysmap__mark {
  background: var(--teal);
  border-color: var(--teal);
  transform: rotate(45deg);
}
.sysmap__row { display: flex; align-items: center; gap: 10px; }
.sysmap__n { font-size: 10px; color: var(--teal-dark); }
.sysmap__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--gray);
  transition: color .25s;
}
.sysmap__node.is-active .sysmap__name { color: var(--navy); }
.sysmap__arrow { margin-left: auto; color: var(--teal-dark); font-size: 13px; opacity: 0; transition: opacity .25s; }
.sysmap__node.is-active .sysmap__arrow { opacity: 1; }
.sysmap__descwrap {
  display: block;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(.22, .61, .36, 1), opacity .3s ease;
}
.sysmap__node.is-active .sysmap__descwrap { max-height: 96px; opacity: 1; }
.sysmap__desc {
  display: block;
  font-size: 13px;
  line-height: 1.55;
  color: var(--gray);
  padding: 6px 0 2px 28px;
  font-weight: 500;
}

.sysmap__foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(16, 42, 67, .1);
}
.sysmap__foot span { font-size: 9.5px; letter-spacing: .1em; color: var(--gray); }
.sysmap__ref { color: var(--teal) !important; }

/* Compact map (mobile) */
.sysmap__chips { display: flex; gap: 6px; margin-top: 12px; }
.sysmap__chip {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 9px 2px;
  border-radius: 8px;
  border: 1px solid rgba(16, 42, 67, .14);
  background: transparent;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease;
  font-family: inherit;
  min-width: 0;
  min-height: 44px;
}
.sysmap__chip.is-active { border-color: var(--teal); background: var(--mint); }
.sysmap__chip-n { font-size: 9px; color: var(--teal-dark); }
.sysmap__chip-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 10px;
  color: var(--gray);
  white-space: nowrap;
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
}
.sysmap__chip.is-active .sysmap__chip-name { color: var(--navy); }
.sysmap__descbox {
  margin-top: 10px;
  background: #F2FAF7;
  border-radius: 8px;
  padding: 10px 12px;
  min-height: 56px;
}
.sysmap__descbox p { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--gray); font-weight: 500; }

.scroll-cue { display: flex; align-items: center; gap: 12px; margin-top: clamp(32px, 6vw, 56px); }
.scroll-cue__track {
  width: 1px; height: 44px;
  background: rgba(16, 42, 67, .18);
  overflow: hidden;
  display: block;
  position: relative;
}
.scroll-cue__line {
  position: absolute;
  left: 0; top: 0;
  width: 1px; height: 100%;
  background: var(--teal);
  animation: arScroll 2.4s cubic-bezier(.4, 0, .2, 1) infinite;
  display: block;
}
.scroll-cue .mono { font-size: 10.5px; letter-spacing: .18em; color: var(--gray); }

/* ---------- Services ---------- */

.services { padding: clamp(64px, 9vw, 110px) var(--pad-x) clamp(48px, 7vw, 80px); scroll-margin-top: 64px; }
.services .sec-head { margin-bottom: 18px; }
.services .sec-note { max-width: 310px; }

.svc-row { border-top: 1px solid var(--line); }
.svc-end { border-top: 1px solid var(--line); }

.svc-row__btn {
  display: grid;
  grid-template-columns: minmax(26px, 70px) 1fr 36px;
  gap: clamp(10px, 2vw, 18px);
  align-items: start;
  width: 100%;
  padding: clamp(20px, 4vw, 30px) 6px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: inherit;
  transition: background .25s ease, padding .25s ease;
  border-radius: 4px;
}
.svc-row__btn:hover { background: #F0F7F5; padding-left: 20px; }
.svc-row__num { font-family: var(--font-mono); font-size: 12px; color: var(--teal-dark); padding-top: 10px; }
.svc-row__main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.svc-row__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(21px, 3vw, 34px);
  letter-spacing: -.015em;
  color: var(--navy);
}
.svc-row__desc { font-size: 15px; line-height: 1.6; color: var(--gray); max-width: 620px; font-family: var(--font-body); }
.svc-row__plus {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  color: var(--teal-dark);
  justify-self: end;
  padding-top: 2px;
}

.svc-panel {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height .45s cubic-bezier(.22, .61, .36, 1), opacity .3s ease;
}
.svc-panel.is-open { max-height: 420px; opacity: 1; }
.svc-panel__inner {
  display: grid;
  grid-template-columns: minmax(26px, 70px) 1fr;
  gap: clamp(10px, 2vw, 18px);
  padding: 2px 6px 30px;
}
.svc-panel__content { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.svc-caps { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-cap {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--navy);
  background: var(--white);
  border: 1px solid rgba(16, 42, 67, .22);
  border-radius: 999px;
  padding: 7px 13px;
}
.svc-cta {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--teal-dark);
  text-decoration: none;
  display: inline-flex;
  gap: 6px;
}
.svc-cta:hover { color: var(--teal); }

/* ---------- Selected Work ---------- */

.work { padding-top: clamp(56px, 8vw, 90px); scroll-margin-top: 64px; }
.work > .container { padding: 0 var(--pad-x); }

.project { position: relative; padding: clamp(56px, 9vw, 100px) var(--pad-x); overflow: hidden; }
.project--pulseops { background: var(--navy-deep); color: var(--bg); margin-top: clamp(40px, 6vw, 64px); }
.project--casaclave { background: var(--bg); }
.project--northline { background: #E9F4F1; }

.project__ghost {
  position: absolute;
  top: 10px; right: 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(110px, 17vw, 230px);
  line-height: 1;
  color: rgba(16, 42, 67, .03);
  -webkit-text-stroke: 1px rgba(16, 42, 67, .11);
  pointer-events: none;
  user-select: none;
}
.project--pulseops .project__ghost {
  color: rgba(255, 255, 255, .04);
  -webkit-text-stroke: 1px rgba(255, 255, 255, .14);
}
.project__ghost--bottom { top: auto; bottom: 10px; }

.project__row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
.project__info { flex: 1 1 380px; min-width: 0; max-width: 540px; }
.project__visual { flex: 1 1 480px; min-width: 0; }

.project__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.project__label { font-size: 11px; letter-spacing: .16em; color: var(--teal-dark); }
.project--pulseops .project__label { color: var(--teal); }
.project__concept {
  font-size: 10px;
  letter-spacing: .1em;
  border-radius: 999px;
  padding: 4px 10px;
  color: rgba(255, 255, 255, .65);
  border: 1px solid rgba(255, 255, 255, .28);
}
.project__concept--dark { color: var(--gray); border-color: rgba(16, 42, 67, .25); }

.project__name {
  margin: 18px 0 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.5vw, 52px);
  letter-spacing: -.02em;
  color: inherit;
}
.project__cat {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
.project--casaclave .project__cat, .project--northline .project__cat { color: var(--gray); }
.project__desc { margin: 20px 0 0; font-size: 16px; line-height: 1.7; max-width: 500px; color: rgba(255, 255, 255, .82); }
.project--casaclave .project__desc, .project--northline .project__desc { color: #3E4C59; }

.project__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.project__chip {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: rgba(255, 255, 255, .72);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  padding: 6px 11px;
}
.project__chips--dark .project__chip { color: var(--navy); border-color: rgba(16, 42, 67, .25); }

.project__cta { margin-top: 30px; font-weight: 800; }
.annot--light { color: rgba(255, 255, 255, .45); }
.project .annot { margin-top: 12px; }

/* Mockup shells */
.mock { border-radius: 12px; overflow: hidden; }
.mock__chrome { display: flex; align-items: center; gap: 6px; padding: 10px 14px; }
.mock__dot { width: 8px; height: 8px; border-radius: 50%; }
.mock__url { margin-left: 10px; font-size: 10px; }
.mock__chrome--dark { border-bottom: 1px solid rgba(255, 255, 255, .07); }
.mock__chrome--dark .mock__dot { background: rgba(255, 255, 255, .16); }
.mock__chrome--dark .mock__url { color: rgba(255, 255, 255, .4); }
.mock__chrome--warm { border-bottom: 1px solid #F1E8D4; }
.mock__chrome--warm .mock__dot { background: #E6D9BF; }
.mock__chrome--warm .mock__url { color: #A08B62; }

/* --- PulseOps mockup --- */
.po { background: #081826; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 30px 70px rgba(4, 16, 26, .5); }
.po__grid { display: grid; grid-template-columns: minmax(92px, 128px) 1fr; }

.po__side {
  border-right: 1px solid rgba(255, 255, 255, .07);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.po__logo { display: flex; align-items: center; gap: 7px; padding: 0 6px; margin-bottom: 10px; }
.po__logo-sq { width: 12px; height: 12px; background: var(--teal); border-radius: 3px; }
.po__logo span:last-child { font-family: var(--font-display); font-weight: 700; font-size: 11px; color: var(--white); }
.po__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 6px;
  color: rgba(255, 255, 255, .45);
  font-size: 10px;
  font-weight: 600;
}
.po__item--active { background: rgba(31, 166, 154, .15); color: #7FD9D0; font-weight: 700; }
.po__ico { width: 8px; height: 8px; border: 1.5px solid currentColor; border-radius: 2px; flex: none; }
.po__user {
  margin-top: auto;
  padding: 8px 6px 2px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  display: flex;
  align-items: center;
  gap: 7px;
}
.po__avatar {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--navy);
  font-size: 8px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.po__user span:last-child { font-size: 9px; color: rgba(255, 255, 255, .45); }

.po__main { padding: 13px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.po__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.po__head-title { font-size: 13px; font-weight: 700; color: var(--white); }
.po__live { display: flex; align-items: center; gap: 6px; }
.po__live .mono { font-size: 8px; letter-spacing: .08em; color: rgba(255, 255, 255, .5); }

.po__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.po__kpi {
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  padding: 9px 10px;
  min-width: 0;
}
.po__kpi-label { display: block; font-size: 7.5px; letter-spacing: .1em; color: rgba(255, 255, 255, .45); }
.po__kpi-num { display: block; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--white); margin-top: 3px; }
.po__kpi-note { display: block; font-size: 8.5px; margin-top: 2px; }
.po__kpi-note--up { color: #4FC3B8; }
.po__kpi-note--warn { color: #E8B26B; }

.po__mid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 8px; min-width: 0; }
.po__card {
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  padding: 10px;
  min-width: 0;
}
.po__card-head { display: flex; justify-content: space-between; font-size: 7.5px; letter-spacing: .1em; color: rgba(255, 255, 255, .45); }
.po__dim { color: rgba(255, 255, 255, .3); }
.po__bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 84px;
  margin-top: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.po__bars span { flex: 1; border-radius: 2px 2px 0 0; }

.po__queue { display: flex; flex-direction: column; }
.po__q-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.po__queue .po__q-row:first-of-type { padding-top: 8px; }
.po__q-row--last { border-bottom: none; }
.po__q-dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.po__q-name {
  font-size: 9px;
  color: rgba(255, 255, 255, .78);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.po__q-pill {
  margin-left: auto;
  font-size: 6.5px;
  border: 1px solid;
  border-radius: 999px;
  padding: 2px 6px;
  flex: none;
}

.po__log {
  background: rgba(31, 166, 154, .1);
  border-left: 3px solid var(--teal);
  border-radius: 6px;
  padding: 9px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.po__log .mono {
  font-size: 8.5px;
  color: #9BE8DF;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.po__log-dim { color: rgba(155, 232, 223, .6) !important; }

/* --- CasaClave mockup --- */
.cc__mat { background: #F4EBDC; border-radius: 14px; padding: clamp(14px, 3.2vw, 38px); }
.cc { background: #FFFDF8; border: 1px solid #EADFC9; box-shadow: 0 26px 60px rgba(93, 70, 38, .18); }
.cc__grid { display: grid; grid-template-columns: 1.05fr 1.5fr 1.15fr; min-width: 0; }
.cc__dim { color: #A08B62; }
.cc__teal { color: var(--teal-dark); }

.cc__clients {
  border-right: 1px solid #F1E8D4;
  padding: 11px 9px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cc__col-label { font-size: 8px; letter-spacing: .1em; color: #A08B62; }
.cc__search { display: block; background: #F6EFDF; border-radius: 6px; padding: 5px 8px; font-size: 8.5px; color: #A08B62; }
.cc__client { display: flex; align-items: center; gap: 7px; padding: 6px; min-width: 0; border-radius: 6px; }
.cc__client--active { background: #F8F1E1; }
.cc__avatar {
  width: 19px; height: 19px;
  border-radius: 50%;
  font-size: 7.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.cc__avatar--mint { background: var(--mint); color: var(--teal-dark); }
.cc__avatar--sand { background: #F3D9B0; color: #8A5A1F; }
.cc__avatar--lg { width: 22px; height: 22px; font-size: 8px; }
.cc__client-info { display: flex; flex-direction: column; min-width: 0; }
.cc__client-name { font-size: 9px; font-weight: 700; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc__client-sub { font-size: 7.5px; color: #A08B62; }

.cc__week { padding: 11px; min-width: 0; }
.cc__week-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.cc__week-title { font-size: 11px; font-weight: 800; color: var(--navy); }
.cc__week-head .mono { font-size: 7.5px; }
.cc__days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin-top: 9px; }
.cc__day { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.cc__day-name { text-align: center; font-size: 7.5px; color: #A08B62; }
.cc__appt { border-radius: 5px; padding: 5px; font-size: 7.5px; font-weight: 700; line-height: 1.3; }
.cc__appt--mint { background: var(--mint); color: var(--teal-dark); }
.cc__appt--sand { background: #F3D9B0; color: #8A5A1F; }
.cc__appt--teal { background: var(--teal-dark); color: var(--white); }
.cc__appt--open { border: 1px dashed #E2D5B8; color: #C9B888; text-align: center; font-weight: 400; }
.cc__week-foot {
  margin-top: 10px;
  border-top: 1px dashed #EADFC9;
  padding-top: 8px;
  display: flex;
  justify-content: space-between;
}
.cc__week-foot span { font-size: 7.5px; }
.cc__week-foot span:first-child { color: #A08B62; }

.cc__file {
  border-left: 1px solid #F1E8D4;
  padding: 11px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.cc__file-client { display: flex; align-items: center; gap: 8px; }
.cc__file-name { font-size: 10px; font-weight: 800; color: var(--navy); }
.cc__file-status { font-size: 7.5px; color: var(--teal-dark); font-weight: 700; }
.cc__file-next { font-size: 8px; color: #A08B62; border-top: 1px solid #F1E8D4; padding-top: 8px; }
.cc__file .cc__col-label:last-of-type { margin-top: 2px; }
.cc__fu { display: flex; gap: 7px; align-items: flex-start; font-size: 8.5px; color: var(--gray); line-height: 1.4; }
.cc__fu-dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 2px; flex: none; }
.cc__fu-dot--empty { background: #FFFDF8; border: 1.5px solid #C9B888; margin-top: 1px; }
.cc__file-btn {
  margin-top: auto;
  background: var(--navy);
  color: var(--bg);
  border-radius: 6px;
  padding: 7px;
  text-align: center;
  font-size: 8.5px;
  font-weight: 700;
}

/* --- Northline mockup --- */
.nl__wrap { position: relative; min-height: clamp(340px, 66vw, 430px); }
.nl__store {
  position: absolute;
  left: 0; top: 0;
  width: 66%;
  background: var(--white);
  border: 1px solid #E2E7E1;
  box-shadow: 0 24px 60px rgba(16, 42, 67, .14);
}
.nl__admin {
  position: absolute;
  right: 0; bottom: 0;
  width: 60%;
  background: #0F2334;
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 30px 70px rgba(6, 20, 32, .45);
}

.nl__store-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 14px;
  border-bottom: 1px solid #EFF2EE;
}
.nl__logo { font-family: var(--font-display); font-weight: 800; font-size: 10.5px; letter-spacing: .22em; color: var(--navy); }
.nl__store-nav { display: flex; gap: 9px; font-size: 7.5px; color: var(--gray); }
.nl__hero { background: #EEF2EE; padding: 16px 14px; }
.nl__hero-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12.5px;
  color: var(--navy);
  max-width: 170px;
  line-height: 1.35;
}
.nl__hero-cta {
  display: inline-block;
  margin-top: 8px;
  font-size: 7.5px;
  letter-spacing: .1em;
  color: var(--teal-dark);
  border-bottom: 1px solid var(--teal);
  padding-bottom: 2px;
}
.nl__products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; padding: 12px 14px 14px; }
.nl__product { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.nl__thumb { display: block; height: 54px; border-radius: 6px; }
.nl__p-name { font-size: 8.5px; font-weight: 700; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nl__p-price { font-size: 8px; color: var(--gray); }

.nl__admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nl__admin-title { font-size: 11px; font-weight: 800; color: var(--white); }
.nl__live { display: flex; align-items: center; gap: 5px; }
.nl__live .pulse-dot { width: 6px; height: 6px; }
.nl__live .mono { font-size: 7.5px; color: rgba(255, 255, 255, .5); }
.nl__rows { padding: 2px 13px 8px; }
.nl__row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 50px 62px;
  gap: 7px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nl__rows .nl__row:first-child { padding-top: 8px; }
.nl__row--last { border-bottom: none; }
.nl__sku { font-size: 7px; color: rgba(255, 255, 255, .4); }
.nl__row-name { font-size: 9px; color: rgba(255, 255, 255, .85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nl__stock {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .12);
  position: relative;
  overflow: hidden;
  display: block;
}
.nl__stock span { position: absolute; left: 0; top: 0; bottom: 0; display: block; }
.nl__status {
  font-size: 6.5px;
  border: 1px solid;
  border-radius: 999px;
  padding: 2px 4px;
  text-align: center;
}
.nl__admin-foot {
  display: flex;
  justify-content: space-between;
  padding: 8px 13px;
  background: rgba(31, 166, 154, .1);
}
.nl__admin-foot span { font-size: 7.5px; color: #9BE8DF; }
.nl__foot-dim { color: rgba(155, 232, 223, .6) !important; }

/* ---------- Process ---------- */

.process { padding: clamp(64px, 10vw, 120px) var(--pad-x); background: var(--white); scroll-margin-top: 64px; }
.process .sec-note { max-width: 300px; }

.proc { position: relative; max-width: 960px; margin: clamp(44px, 7vw, 70px) auto 0; padding: 6px 0; }
.proc__spine {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: rgba(16, 42, 67, .12);
}
.proc__line {
  position: absolute;
  left: 0; top: 0;
  width: 2px;
  height: 100%;
  background: var(--teal);
  transform-origin: top;
  display: block;
}

.proc-row {
  display: grid;
  grid-template-columns: 1fr 84px 1fr;
  align-items: start;
  margin-bottom: 60px;
}
.proc-row--last { margin-bottom: 0; }
.proc-node {
  grid-column: 2;
  grid-row: 1;
  margin: 0 auto;
  width: 46px; height: 46px;
  background: var(--navy);
  color: var(--bg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 5px solid var(--white);
  box-shadow: 0 0 0 1px rgba(16, 42, 67, .14);
  position: relative;
  z-index: 1;
  box-sizing: content-box;
}
.proc-node--teal { background: var(--teal); color: var(--navy-ink); box-shadow: 0 0 0 1px rgba(31, 166, 154, .4); }
.proc-content { grid-row: 1; max-width: 360px; min-width: 0; }
.proc-content--start { grid-column: 1; justify-self: end; text-align: right; }
.proc-content--end { grid-column: 3; justify-self: start; text-align: left; }
.proc-content h3 {
  margin: 8px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(19px, 2.5vw, 22px);
  letter-spacing: -.01em;
  color: var(--navy);
}
.proc-content p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--gray); }

/* ---------- About ---------- */

.about { padding: clamp(64px, 10vw, 120px) var(--pad-x); scroll-margin-top: 64px; }
.about__grid { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 56px); align-items: flex-start; }
.about__text { flex: 1 1 460px; min-width: 0; }
.about__title { font-size: clamp(32px, 4.5vw, 54px); line-height: 1.05; }
.about__p1 { margin: 26px 0 0; font-size: 16.5px; line-height: 1.75; color: var(--navy); max-width: 560px; }
.about__p2 { margin: 16px 0 0; font-size: 16.5px; line-height: 1.75; color: var(--gray); max-width: 560px; }

.spec {
  flex: 1 1 320px;
  max-width: 440px;
  background: var(--white);
  border: 1px solid rgba(16, 42, 67, .18);
  border-radius: 10px;
  padding: clamp(22px, 4vw, 30px) clamp(20px, 4vw, 28px);
}
.spec__title { font-size: 10.5px; letter-spacing: .16em; color: var(--navy); }
.spec__row {
  display: grid;
  grid-template-columns: minmax(96px, 118px) 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.spec__row:first-of-type { padding-top: 16px; margin-top: 10px; }
.spec__row--last { border-bottom: none; }
.spec__key { font-size: 10px; letter-spacing: .14em; color: var(--gray); padding-top: 2px; }
.spec__val { font-size: 14.5px; font-weight: 600; }
.spec__foot {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  border-top: 1px solid var(--line-soft);
  padding-top: 20px;
}
.spec__foot-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.spec__avail { font-size: 10px; letter-spacing: .12em; color: var(--teal); }
.spec__foot-info a {
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Contact ---------- */

.contact {
  background: var(--navy);
  color: var(--bg);
  padding: clamp(72px, 10vw, 120px) var(--pad-x) clamp(56px, 8vw, 80px);
  scroll-margin-top: 64px;
}
.contact__inner { max-width: 1180px; margin: 0 auto; }
.contact__title {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 6.5vw, 80px);
  letter-spacing: -.03em;
  line-height: 1.02;
}
.contact__sub { margin: 22px 0 0; max-width: 560px; font-size: 16.5px; line-height: 1.7; color: rgba(255, 255, 255, .75); }

.contact__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: clamp(32px, 5vw, 46px);
}
.ccard {
  text-decoration: none;
  color: var(--bg);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color .25s ease, background .25s ease;
}
.ccard:hover { border-color: var(--teal); background: rgba(31, 166, 154, .08); color: var(--bg); }
.ccard__top { display: flex; justify-content: space-between; align-items: center; }
.ccard__name { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.ccard__arrow { color: var(--teal); }
.ccard__detail {
  font-size: 11px;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .55);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Form */
.pform {
  margin-top: clamp(44px, 7vw, 64px);
  border-top: 1px solid rgba(255, 255, 255, .16);
  padding-top: clamp(36px, 6vw, 52px);
}
.pform__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.pform__title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.pform__tag { font-size: 10.5px; letter-spacing: .14em; color: rgba(255, 255, 255, .45); }

.pform__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px 36px;
}
.field--full { margin-top: 34px; }
.field label {
  display: block;
  font-size: 10.5px;
  letter-spacing: .16em;
  color: rgba(255, 255, 255, .55);
  margin-bottom: 10px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, .3);
  border-radius: 0;
  color: var(--bg);
  font-size: 16px;
  padding: 8px 2px 12px;
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-bottom-color: var(--teal);
  box-shadow: 0 1px 0 0 var(--teal);
  outline: none;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(250, 250, 247, .38); }
.field textarea { line-height: 1.6; resize: vertical; }
.field__select { position: relative; display: block; }
.field select { padding-right: 24px; appearance: none; -webkit-appearance: none; cursor: pointer; }
.field select option { color: var(--navy); background: var(--white); }
.field__caret {
  position: absolute;
  right: 4px; top: 12px;
  color: rgba(255, 255, 255, .5);
  font-size: 11px;
  pointer-events: none;
}

.pform__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 38px; }
.pform__actions .btn { padding: 16px 28px; font-size: 15.5px; }
.pform__sent { font-size: 12px; line-height: 1.6; color: #9BE8DF; max-width: 440px; }
.pform__sent[hidden] { display: none; }

/* ---------- Footer ---------- */

.footer { padding: 48px var(--pad-x) 32px; background: var(--bg); }
.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__id { display: flex; flex-direction: column; gap: 2px; }
.footer__name { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.footer__role { font-size: 13px; color: var(--gray); }
.footer__contact { display: flex; flex-direction: column; gap: 8px; }
.footer__contact a { font-size: 12px; text-decoration: none; }
.footer__contact span { font-size: 12px; color: var(--gray); }
.footer__top-link {
  text-decoration: none;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--navy);
  border: 1px solid rgba(16, 42, 67, .3);
  border-radius: 999px;
  padding: 12px 20px;
  transition: background .25s ease;
}
.footer__top-link:hover { background: var(--mint); color: var(--navy); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(16, 42, 67, .12);
  margin-top: 40px;
  padding-top: 20px;
}
.footer__bottom span { font-size: 13px; color: var(--gray); }
.footer__tag { font-size: 10px !important; letter-spacing: .14em; }

/* ---------- Project modal ---------- */

.modal { position: fixed; inset: 0; z-index: 220; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__scrim { position: absolute; inset: 0; background: rgba(7, 22, 35, .66); }
.modal__panel {
  position: relative;
  width: 100%;
  max-width: 860px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--bg);
  border-radius: 14px;
  box-shadow: 0 40px 100px rgba(4, 16, 26, .5);
}
.modal__bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: rgba(250, 250, 247, .97);
  border-bottom: 1px solid rgba(16, 42, 67, .12);
  padding: 14px clamp(16px, 4vw, 26px);
}
.modal__tag { font-size: 10.5px; letter-spacing: .16em; color: var(--teal-dark); }
.modal__close {
  width: 44px; height: 44px;
  background: var(--white);
  border: 1px solid rgba(16, 42, 67, .2);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--navy);
  transition: background .2s;
  flex: none;
}
.modal__close:hover { background: var(--mint); }

.modal__body { padding: 14px clamp(16px, 4vw, 30px) 38px; }
.modal__name {
  margin: 14px 0 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -.02em;
}
.modal__cat { margin: 0; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; color: var(--gray); text-transform: uppercase; }

.modal__section { margin-top: 30px; }
.modal__section-head { display: flex; align-items: center; gap: 10px; }
.modal__sq { width: 8px; height: 8px; background: var(--teal); flex: none; }
.modal__section-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: var(--navy); }
.modal__section p { margin: 10px 0 0; font-size: 15.5px; line-height: 1.7; color: #3E4C59; max-width: 640px; }

.modal__screens {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.mshot { margin: 0; }
.mshot__frame {
  border-radius: 10px;
  border: 1px solid rgba(16, 42, 67, .12);
  padding: 12px;
  height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.mshot__skeleton {
  background: rgba(255, 255, 255, .94);
  border-radius: 6px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mshot__line { display: block; height: 7px; width: 58%; background: #C9D5DF; border-radius: 3px; }
.mshot__blocks { display: flex; gap: 5px; }
.mshot__blocks span { flex: 1; height: 24px; background: #E2E9EF; border-radius: 4px; }
.mshot__blocks span:last-child { background: var(--mint); }
.mshot__line--short { height: 6px; width: 40%; background: #DCE4EB; }
.mshot figcaption { margin-top: 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; color: var(--gray); }

.modal__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.modal__note {
  margin-top: 34px;
  border: 1px dashed rgba(16, 42, 67, .35);
  border-radius: 10px;
  background: var(--white);
  padding: 16px 18px;
}
.modal__note p { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--gray); }

.modal__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.modal__actions .btn { padding: 14px 24px; font-size: 14.5px; }
.modal__back {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid rgba(16, 42, 67, .4);
  padding: 14px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  transition: background .25s ease;
}
.modal__back:hover { background: var(--mint); }
.modal__back:active { transform: translateY(1px); }

/* Body scroll lock while modal / mobile menu is open */
body.is-locked { overflow: hidden; }

/* ==========================================================================
   Mobile (≤ 880px)
   ========================================================================== */

@media (max-width: 880px) {
  .nav__desktop { display: none; }
  .nav__mobile { display: flex; }

  .hero__coords { display: none; }
  .sysmap--desktop { display: none; }
  .sysmap--mobile { display: block; }

  /* PulseOps: no sidebar */
  .po__grid { grid-template-columns: 1fr; }
  .po__side { display: none; }

  /* CasaClave: no client-file column */
  .cc__grid { grid-template-columns: 1fr 1.45fr; }
  .cc__file { display: none; }

  /* Northline: stacked panels with slight overlap */
  .nl__wrap { min-height: 0; }
  .nl__store { position: relative; width: 94%; }
  .nl__admin { position: relative; width: 94%; margin-left: auto; margin-top: -30px; }

  /* Process: single left rail */
  .proc__spine { left: 27px; }
  .proc-row { grid-template-columns: 56px 1fr; gap: 14px; margin-bottom: 40px; }
  .proc-row--last { margin-bottom: 0; }
  .proc-node { grid-column: 1; margin: 0; width: 40px; height: 40px; font-size: 13px; border-width: 4px; }
  .proc-content,
  .proc-content--start,
  .proc-content--end { grid-column: 2; justify-self: start; text-align: left; max-width: 560px; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal-pending, .drawline-pending { opacity: 1; transform: none; }
}
