/* Intellifyr demo atlas. Tokens follow intellifyr-website/src/app/globals.css. */
:root {
  color-scheme: light;
  --ink: #f2f0ec;
  --raised: #f7f5f1;
  --card: #faf9f6;
  --card-hover: #fff;
  --gold: #0a0908;
  --gold-light: #34312d;
  --gold-ink: #0d0c0b;
  --gold-dim: rgb(13 12 11 / 22%);
  --gold-faint: rgb(13 12 11 / 5%);
  --text: #0d0c0b;
  --text-2: #403c37;
  --text-3: #5d5750;
  --on-gold: #fff;
  --shadow: 0 18px 45px rgb(13 12 11 / 12%);
  --display: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --body: var(--display);
  --ease: cubic-bezier(.22,.61,.36,1);
  --radius: 14px;
  --intro-w: clamp(340px, 34vw, 500px);
  --spine-x: 44px;
}



* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--ink);
  color: var(--text);
  font: 400 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  display: grid;
  grid-template-columns: var(--intro-w) minmax(0, 1fr);
}
::selection { background: var(--gold); color: var(--on-gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: var(--gold-dim) transparent; }
img { display: block; max-width: 100%; }
a { color: inherit; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 30;
  background: var(--gold); color: var(--on-gold); padding: 10px 16px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 16px; }

/* ---------- Intro column ---------- */
.intro {
  position: sticky; top: 0; height: 100dvh;
  display: flex; flex-direction: column; gap: clamp(28px, 5vh, 56px);
  padding: clamp(32px, 5vh, 56px) clamp(28px, 3vw, 52px);
  border-right: 1px solid var(--gold-faint);
  background:
    radial-gradient(120% 60% at 0% 0%, var(--gold-faint), transparent 60%),
    var(--ink);
  overflow-y: auto;
}

.lockup { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; width: max-content; }
.lockup img { width: 44px; height: 44px; }
.lockup-text { display: grid; line-height: 1.05; }
.wordmark { font-family: var(--display); font-weight: 600; font-size: 26px; letter-spacing: 0.06em; color: var(--gold-ink); }
.tagline { font-family: var(--display); font-size: 12.5px; color: var(--text); opacity: 0.85; letter-spacing: 0.02em; margin-top: 3px; }

.pitch { margin-top: auto; }
h1 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(40px, 4.1vw, 64px); line-height: 1.04; letter-spacing: -0.015em;
  margin: 0; text-wrap: balance;
}
h1 em { font-style: normal; color: var(--gold-ink); }
.pitch p { color: var(--text-2); font-size: 17px; max-width: 34ch; margin: 20px 0 30px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 15px/1 var(--body); text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.35s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.985); }
.btn i { font-size: 18px; }
.btn-gold { background: var(--gold); color: var(--on-gold); box-shadow: 0 8px 20px -10px rgba(3, 5, 8, 0.6); }
.btn-gold:hover { background: var(--gold-light); box-shadow: 0 12px 26px -10px rgba(3, 5, 8, 0.7); }
.btn-quiet { color: var(--text); border-color: var(--gold-dim); background: transparent; }
.btn-quiet:hover { border-color: var(--gold); background: var(--gold-faint); }

.index ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.index a {
  display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 8px; text-decoration: none; color: var(--text-2);
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.index a i { font-size: 20px; color: var(--text-3); transition: color 0.25s var(--ease); }
.index a .n { font-family: var(--display); font-size: 21px; }
.index a .c { font-size: 13px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.index a:hover { color: var(--text); background: var(--gold-faint); }
.index a.is-active { color: var(--text); background: var(--card); }
.index a.is-active i { color: var(--gold-ink); }

.fineprint { margin: 0; font-size: 13px; color: var(--text-3); max-width: 40ch; }

/* ---------- Atlas ---------- */
.atlas { position: relative; padding: clamp(32px, 5vh, 56px) clamp(28px, 4vw, 72px) clamp(40px, 6vh, 72px) calc(var(--spine-x) + clamp(36px, 3vw, 56px)); outline: none; }

.spine { position: absolute; left: var(--spine-x); top: 0; bottom: 0; width: 1px; background: var(--gold-faint); }
.spine-fill {
  position: absolute; left: 0; top: 0; width: 1px; height: var(--fill, 0px);
  background: linear-gradient(var(--gold-faint), var(--gold) 70%);
  transition: height 0.9s var(--ease);
}

.cap { position: relative; padding-top: 8px; scroll-margin-top: 40px; }
.cap + .cap { margin-top: clamp(72px, 11vh, 120px); }
.cap::before {
  /* circuit node on the spine */
  content: ""; position: absolute; top: 25px;
  left: calc(-1 * (clamp(36px, 3vw, 56px) + 5px));
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--ink); border: 1px solid var(--gold-dim);
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.cap.is-active::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 5px var(--gold-faint); }

.cap-head { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 20px; margin-bottom: 28px; }
.cap-head h2 { font-family: var(--display); font-weight: 500; font-size: clamp(34px, 3.2vw, 46px); line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
.cap-head p { margin: 0; color: var(--text-2); font-size: 16px; max-width: 46ch; }

/* plate grids: shape follows content */
.plates { display: grid; gap: clamp(18px, 2vw, 28px); }
.plates.lead-pair { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: start; }
.plates.solo { grid-template-columns: minmax(0, 1fr); }
.plates.slots { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }

.plate { position: relative; display: grid; gap: 18px; }
.plate-shot {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  background: var(--card); border: 1px solid var(--gold-dim);
  box-shadow: var(--shadow);
  transition: transform 0.6s var(--ease), border-color 0.4s var(--ease), box-shadow 0.6s var(--ease);
}
.plate-shot::after {
  /* stage light from above */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(90% 55% at 50% -10%, rgba(232, 197, 90, 0.18), transparent 60%);
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.chrome { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px; background: var(--raised); border-bottom: 1px solid var(--gold-faint); }
.chrome::before { content: ""; width: 34px; height: 8px; background: radial-gradient(circle, var(--text-3) 3px, transparent 3.5px) 0 0 / 13px 8px repeat-x; opacity: 0.6; }
.chrome-url { font-size: 12px; color: var(--text-3); letter-spacing: 0.01em; }
.plate-shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; transition: transform 1.2s var(--ease); }
.plate-shot:hover, .plate-shot:focus-visible { transform: translateY(-4px); border-color: var(--gold); }
.plate-shot:hover::after, .plate-shot:focus-visible::after { opacity: 1; }
.plate-shot:hover img, .plate-shot:focus-visible img { transform: scale(1.035); }

.plate-copy { display: grid; gap: 8px; }
.plate-copy h3 { font-family: var(--display); font-weight: 500; font-size: 26px; line-height: 1.15; margin: 0; }
.plate.is-lead .plate-copy h3 { font-size: 32px; }
.plate-copy p { margin: 0; color: var(--text-2); max-width: 56ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.tags li { font-size: 12.5px; color: var(--text-2); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--gold-faint); background: var(--gold-faint); }
.plate-actions { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; }
.link {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 0;
  font: 600 14px/1 var(--body); color: var(--gold-ink); text-decoration: none; background: none; border: 0; cursor: pointer;
}
.link i { font-size: 16px; transition: transform 0.3s var(--ease); }
.link:hover i { transform: translate(2px, -2px); }
.link[data-present]:hover i { transform: translateX(2px); }

/* single-demo row: screenshot and copy side by side */
.plates.solo .plate { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 3vw, 48px); }
.plates.solo .plate-copy h3 { font-size: 34px; }
.points { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.points li { position: relative; padding-left: 22px; color: var(--text-2); font-size: 15px; }
.points li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 1px; background: var(--gold); }

/* in-build slots */
.slot {
  display: grid; gap: 10px; align-content: start;
  padding: 26px 26px 28px; border-radius: var(--radius);
  border: 1px dashed var(--gold-dim);
  background: linear-gradient(180deg, var(--gold-faint), transparent 70%);
}
.slot-state { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gold-ink); font-weight: 600; }
.slot-state i { font-size: 16px; }
.slot h3 { font-family: var(--display); font-weight: 500; font-size: 24px; line-height: 1.2; margin: 0; }
.slot p { margin: 0; color: var(--text-2); font-size: 15px; }

/* closing band */
.close {
  position: relative; margin-top: clamp(96px, 14vh, 160px); padding: clamp(40px, 6vh, 72px) clamp(28px, 4vw, 64px);
  min-height: 52vh; display: grid; align-content: center; justify-items: start; gap: 18px;
  border-radius: 16px; border: 1px solid var(--gold-dim);
  background: radial-gradient(80% 90% at 0% 100%, rgba(206, 157, 34, 0.16), transparent 60%), var(--raised);
  overflow: hidden;
}
.close img { width: 56px; height: 56px; }
.close h2 { font-family: var(--display); font-weight: 500; font-size: clamp(32px, 3.2vw, 48px); line-height: 1.1; margin: 0; max-width: 18ch; letter-spacing: -0.01em; }
.close p { margin: 0 0 10px; color: var(--text-2); font-size: 17px; max-width: 46ch; }

/* reveal */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0ms); }
  .reveal.is-in { opacity: 1; transform: none; }
  .intro > * { animation: rise 1s var(--ease) both; }
  .intro > :nth-child(2) { animation-delay: 80ms; }
  .intro > :nth-child(3) { animation-delay: 160ms; }
  .intro > :nth-child(4) { animation-delay: 240ms; }
  .intro > :nth-child(5) { animation-delay: 320ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } }
}

/* ---------- Stage (presenter view) ---------- */
.stage {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: var(--ink); color: var(--text);
}
.stage::backdrop { background: rgba(5, 7, 10, 0.7); }
.stage-inner {
  height: 100%; display: grid; grid-template-rows: auto 1fr auto;
  background: radial-gradient(70% 55% at 38% 0%, rgba(206, 157, 34, 0.14), transparent 65%);
}
.stage-bar, .stage-foot { display: flex; align-items: center; gap: 16px; padding: 18px clamp(20px, 3vw, 44px); }
.stage-cap { font-family: var(--display); font-size: 20px; color: var(--gold-ink); }
.stage-count { margin-left: auto; font-size: 14px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--gold-dim); background: transparent; color: var(--text); cursor: pointer;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.icon-btn i { font-size: 19px; }
.icon-btn:hover { border-color: var(--gold); background: var(--gold-faint); }

.stage-body {
  min-height: 0; display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(300px, 1fr);
  gap: clamp(24px, 3.5vw, 64px); align-items: center; padding: 0 clamp(20px, 3vw, 44px);
}
.stage-screen {
  margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--gold);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
  max-height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr);
}
.stage-screen img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.stage-copy h2 { font-family: var(--display); font-weight: 500; font-size: clamp(40px, 4.4vw, 72px); line-height: 1.02; margin: 0 0 16px; letter-spacing: -0.015em; }
.stage-copy > p { color: var(--text-2); font-size: 18px; margin: 0 0 22px; max-width: 34ch; }
.stage-copy ul { margin: 0 0 30px; padding: 0; list-style: none; display: grid; gap: 12px; }
.stage-copy li { position: relative; padding-left: 24px; color: var(--text); font-size: 16px; }
.stage-copy li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 12px; height: 1px; background: var(--gold); }

.running-order { flex: 1; display: flex; justify-content: center; gap: 10px; list-style: none; margin: 0; padding: 0; overflow-x: auto; }
.running-order button {
  display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 6px;
  border-radius: 999px; border: 1px solid var(--gold-faint); background: transparent; color: var(--text-2);
  font: 500 14px/1 var(--body); cursor: pointer; white-space: nowrap;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.running-order img { width: 44px; height: 28px; object-fit: cover; object-position: top; border-radius: 999px; }
.running-order button:hover { color: var(--text); border-color: var(--gold-dim); }
.running-order button[aria-current="true"] { color: var(--text); border-color: var(--gold); background: var(--gold-faint); }

@media (prefers-reduced-motion: no-preference) {
  .stage[open] .stage-screen, .stage[open] .stage-copy { animation: stage-in 0.8s var(--ease) both; }
  .stage[open] .stage-copy { animation-delay: 90ms; }
  .stage.is-switching .stage-screen, .stage.is-switching .stage-copy { animation: stage-in 0.6s var(--ease) both; }
  @keyframes stage-in { from { opacity: 0; transform: translateY(16px) scale(0.99); filter: blur(4px); } }
}

.noscript { color: var(--text-2); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .plates.lead-pair { grid-template-columns: minmax(0, 1fr); }
  .plates.solo .plate { grid-template-columns: minmax(0, 1fr); }
  .cap-head { grid-template-columns: 1fr; row-gap: 8px; }
}

@media (max-width: 860px) {
  body { display: block; }
  .intro { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--gold-faint); padding: 28px 16px 24px; gap: 28px; }
  .pitch { margin-top: 0; }
  h1 { font-size: clamp(38px, 10vw, 52px); }
  .index ol { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 4px; scrollbar-width: none; }
  .index a { grid-template-columns: 20px auto; padding: 8px 16px 8px 12px; border: 1px solid var(--gold-faint); border-radius: 999px; white-space: nowrap; }
  .index a .c { display: none; }
  .index a .n { font-size: 17px; }
  .fineprint { display: none; }
  .atlas { padding: 36px 16px 80px 40px; }
  .spine { left: 16px; }
  .cap::before { left: -29px; }
  .stage-body { grid-template-columns: 1fr; align-content: start; overflow-y: auto; padding-bottom: 16px; }
  .stage-copy h2 { font-size: 38px; }
  .running-order { justify-content: flex-start; }
}

/* Intellifyr website identity and enquiry controls. */
.intro {
  background: linear-gradient(rgb(242 240 236 / 52%), #f2f0ec 80%),
    url('assets/stage-poster.webp') center top / cover no-repeat;
}
.lockup img { width: 152px; height: auto; }
.pitch h1, .cap-head h2, .stage-copy h2 { font-weight: 400; letter-spacing: -.04em; }
.pitch h1 { font-size: clamp(52px, 5.5vw, 88px); line-height: .98; }
.btn, .icon-btn { border-radius: 999px; }
.btn-gold:hover, .btn-gold:focus-visible { color: #fff; }
.enquiry { margin-top: 10px; border-top: 1px solid var(--gold-dim); }
.enquiry summary { padding: 10px 0; cursor: pointer; font-weight: 500; }
.enquiry summary:hover { text-decoration: underline; text-underline-offset: .2em; }
.enquiry-form { display: grid; gap: 10px; margin: 0 0 12px; }
.enquiry-form label { display: grid; gap: 4px; color: var(--text-2); }
.enquiry-form input:not(.enquiry-trap) {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  border: 1px solid #8c857e;
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  color: var(--text);
  background: var(--card);
}
.enquiry-trap { position: absolute; left: -10000px; width: 1px; height: 1px; }
.enquiry-form p { font-size: .9rem; color: var(--text-2); }
.enquiry-form .btn { justify-self: start; }
.enquiry-form .btn:disabled { cursor: wait; opacity: .7; }
.enquiry-status:empty { display: none; }