/* ============================================================
   Percepta — Software Studio
   "Green ink on warm paper": editorial light theme drawn from
   the mark itself — deep forest ink, bone paper, and the lens
   (pointed oval) as the studio's recurring graphic device.
   ============================================================ */

:root {
  --paper:      #f6f3e9;
  --paper-2:    #efeadb;
  --paper-3:    #e7e0cd;
  --ink:        #0e2117;
  --ink-2:      #132b1e;
  --ink-3:      #1a3928;
  --green:      #276846;   /* the logo green */
  --green-deep: #1c4f35;
  --green-hi:   #63b98c;   /* bright green for use on ink */
  --muted:      #566a5f;
  --bone:       #f0eee3;
  --bone-dim:   #c3ccc0;
  --line:       rgba(14, 33, 23, 0.14);
  --line-soft:  rgba(14, 33, 23, 0.08);
  --line-lt:    rgba(240, 238, 227, 0.14);
  --line-lt-soft: rgba(240, 238, 227, 0.08);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Instrument Sans", "Segoe UI", sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.83, 0, 0.17, 1);

  /* the lens: opposing rounded corners, like the eye's points */
  --lens: 2.2rem 0.35rem;
  --lens-lg: 32px 7px;

  --pad-x: clamp(1.25rem, 5vw, 5.5rem);
}

@supports (color: oklch(0% 0 0)) {
  :root {
    --paper: oklch(96% 0.014 95);
    --paper-2: oklch(93.5% 0.02 95);
    --paper-3: oklch(90% 0.026 95);
    --ink: oklch(23% 0.03 162);
    --ink-2: oklch(27% 0.035 160);
    --ink-3: oklch(32% 0.045 158);
    --green: oklch(46% 0.09 158);
    --green-deep: oklch(38% 0.08 158);
    --green-hi: oklch(72% 0.11 158);
    --muted: oklch(48% 0.03 160);
    --bone: oklch(94% 0.012 105);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  overflow-x: clip;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* paper grain over everything, very faint */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  pointer-events: none;
  z-index: 60;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

::selection { background: var(--green); color: var(--bone); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.06; letter-spacing: -0.01em; }
h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h1 em, h2 em { font-style: italic; color: var(--green); font-weight: 400; }

a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }

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

/* ---------- skip link : appears on first Tab ---------- */
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 120;
  background: var(--ink);
  color: var(--bone);
  padding: 0.7rem 1.3rem;
  border-radius: var(--lens);
  font-weight: 600;
  font-size: 0.9rem;
  transform: translateY(-250%);
  transition: transform 0.3s var(--ease-out);
}
.skip-link:focus-visible { transform: none; }

/* ---------- section label : a small lens, then small caps ---------- */
.label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.4rem;
}
.label__eye {
  display: inline-block;
  width: 17px;
  height: 10px;
  border: 1.5px solid var(--green);
  border-radius: 100% 15% 100% 15%;
  transform: rotate(-4deg);
}
.label--light { color: var(--green-hi); }
.label--light .label__eye { border-color: var(--green-hi); }

/* ---------- buttons : lens corners, like the mark's points ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.95rem 2rem;
  border-radius: var(--lens);
  transition: transform 0.45s var(--ease-out), background 0.3s, color 0.3s,
    border-color 0.3s, border-radius 0.45s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); border-radius: 0.35rem 2.2rem; }
.btn:active { transform: translateY(0) scale(0.97); }
.btn--ink {
  background: var(--ink);
  color: var(--bone);
}
.btn--ink:hover { background: var(--green); }
.btn--ghost {
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--green); color: var(--green-deep); }
.btn--paper {
  background: var(--paper);
  color: var(--ink);
}
.btn--paper:hover { background: var(--green-hi); color: var(--ink); }
.btn--big {
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  padding: 1.3rem 2.8rem;
}

/* ============================================================
   INTRO — the eye opens onto the page
   ============================================================ */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  color: var(--green-hi);
}
.intro__lid {
  position: absolute;
  left: -6vw;
  width: 112vw;
  height: 78%;
  background: var(--ink);
  transition: transform 0.95s var(--ease-inout);
}
.intro__lid--top {
  top: 0;
  border-radius: 0 0 50% 50% / 0 0 16vh 16vh;
}
.intro__lid--bottom {
  bottom: 0;
  border-radius: 50% 50% 0 0 / 16vh 16vh 0 0;
}
.intro.is-open .intro__lid--top { transform: translateY(-128%); }
.intro.is-open .intro__lid--bottom { transform: translateY(128%); }

.intro__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.8rem;
  transition: opacity 0.35s ease;
}
.intro.is-open .intro__center { opacity: 0; }

.intro__mark {
  width: min(280px, 52vw);
  height: auto;
  opacity: 0;
  animation: logo-in 1.2s var(--ease-out) 0.2s forwards;
}
@keyframes logo-in {
  from { opacity: 0; transform: scale(0.9); filter: blur(12px); }
  to   { opacity: 1; transform: none; filter: none; }
}

.intro__word {
  display: flex;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.5vw, 2.3rem);
  letter-spacing: 0.14em;
  color: var(--bone);
}
.intro__word span {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.7s var(--ease-out) forwards;
}
.intro__word span:nth-child(1) { animation-delay: 1.00s; }
.intro__word span:nth-child(2) { animation-delay: 1.06s; }
.intro__word span:nth-child(3) { animation-delay: 1.12s; }
.intro__word span:nth-child(4) { animation-delay: 1.18s; }
.intro__word span:nth-child(5) { animation-delay: 1.24s; }
.intro__word span:nth-child(6) { animation-delay: 1.30s; }
.intro__word span:nth-child(7) { animation-delay: 1.36s; }
.intro__word span:nth-child(8) { animation-delay: 1.42s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.intro.is-done { display: none; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 1.1rem var(--pad-x);
  transition: background 0.4s ease, border-color 0.4s ease, padding 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line-soft);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
  color: var(--ink);
}
.brand__mark {
  width: 46px;
  height: auto;
  transition: transform 0.4s var(--ease-out);
}
.brand:hover .brand__mark { transform: translateY(-1px); }
.brand__word {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.01em;
}

.nav__links { display: flex; gap: 2rem; }
.nav__links a {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.25s;
  padding: 0.6rem 0;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__cta { padding: 0.6rem 1.35rem; font-size: 0.88rem; }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}
.nav__burger span:first-child { width: 26px; margin-left: 9px; }
.nav__burger span:last-child  { width: 18px; margin-left: 9px; }
.nav__burger.is-open span:first-child { transform: translateY(4.5px) rotate(-45deg); width: 26px; }
.nav__burger.is-open span:last-child  { transform: translateY(-4.5px) rotate(45deg); width: 26px; }

/* mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 75;
  background: var(--paper-2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--pad-x);
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
  transition: clip-path 0.65s var(--ease-inout);
  visibility: hidden;
}
.menu.is-open {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  visibility: visible;
}
.menu__links { display: flex; flex-direction: column; gap: 0.4rem; }
.menu__links a {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 9vw, 3.2rem);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  transition: color 0.3s, padding-left 0.4s var(--ease-out);
}
.menu__links a i {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.8rem;
  color: var(--green);
  letter-spacing: 0.15em;
}
.menu__links a:hover { color: var(--green-deep); padding-left: 0.6rem; }
.menu__foot {
  margin-top: 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 7rem var(--pad-x) 5rem;
  overflow: hidden;
}

/* the watching eye — contours, iris that follows the cursor, a blink */
.hero__eye {
  position: absolute;
  top: 50%;
  right: -10vw;
  width: min(58vw, 860px);
  aspect-ratio: 76 / 46;
  transform: translateY(-50%);
}
.hero__eye svg { width: 100%; height: 100%; overflow: visible; }
.hero__contours { animation: drift 16s ease-in-out infinite alternate; }
.hero__contours path { stroke-width: 1.2; }
@keyframes drift {
  from { transform: translateY(-10px); }
  to   { transform: translateY(10px); }
}
.hero__iris { will-change: transform; }
.hero__blink {
  transform: scaleY(0);
  transform-box: fill-box;
  transform-origin: center;
  animation: blink 7.5s ease-in-out infinite;
}
@keyframes blink {
  0%, 90.5%, 94.5%, 100% { transform: scaleY(0); }
  92.5% { transform: scaleY(1); }
}

.hero__inner { position: relative; max-width: 60rem; }

.hero__title {
  font-size: clamp(3rem, 9.5vw, 7.2rem);
  font-weight: 500;
  margin: 0.5rem 0 2rem;
}
.hero__title .line { display: block; }

.hero__sub {
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  margin-bottom: 2.8rem;
}

.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  bottom: 2.2rem;
  left: var(--pad-x);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}
.hero__scroll:hover { color: var(--green-deep); }
.hero__scroll-line {
  display: block;
  width: 3.2rem;
  height: 1px;
  background: var(--muted);
  transform-origin: left;
  animation: scrollhint 2.6s var(--ease-inout) infinite;
}
@keyframes scrollhint {
  0%   { transform: scaleX(0); transform-origin: left; }
  45%  { transform: scaleX(1); transform-origin: left; }
  55%  { transform: scaleX(1); transform-origin: right; }
  100% { transform: scaleX(0); transform-origin: right; }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper-2);
  overflow: hidden;
  padding: 1.15rem 0;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: scroll-x 36s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

.marquee__group {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-right: 3rem;
}
.marquee__group span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--green-deep);
  white-space: nowrap;
}
.marquee__group svg {
  width: 26px;
  height: 15px;
  flex: none;
}
.marquee__group svg path { stroke: var(--green); fill: none; stroke-width: 1.4; }
.marquee__group svg circle { fill: var(--green); }

/* ============================================================
   STUDIO
   ============================================================ */
.studio {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  padding: clamp(5.5rem, 11vw, 9.5rem) var(--pad-x);
  align-items: start;
}

.studio__statement {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  margin-bottom: 1.8rem;
}
.studio__copy { color: var(--muted); max-width: 30rem; }

.studio__list { border-top: 1px solid var(--line); }
.studio__row {
  display: flex;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  padding: 1.7rem 0.4rem;
  border-bottom: 1px solid var(--line);
  transition: background 0.35s ease, padding-left 0.45s var(--ease-out);
}
.studio__row:hover { background: var(--paper-2); padding-left: 1.1rem; }
.studio__num {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--green);
  padding-top: 0.45rem;
}
.studio__row h3 { font-size: 1.35rem; margin-bottom: 0.4rem; }
.studio__row p { color: var(--muted); font-size: 0.97rem; max-width: 26rem; }

/* ============================================================
   SOFTWARE — the featured product sits on an ink slab
   ============================================================ */
.software {
  padding: clamp(5.5rem, 11vw, 9rem) var(--pad-x);
  background: var(--paper-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.software__head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }

.project {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(1.8rem, 4vw, 3.5rem);
  background: var(--ink);
  color: var(--bone);
  border-radius: var(--lens-lg);
  box-shadow: 0 40px 80px -48px rgba(14, 33, 23, 0.55);
  transition: box-shadow 0.5s ease, transform 0.5s var(--ease-out);
}
.project:hover {
  transform: translateY(-4px);
  box-shadow: 0 54px 96px -48px rgba(14, 33, 23, 0.65);
}
.project + .project { margin-top: clamp(2rem, 5vw, 3.5rem); }

/* mirrored variant: visual on the left, tilted the other way */
.project--flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.project--flip .mock { transform: rotateY(4deg) rotateX(2deg); }

.project__tags {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-hi);
  margin-bottom: 0.9rem;
}
.project__name {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin-bottom: 1.1rem;
  color: var(--bone);
}
.project__desc { color: var(--bone-dim); margin-bottom: 1.6rem; max-width: 30rem; }

.project__facts {
  list-style: none;
  margin-bottom: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.project__facts li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: var(--bone-dim);
}
.project__facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 13px;
  height: 8px;
  border: 1.5px solid var(--green-hi);
  border-radius: 100% 15% 100% 15%;
  transform: rotate(-4deg);
}

.project__link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  padding: 0.9rem 1.9rem;
  background: var(--bone);
  color: var(--ink);
  border-radius: var(--lens);
  transition: gap 0.35s var(--ease-out), transform 0.45s var(--ease-out),
    border-radius 0.45s var(--ease-out), background 0.3s;
}
.project:hover .project__link {
  gap: 0.9rem;
  transform: translateY(-2px);
  border-radius: 0.35rem 2.2rem;
  background: var(--green-hi);
}
.project__link i { font-style: normal; transition: transform 0.35s var(--ease-out); }
.project:hover .project__link i { transform: translate(2px, -2px); }

/* --- the Tataboo mini-dashboard mock --- */
.project__visual { perspective: 1200px; }
.mock {
  background: var(--ink-2);
  border: 1px solid var(--line-lt);
  border-radius: 10px;
  overflow: hidden;
  transform: rotateY(-4deg) rotateX(2deg);
  transition: transform 0.7s var(--ease-out);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55);
}
.project:hover .mock { transform: rotateY(0deg) rotateX(0deg); }

.mock__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--line-lt-soft);
}
.mock__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-lt); }
.mock__url {
  margin-left: 0.8rem;
  font-size: 0.72rem;
  color: var(--bone-dim);
  background: var(--ink);
  padding: 0.18rem 0.9rem;
  border-radius: 99px;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock__badge {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-hi);
}

.mock__body { padding: 1.2rem 1.2rem 0.9rem; }

.mock__kpis { display: flex; gap: 1.6rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.mock__kpi b {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.7rem;
  color: var(--bone);
  line-height: 1.1;
}
.mock__kpi span { display: block; font-size: 0.7rem; color: var(--bone-dim); letter-spacing: 0.08em; text-transform: uppercase; }
.mock__live {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--green-hi);
  animation: blinkdot 1.6s ease-in-out infinite;
}
@keyframes blinkdot { 50% { opacity: 0.25; } }

/* fleet status: one stacked bar + legend */
.mock__fleet {
  padding-bottom: 1.1rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--line-lt-soft);
}
.mock__fleetbar {
  display: flex;
  gap: 3px;
  height: 10px;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 0.6rem;
}
.mock__fleetbar i {
  width: var(--w);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease-out);
}
.in-view .mock__fleetbar i { transform: scaleX(1); }
.mock__fleetbar i:nth-child(2) { transition-delay: 0.15s; }
.mock__fleetbar i:nth-child(3) { transition-delay: 0.30s; }
.is-active { background: var(--green-hi); }
.is-idle   { background: rgba(240, 238, 227, 0.30); }
.is-maint  { background: var(--green); }
.mock__legend {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  font-size: 0.7rem;
  color: var(--bone-dim);
  letter-spacing: 0.04em;
}
.mock__legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.mock__legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* pipeline strip: sources flow into the warehouse, then the dashboard */
.mock__pipe {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding-bottom: 1.1rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--line-lt-soft);
}
.mock__node {
  flex: none;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone-dim);
  border: 1px solid var(--line-lt);
  border-radius: 99px;
  padding: 0.28rem 0.6rem;
  white-space: nowrap;
}
.mock__node--hub {
  color: var(--ink);
  background: var(--green-hi);
  border-color: transparent;
}
.mock__flow {
  flex: 1;
  min-width: 12px;
  height: 2px;
  position: relative;
  background: repeating-linear-gradient(90deg, var(--line-lt) 0 4px, transparent 4px 8px);
}
.mock__flow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 5px;
  height: 5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--green-hi);
  animation: flowdot 2.2s linear infinite;
}
.mock__flow:last-of-type::after { animation-delay: 1.1s; }
@keyframes flowdot {
  0%   { left: 0; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { left: calc(100% - 5px); opacity: 0; }
}

/* weekly revenue bars — single hue, the current week highlighted */
.mock__chart {
  padding-bottom: 1.1rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--line-lt-soft);
}
.mock__chart-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bone-dim);
  margin-bottom: 0.7rem;
}
.mock__chart-head b { color: var(--green-hi); font-weight: 600; letter-spacing: 0.04em; }
.mock__bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 84px;
  border-bottom: 1px solid var(--line-lt-soft);
}
.mock__bars i {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 0 0;
  background: rgba(99, 185, 140, 0.34);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.7s var(--ease-out);
}
.mock__bars i.is-now { background: var(--green-hi); }
.in-view .mock__bars i { transform: scaleY(1); }
.in-view .mock__bars i:nth-child(1) { transition-delay: 0.05s; }
.in-view .mock__bars i:nth-child(2) { transition-delay: 0.10s; }
.in-view .mock__bars i:nth-child(3) { transition-delay: 0.15s; }
.in-view .mock__bars i:nth-child(4) { transition-delay: 0.20s; }
.in-view .mock__bars i:nth-child(5) { transition-delay: 0.25s; }
.in-view .mock__bars i:nth-child(6) { transition-delay: 0.30s; }
.in-view .mock__bars i:nth-child(7) { transition-delay: 0.35s; }
.in-view .mock__bars i:nth-child(8) { transition-delay: 0.40s; }

.mock__kpis--end { margin-bottom: 0.4rem; }

/* live alerts feed */
.mock__feed { display: flex; flex-direction: column; }
.mock__event {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0;
  font-size: 0.8rem;
  color: var(--bone-dim);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.mock__event + .mock__event { border-top: 1px solid var(--line-lt-soft); }
.in-view .mock__event { opacity: 1; transform: none; }
.in-view .mock__event:nth-child(1) { transition-delay: 0.35s; }
.in-view .mock__event:nth-child(2) { transition-delay: 0.55s; }
.in-view .mock__event:nth-child(3) { transition-delay: 0.75s; }
.mock__event i {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(240, 238, 227, 0.45);
}
.mock__event.is-warn i { background: #d9a441; }
.mock__event.is-ok i { background: var(--green-hi); }
.mock__event span {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock__event b {
  font-weight: 500;
  font-size: 0.72rem;
  color: rgba(240, 238, 227, 0.62);
  letter-spacing: 0.06em;
}

.software__next {
  margin-top: 2.2rem;
  color: var(--muted);
  font-size: 1rem;
}
.software__next a {
  color: var(--green-deep);
  font-weight: 600;
  padding: 0.6rem 0;
}
.software__next a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ============================================================
   PARTNERS
   ============================================================ */
.partners { padding: clamp(5.5rem, 11vw, 9rem) var(--pad-x); }

.partners__row {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 2.2rem 2.5rem;
}

.partner { display: flex; align-items: center; gap: 1.6rem; }
.partner__chip {
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px 6px 26px 6px;
  transition: transform 0.5s var(--ease-out);
}
.partner:hover .partner__chip { transform: translateY(-4px); }
.partner__chip img { width: 82px; height: 82px; object-fit: contain; }
.partner__chip--nda { color: var(--muted); }
.partner__meta h3 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.partner__meta p { color: var(--muted); font-size: 0.95rem; max-width: 24rem; }

.partners__badge {
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid var(--line);
  padding: 0.85rem 1.5rem;
  border-radius: 99px;
  font-size: 0.9rem;
  color: var(--ink);
}
.pulse { position: relative; width: 10px; height: 10px; }
.pulse span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green);
}
.pulse::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green);
  animation: ping 1.8s var(--ease-out) infinite;
}
@keyframes ping {
  from { transform: scale(1); opacity: 0.7; }
  to   { transform: scale(2.8); opacity: 0; }
}

/* ============================================================
   CONTACT + FOOTER — one deep ink block, the mark watermarked
   ============================================================ */
.contact {
  position: relative;
  padding: clamp(6rem, 13vw, 11rem) var(--pad-x) 0;
  background: var(--ink);
  color: var(--bone);
  overflow: hidden;
}
.contact h2 em { color: var(--green-hi); }

.contact__watermark {
  position: absolute;
  top: 8%;
  right: -10%;
  width: min(46vw, 700px);
  height: auto;
  opacity: 0.08;
  pointer-events: none;
}

.contact__title {
  font-size: clamp(2.8rem, 8vw, 6rem);
  margin-bottom: 1.6rem;
  color: var(--bone);
}
.contact__sub {
  color: var(--bone-dim);
  max-width: 30rem;
  margin-bottom: 3rem;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
}

.contact__hint {
  margin-top: 1.1rem;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--bone-dim);
}

/* copied feedback on the email buttons */
.btn--paper.is-copied { background: var(--green-hi); color: var(--ink); }
.footer__links a.is-copied { color: var(--green-hi); }

.menu__foot a { color: inherit; transition: color 0.25s; }
.menu__foot a:hover,
.menu__foot a.is-copied { color: var(--green-deep); }

.footer {
  position: relative;
  margin-top: clamp(4rem, 9vw, 7rem);
  padding: 2.6rem 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem 3rem;
  border-top: 1px solid var(--line-lt);
}
.brand--footer { color: var(--bone); }
.brand--footer .brand__mark { width: 40px; }
.footer__note {
  color: var(--bone-dim);
  font-size: 0.9rem;
  font-style: italic;
  font-family: var(--font-display);
}
.footer__links { display: flex; gap: 1.8rem; font-size: 0.9rem; }
.footer__links a { color: var(--bone-dim); transition: color 0.25s; padding: 0.6rem 0; }
.footer__links a:hover { color: var(--green-hi); }
.footer__copy {
  grid-column: 1 / -1;
  color: var(--bone-dim);
  opacity: 0.75;
  font-size: 0.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-lt-soft);
}

/* ============================================================
   REVEALS
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 95ms);
}
[data-reveal].in-view {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .studio { grid-template-columns: minmax(0, 1fr); }
  .project { grid-template-columns: minmax(0, 1fr); }
  .project__visual { order: -1; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .footer { grid-template-columns: 1fr; align-items: start; }

  /* the eye becomes its own moment below the copy, not a backdrop */
  .hero {
    display: block;
    min-height: auto;
    padding-top: 7.5rem;
    padding-bottom: 3.5rem;
  }
  .hero__eye {
    position: static;
    width: min(440px, 88%);
    transform: none;
    margin: 3rem auto 0;
  }
  .hero__scroll { display: none; }
}

@media (max-width: 700px) {
  .partners__row { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 520px) {
  .partner { flex-direction: row; gap: 1.1rem; }
  .partner__chip { width: 72px; height: 72px; border-radius: 18px 4px 18px 4px; }
  .partner__chip img { width: 52px; height: 52px; }
  .partner__chip--nda svg { width: 30px; height: 30px; }
  .partner__meta h3 { font-size: 1.25rem; }
  .partners__row { justify-content: flex-start; }
  .mock__kpis { gap: 1.1rem; }
  .mock__kpi b { font-size: 1.35rem; }
  .mock__pipe { gap: 0.35rem; row-gap: 0.5rem; flex-wrap: wrap; }
  .mock__node { font-size: 0.56rem; padding: 0.24rem 0.45rem; letter-spacing: 0.05em; }

  /* stacked, thumb-sized CTAs */
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { text-align: center; padding-top: 1.05rem; padding-bottom: 1.05rem; }
  .btn--big {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 1.02rem;
    padding: 1.15rem 0.5rem;
  }
  .menu__links a { padding: 0.75rem 0; }
  .contact__watermark { top: 2%; right: -30%; width: 90vw; }
}

/* QA mode (#qa-… URLs): collapse viewport-height sections so the
   whole page fits one capture */
html.no-anim .hero { min-height: auto; padding-top: 10rem; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro { display: none; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .marquee__track,
  .hero__contours,
  .hero__blink,
  .hero__scroll-line,
  .pulse::before,
  .mock__live,
  .mock__flow::after { animation: none; }
  .mock__fleetbar i { transform: scaleX(1); transition: none; }
  .mock__bars i { transform: scaleY(1); transition: none; }
  .mock__event { opacity: 1; transform: none; transition: none; }
  .mock { transform: none; }
  * { transition-duration: 0.01ms !important; }
}
