/* Verascape marketing site — Eucalypt palette, Contour brand
   forest #152c22 · sage #dce9de · mist #e7eee6 · gold #dbb155 */

:root {
  --forest: #152c22;
  --forest-2: #1b3529;
  --forest-3: #203d30;
  --forest-deep: #0e1e17;
  --sage: #dce9de;
  --sage-dim: #a9bfb0;
  --mist: #e7eee6;
  --gold: #dbb155;
  --gold-dark: #8a6a1e;
  --ink: #152c22;
  --ink-dim: #4a6357;
  --line: rgba(220, 233, 222, .16);
  --line-dark: rgba(21, 44, 34, .16);

  --font-display: "Instrument Serif", ui-serif, Georgia, serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --header-h: 72px;
  --gutter: clamp(20px, 5vw, 56px);
  --radius: 28px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--forest-deep); color: var(--sage);
  font-family: var(--font-sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold); color: var(--forest); padding: 8px 14px; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */
.eyebrow { font-size: .72rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.display { font-family: var(--font-display); letter-spacing: -.01em; line-height: 1; }
.display em { font-style: italic; color: var(--gold); }
.h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); margin-top: 1rem; max-width: 16ch; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--sage-dim); max-width: 38ch; }
.lede.dark { color: var(--ink); }
.small { font-size: .82rem; color: var(--sage-dim); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 50px; padding: 0 28px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 .78rem/1 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  transition: transform .3s var(--ease), background .3s;
}
.btn-dark { background: var(--forest); color: var(--sage); }
.btn-dark:hover { background: var(--forest-3); transform: translateY(-2px); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- social icons ---------- */
.social { display: flex; gap: 8px; }
.social a {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--sage-dim);
  transition: color .3s, border-color .3s, background .3s, transform .3s var(--ease);
}
.social a:hover { color: var(--forest); background: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.social svg { width: 17px; height: 17px; }
.social-dark a { border-color: var(--line-dark); color: var(--ink); }
.social-dark a:hover { color: var(--forest); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  border-bottom: 1px solid transparent; transition: background .4s, border-color .4s;
}
.site-header.scrolled {
  background: rgba(14, 30, 23, .88);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.header-row { height: 100%; padding-inline: var(--gutter); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; font-size: 1.15rem; letter-spacing: .04em; justify-self: start; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 34px; }
.nav a { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: var(--sage-dim); padding: 10px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover, .nav a.active { color: var(--sage); }
.nav a.active::after, .nav a:hover::after { transform: scaleX(1); }
.header-side { justify-self: end; display: flex; align-items: center; gap: 18px; }
.signin { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: var(--sage-dim); padding-left: 18px; border-left: 1px solid var(--line); line-height: 38px; }
.signin:hover { color: var(--sage); }

.menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--sage); transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; background: rgba(14, 30, 23, .97);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { font-family: var(--font-display); font-size: 2.4rem; line-height: 1.25; text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--line); }
.mobile-foot { display: flex; align-items: center; justify-content: space-between; }

/* ---------- scroll stack ---------- */
.stack { position: relative; }
.anchor { display: block; height: 0; }
.panel {
  position: sticky; top: var(--stick, 0px);
  min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -30px 60px -20px rgba(0, 0, 0, .45);
  transform-origin: 50% 0; overflow: hidden;
}
/* covered panels darken (not see-through) as the next card slides over */
.panel::after { content: ""; position: absolute; inset: 0; background: #08130e; opacity: var(--cover, 0); pointer-events: none; z-index: 5; }
.panel-inner { position: relative; width: 100%; padding-block: calc(var(--header-h) + clamp(40px, 8vh, 96px)) clamp(56px, 10vh, 110px); }
.panel-last { position: relative; top: 0; }

.panel-hero { border-radius: 0; box-shadow: none; background: var(--forest-deep); }
.panel-light { background: var(--mist); color: var(--ink); }
.panel-light .eyebrow { color: var(--gold-dark); }
.panel-intro { background: var(--forest); }
.panel-product { background: var(--forest-2); }
.panel-product.alt { background: var(--forest-3); }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.panel-hero .panel-inner { min-height: 100svh; display: flex; align-items: flex-end; padding-block: calc(var(--header-h) + 40px) clamp(72px, 12vh, 130px); }
.reel { position: absolute; inset: 0; overflow: hidden; }
.reel-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel-placeholder {
  position: absolute; inset: 0;
  background: radial-gradient(60% 70% at 60% 52%, #2a4a3a 0%, transparent 70%), radial-gradient(90% 90% at 20% 100%, #1d3a2d 0%, transparent 60%), var(--forest-deep);
}
.contours { position: absolute; inset: -6%; width: 112%; height: 112%; animation: flythrough 26s ease-in-out infinite alternate; }
.ring path { fill: none; stroke: var(--sage); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.ring { transform-box: fill-box; transform-origin: 62% 52%; }
.r1 { opacity: .12; animation: drift 60s linear infinite; }
.r2 { opacity: .17; animation: drift 48s linear infinite reverse; }
.r3 { opacity: .24; animation: drift 40s linear infinite; }
.r4 { opacity: .32; animation: drift 34s linear infinite reverse; }
.r5 { opacity: .42; animation: drift 28s linear infinite; }
.pin { fill: var(--gold); animation: pulse 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes drift { to { transform: rotate(360deg); } }
@keyframes flythrough { from { transform: scale(1); } to { transform: scale(1.22) translate(-2%, 1%); } }
@keyframes pulse { 50% { transform: scale(1.5); opacity: .6; } }
.reel-tag { position: absolute; right: var(--gutter); top: calc(var(--header-h) + 18px); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sage-dim); border: 1px dashed rgba(220,233,222,.35); border-radius: 999px; padding: 6px 12px; }
.reel-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,30,23,.55) 0%, rgba(14,30,23,0) 30%, rgba(14,30,23,.1) 55%, rgba(14,30,23,.85) 100%); }
.hero-copy { position: relative; }
.hero-copy h1 { font-size: clamp(4rem, 13vw, 10.5rem); margin: 0 0 1.6rem; line-height: .9; }
.hero-copy .lede { color: var(--sage); max-width: 34ch; }
.scroll-cue { position: absolute; right: var(--gutter); bottom: clamp(72px, 12vh, 130px); width: 28px; height: 46px; border: 1px solid rgba(220,233,222,.45); border-radius: 999px; }
.scroll-cue span { position: absolute; left: 50%; top: 9px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: cue 2s ease-in-out infinite; }
@keyframes cue { 60% { transform: translateY(14px); opacity: 0; } 61% { transform: none; opacity: 0; } 100% { opacity: 1; } }

/* ---------- layouts ---------- */
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-body { display: grid; gap: 1.4rem; padding-top: .4rem; }
.about-body > p:not(.lede) { color: var(--ink-dim); max-width: 50ch; }

.card-media {
  position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line); display: grid; place-items: center;
  transition: transform .5s var(--ease), border-color .5s;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card h3 { font-family: var(--font-display); font-size: clamp(1.7rem, 2.4vw, 2.1rem); line-height: 1.1; margin-top: 18px; }
.card > p:not(.demo-tag) { margin-top: 8px; color: var(--sage-dim); font-size: .96rem; max-width: 34ch; }
.media-vista { background: repeating-radial-gradient(ellipse at 65% 70%, transparent 0 18px, rgba(220,233,222,.12) 18px 19px), linear-gradient(160deg, #2c4a3a 0%, #1a3326 55%, #3b4a2a 100%); }
.media-inspect { background: repeating-linear-gradient(90deg, transparent 0 46px, rgba(220,233,222,.1) 46px 47px), repeating-linear-gradient(0deg, transparent 0 46px, rgba(220,233,222,.1) 46px 47px), linear-gradient(160deg, #35574a, #1c3529); }
.card:hover .card-media { transform: translateY(-4px); border-color: rgba(219,177,85,.6); }
.soon { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sage-dim); border: 1px dashed rgba(220,233,222,.3); border-radius: 999px; padding: 6px 12px; background: rgba(14,30,23,.5); }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font-family: var(--font-display); font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.2; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 16px; height: 1.5px; background: var(--gold); transition: transform .35s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { padding: 0 44px 24px 0; color: var(--sage-dim); max-width: 60ch; }

.contact-direct { margin-top: 1.6rem; font-size: 1.1rem; }
.contact-direct a { color: var(--ink); text-underline-offset: 5px; text-decoration-color: var(--gold); }
.panel-light .social { margin-top: 1.2rem; }
.form { display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-dim); }
.form input, .form textarea {
  font: inherit; font-size: 1rem; letter-spacing: 0; text-transform: none; color: var(--ink);
  background: rgba(255,255,255,.55); border: 1px solid var(--line-dark); border-radius: 12px; padding: 14px 16px; width: 100%;
  transition: border-color .3s, background .3s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--forest); background: #fff; }
.form textarea { resize: vertical; min-height: 120px; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { font-size: .95rem; min-height: 1.4em; }
.form-msg.err { color: #a23b2a; }
.form-msg.ok { color: var(--forest); font-weight: 500; }

.site-footer { background: var(--forest-deep); border-top: 1px solid var(--line); padding: 30px 0 calc(30px + env(safe-area-inset-bottom)); position: relative; z-index: 1; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .header-row { grid-template-columns: 1fr auto; }
  .nav, .hide-sm { display: none; }
  .menu-btn { display: block; }
}
@media (max-width: 820px) {
  :root { --header-h: 64px; --radius: 22px; }
  .split { grid-template-columns: 1fr; }
  .panel-inner { padding-block: calc(var(--header-h) + 36px) 64px; }
  .form-grid { grid-template-columns: 1fr; }
  .form .btn { justify-self: stretch; }
  .scroll-cue { display: none; }
  .reel-tag { left: var(--gutter); right: auto; }
}
@media (max-width: 520px) {
  .footer-row { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Demos: one stacked card per viewer */
.panel-product.deep { background: var(--forest-deep); }
.h3 { font-size: clamp(2.2rem, 5vw, 4rem); margin-top: 1rem; max-width: 14ch; }
.num { color: var(--sage-dim); margin-right: .6em; }
.intro { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 6vw, 96px); align-items: end; }
.intro > .eyebrow, .intro > .h2, .intro > .lede { grid-column: 1; }
.intro .lede { margin-top: 1.6rem; }
.index-list { grid-column: 2; grid-row: 1 / span 3; align-self: end; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.index-list a { display: flex; align-items: baseline; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.1; transition: padding .35s var(--ease), color .35s; }
.index-list a span { font-family: var(--font-sans); font-size: .75rem; letter-spacing: .2em; color: var(--gold); }
.index-list a:hover { padding-left: 14px; color: #fff; }

.product { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.product-copy > p:not(.eyebrow):not(.focus-label) { margin-top: 1.3rem; color: var(--sage-dim); max-width: 44ch; font-size: 1.05rem; }
.modes { list-style: none; margin: 1.5rem 0 0; padding: 0; display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.modes li { padding: 8px 18px; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sage); }
.modes li + li { border-left: 1px solid var(--line); }
.ticks { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .6rem; }
.ticks li { position: relative; padding-left: 26px; font-size: .97rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 1px; background: var(--gold); }
.ticks li::after { content: ""; position: absolute; left: 11px; top: calc(.62em - 2px); width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.focus-label { margin-top: 1.6rem; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.tags { list-style: none; margin: .7rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: .82rem; padding: 5px 13px; border-radius: 999px; background: rgba(220,233,222,.08); border: 1px solid var(--line); color: var(--sage); }

.tile { display: block; text-decoration: none; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: rgba(220,233,222,.04); transition: transform .5s var(--ease), border-color .5s; }
.tile:hover { transform: translateY(-4px); border-color: rgba(219,177,85,.6); }
.tile[aria-disabled="true"] { cursor: default; }
.tile-media { aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; }
.tile-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 16px 20px; }
.tile-title { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; }
.tile-go { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--sage-dim); white-space: nowrap; }
.tile:hover .tile-go { color: var(--sage); }

.dev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(32px, 5vh, 56px); }
.dev-card { position: relative; border: 1px solid var(--line); border-radius: 20px; padding: 26px 24px 24px; background: rgba(220,233,222,.03); display: flex; flex-direction: column; transition: border-color .4s, background .4s; }
.dev-card:hover { border-color: rgba(219,177,85,.5); background: rgba(220,233,222,.06); }
.dev-card h4 { margin: 18px 0 0; font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; line-height: 1.1; }
.dev-card p { margin-top: .6rem; color: var(--sage-dim); font-size: .95rem; flex: 1; }
.dev-card .tags { margin-top: 1.2rem; }
.dot { display: block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: pulse 2.4s ease-in-out infinite; }
.dev-cta { margin-top: 28px; color: var(--sage-dim); }
.dev-cta a { color: var(--gold); text-decoration: none; margin-left: .4em; }
.dev-cta a:hover { color: var(--sage); }

@media (max-width: 1020px) { .dev-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 820px) {
  .intro, .product { grid-template-columns: 1fr; }
  .index-list { grid-column: 1; grid-row: auto; margin-top: 36px; }
  .tile-media { aspect-ratio: 16 / 10; }
  .dev-grid { grid-template-columns: 1fr; gap: 12px; }
  .dev-card { padding: 20px; }
  .dev-card h4 { margin-top: 12px; font-size: 1.5rem; }
}

.card { display: block; text-decoration: none; }
.early { display: inline-flex; align-items: center; gap: 8px; font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.early .dot { display: inline-block; }
.h3#next-h { max-width: 18ch; }

/* Demos: one card split in two, each viewer with a swipeable card deck */
.halves { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: clamp(28px, 5vh, 48px); }
.half { padding-inline: clamp(0px, 3vw, 44px); }
.half:first-child { padding-left: 0; border-right: 1px solid var(--line); }
.half:last-child { padding-right: 0; }
.half h3 { font-family: var(--font-display); font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.05; margin-top: 18px; }
.half > p { color: var(--sage-dim); margin-top: 6px; max-width: 40ch; }
.half .tags { margin-top: 14px; }

.deck { position: relative; aspect-ratio: 16 / 10; margin-top: 26px; outline-offset: 6px; touch-action: pan-y; user-select: none; }
.dcard {
  position: absolute; inset: 0; display: block; border-radius: 20px; overflow: hidden; text-decoration: none;
  border: 1px solid var(--line); background: var(--forest-2);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.6);
  transform: translateY(calc(var(--i, 0) * -16px)) scale(calc(1 - var(--i, 0) * .05));
  transform-origin: 50% 0; z-index: calc(10 - var(--i, 0)); opacity: var(--o, 1);
  transition: transform .55s var(--ease), opacity .45s var(--ease), filter .45s;
  filter: brightness(calc(1 - var(--i, 0) * .18));
}
.dcard.out { transform: translate(-46%, 18px) rotate(-7deg); opacity: 0; }
.dcard.in-back { transform: translate(46%, 18px) rotate(7deg); opacity: 0; }
.dcard[aria-disabled="true"] { cursor: grab; }
.dcard-media { position: absolute; inset: 0; }
.dcard-media img { width: 100%; height: 100%; object-fit: cover; }
.dcard .soon { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; }
.dcard-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 18px 14px; font-family: var(--font-display); font-size: 1.35rem; color: var(--sage); background: linear-gradient(transparent, rgba(14,30,23,.85)); }
.deck-ctrl { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.deck-ctrl button {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: transparent;
  color: var(--sage); font-size: .95rem; cursor: pointer; transition: background .3s, color .3s, border-color .3s;
}
.deck-ctrl button:hover { background: var(--gold); border-color: var(--gold); color: var(--forest); }
.deck-count { font-size: .72rem; letter-spacing: .2em; color: var(--sage-dim); min-width: 44px; text-align: center; }

@media (max-width: 820px) {
  .halves { grid-template-columns: 1fr; gap: 44px; }
  .half, .half:first-child, .half:last-child { padding: 0; border: 0; }
}

/* FAQ full width, two columns of questions */
.faq { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(28px, 5vw, 72px); border-top: 0; margin-top: clamp(28px, 5vh, 48px); }
.faq details { border-top: 1px solid var(--line); border-bottom: 0; align-self: start; }

@media (max-width: 1020px) {
}
@media (max-width: 820px) {
  .faq { grid-template-columns: 1fr; }
}

/* Demos v7: one centred card per branch, branch tabs link them */
.demos-intro { text-align: center; }
.demos-intro .h2 { margin-inline: auto; }
.demos-intro .lede { margin: 1rem auto 0; }
.branches { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 0 auto; }
.demos-intro + .branches { margin-top: clamp(24px, 4vh, 40px); }
.branches a {
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  color: var(--sage-dim); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px;
  transition: color .3s, background .3s, border-color .3s;
}
.branches a:hover { color: var(--sage); border-color: rgba(220,233,222,.4); }
.branches a.on { background: var(--sage); color: var(--forest); border-color: var(--sage); }
.solo { position: relative; width: min(100%, 640px); margin-inline: auto; padding: 0 !important; border: 0 !important; text-align: center; }
.solo .deck { margin-top: 56px; }
.solo .deck-ctrl { justify-content: center; }
.solo h3 { margin-top: 14px; font-size: clamp(2.2rem, 4vw, 3.2rem); }
.solo > p { margin-inline: auto; }
.solo .tags { justify-content: center; }
.early-tag { display: inline-block; vertical-align: middle; margin-left: 10px; font-family: var(--font-sans); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold); border-radius: 999px; padding: 4px 10px; }
.media-custom { background: repeating-linear-gradient(45deg, transparent 0 30px, rgba(220,233,222,.08) 30px 31px), linear-gradient(160deg, #3a4a3e, #1b3026); }
.media-film { background: repeating-linear-gradient(90deg, transparent 0 60px, rgba(219,177,85,.10) 60px 61px), linear-gradient(160deg, #2a2f25, #0e1e17); }
.media-4d { background: repeating-radial-gradient(circle at 50% 50%, transparent 0 14px, rgba(219,177,85,.16) 14px 15px), linear-gradient(160deg, #1d2f27, #0e1e17); }
@media (max-width: 820px) {
  .branches { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .branches::-webkit-scrollbar { display: none; }
  .solo .deck { margin-top: 48px; }
}

/* Docked "Step inside." title: slides from centre to the left and stays while in the demo cards */
.demos-dock {
  position: fixed; z-index: 40; left: var(--gutter); top: calc(var(--header-h) + 64px);
  pointer-events: none; opacity: 0;
  transform: translateX(var(--from-x, 30vw)) scale(1.25); transform-origin: left top;
  transition: transform .7s var(--ease), opacity .45s var(--ease);
}
.demos-dock.show { opacity: 1; transform: none; }
.dock-title { margin-top: .6rem; font-size: clamp(2.2rem, 3.2vw, 3.2rem); line-height: 1; max-width: 6ch; }
.demos-intro { transition: opacity .4s var(--ease); }
body.docked .demos-intro { opacity: 0; }
@media (max-width: 1100px) { .demos-dock { display: none; } body.docked .demos-intro { opacity: 1; } }
