/* Species-in-pieces prototype. One full-screen colour per page, 30 clip-path
   shards that re-form into the next page's object. Independent of styles.css
   on purpose: this is a candidate replacement, not a layer on the old site. */

:root {
  --bg: #123A31;
  --ink: #F2F6F5;
  --ink-soft: rgba(242, 246, 245, .74);
  --line: rgba(242, 246, 245, .18);
  --field: rgba(255, 255, 255, .08);
  --green: #08906C;
  --red: #CE3C2B;
  --paper: #F2F6F5;
  --text: #15171A;
  --text-muted: #5C6764;
  --ease-shard: cubic-bezier(.62, .02, .34, 1);
  --dur-shard: 1.24s;
  --delay-shard: .5s;
  --dur-bg: .5s;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}
/* light pages carry dark ink; home and partner are the dark ones */
html:not([data-page="home"]):not([data-page="partner"]) {
  --ink: #15171A;
  --ink-soft: rgba(21, 23, 26, .72);
  --line: rgba(21, 23, 26, .16);
  --field: rgba(255, 255, 255, .6);
}

*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; }
body {
  margin: 0; min-height: 100%;
  font: 400 16px/1.5 var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html.pieces-js body { transition: background-color var(--dur-bg) ease, color var(--dur-bg) ease; }
a { color: inherit; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); color: var(--text); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

/* ── nav ── */
.pnav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px clamp(20px, 4vw, 40px);
  font-size: 13px; font-weight: 500; letter-spacing: .02em;
}
.pmark { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 700; letter-spacing: .12em; font-size: 13px; }
.pmark svg { width: 20px; height: 20px; fill: currentColor; }
.plinks { display: flex; gap: clamp(12px, 2vw, 26px); }
.plinks a { text-decoration: none; opacity: .72; padding: 6px 0; border-bottom: 1px solid transparent; transition: opacity .2s, border-color .2s; white-space: nowrap; }
.plinks a:hover, .plinks a:focus-visible { opacity: 1; }
.plinks a[aria-current="page"] { opacity: 1; border-bottom-color: currentColor; }
.pcontact { opacity: 1 !important; }
.pcount { font-variant-numeric: tabular-nums; opacity: .72; }

/* ── stage ── */
.pstage {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; align-items: center; justify-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(16px, 4vw, 56px);
  padding: 92px clamp(20px, 7vw, 120px) 72px;
}
.pglow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 55% at 32% 46%, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 70%);
}

.pieces {
  --size: min(58vh, 44vw, 560px);
  position: relative; display: block; width: var(--size); height: var(--size);
  text-decoration: none; cursor: pointer; outline-offset: 12px;
  transform: translateZ(0);
}
.pieces i {
  position: absolute; inset: 0; display: block;
  will-change: clip-path;
}
html.pieces-js .pieces i {
  transition: clip-path var(--dur-shard) var(--ease-shard) var(--delay-shard),
              background-color .4s ease var(--delay-shard);
}
/* partner: the pieces snap back into the logo, faster and more decisive */
html.pieces-js[data-page="partner"] .pieces i {
  transition-duration: .9s, .4s;
  transition-timing-function: cubic-bezier(.8, 0, .12, 1), ease;
}
.pshadow {
  position: absolute; left: 20%; right: 20%; top: 91%; height: 6%;
  border-radius: 50%; background: rgba(0, 0, 0, .28); filter: blur(14px);
  z-index: 0;
  transition: opacity .4s;
}
html.pieces-js .pieces.is-flying .pshadow { opacity: .35; }

/* ── copy ── */
.pcopy { max-width: 520px; width: 100%; justify-self: start; }
.pkicker { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.pcopy h1 { margin: 0 0 18px; font-size: clamp(30px, 4.2vw, 54px); line-height: 1.04; letter-spacing: -.025em; font-weight: 700; }
.plede { margin: 0 0 18px; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.55; color: var(--ink-soft); }
.pfrom { margin: 0 0 24px; font-size: 14px; font-weight: 600; letter-spacing: .01em; }
.pctas { display: flex; flex-wrap: wrap; gap: 12px; }
.pbtn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  font: 600 14px/1 var(--font); letter-spacing: .01em; cursor: pointer; text-decoration: none;
  background: var(--ink); color: var(--bg);
  transition: transform .18s ease, background-color .3s, color .3s, border-color .3s;
}
.pbtn:hover { transform: translateY(-1px); }
.pbtn:disabled { opacity: .6; cursor: default; transform: none; }
.pbtn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.pbtn-ghost:hover { border-color: currentColor; }

html.pieces-js [data-copy] { transition: opacity .32s ease, transform .32s ease; }
html.pieces-js [data-copy].is-out { opacity: 0; transform: translateY(10px); }

.phint { position: absolute; left: 0; right: 0; bottom: 22px; margin: 0; text-align: center; font-size: 12px; letter-spacing: .04em; opacity: .55; }

.parrow {
  position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px;
  display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line);
  opacity: .7; transition: opacity .2s, border-color .2s, transform .2s;
}
.parrow:hover { opacity: 1; border-color: currentColor; }
.parrow span { width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
.parrow-prev { left: clamp(12px, 2vw, 32px); } .parrow-prev span { transform: translateX(2px) rotate(135deg); }
.parrow-next { right: clamp(12px, 2vw, 32px); } .parrow-next span { transform: translateX(-2px) rotate(-45deg); }

/* ── contact form, inline in the copy column ── */
.pform { margin-top: 6px; }
.pf-row { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.pf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pf-row label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.pf-row label span { font-weight: 400; text-transform: none; letter-spacing: 0; opacity: .7; }
.pf-row input, .pf-row textarea {
  width: 100%; padding: 11px 13px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--field); color: var(--ink);
  font: 400 15px/1.4 var(--font); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.pf-row input:focus, .pf-row textarea:focus { border-color: currentColor; box-shadow: 0 0 0 3px rgba(8, 144, 108, .18); }
.pf-row input.invalid, .pf-row textarea.invalid { border-color: var(--red); }
.pf-row textarea { resize: vertical; min-height: 84px; }
.pf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pform .pctas { margin-top: 4px; }
.pform-note { margin: 12px 0 0; font-size: 13px; color: var(--ink-soft); }
.pform-note.err { color: var(--red); }
.pform-done h3 { margin: 12px 0 8px; font-size: 22px; letter-spacing: -.02em; }
.pform-done p { margin: 0; color: var(--ink-soft); }

/* ── price panel ── */
.ppanel { position: fixed; inset: 0; z-index: 40; display: grid; place-items: end stretch; }
.ppanel[hidden] { display: none; }
.ppanel-scrim { position: absolute; inset: 0; background: rgba(15, 23, 20, .38); }
.ppanel-card {
  position: relative; max-height: 88vh; max-height: 88svh; overflow: auto;
  background: var(--paper); color: var(--text);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .25);
  animation: ppanel-up .42s cubic-bezier(.22, .61, .36, 1);
}
@keyframes ppanel-up { from { transform: translateY(28px); opacity: 0; } }
.ppanel-head {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 64px) 14px; background: var(--paper);
  border-bottom: 1px solid #DFE7E4;
}
.ppanel-head h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.pclose { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #DFE7E4; background: #fff; font-size: 22px; line-height: 1; cursor: pointer; color: var(--text); }
.ppanel-body { padding: 22px clamp(20px, 5vw, 64px) 40px; max-width: 1220px; margin: 0 auto; }
.ppanel-body a { color: #066B51; }
.ppanel-lede { margin: 0 0 22px; font-size: 17px; line-height: 1.55; }
.ppanel-lede b { font-size: 26px; letter-spacing: -.02em; }
.pcallout { margin: 0 0 24px; padding: 14px 16px; border-left: 3px solid var(--green); background: #E4F2EE; border-radius: 0 10px 10px 0; font-size: 14px; line-height: 1.55; color: #1F3A33; }
.pgroup + .pgroup { margin-top: 30px; }
.pgroup h3 { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.pgroup-lede { margin: 0 0 14px; font-size: 14px; color: var(--text-muted); max-width: 720px; }
.ptiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.pt { background: #fff; border: 1px solid #DFE7E4; border-radius: 16px; padding: 18px 18px 16px; }
.pt-pick { border-color: var(--green); box-shadow: 0 0 0 1px var(--green) inset; }
.pt-wide { grid-column: 1 / -1; }
.pt-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.pt-top b { font-size: 17px; }
.pt-chip { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #066B51; background: #E4F2EE; padding: 4px 8px; border-radius: 999px; }
.pt-scope { margin: 0 0 10px; font-size: 13px; color: var(--text-muted); }
.pt-price { margin: 0 0 10px; font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.pt-price span { display: block; font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--text-muted); margin-top: 2px; }
.pt-blurb { margin: 0; font-size: 14px; line-height: 1.5; }
.pt-foot { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid #DFE7E4; font-size: 12px; color: var(--text-muted); }
.pcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.pcols h3 { margin: 0 0 8px; font-size: 14px; }
.pcols-h2 { margin-top: 22px !important; }
.pticks { list-style: none; margin: 10px 0 0; padding: 0; font-size: 14px; line-height: 1.45; }
.pticks li { position: relative; padding-left: 20px; margin: 6px 0; }
.pticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 6px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.pticks-no li::before { border-color: var(--red); width: 8px; height: 8px; border-left: 0; border-bottom: 2px solid var(--red); transform: none; top: 9px; }
.pnote { margin: 22px 0 0; font-size: 13px; line-height: 1.55; color: var(--text-muted); }
.pnote strong, .pnote b { color: var(--text); }
.pnote-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 28px; }
.pnote-cta .pbtn { background: var(--red); color: #fff; }
body.panel-open { overflow: hidden; }

/* price lines (creative) */
.plines { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid #DFE7E4; border-radius: 16px; }
.plines li { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 12px 18px; font-size: 14px; line-height: 1.45; }
.plines li + li { border-top: 1px solid #DFE7E4; }
.pl-l b { display: block; font-size: 15px; }
.pl-l { color: var(--text-muted); }
.pl-p { font-weight: 700; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; color: var(--text); }

/* tables (ai systems) */
.ptablewrap { overflow-x: auto; margin-top: 18px; background: #fff; border: 1px solid #DFE7E4; border-radius: 16px; }
.ptable { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; min-width: 640px; }
.ptable caption { text-align: left; padding: 14px 18px 6px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.ptable th, .ptable td { text-align: left; vertical-align: top; padding: 11px 18px; border-top: 1px solid #DFE7E4; }
.ptable th { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.ptable .r { text-align: right; white-space: nowrap; font-weight: 600; }
.ptable .item { font-weight: 600; min-width: 170px; }
.pbdg { display: inline-block; margin-top: 4px; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #066B51; background: #E4F2EE; padding: 3px 7px; border-radius: 999px; }
.pbdg-svc { color: #2B4D60; background: #E8EFF3; }
.ptable .item .pbdg { display: block; width: max-content; }

/* faq (contact) */
.pfaq details { border-top: 1px solid #DFE7E4; padding: 4px 0; }
.pfaq details:last-child { border-bottom: 1px solid #DFE7E4; }
.pfaq summary { cursor: pointer; padding: 12px 0; font-weight: 600; font-size: 16px; list-style: none; position: relative; padding-right: 30px; }
.pfaq summary::-webkit-details-marker { display: none; }
.pfaq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 20px; color: var(--text-muted); }
.pfaq details[open] summary::after { content: "–"; }
.pfaq p { margin: 0 0 14px; font-size: 14px; line-height: 1.6; max-width: 760px; }

/* ── small screens: stack, art above copy ── */
@media (max-width: 860px) {
  .pstage { grid-template-columns: 1fr; padding: 84px 20px 64px; gap: 20px; }
  .pieces { --size: min(44vh, 78vw); }
  .pcopy { justify-self: stretch; }
  .parrow { display: none; }
  .plinks a:not(.pcontact) { display: none; }
  .pcount { display: none; }
  .pf-two { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html.pieces-js body, html.pieces-js .pieces i, html.pieces-js [data-copy] { transition: none; }
  .ppanel-card { animation: none; }
}
