/* shiftio.org — tri-color geometric redesign */

@font-face {
  font-family: "Space Grotesk";
  src: url("/space-grotesk-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --ink: #1f2933;
  --muted: #5b6472;
  --line: #e4e7eb;
  --bg-alt: #fafaf9;
  --green: #10b981;
  --green-deep: #059669;
  --orange: #f97316;
  --orange-deep: #ea580c;
  --purple: #8b5cf6;
  --purple-deep: #7c3aed;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

section[id] { scroll-margin-top: 12px; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .btn, .brand, .text-link {
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 680px; }

/* ---------- banner: hidden on load, slides in on scroll ---------- */

.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  gap: 24px;
  padding: 0 clamp(24px, 3vw, 56px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}
.topnav.nav-shown { transform: translateY(0); }

.brand-group { display: flex; align-items: center; gap: 10px; min-width: 0; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-weight: 700; font-size: 1.5rem; letter-spacing: -0.01em;
}
.brand .mark, .footer-brand .mark { width: 28px; height: 28px; }
.brand { flex-shrink: 0; gap: 8px; }

/* Two stable rows; JavaScript randomly selects and flips the next phrase. */
.ticker {
  width: 280px; height: 28px;
  flex-shrink: 0;
  overflow: hidden;
  mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent);
}
.ticker-track { display: flex; flex-direction: column; }
.ticker-track span {
  display: block; flex-shrink: 0;
  height: 28px; line-height: 28px;
  white-space: nowrap;
  font-family: "Space Grotesk", ui-sans-serif, sans-serif;
  font-size: 1rem;
  color: var(--green-deep);
  font-weight: 500;
}
.ticker-toggle {
  border: 0; border-radius: 4px;
  padding: 4px; background: transparent;
  color: var(--muted); font: inherit; font-size: 0.7rem;
  cursor: pointer;
}
.ticker-toggle:hover { color: var(--green-deep); }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--green-deep); outline-offset: 5px;
}

/* The two dots span the capital height instead of sitting low on the baseline. */
.wordmark { display: inline-flex; align-items: baseline; gap: 0.045em; white-space: nowrap; }
.brand-colon {
  display: inline-block; position: relative;
  width: 0.16em; height: 0.71em; flex: none;
}
.brand-colon::before, .brand-colon::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 0.17em;
  background: currentColor; border-radius: 0.025em;
}
.brand-colon::before { top: 0; }
.brand-colon::after { bottom: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
@media (max-width: 900px) {
  .ticker, .ticker-toggle { display: none; }
}

.topnav nav { display: flex; gap: 28px; }
.topnav nav a {
  color: var(--ink); text-decoration: none;
  font-size: 0.9rem; font-weight: 600;
  font-family: "Space Grotesk", ui-sans-serif, sans-serif;
}
.topnav nav a:hover { color: var(--green-deep); }

/* ---------- hero: gradient + animated polygons ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  background:
    radial-gradient(900px 600px at 70% 30%, rgba(255, 255, 255, 0.10), transparent 65%),
    linear-gradient(140deg, #065f46 0%, #b45309 50%, #5b21b6 100%);
  color: #fff;
}

.hero-shapes {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.hero-shapes .p {
  fill: rgba(255, 255, 255, 0.14);
  transform-box: fill-box;
  transform-origin: center;
}

/* slow color morph + visible drift/rotation on every shape */
.pA { animation: pA 13s ease-in-out infinite; }
.pB { animation: pB 16s ease-in-out infinite; animation-delay: -6s; }
.pC { animation: pC 10.5s ease-in-out infinite; animation-delay: -3s; }
/* desync identical classes */
.p:nth-of-type(2n)  { animation-duration: 15s; }
.p:nth-of-type(3n)  { animation-delay: -8s; }
.p:nth-of-type(5n)  { animation-delay: -2.5s; }

@keyframes pA {
  0%, 100% { fill: rgba(52, 211, 153, 0.38); transform: translateY(0) rotate(0deg); }
  33%      { fill: rgba(255, 255, 255, 0.10); transform: translateY(-16px) rotate(4deg); }
  66%      { fill: rgba(167, 139, 250, 0.40); transform: translateY(8px) rotate(-3deg); }
}
@keyframes pB {
  0%, 100% { fill: rgba(251, 146, 60, 0.40); transform: translate(0, 0) rotate(0deg); }
  33%      { fill: rgba(52, 211, 153, 0.30); transform: translate(10px, -12px) rotate(-5deg); }
  66%      { fill: rgba(255, 255, 255, 0.10); transform: translate(-8px, 10px) rotate(3deg); }
}
@keyframes pC {
  0%, 100% { fill: rgba(167, 139, 250, 0.38); transform: translate(0, 0) rotate(0deg) scale(1); }
  50%      { fill: rgba(251, 146, 60, 0.34); transform: translate(-10px, 14px) rotate(6deg) scale(1.05); }
}

.hero-inner {
  position: relative;
  width: 100%;
  text-align: center;
  padding-top: 96px;
  padding-bottom: 96px;
}

.hero-mark { width: 60px; height: 60px; filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.25)); }

.hero h1 {
  margin: 22px 0 14px;
  font-size: clamp(5.5rem, 8vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.22);
}

.hero-sub {
  margin: 0 auto;
  max-width: 27em;
  font-size: clamp(1.5rem, 2vw, 1.875rem);
  font-weight: 500;
  font-family: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
}

.hero-note { margin: 22px 0 0; font-size: 1rem; color: rgba(255, 255, 255, 0.85); }

.hero-cta {
  margin-top: 34px;
  display: flex; gap: 16px; align-items: center; justify-content: center;
}

/* ---------- buttons & links ---------- */

.btn {
  display: inline-block;
  padding: 11px 28px;
  border: 1px solid transparent;
  border-radius: 24px;
  background: var(--green-deep);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.btn:hover { background: #047857; transform: translateY(-1px); }
.btn:disabled { opacity: 0.6; cursor: default; transform: none; }

.btn.ghost, .text-link {
  background: transparent;
  border-color: transparent;
  color: var(--green-deep);
  font-weight: 700;
  box-shadow: none;
}
.btn.ghost:hover, .text-link:hover {
  background: rgba(5, 150, 105, 0.08);
  color: #047857;
  text-decoration: underline;
}
.hero .text-link { color: #fff; }
.hero .text-link:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }

/* ---------- sections ---------- */

.section { padding: clamp(80px, 7vw, 112px) 0; }
.section.alt { background: var(--bg-alt); }

.section h2 { margin: 0 0 18px; text-align: center; line-height: 1.15; }
.h-xl { font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 700; letter-spacing: -0.02em; }
.h-lg { font-size: clamp(2.5rem, 3.6vw, 3.25rem); font-weight: 700; letter-spacing: -0.01em; }

.lead {
  margin: 0 auto 8px;
  max-width: 36em;
  color: var(--muted);
  font-size: clamp(1.125rem, 1.4vw, 1.25rem);
  text-align: center;
}

/* marker-style highlights */
.hl { font-weight: 600; padding: 0 2px; }
.hl-g { background: linear-gradient(to top, rgba(16, 185, 129, 0.30) 44%, transparent 44%); }
.hl-o { background: linear-gradient(to top, rgba(249, 115, 22, 0.32) 44%, transparent 44%); }
.hl-p { background: linear-gradient(to top, rgba(139, 92, 246, 0.30) 44%, transparent 44%); }
.hl-w { background: linear-gradient(to top, rgba(255, 255, 255, 0.30) 46%, transparent 46%); }

/* ---------- feature / service rows ---------- */

.features { list-style: none; margin: 36px 0 0; padding: 0; }

.features li {
  display: flex; gap: 18px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}
.features li:last-child { border-bottom: none; }

.feature-icon {
  width: 30px; height: 30px;
  flex-shrink: 0;
  margin-top: 2px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.features h3 {
  margin: 0 0 2px;
  font-size: 1.25rem;
  font-weight: 700;
}
.features p { margin: 0; color: var(--muted); font-size: 1.125rem; }

/* Content keeps a readable measure, while the illustration balances the desktop. */
.about-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center; gap: clamp(36px, 5vw, 72px);
}
.about-copy { min-width: 0; }
.about-copy h2, .about-copy .lead { text-align: left; }
.about-copy .lead { margin-left: 0; max-width: 32em; }
.about-copy .features { margin-top: 26px; }
.abstract-art { margin: 0; width: 100%; max-width: 540px; justify-self: center; }
.abstract-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.abstract-art .ambient-motion { transform-origin: 280px 280px; }
.ribbon { fill: none; stroke-linecap: round; mix-blend-mode: multiply; }
.ribbon-green { animation: ribbon-green 17s ease-in-out infinite; }
.ribbon-orange { animation: ribbon-orange 21s ease-in-out infinite; animation-delay: -7s; }
.ribbon-purple { animation: ribbon-purple 19s ease-in-out infinite; animation-delay: -11s; }
.ambient-breathe { animation: ambient-breathe 13s ease-in-out infinite; }
.ambient-orbit { animation: ambient-orbit 65s linear infinite; }

@keyframes ribbon-green {
  0%, 100% { transform: translate(-12px, 8px) rotate(-16deg) scale(1, .94); }
  50% { transform: translate(12px, -12px) rotate(24deg) scale(.94, 1.06); }
}
@keyframes ribbon-orange {
  0%, 100% { transform: translate(14px, -10px) rotate(30deg) scale(.94, 1); }
  50% { transform: translate(-14px, 14px) rotate(-24deg) scale(1.06, .94); }
}
@keyframes ribbon-purple {
  0%, 100% { transform: translate(4px, 16px) rotate(-24deg) scale(1.04, .94); }
  50% { transform: translate(-12px, -14px) rotate(32deg) scale(.96, 1.05); }
}
@keyframes ambient-breathe {
  0%, 100% { transform: scale(.96); }
  50% { transform: scale(1.03); }
}
@keyframes ambient-orbit { to { transform: rotate(360deg); } }
.abstract-art.motion-paused .ambient-motion { animation-play-state: paused; }
.services-inner { max-width: 1120px; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; margin-top: 44px; }
.service-grid li { gap: 24px; padding: 30px 0; }
.service-grid li:nth-last-child(-n+2) { border-bottom: none; }
.service-grid .feature-icon { width: 38px; height: 38px; }
.service-grid h3 { font-size: 1.5rem; margin-bottom: 6px; }

.more {
  margin: 26px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- timeline ---------- */

.timeline {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
@media (max-width: 640px) { .timeline { grid-template-columns: 1fr; } }

.timeline li { display: grid; justify-items: center; align-content: start; gap: 6px; }

.timeline .dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  margin-bottom: 6px;
}
.timeline .when { color: var(--muted); font-size: 1rem; }
.timeline .what { font-size: 1.625rem; font-weight: 700; font-family: "Space Grotesk", ui-sans-serif, sans-serif; }

/* ---------- message board ---------- */

.form { max-width: 560px; margin: 36px auto 44px; display: grid; gap: 18px; }

.form label { display: grid; gap: 8px; font-weight: 600; font-size: 0.9rem; }
.form .opt { color: var(--muted); font-weight: 400; }

.form input,
.form textarea {
  font: inherit;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  resize: vertical;
}
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--green-deep);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.ts-box { min-height: 65px; }

.form-error {
  margin: 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 0.9rem;
}
.form .btn { justify-self: start; }

.msg-list { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: 12px; max-width: 560px; }

.msg {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  text-align: left;
}

.msg-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.msg-name { font-weight: 700; font-size: 0.95rem; }
.msg-time { color: var(--muted); font-size: 0.8rem; }
.msg-body { margin: 0; font-size: 0.95rem; white-space: pre-wrap; overflow-wrap: anywhere; }

.empty { color: var(--muted); text-align: center; padding: 28px 0; }
.more-row { display: flex; justify-content: center; margin-top: 22px; }

/* ---------- footer ---------- */

.footer {
  background: #14121a;
  color: #a8a29e;
  padding: 48px 0;
  font-size: 0.9rem;
  text-align: center;
}
.footer .wrap { text-align: center; }
.footer p { margin: 6px 0; }

.footer-brand {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff;
  font-weight: 700; font-size: 1.5rem;
  font-family: "Space Grotesk", ui-sans-serif, sans-serif;
  margin-bottom: 8px;
}

/* ---------- responsive layout ---------- */

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; max-width: 720px; }
  .about-copy h2, .about-copy .lead { text-align: center; }
  .about-copy .lead { margin-left: auto; }
  .abstract-art { max-width: 460px; }
  .service-grid { grid-template-columns: 1fr; margin-top: 28px; }
  .service-grid li:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .services-inner { max-width: 720px; }
}
@media (max-width: 560px) {
  .topnav { padding: 0 16px; gap: 16px; }
  .topnav nav { gap: 16px; }
  .topnav nav a { font-size: 0.8rem; }
  .brand { font-size: 1.35rem; }
  .brand .mark { width: 24px; height: 24px; }
  .hero h1 { font-size: clamp(4.75rem, 19vw, 5.5rem); }
  .hero-sub { font-size: 1.5rem; }
  .hero-mark { width: 48px; height: 48px; }
  .h-xl, .h-lg { font-size: 2.25rem; }
  .section { padding: 64px 0; }
  .features h3 { font-size: 1.15rem; }
  .features p { font-size: 1rem; }
  .service-grid h3 { font-size: 1.3rem; }
  .service-grid li { gap: 18px; padding: 24px 0; }
  .hero-cta { flex-wrap: wrap; }
}

/* ---------- motion ---------- */
.hero.motion-paused .p { animation-play-state: paused; }


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .p { animation: none !important; fill: rgba(255, 255, 255, 0.14) !important; }
  .ticker-toggle { display: none; }
  .hero-parallax { transform: none !important; }
  .abstract-art .ambient-motion { animation: none !important; }
  .topnav { transition: none; }
}
