/* ═══════════════════════════════════════════════════════════════════
   HALYON — sections.css
   strip · capabilities · work · philosophy · process · contact · footer
   ═══════════════════════════════════════════════════════════════════ */

/* ─── TECH STRIP ─────────────────────────────────────────────────── */
#strip {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 28px 0;
  overflow: hidden;
}
.strip-head {
  text-align: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-faint);
  margin-bottom: 24px;
}
.marquee { display: flex; overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track {
  display: flex; align-items: center; gap: 60px; padding-right: 60px;
  animation: marquee 40s linear infinite; white-space: nowrap; flex: none;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item {
  display: inline-flex; align-items: center; gap: 11px;
  font-size: 16px; font-weight: 500; color: var(--ink-faint);
  letter-spacing: -0.01em; transition: color 0.3s;
}
.marquee-item:hover { color: var(--ink); }
/* real brand logos — muted by default, full colour on hover (premium
   "built with" feel). The marquee pauses on hover so they settle. */
.marquee-item img {
  width: 22px; height: 22px; object-fit: contain;
  filter: grayscale(1); opacity: 0.5;
  transition: filter 0.35s var(--ease), opacity 0.35s var(--ease);
}
.marquee-item:hover img { filter: none; opacity: 1; }

/* ═══════════════════════════════════════════════════════════════════
   CAPABILITIES
   ═══════════════════════════════════════════════════════════════════ */
#capabilities { padding: var(--section-y) 0; }
.cap-head { display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 24px; margin-bottom: clamp(48px, 7vh, 84px); }
.cap-head .left { max-width: 60ch; }
.cap-index { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em;
  color: var(--ink-faint); }

/* ── services as integrated, alternating rows (no cards) ──────────── */
.cap-rows { display: flex; flex-direction: column; }
.cap-row {
  display: grid; grid-template-columns: 1fr 1.06fr; gap: clamp(36px, 6vw, 96px);
  align-items: center; padding: clamp(44px, 7vh, 84px) 0;
  border-top: 1px solid var(--line-soft);
}
.cap-row:first-child { border-top: none; padding-top: clamp(8px, 2vh, 22px); }
.cap-row:nth-child(even) { grid-template-columns: 1.06fr 1fr; }
.cap-row:nth-child(even) .cap-text { order: 2; }

.cap-text { max-width: 46ch; }
.cap-num {
  font-family: var(--mono); font-size: 12px; color: var(--ink-faint);
  letter-spacing: 0.18em; display: inline-flex; align-items: center; gap: 11px;
}
.cap-num::before { content: ""; width: 24px; height: 1.5px; border-radius: 2px; background: var(--gradient); }
.cap-title { font-size: clamp(28px, 3.6vw, 46px); font-weight: 500;
  letter-spacing: -0.03em; line-height: 1.04; margin-top: 18px; }
.cap-desc { color: var(--ink-dim); font-size: clamp(15.5px, 1.5vw, 18px);
  line-height: 1.6; margin-top: 20px; }
.cap-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.cap-tag {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em;
  color: var(--ink); white-space: nowrap;
  padding: 7px 14px 7px 11px; border-radius: 999px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, var(--bg-2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), 0 6px 16px -11px rgba(26,23,18,0.5);
  overflow: hidden; isolation: isolate;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s, color 0.4s;
}
.cap-tag::before {                                  /* brand dot */
  content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gradient); box-shadow: 0 0 8px rgba(217,107,255,0.65);
}
.cap-tag::after {                                   /* sheen that follows the cursor */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  border-radius: inherit; transition: opacity 0.35s var(--ease);
  background: radial-gradient(90px circle at var(--mx, 50%) var(--my, 50%),
    rgba(217,107,255,0.22), rgba(138,92,255,0.1) 40%, transparent 64%);
}
.cap-tag:hover {
  transform: translateY(-2px);
  border-color: rgba(217,107,255,0.45);
  box-shadow: 0 0 0 1px rgba(217,107,255,0.28), 0 12px 26px -12px rgba(217,107,255,0.5);
}
.cap-tag:hover::after { opacity: 1; }

/* the demo floats inside a soft spotlight — no hard card around it */
.cap-demo {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 300px;
}
.cap-demo::before {
  content: ""; position: absolute; width: 78%; height: 86%; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,107,255,0.10), transparent 66%);
  filter: blur(34px); z-index: 0;
}
.cap-demo > * { position: relative; z-index: 1; }
.cap-demo .wachat { max-width: 432px; }
.cap-demo .sitedemo { max-width: 380px; }

@media (max-width: 860px) {
  .cap-row, .cap-row:nth-child(even) { grid-template-columns: 1fr; gap: 28px; }
  .cap-row:nth-child(even) .cap-text { order: 0; }
  .cap-text { max-width: none; }
  .cap-demo { min-height: 230px; }
}

/* ── Card 01 · integration hub — your service icons orbit the core ── */
.hub { width: 200px; height: 200px; position: relative; }
.hub-ring { position: absolute; inset: 28px; border-radius: 50%;
  border: 1px dashed var(--line); }
.hub-core { position: absolute; top: 50%; left: 50%; width: 54px; height: 54px;
  margin: -27px; border-radius: 50%; background: var(--gradient); z-index: 3;
  box-shadow: 0 0 30px rgba(217,107,255,0.45), inset -6px -8px 16px rgba(0,0,0,0.3); }
.hub-pulse { position: absolute; top: 50%; left: 50%; width: 54px; height: 54px;
  margin: -27px; border-radius: 50%; border: 1px solid var(--g-violet);
  opacity: 0; animation: hub-pulse 3.6s var(--ease) infinite; }
.hub-pulse.p2 { animation-delay: 1.8s; }
@keyframes hub-pulse { 0%{ transform: scale(1); opacity: .45 } 100%{ transform: scale(3.1); opacity: 0 } }
.hub-spin { position: absolute; inset: 0; animation: hub-rot 28s linear infinite; }
.cap-card:hover .hub-spin { animation-duration: 16s; }
@keyframes hub-rot { to { transform: rotate(360deg); } }
.hub-pod { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px;
  margin: -23px;
  transform: rotate(var(--a)) translateY(-72px) rotate(calc(var(--a) * -1)); }
.hub-pod image-slot { display: block; width: 46px; height: 46px; border-radius: 50%;
  overflow: hidden; background: var(--bg-card);
  box-shadow: 0 4px 14px -4px rgba(26,23,18,0.3), inset 0 0 0 1px var(--line);
  animation: hub-rot 28s linear infinite reverse; }
.cap-card:hover .hub-pod image-slot { animation-duration: 16s; }
@media (prefers-reduced-motion: reduce) {
  .hub-spin, .hub-pod image-slot, .hub-pulse { animation: none; }
}

/* ── Card 02 · orchestration graph — nodes + flowing wires ── */
.orch { width: 220px; height: 150px; position: relative; }
.orch-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orch-wires path { fill: none; stroke: var(--line-bright); stroke-width: 1.4;
  stroke-dasharray: 4 6; animation: orch-dash 1.4s linear infinite; }
.cap-card:hover .orch-wires path { animation-duration: 0.8s; }
@keyframes orch-dash { to { stroke-dashoffset: -20; } }
.orch-node { position: absolute; width: 16px; height: 16px; margin: -8px;
  border-radius: 6px; background: var(--bg-card); border: 1px solid var(--line);
  box-shadow: 0 2px 8px -3px rgba(26,23,18,0.25); }
.orch-node.i { border-radius: 50%; width: 18px; height: 18px; margin: -9px; }
.orch-node.live { border-color: transparent; background: var(--gradient);
  box-shadow: 0 0 16px rgba(217,107,255,0.5); animation: orch-pulse 2.4s ease-in-out infinite; }
@keyframes orch-pulse { 0%,100%{ box-shadow: 0 0 10px rgba(217,107,255,0.35) } 50%{ box-shadow: 0 0 22px rgba(217,107,255,0.75) } }
@media (prefers-reduced-motion: reduce) {
  .orch-wires path, .orch-node.live { animation: none; }
}

/* experiences: layered planes (always gently floating) */
.planes { width: 190px; height: 170px; position: relative; }
.planes span { position: absolute; inset: 14px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--bg-2);
  box-shadow: 0 8px 24px -12px rgba(26,23,18,0.3);
  transition: transform 0.7s var(--ease); }
.planes span:nth-child(1) { transform: translate(-24px,-20px); animation: floatA 6s var(--ease) infinite; }
.planes span:nth-child(2) { transform: translate(0,0); border-color: var(--line-bright); }
.planes span:nth-child(3) { transform: translate(24px,20px);
  background: linear-gradient(135deg, rgba(255,170,140,0.22), rgba(91,124,255,0.22));
  animation: floatB 6s var(--ease) infinite; }
.cap-card:hover .planes span:nth-child(1) { transform: translate(-36px,-30px) rotate(-4deg); }
.cap-card:hover .planes span:nth-child(3) { transform: translate(36px,30px) rotate(4deg); }
@keyframes floatA { 0%,100%{ transform: translate(-24px,-20px); } 50%{ transform: translate(-28px,-26px); } }
@keyframes floatB { 0%,100%{ transform: translate(24px,20px); } 50%{ transform: translate(28px,26px); } }
@media (prefers-reduced-motion: reduce) {
  .planes span { animation: none; }
}

/* ── Card 01 · live WhatsApp sales chat — the service in action ────── */
.wachat {
  width: 100%; max-width: 360px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 2px 6px -2px rgba(26,23,18,0.1), 0 28px 58px -24px rgba(26,23,18,0.45);
  font-size: 12.5px;
}
.wachat-head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 13px; background: #f3efe7;
  border-bottom: 1px solid var(--line-soft);
}
.wachat-av {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: var(--gradient);
  box-shadow: 0 0 11px rgba(217,107,255,0.4), inset -2px -3px 5px rgba(0,0,0,0.28);
}
.wachat-id { display: flex; flex-direction: column; line-height: 1.2; flex: 1; min-width: 0; }
.wachat-id b { font-size: 13px; font-weight: 600; color: var(--ink); }
.wachat-id i {
  font-style: normal; font-size: 10.5px; color: #1faa59;
  display: inline-flex; align-items: center; gap: 5px;
}
.wachat-id i::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: #25d366; box-shadow: 0 0 6px rgba(37,211,102,0.7);
}
.wachat-wa { opacity: 0.92; flex: none; }
.wachat-body {
  padding: 13px 12px; height: 184px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 7px;
  background:
    radial-gradient(120% 55% at 50% 0%, rgba(217,107,255,0.05), transparent 60%),
    #ECE5DD; /* classic WhatsApp chat beige — gives it depth */
}
.wa-msg {
  max-width: 80%; padding: 6px 9px 5px; border-radius: 9px; line-height: 1.34;
  font-weight: 500; word-wrap: break-word; position: relative;
  box-shadow: 0 1px 1.5px rgba(0,0,0,0.13);
  animation: wa-pop 0.3s var(--ease-out);
}
.wa-msg.in { align-self: flex-start; background: #fff; color: var(--ink); border-bottom-left-radius: 3px; }
.wa-msg.out { align-self: flex-end; background: #d7f8c8; color: #0c3b27; border-bottom-right-radius: 3px; }
.wa-txt { display: inline; }
.wa-meta {
  display: block; text-align: right; font-size: 8.5px; margin-top: 2px;
  font-weight: 600; letter-spacing: 0.02em; color: rgba(11,59,39,0.5);
}
.wa-msg.in .wa-meta { color: var(--ink-faint); }
.wa-check { color: #34b7f1; font-weight: 700; }
.wachat-input {
  display: flex; align-items: center; gap: 9px; padding: 9px 12px;
  background: #f3efe7; border-top: 1px solid var(--line-soft);
}
.wachat-input span {
  flex: 1; font-size: 11.5px; color: var(--ink-faint);
  background: #fff; border-radius: 99px; padding: 7px 13px; border: 1px solid var(--line-soft);
}
.wachat-send { width: 27px; height: 27px; border-radius: 50%; flex: none; background: #25d366; position: relative; }
.wachat-send::after {
  content: ""; position: absolute; left: 9px; top: 9px;
  width: 8px; height: 8px; border: solid #fff; border-width: 2px 2px 0 0; transform: rotate(45deg);
}
.wa-typing { display: inline-flex; gap: 3px; align-items: center; padding: 9px 12px; }
.wa-typing span {
  width: 5px; height: 5px; border-radius: 50%; background: var(--ink-faint);
  animation: wa-blink 1.2s infinite;
}
.wa-typing span:nth-child(2) { animation-delay: 0.2s; }
.wa-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes wa-pop { from { opacity: 0; transform: translateY(7px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes wa-blink { 0%, 60%, 100% { opacity: 0.3; } 30% { opacity: 1; } }

/* ── Card 02 · automation orchestration — a live node graph with depth ──
   A trigger feeds a glowing engine that fires actions in sequence; data
   packets flow along the wires; the whole graph floats in 3D toward the
   cursor (tilt set by JS via --rx / --ry). ───────────────────────────── */
.autoflow { width: 100%; max-width: 420px; perspective: 900px; }
.af-stage {
  position: relative; width: 100%; height: 232px;   /* fixed → nodes never collapse */
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.25s ease-out;
}
.af-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.af-wire {
  stroke: url(#afgrad); stroke-width: 2; stroke-linecap: round; opacity: 0.7;
  stroke-dasharray: 3 6; animation: af-flow 1.3s linear infinite;
}
@keyframes af-flow { to { stroke-dashoffset: -18; } }
.af-dot { fill: #9a6bff; filter: drop-shadow(0 0 6px rgba(138,92,255,0.95)); }

/* nodes — glassy chips that float above the wires */
.af-node {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 12px; white-space: nowrap;
  font-size: 11.5px; font-weight: 600; color: var(--ink);
  background: linear-gradient(180deg, #ffffff, #f6f1ea);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset, 0 14px 26px -14px rgba(26,23,18,0.55);
  transform: translateY(-50%); transform-style: preserve-3d;
}
.af-node img { flex: none; }
.af-lbl { display: flex; flex-direction: column; line-height: 1.25; }
.af-lbl b { font-weight: 600; }
.af-lbl i { font-style: normal; font-size: 9.5px; color: var(--ink-faint); font-family: var(--mono); letter-spacing: 0.02em; }

.af-trigger { left: 0; top: 50%; z-index: 3; }
/* anchored to the RIGHT edge so the labels never overflow on narrow screens */
.af-act { right: 0; left: auto; z-index: 3; opacity: 0.5; transition: opacity 0.4s, box-shadow 0.4s, border-color 0.4s; }
.af-act.a0 { top: 14%; }
.af-act.a1 { top: 50%; }
.af-act.a2 { top: 86%; }
.af-act.fire {
  opacity: 1; border-color: rgba(217,107,255,0.5);
  box-shadow: 0 0 0 1px rgba(217,107,255,0.3), 0 16px 30px -14px rgba(217,107,255,0.6);
}
.af-check {
  width: 15px; height: 15px; border-radius: 50%; flex: none; position: relative;
  background: var(--bg-3); transition: background 0.35s;
}
.af-check::after {                                   /* the tick */
  content: ""; position: absolute; left: 5px; top: 2.5px;
  width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0); transform-origin: center;
  transition: transform 0.3s var(--ease);
}
.af-act.fire .af-check { background: linear-gradient(135deg, var(--g-magenta), var(--g-violet)); }
.af-act.fire .af-check::after { transform: rotate(45deg) scale(1); }

/* the engine — a glowing gradient orb with two rotating rings */
.af-engine {
  position: absolute; left: 47%; top: 50%; width: 52px; height: 52px;
  transform: translate(-50%, -50%) translateZ(30px);
  border-radius: 50%; z-index: 4;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.4) inset,
    0 0 30px rgba(217,107,255,0.6), 0 14px 30px -10px rgba(138,92,255,0.7);
  animation: af-breathe 3.4s ease-in-out infinite;
}
.af-engine img { filter: brightness(0) invert(1); position: relative; z-index: 2; }
.af-ring {
  position: absolute; inset: -7px; border-radius: 50%;
  border: 1.5px solid rgba(217,107,255,0.4); border-top-color: transparent; border-bottom-color: transparent;
  animation: af-spin 5s linear infinite;
}
.af-ring.r2 { inset: -13px; border-color: rgba(91,124,255,0.32);
  border-left-color: transparent; border-right-color: transparent;
  animation: af-spin 8s linear infinite reverse; }
@keyframes af-spin { to { transform: rotate(360deg); } }
@keyframes af-breathe { 0%,100% { box-shadow: 0 0 0 1px rgba(255,255,255,0.4) inset, 0 0 24px rgba(217,107,255,0.5), 0 14px 30px -10px rgba(138,92,255,0.6); } 50% { box-shadow: 0 0 0 1px rgba(255,255,255,0.5) inset, 0 0 40px rgba(217,107,255,0.8), 0 14px 34px -8px rgba(138,92,255,0.85); } }

@media (prefers-reduced-motion: reduce) {
  .af-wire, .af-dot, .af-ring, .af-engine { animation: none; }
}
@media (max-width: 860px) { .autoflow { max-width: 340px; } }
.af-act span i { font-style: normal; }
/* compact the graph on phones — short labels so nodes never crowd the engine */
@media (max-width: 600px) {
  .af-node { font-size: 10.5px; padding: 7px 10px; gap: 6px; }
  .af-lbl i { font-size: 9px; }
  .af-engine { width: 46px; height: 46px; }
  .af-act span i { display: none; }
}

/* ── Card 03 · website + app — a live browser + phone, floating in 3D ──
   The browser shows a real-looking landing; an animated cursor clicks the
   CTA on a loop; the phone alongside proves it's responsive. The whole
   thing tilts toward the pointer (--ry/--rx via JS, shared tilt handler). */
.sitedemo {
  position: relative; width: 100%; max-width: 360px; margin: 6px auto 26px;
}
.site-browser {
  position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: #fff;
  box-shadow: 0 2px 4px -2px rgba(26,23,18,0.15), 0 30px 60px -26px rgba(26,23,18,0.5);
  animation: site-float 7s ease-in-out infinite;
}
.site-bar {
  display: flex; align-items: center; gap: 6px; padding: 8px 11px;
  background: var(--bg-2); border-bottom: 1px solid var(--line-soft);
}
.site-bar > i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-bright); flex: none; }
.site-bar > i:first-child { background: #ff6159; }
.site-bar > i:nth-child(2) { background: #ffbd2e; }
.site-bar > i:nth-child(3) { background: #28c840; }
.site-url {
  margin-left: 7px; font-family: var(--mono); font-size: 9.5px; color: var(--ink-faint);
  background: #fff; border: 1px solid var(--line-soft); border-radius: 6px; padding: 3px 11px;
  flex: 1; text-align: center;
}
.site-live {
  display: inline-flex; align-items: center; gap: 5px; flex: none;
  font-family: var(--mono); font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase;
  color: #1f9d57;
}
.site-live::before { content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: #28c840; box-shadow: 0 0 7px #28c840; animation: site-blink 2.2s ease-in-out infinite; }
@keyframes site-blink { 0%,100%{opacity:1} 50%{opacity:0.35} }

.site-screen {
  height: 208px; overflow: hidden; position: relative;
  background: radial-gradient(120% 80% at 82% -10%, rgba(217,107,255,0.16), transparent 52%), #fff;
}
.site-page { padding: 14px 18px; display: flex; flex-direction: column; gap: 8px; }
.site-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }
.site-logo { width: 46px; height: 9px; border-radius: 3px; background: var(--ink); opacity: 0.85; }
.site-links { display: inline-flex; align-items: center; gap: 7px; }
.site-links i { width: 16px; height: 5px; border-radius: 3px; background: var(--line-bright); }
.site-links b { width: 30px; height: 13px; border-radius: 99px; background: var(--gradient); }
.site-eyebrow {
  font-family: var(--mono); font-size: 8px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--g-violet);
}
.site-h { font-size: 23px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.04; color: var(--ink); }
.site-h .g { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-sub { display: flex; flex-direction: column; gap: 4px; margin-top: 2px; }
.site-sub i { height: 4px; border-radius: 3px; background: var(--line); }
.site-sub i:first-child { width: 72%; } .site-sub i:last-child { width: 52%; }
.site-btn {
  position: relative; overflow: hidden; align-self: flex-start;
  font-size: 10.5px; font-weight: 600; color: #fff;
  background: var(--gradient); border-radius: 99px; padding: 8px 17px; margin-top: 6px;
  box-shadow: 0 8px 18px -8px rgba(217,107,255,0.7);
  animation: site-press 5s ease-in-out infinite;
}
.site-btn::after {                                   /* click ripple */
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px;
  border-radius: 50%; background: rgba(255,255,255,0.6); transform: translate(-50%,-50%) scale(0);
  animation: site-ripple 5s ease-out infinite;
}
.site-cards { display: flex; gap: 7px; margin-top: 11px; }
.site-cards span {
  flex: 1; height: 34px; border-radius: 8px; background: var(--bg-2);
  border: 1px solid var(--line-soft); position: relative;
}
.site-cards span::before { content: ""; position: absolute; left: 8px; top: 7px;
  width: 12px; height: 12px; border-radius: 4px; background: var(--gradient); opacity: 0.85; }
.site-cards span::after { content: ""; position: absolute; left: 8px; bottom: 7px;
  width: 60%; height: 4px; border-radius: 3px; background: var(--line-bright); }

/* the live cursor that glides to the CTA and clicks, on a loop */
.site-cursor {
  position: absolute; left: 0; top: 0; width: 13px; height: 13px; z-index: 6;
  background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 1l9 4-4 1.4L4.6 10z' fill='%23fff' stroke='%231a1712' stroke-width='1' stroke-linejoin='round'/%3E%3C/svg%3E");
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  animation: site-point 5s ease-in-out infinite;
}
@keyframes site-point {
  0%   { transform: translate(150px, 30px); opacity: 0; }
  12%  { opacity: 1; }
  46%  { transform: translate(48px, 126px); }          /* arrive over the CTA */
  54%  { transform: translate(48px, 126px) scale(0.85); }
  62%  { transform: translate(48px, 126px); }
  92%  { transform: translate(120px, 150px); opacity: 1; }
  100% { transform: translate(150px, 30px); opacity: 0; }
}
@keyframes site-press {
  0%,49%,67%,100% { transform: none; box-shadow: 0 8px 18px -8px rgba(217,107,255,0.7); }
  56% { transform: scale(0.95); box-shadow: 0 4px 10px -6px rgba(217,107,255,0.8); }
}
@keyframes site-ripple {
  0%,52% { transform: translate(-50%,-50%) scale(0); opacity: 0.6; }
  72%    { transform: translate(-50%,-50%) scale(7); opacity: 0; }
  100%   { transform: translate(-50%,-50%) scale(7); opacity: 0; }
}
@keyframes site-float { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-9px); } }

/* the phone sits alongside — same brand, proves it's responsive */
.site-phone {
  position: absolute; right: -16px; bottom: -22px; width: 90px; height: 184px;
  border-radius: 20px; background: #15151c; padding: 5px; z-index: 4;
  box-shadow: 0 30px 50px -16px rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.14);
  animation: site-float 7s ease-in-out infinite; animation-delay: -3.5s;
}
.site-phone-screen {
  width: 100%; height: 100%; border-radius: 15px; overflow: hidden;
  background: radial-gradient(135% 65% at 55% 0%, rgba(217,107,255,0.24), #fff 60%);
  padding: 13px 11px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
}
.site-ph-tag { font-family: var(--mono); font-size: 6.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--g-violet); }
.site-ph-h { font-size: 15px; font-weight: 600; line-height: 1.02; letter-spacing: -0.02em; color: var(--ink); }
.site-ph-h .g { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-ph-btn { height: 17px; width: 72%; border-radius: 99px; background: var(--gradient); margin-top: 3px; }
@media (prefers-reduced-motion: reduce) {
  .site-browser, .site-phone, .site-cursor, .site-btn, .site-btn::after, .site-live::before { animation: none; }
  .site-cursor { display: none; }
}
/* keep the browser + phone inside the viewport on phones */
@media (max-width: 600px) {
  .sitedemo { max-width: 308px; }
  .site-phone { right: -8px; bottom: -18px; width: 78px; height: 162px; }
}

/* ═══════════════════════════════════════════════════════════════════
   WORK
   ═══════════════════════════════════════════════════════════════════ */
#work { padding: var(--section-y) 0; background: var(--bg-2);
  border-top: 1px solid var(--line-soft); }
.work-head { margin-bottom: clamp(40px, 6vh, 70px); }

.work-item { padding: clamp(40px,6vh,72px) 0; border-top: 1px solid var(--line-soft); }
.work-item:first-of-type { border-top: none; }
.work-row { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px,5vw,72px);
  align-items: center; }
.work-item:nth-child(even) .work-row { grid-template-columns: 1.15fr 1fr; }
.work-item:nth-child(even) .work-text { order: 2; }
@media (max-width: 900px) {
  .work-row, .work-item:nth-child(even) .work-row { grid-template-columns: 1fr; }
  .work-item:nth-child(even) .work-text { order: 0; }
}

.work-meta { display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--ink-faint); }
.work-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-faint); }
.work-title { font-size: clamp(30px,4vw,52px); font-weight: 500; letter-spacing: -0.035em;
  line-height: 1.02; margin: 20px 0 0; }
.work-desc { color: var(--ink-dim); font-size: 16.5px; line-height: 1.6;
  max-width: 42ch; margin-top: 18px; }
.work-stats { display: flex; gap: 36px; margin-top: 30px; }
.work-stat .v { font-size: 30px; font-weight: 500; letter-spacing: -0.03em; }
.work-stat .v .grad { background: var(--gradient); -webkit-background-clip: text;
  background-clip: text; color: transparent; }
.work-stat .l { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--ink-faint); text-transform: uppercase; margin-top: 5px; }
.work-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px;
  font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.work-link svg { width: 15px; height: 15px; transition: transform 0.4s var(--ease); }
.work-link:hover svg { transform: translateX(5px); }

/* visual frame */
.work-frame {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(26,23,18,0.14); background: var(--night);
  aspect-ratio: 16/11;
  box-shadow: 0 30px 70px -34px rgba(26,23,18,0.5);
  transition: transform 0.7s var(--ease), border-color 0.6s, box-shadow 0.6s;
  will-change: transform;
  /* dark product window — re-scope tokens so the mock UIs render on night */
  --bg-3: var(--night-3);
  --bg-card: var(--night-card);
  --line: var(--night-line);
  --line-soft: var(--night-line-soft);
  --ink: var(--night-ink);
  --ink-faint: var(--night-faint);
  color: var(--night-ink);
}
.work-item:hover .work-frame { box-shadow: 0 44px 90px -40px rgba(138,92,255,0.55); }
.work-frame .glassbar { height: 38px; display: flex; align-items: center; gap: 7px;
  padding: 0 16px; border-bottom: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.02); }
.work-frame .glassbar i { width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.14); }
.work-frame .canvas { position: absolute; inset: 38px 0 0; overflow: hidden; }
/* real product screenshots fill the window, anchored to the top so each
   app's header reads clearly */
.work-frame .canvas .shot {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  display: block;
}
/* brand placeholder — the Halyon mark floats on the night frame until a
   real product screenshot is dropped in */
.work-frame.is-brand .canvas {
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(120% 100% at 50% 36%, #15151f 0%, #0a0a0e 72%);
}
.work-frame .brand-shot img {
  width: clamp(118px, 26%, 188px); height: auto; display: block;
  filter: drop-shadow(0 0 52px rgba(138,92,255,0.5));
  animation: brandfloat 6s var(--ease) infinite;
}
@keyframes brandfloat { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-9px) } }
@media (prefers-reduced-motion: reduce) { .work-frame .brand-shot img { animation: none; } }
/* duo case — a second product window (the admin) sits over the first (the
   public site) so one card tells the full "site + ops" story */
.work-frame.is-duo .pip {
  position: absolute; right: 16px; bottom: 16px; width: 47%; z-index: 3;
  border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 22px 46px -14px rgba(0,0,0,0.78);
}
.work-frame.is-duo .pip img { width: 100%; height: auto; display: block; }
@media (max-width: 560px) { .work-frame.is-duo .pip { right: 10px; bottom: 10px; width: 52%; } }

/* ── Halyon · live Settings-window mockup (replaces the logo placeholder) ──
   Scales with the frame via container-query units so it reads like a crisp
   screenshot at any size. Native-dark macOS app aesthetic. ─────────────── */
.work-frame.is-app .canvas { container-type: size; }
.hyset {
  display: flex; height: 100%; overflow: hidden;
  font-family: var(--display); color: #fff;
  font-size: clamp(6px, 2.5cqw, 15px);
  background: radial-gradient(120% 100% at 50% -8%, #17171f 0%, #0c0c11 70%);
}
.hy-side {
  width: 31%; flex: none; display: flex; flex-direction: column; gap: 0.35em;
  padding: 1.1em 0.8em 0.9em; border-right: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.018);
}
.hy-brand { display: flex; align-items: center; gap: 0.5em; padding: 0.1em 0.5em 0.9em; }
.hy-brand img { width: 1.6em; height: 1.6em; flex: none;
  filter: drop-shadow(0 0 7px rgba(138,92,255,0.6)); }
.hy-brand span { font-weight: 700; font-size: 1.18em; display: inline-flex; align-items: center; gap: 0.4em; }
.hy-brand i { font-style: normal; font-size: 0.5em; font-family: var(--mono); letter-spacing: 0.08em;
  color: #c9b6ff; border: 1px solid rgba(138,92,255,0.5); border-radius: 0.5em; padding: 0.2em 0.5em; }
.hy-cats { display: flex; flex-direction: column; gap: 0.1em; flex: 1; }
.hy-cat { display: flex; align-items: center; gap: 0.62em; padding: 0.55em 0.6em;
  border-radius: 0.6em; font-size: 0.92em; color: rgba(255,255,255,0.55); white-space: nowrap; }
.hy-cat img { width: 1.1em; height: 1.1em; flex: none; filter: brightness(0) invert(1); opacity: 0.55; }
.hy-cat.on { color: #fff;
  background: linear-gradient(90deg, rgba(138,92,255,0.28), rgba(138,92,255,0.04));
  box-shadow: inset 0 0 0 1px rgba(138,92,255,0.34); }
.hy-cat.on img { opacity: 1; }
.hy-side-foot { display: flex; align-items: center; gap: 0.5em; padding: 0.4em 0.6em;
  font-family: var(--mono); font-size: 0.78em; color: rgba(255,255,255,0.5); }
.hy-side-foot i { width: 0.55em; height: 0.55em; border-radius: 50%; background: #28c840;
  box-shadow: 0 0 6px #28c840; flex: none; }

.hy-main { flex: 1; min-width: 0; padding: 1.2em 1.3em; display: flex; flex-direction: column; gap: 0.78em; }
.hy-head h4 { font-size: 1.55em; font-weight: 600; letter-spacing: -0.02em; }
.hy-head p { font-size: 0.92em; color: rgba(255,255,255,0.5); margin-top: 0.12em; }
.hy-card { background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.07);
  border-radius: 0.9em; padding: 0.9em 1em; }
.hy-row { display: flex; align-items: center; gap: 0.8em; }
.hy-ic { width: 2em; height: 2em; border-radius: 0.55em; flex: none; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(217,107,255,0.3), rgba(138,92,255,0.22));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); }
.hy-ic img { width: 1.05em; height: 1.05em; filter: brightness(0) invert(1); }
.hy-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.1em; }
.hy-tx b { font-size: 0.98em; font-weight: 600; }
.hy-tx span { font-size: 0.82em; color: rgba(255,255,255,0.5); }
.hy-sw { width: 2.5em; height: 1.4em; border-radius: 1em; background: rgba(255,255,255,0.14);
  position: relative; flex: none; transition: background 0.3s; }
.hy-sw::after { content: ""; position: absolute; top: 0.16em; left: 0.16em;
  width: 1.08em; height: 1.08em; border-radius: 50%; background: #fff; }
.hy-sw.on { background: var(--gradient); }
.hy-sw.on::after { left: auto; right: 0.16em; }
.hy-badge { flex: none; font-family: var(--mono); font-size: 0.74em; letter-spacing: 0.02em;
  color: #aebcff; padding: 0.35em 0.65em; border-radius: 1em;
  background: rgba(91,124,255,0.16); border: 1px solid rgba(91,124,255,0.32); }
.hy-wave { margin-top: 0.85em; height: 3em; border-radius: 0.7em; display: flex; align-items: center; gap: 0.75em;
  padding: 0 0.9em; overflow: hidden; position: relative;
  background: #08080c; border: 1px solid rgba(255,255,255,0.06); }
.hy-rec { width: 0.6em; height: 0.6em; border-radius: 50%; flex: none; background: #ff5b5b;
  box-shadow: 0 0 8px #ff5b5b; animation: hy-blink 1.7s ease-in-out infinite; }
.hy-wf { flex: 1; height: 100%; }
.hy-wf .wf { fill: none; stroke: #5b7cff; stroke-width: 2; vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 3px rgba(91,124,255,0.95)); animation: wf-flow 3s linear infinite; }
.hy-wf .wf2 { stroke: #9a7cff; opacity: 0.55; animation: wf-flow 4.6s linear infinite reverse; }
.hy-wave-lbl { flex: none; font-family: var(--mono); font-size: 0.76em; color: rgba(255,255,255,0.5); }
.hy-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7em; }
.hy-kbd { flex: none; font-family: var(--mono); font-size: 0.84em; padding: 0.35em 0.65em;
  border-radius: 0.5em; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); }
.hy-sw-row { display: flex; gap: 0.5em; flex: none; }
.hy-sw-row i { width: 1.15em; height: 1.15em; border-radius: 50%; background: var(--c); display: block; }
.hy-sw-row i.on { box-shadow: 0 0 0 0.13em #0c0c11, 0 0 0 0.27em var(--c); }
@keyframes wf-flow { to { transform: translateX(-120px); } }
@keyframes hy-blink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) { .hy-wf .wf, .hy-rec { animation: none; } }

/* ═══════════════════════════════════════════════════════════════════
   PHILOSOPHY
   ═══════════════════════════════════════════════════════════════════ */
#philosophy {
  min-height: 130vh; position: relative;
  border-top: 1px solid var(--line-soft);
}
.philo-sticky { position: sticky; top: 0; height: 100vh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 0 var(--pad-x); overflow: hidden; }
.philo-aura { position: absolute; width: 70vw; height: 70vw; max-width: 800px; max-height: 800px;
  border-radius: 50%; background: radial-gradient(circle, rgba(138,92,255,0.16), transparent 60%);
  filter: blur(40px); }
.philo-line { position: relative; z-index: 2;
  font-size: clamp(34px, 7vw, 104px); font-weight: 500; line-height: 1.04;
  letter-spacing: -0.04em; max-width: 18ch; }
.philo-line .w { display: inline-block; will-change: transform, opacity, filter; }
.philo-line .grad { background: var(--gradient); -webkit-background-clip: text;
  background-clip: text; color: transparent; }
.philo-kicker { position: relative; z-index: 2; display: block;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 34px; }

/* ═══════════════════════════════════════════════════════════════════
   PROCESS
   ═══════════════════════════════════════════════════════════════════ */
#process { padding: var(--section-y) 0; }
.proc-head { margin-bottom: clamp(44px,6vh,72px); }
.proc-list { border-top: 1px solid var(--line); }
.proc-item { display: grid; grid-template-columns: 100px 1fr auto; gap: 28px;
  align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--line);
  transition: padding-left 0.5s var(--ease), background 0.5s; position: relative; }
.proc-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--gradient); transform: scaleY(0); transform-origin: top;
  transition: transform 0.5s var(--ease); }
.proc-item:hover { padding-left: 22px; }
.proc-item:hover::before { transform: scaleY(1); }
.proc-n { font-family: var(--mono); font-size: 13px; color: var(--ink-faint); letter-spacing: 0.1em; }
.proc-t { font-size: clamp(22px,2.6vw,32px); font-weight: 500; letter-spacing: -0.025em; }
.proc-d { color: var(--ink-dim); font-size: 15.5px; line-height: 1.55; max-width: 40ch; }
@media (max-width: 760px) {
  .proc-item { grid-template-columns: 60px 1fr; }
  .proc-d { grid-column: 1 / -1; }
}

/* ═══════════════════════════════════════════════════════════════════
   CONTACT / FINAL
   ═══════════════════════════════════════════════════════════════════ */
#contact { padding: var(--section-y) 0 0; position: relative; overflow: hidden;
  border-top: 1px solid var(--line-soft); text-align: center; }
.final-symbol { position: relative; width: 100%; margin: 0 auto clamp(34px,5vh,54px);
  display: flex; justify-content: center; }
.final-logo { position: relative; z-index: 1;
  width: clamp(150px, 20vw, 232px); height: auto; display: block; }
.final-title { font-size: clamp(36px,6vw,86px); font-weight: 500; letter-spacing: -0.04em;
  line-height: 1.0; max-width: 16ch; margin: 0 auto; }
.final-title .grad { background: var(--gradient); -webkit-background-clip: text;
  background-clip: text; color: transparent; }
.final-sub { color: var(--ink-dim); font-size: clamp(16px,1.6vw,19px); margin: 24px auto 0;
  max-width: 48ch; line-height: 1.6; }

.contact-form { max-width: 540px; margin: clamp(46px,6vh,68px) auto 0; text-align: left; }
.cf-row { position: relative; margin-bottom: 16px; }
.cf-row label { display: block; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 9px; }
.cf-input { width: 100%; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: 12px; padding: 15px 16px; color: var(--ink); font-family: inherit;
  font-size: 15px; transition: border-color 0.4s, background 0.4s; cursor: none; }
.cf-input::placeholder { color: var(--ink-faint); }
.cf-input:focus { outline: none; border-color: var(--line-bright); background: var(--bg-3); }
textarea.cf-input { resize: vertical; min-height: 108px; }
.cf-submit { width: 100%; margin-top: 8px; justify-content: center; }
.cf-note { font-family: var(--mono); font-size: 11px; color: var(--ink-faint);
  text-align: center; margin-top: 16px; letter-spacing: 0.04em; }

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */
#footer { padding: clamp(80px,12vh,140px) 0 40px; margin-top: clamp(80px,12vh,140px);
  border-top: 1px solid var(--line-soft); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px;
  padding-bottom: 60px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-brand .brand { margin-bottom: 18px; }
.foot-brand .foot-logo img { width: 150px; height: auto; display: block; }
.foot-brand p { color: var(--ink-dim); font-size: 15px; line-height: 1.6; max-width: 32ch; }
.foot-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-faint); margin-bottom: 18px; }
.foot-col a { display: block; color: var(--ink-dim); font-size: 15px; padding: 6px 0;
  transition: color 0.3s; width: fit-content; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px; padding-top: 30px; border-top: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: 12px; color: var(--ink-faint); letter-spacing: 0.04em; }

/* ═══════════════════════════════════════════════════════════════════
   MOBILE — tighten everything below the hero for phones
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  :root { --section-y: clamp(60px, 9vh, 88px); }

  /* strip */
  .marquee-track { gap: 38px; padding-right: 38px; }
  .marquee-item { font-size: 14px; }

  /* capabilities */
  .cap-head { margin-bottom: 40px; flex-direction: column; align-items: flex-start; gap: 14px; }
  .section-title { font-size: clamp(26px, 7.6vw, 40px); }
  .section-desc { max-width: none; }
  .cap-card { min-height: auto; padding: 26px 22px 30px; border-radius: 20px; }
  .cap-card:hover { transform: none; }
  .cap-visual { height: 184px; }
  .cap-title { font-size: 24px; }

  /* work */
  .work-row, .work-item:nth-child(even) .work-row { gap: 26px; }
  .work-title { font-size: clamp(28px, 9vw, 40px); }
  .work-desc { font-size: 15.5px; max-width: none; }
  .work-stats { gap: 22px; flex-wrap: wrap; margin-top: 24px; }
  .work-stat .v { font-size: 26px; }
  .work-frame { aspect-ratio: 4/3; }

  /* philosophy */
  #philosophy { min-height: 160vh; }
  .philo-line { font-size: clamp(30px, 9vw, 46px); max-width: 14ch; }

  /* process */
  .proc-item { padding: 24px 0; gap: 8px 18px; }
  .proc-t { font-size: 22px; }

  /* contact */
  .final-logo { width: clamp(132px, 42vw, 190px); }
  .final-title { font-size: clamp(32px, 9.5vw, 52px); max-width: 14ch; }
  .contact-form { margin-top: 38px; }

  /* footer */
  .foot-grid { grid-template-columns: 1fr; gap: 30px; padding-bottom: 44px; }
  .foot-brand p { max-width: none; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 10px; text-align: left; }
}
