:root {
  --navy: #06283e;
  --deep: #031d2d;
  --ink: #101422;
  --paper: #f7f4ee;
  --yellow: #f2ed36;
  --muted: #626975;
  --line: #d9d8d2;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  /* Proposed typeface, to confirm. Loaded from Google Fonts in the page
     head; self-host the files before launch. */
  --font: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
/* Headings: heavy, tightly spaced, as in the approved Ghost Scale visuals. */
h1,
h2,
h3 {
  font-weight: 800;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button {
  color: inherit;
}
button:disabled {
  opacity: 0.35;
  cursor: default;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid #3578bc;
  outline-offset: 6px;
}
.header :focus-visible,
.hero :focus-visible,
.community :focus-visible {
  outline-color: var(--yellow);
}
.skip {
  position: absolute;
  left: 20px;
  top: -100px;
  z-index: 10;
  background: var(--yellow);
  padding: 14px;
}
.skip:focus {
  top: 10px;
}
.wrap {
  max-width: 1440px;
  width: calc(100% - 112px);
  margin: auto;
}
.header {
  background: var(--deep);
  color: #fff;
  position: relative;
  z-index: 5;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  height: 112px;
}
.brand {
  display: block;
  width: 278px;
  flex-shrink: 0;
}
.brand img {
  width: 100%;
  height: auto;
}
nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
}
nav > a:not(.button) {
  padding: 12px 0;
}
nav > a:not(.button):hover {
  color: var(--yellow);
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 26px;
  background: var(--yellow);
  border: 1px solid transparent;
  color: var(--deep);
  border-radius: 40px;
  min-height: 54px;
  padding: 16px 25px;
  font-size: 15px;
  font-weight: 700;
  transition:
    background 0.2s,
    transform 0.2s;
  white-space: normal;
}
.button:hover {
  background: #fffb73;
  transform: translateY(-2px);
}
.button .icon {
  width: 20px;
  height: 20px;
}
.button.small .icon {
  width: 17px;
  height: 17px;
}
.button.small {
  min-height: 44px;
  font-size: 13px;
  padding: 10px 19px;
  gap: 16px;
}
.menu {
  display: none;
}
.hero {
  background:
    radial-gradient(ellipse at 75% 80%, #153e55 0, transparent 47%), var(--deep);
  color: #fff;
  position: relative;
  overflow: hidden;
}
/* The oversized, cropped tonal rocket is the Ghost Scale signature: it
   should read clearly, but stay darker than the headline. */
.hero-rocket {
  position: absolute;
  width: 640px;
  left: 22%;
  top: -300px;
  transform: rotate(35deg);
  opacity: 0.8;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 44% 56%;
  align-items: center;
  min-height: 650px;
  padding: 55px 0 150px;
}
.eyebrow {
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.21em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 22px;
}
.eyebrow.light {
  color: #c2d0d8;
}
.hero h1 {
  font-size: clamp(45px, 4.65vw, 75px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 27px;
  position: relative;
  z-index: 2;
}
.yellow {
  color: var(--yellow);
}
.hero-intro {
  font-size: 20px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  margin: 0 0 32px;
}
.quiet-link {
  display: block;
  margin-top: 28px;
  font-size: 13px;
  color: #c4d3dd;
}
.quiet-link {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
}
.quiet-link .icon {
  width: 15px;
  height: 15px;
}
.hero-stage {
  height: 480px;
  position: relative;
  perspective: 1500px;
  transform: translateX(15px);
  --tilt-x: 0deg;
  --tilt-y: 0deg;
}
.screen {
  background: #eaf0f4;
  padding: 7px;
  border: 1px solid #8d9eaa;
  border-radius: 12px;
  box-shadow: 0 22px 38px -22px #06283e99;
  overflow: hidden;
}
.screen img {
  width: 100%;
  border-radius: 0 0 6px 6px;
}
/* Close-up crop of a screenshot (service tabs). Set --zoom, --x and --y
   inline; see serviceData in site.js. */
.crop {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2738 / 1672;
  border-radius: 0 0 6px 6px;
  background: #fff;
}
.crop img {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(var(--zoom) * 100%);
  max-width: none;
  border-radius: 0;
  transform: translate(calc(var(--x) * -100%), calc(var(--y) * -100%));
}
.screen-bar {
  background: var(--navy);
  color: #c1d1db;
  display: flex;
  align-items: center;
  height: 24px;
  gap: 4px;
  padding: 0 10px;
  border-radius: 5px 5px 0 0;
  font-size: 7px;
  letter-spacing: 0.06em;
}
.screen-bar i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #7a95a6;
}
.screen-bar span {
  margin-left: auto;
}
.hero-stage .screen {
  position: absolute;
  width: 92%;
  box-shadow: 0 30px 45px -20px #0009;
}
.hero-back {
  right: 0;
  top: 0;
  transform: rotateY(-13deg) rotateZ(-5deg);
  animation: float-back 9s ease-in-out infinite;
}
.hero-front {
  width: 74% !important;
  right: -2%;
  top: 235px;
  transform: rotateY(-13deg) rotateZ(-5deg);
  animation: float-front 11s ease-in-out infinite;
}
.stage-glow {
  position: absolute;
  bottom: -65px;
  left: 15%;
  width: 80%;
  height: 18px;
  background: #010d16;
  filter: blur(15px);
  opacity: 0.7;
}
.section {
  padding-top: 100px;
  padding-bottom: 100px;
}
h2 {
  font-size: clamp(32px, 3.7vw, 55px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 32px;
  text-wrap: balance;
}
h3 {
  letter-spacing: -0.025em;
}
p {
  line-height: 1.6;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 40px;
  margin-top: 38px;
}
.tabs button {
  border: 0;
  border-bottom: 4px solid transparent;
  background: none;
  padding: 16px 2px 20px;
  font-size: 18px;
  white-space: nowrap;
}
.tabs button[aria-selected="true"] {
  border-color: var(--yellow);
  font-weight: 700;
}
.tabs button:hover {
  color: #4b5b63;
}
.service-panel {
  display: grid;
  grid-template-columns: minmax(0, 39fr) minmax(0, 61fr);
  gap: 30px;
  align-items: center;
  min-height: 470px;
  padding-top: 45px;
}
.service-number {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 25px;
}
.service-copy h3 {
  font-size: 37px;
  line-height: 1.12;
  margin: 0 0 23px;
  max-width: 400px;
}
.service-copy p {
  max-width: 360px;
  font-size: 17px;
  color: #424d58;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  border: 0;
  border-bottom: 3px solid var(--yellow);
  background: none;
  padding: 9px 0;
  font-weight: 700;
  font-size: 14px;
}
.text-link:hover {
  border-color: var(--navy);
}
.service-visual {
  padding: 15px 10px 0 25px;
  perspective: 1600px;
}
.service-screen {
  transform: rotateY(-9deg) rotateZ(-3deg);
  transition: transform 0.6s var(--ease);
}
.service-visual:hover .service-screen {
  transform: rotateY(0deg) rotateZ(-1deg);
}
.image-caption {
  text-align: right;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.05em;
  margin-top: 23px;
}
.work-section {
  border-block: 1px solid var(--line);
  overflow: hidden;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
}
.section-heading h2 {
  margin-bottom: 0;
}
.section-heading > .text-link {
  flex-shrink: 0;
}
.gallery-shell {
  margin-top: 45px;
}
.gallery {
  display: flex;
  gap: 38px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 25px max(56px, calc((100vw - 1328px) / 2)) 30px;
  overscroll-behavior-x: contain;
}
.gallery::-webkit-scrollbar {
  display: none;
}
.project-slide {
  flex: 0 0 min(900px, 77vw);
  display: grid;
  grid-template-columns: 29% 71%;
  align-items: center;
  min-height: 370px;
  padding: 27px 25px 27px 32px;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  position: relative;
  transition: transform 0.45s var(--ease);
  isolation: isolate;
}
.project-slide:hover,
.project-slide:focus-within {
  transform: translateY(-7px);
}
.project-copy {
  padding-right: 18px;
  container-type: inline-size;
}
/* A title never runs under the picture: its size is capped so the longest word (--chars,
   set by build.py) fits the column, whatever the screen width. Short names keep the full size. */
.project-copy h3 {
  --fit: calc(100cqi / (var(--chars, 6) * 0.57));
  font-size: min(47px, var(--fit));
  margin: 0 0 18px;
}
.project-copy .eyebrow {
  font-size: 12px;
  margin-bottom: 12px;
}
.dash {
  display: block;
  background: var(--yellow);
  width: 34px;
  height: 4px;
}
.project-copy p:not(.eyebrow) {
  font-size: 16px;
  margin: 22px 0;
}
.project-copy .button {
  font-size: 12px;
  min-height: 42px;
  padding: 10px 17px;
  gap: 18px;
}
.project-screen {
  display: block;
  perspective: 1200px;
}
.project-screen .screen {
  transform: rotateY(var(--ry, -8deg)) rotateZ(var(--rz, -3deg)) scale(1.035);
  transition: transform 0.5s var(--ease);
}
.project-slide:hover .screen,
.project-slide:focus-within .screen {
  transform: rotateY(0deg) rotateZ(var(--rz-rest, -1deg)) scale(1.06);
}
/* Each card leans its own way (Arno, 29 November 2026), and settles a little on hover. */
.project-slide:nth-child(5n + 2) { --ry: 7deg; --rz: 2.5deg; --rz-rest: 1deg; }
.project-slide:nth-child(5n + 3) { --ry: -5deg; --rz: 1.5deg; --rz-rest: 0.5deg; }
.project-slide:nth-child(5n + 4) { --ry: 9deg; --rz: -2deg; --rz-rest: -0.5deg; }
.project-slide:nth-child(5n + 5) { --ry: -10deg; --rz: 3.5deg; --rz-rest: 1deg; }
/* Static two-up layout, used while there are two projects or fewer
   (STATIC_WORK_LIMIT in scripts/build.py). Screen above, copy below. */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 50px;
}
.work-grid .project-slide {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  align-items: stretch;
  gap: 34px;
  padding: 34px 34px 38px;
  min-height: 0;
}
.work-grid .project-copy {
  padding-right: 0;
}
.work-grid .project-copy p:not(.eyebrow) {
  max-width: 420px;
}
.work-grid .project-screen .screen {
  transform: rotateY(-6deg) rotateZ(-2deg);
}
.work-grid .project-slide:hover .screen,
.work-grid .project-slide:focus-within .screen {
  transform: rotateY(0deg) rotateZ(-1deg) scale(1.02);
}
.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}
.gallery-controls > div {
  display: flex;
  gap: 10px;
}
.circle {
  width: 43px;
  height: 43px;
  border: 1px solid #b6b9ba;
  border-radius: 50%;
  background: transparent;
  color: var(--navy);
  display: inline-grid;
  place-items: center;
}
.circle:hover {
  background: var(--yellow);
  color: var(--navy);
}
.circle.dark {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.process h2 {
  max-width: 850px;
}
.process ol {
  list-style: none;
  padding: 0;
  margin: 60px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.process li {
  position: relative;
}
.process li:not(:last-child):after {
  content: "";
  position: absolute;
  right: 0;
  top: 41px;
  width: 35px;
  height: 3px;
  background: var(--yellow);
}
.process li > span {
  font-size: 12px;
  letter-spacing: 0.25em;
}
.process h3 {
  font-size: 29px;
  margin: 13px 0;
}
.process p {
  font-size: 16px;
  max-width: 240px;
  color: #4a535c;
}
.community {
  position: relative;
  overflow: hidden;
  background: var(--deep);
  color: #fff;
}
.community .wrap {
  position: relative;
}
.community-rocket {
  position: absolute;
  width: 430px;
  right: 0;
  top: -170px;
  transform: rotate(35deg);
  opacity: 0.6;
}
.community h2 {
  font-size: 65px;
  max-width: 750px;
}
.community-intro {
  font-size: 22px;
  color: #d8e3e9;
  line-height: 1.6;
}
.companies {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 820px;
  gap: 28px 38px;
  margin: 55px 0;
}
.companies a {
  font-size: 29px;
  letter-spacing: -0.02em;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(242, 237, 54, 0.55);
  text-decoration-thickness: 2px;
  text-underline-offset: 8px;
}
.companies a:hover,
.companies a:focus-visible {
  text-decoration-color: var(--yellow);
}
.companies .icon {
  width: 22px;
  height: 22px;
  margin-left: 8px;
  vertical-align: -0.05em;
  color: var(--yellow);
  opacity: 0;
  transition: opacity 0.2s;
}
.companies a:hover .icon,
.companies a:focus-visible .icon {
  opacity: 1;
}
.address {
  font-size: 12px;
  letter-spacing: 0.14em;
  color: #c3d3dd;
}
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}
.contact h2 {
  font-size: 64px;
}
.yellow-dot {
  color: #a8a500;
}
.contact p {
  color: #4a535c;
  font-size: 16px;
}
.email {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.form-panel label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 21px;
}
input,
textarea {
  display: block;
  width: 100%;
  margin-top: 9px;
  padding: 17px;
  background: #ffffff5c;
  border: 1px solid #b9c0c4;
  border-radius: 6px;
  font-size: 15px;
  color: var(--ink);
}
textarea {
  resize: vertical;
}
form .button {
  width: 100%;
  justify-content: space-between;
}
.form-note {
  font-size: 13px !important;
  line-height: 1.6 !important;
}
.form-actions {
  display: flex;
  gap: 25px;
  margin-top: 18px;
}
pre {
  font:
    14px/1.6 Arial,
    sans-serif;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #eae9e3;
  padding: 22px;
  border-radius: 6px;
  max-height: 320px;
  overflow: auto;
}
.footer {
  background: var(--deep);
  color: #fff;
  padding: 44px 0 23px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}
.footer .brand {
  width: 230px;
}
.footer nav {
  gap: 24px;
  font-size: 12px;
}
.footer-top > span {
  font-size: 12px;
  color: #c4d3db;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #ffffff20;
  padding-top: 22px;
  margin-top: 35px;
  font-size: 12px;
  color: #b3c6d2;
}
.portfolio h1 {
  font-size: 70px;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
  line-height: 1.05;
}
.page-intro {
  font-size: 20px;
  color: var(--muted);
}
.filters {
  display: flex;
  gap: 30px;
  border-bottom: 1px solid var(--line);
  margin-top: 50px;
  overflow: auto;
}
.filters button {
  background: none;
  border: 0;
  border-bottom: 4px solid transparent;
  padding: 18px 0;
  font-size: 16px;
}
.filters button[aria-pressed="true"] {
  font-weight: 700;
  border-color: var(--yellow);
}
#filter-count {
  font-size: 12px;
  color: var(--muted);
  margin: 24px 0;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px 45px;
}
.portfolio-card .screen {
  transition: transform 0.3s;
}
.portfolio-card a:hover .screen {
  transform: translateY(-5px);
}
.portfolio-card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 27px;
}
.portfolio-card-title h2 {
  font-size: 35px;
  margin: 5px 0;
}
.portfolio-card-title .eyebrow {
  margin: 0;
  font-size: 12px;
}
.portfolio-card-title > .icon {
  width: 28px;
  height: 28px;
  flex: none;
}
.portfolio-card p {
  color: #515e66;
  font-size: 15px;
}
.empty-state {
  padding: 60px 0;
  max-width: 600px;
}
.empty-state h2 {
  font-size: 32px;
}
.portfolio-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 35px;
  border-top: 1px solid var(--line);
  margin-top: 85px;
  padding-top: 60px;
}
.portfolio-cta h2 {
  font-size: 40px;
  margin: 0;
}
.case-hero {
  background: var(--deep);
  color: white;
  padding: 30px 0 70px;
}
.back-link {
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 0;
  margin-bottom: 45px;
}
.case-hero h1 {
  font-size: 100px;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
}
.case-intro {
  font-size: 25px;
  max-width: 730px;
  margin-bottom: 45px;
}
.case-hero .screen {
  max-width: 1100px;
  margin: auto;
}
.case-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 110px;
}
.case-body h2 {
  font-size: 36px;
}
.case-body ul {
  padding-left: 20px;
  line-height: 2.3;
  font-size: 18px;
}
.case-detail > p {
  max-width: 700px;
  color: var(--muted);
  font-size: 19px;
  margin-bottom: 35px;
}
.case-detail .screen {
  max-width: 1150px;
  margin: auto;
}
@keyframes float-back {
  50% {
    translate: 0 -12px;
  }
}
@keyframes float-front {
  50% {
    translate: 0 10px;
  }
}
@media (min-width: 1500px) {
  .hero-grid {
    min-height: 720px;
  }
  .hero-stage {
    height: 540px;
  }
  .hero-front {
    top: 270px;
  }
}
@media (max-width: 1100px) {
  .wrap {
    width: calc(100% - 64px);
  }
  .brand {
    width: 235px;
  }
  nav {
    gap: 22px;
  }
  .hero-stage {
    height: 410px;
  }
  .hero-front {
    top: 195px;
  }
  .hero-grid {
    min-height: 580px;
  }
  .hero h1 {
    font-size: 54px;
  }
  .hero-intro {
    font-size: 17px;
  }
  .service-copy h3 {
    font-size: 31px;
  }
  .service-panel {
    gap: 10px;
  }
  .contact {
    gap: 50px;
  }
  .contact h2 {
    font-size: 51px;
  }
  .gallery {
    padding-inline: 32px;
  }
  .project-slide {
    flex-basis: 85vw;
  }
  .project-copy h3 {
    font-size: min(37px, var(--fit));
  }
  .footer-top {
    flex-wrap: wrap;
  }
}
@media (max-width: 800px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .nav-wrap {
    height: 88px;
  }
  .brand {
    width: 212px;
  }
  .menu {
    display: flex;
    gap: 15px;
    align-items: center;
    border: 1px solid #ffffff45;
    border-radius: 5px;
    background: none;
    color: white;
    padding: 10px;
    font-size: 12px;
  }
  .header nav {
    display: none;
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    background: var(--deep);
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
    border-top: 1px solid #ffffff20;
  }
  .header nav.open {
    display: flex;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
    padding: 40px 0 80px;
  }
  .hero-copy {
    max-width: 580px;
  }
  .hero h1 {
    font-size: clamp(44px, 8.4vw, 67px);
  }
  .hero h1 br:nth-of-type(2) {
    display: none;
  }
  .hero-intro {
    font-size: 18px;
  }
  .hero-stage {
    height: 430px;
    transform: none;
    width: 95%;
    max-width: 650px;
    margin: auto;
  }
  .hero-front {
    top: 205px;
    right: 0;
  }
  .hero-rocket {
    width: 520px;
    left: 40%;
    top: -230px;
    opacity: 0.55;
  }
  .section {
    padding-top: 70px;
    padding-bottom: 70px;
  }
  .tabs {
    gap: 25px;
    overflow-x: auto;
    margin-top: 20px;
  }
  .tabs button {
    font-size: 16px;
  }
  .service-panel {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-top: 30px;
  }
  .service-copy h3 {
    font-size: 33px;
    max-width: 500px;
  }
  .service-copy p {
    max-width: 540px;
  }
  .service-number {
    margin-bottom: 17px;
  }
  .service-visual {
    padding: 15px 8px 0;
  }
  .service-screen {
    transform: none;
  }
  .service-visual:hover .service-screen {
    transform: none;
  }
  .section-heading {
    display: block;
  }
  .section-heading > .text-link {
    margin-top: 17px;
  }
  .gallery {
    padding: 10px 20px 25px;
    gap: 18px;
    scroll-snap-type: x mandatory;
  }
  .project-slide {
    flex: 0 0 85vw;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column-reverse;
    padding: 18px;
    gap: 26px;
    align-items: stretch;
    min-height: 0;
    transform: none !important;
  }
  .project-screen .screen,
  .project-slide:hover .screen,
  .project-slide:focus-within .screen {
    transform: none;
  }
  .project-copy {
    padding: 0 6px 9px;
  }
  .project-copy h3 {
    font-size: min(34px, var(--fit));
    margin-bottom: 10px;
  }
  .project-copy p:not(.eyebrow) {
    margin: 16px 0;
    font-size: 16px;
  }
  .project-copy .eyebrow {
    margin-bottom: 8px;
  }
  .gallery-hint {
    display: none;
  }
  .work-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 32px;
  }
  .work-grid .project-slide {
    padding: 18px 18px 24px;
    gap: 26px;
    transform: none !important;
  }
  .work-grid .project-screen .screen,
  .work-grid .project-slide:hover .screen,
  .work-grid .project-slide:focus-within .screen {
    transform: none;
  }
  .process ol {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .process li:after {
    display: none;
  }
  .community h2 {
    font-size: 48px;
  }
  .community-intro {
    font-size: 19px;
  }
  .companies {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }
  .companies a {
    font-size: 24px;
  }
  .community-rocket {
    right: -150px;
    opacity: 0.3;
  }
  .contact {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact h2 {
    font-size: 51px;
  }
  .footer-top {
    align-items: start;
    flex-direction: column;
    gap: 25px;
  }
  .footer-bottom {
    gap: 20px;
  }
  .portfolio h1 {
    font-size: 52px;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .filters {
    gap: 0 22px;
    flex-wrap: wrap;
    overflow: visible;
  }
  .portfolio-cta {
    flex-direction: column;
    align-items: start;
  }
  .case-hero h1 {
    font-size: 70px;
  }
  .case-intro {
    font-size: 21px;
  }
  .case-body {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .case-body h2 {
    font-size: 30px;
  }
}
@media (max-width: 480px) {
  .hero-stage {
    height: 275px;
    margin-bottom: 15px;
  }
  .hero-stage .screen {
    width: 95%;
    padding: 4px;
  }
  .hero-front {
    top: 132px;
    width: 78% !important;
  }
  .screen-bar {
    height: 17px;
    font-size: 5px;
  }
  .hero-grid {
    gap: 35px;
    padding-bottom: 40px;
  }
  .hero h1 {
    font-size: 47px;
  }
  .hero h1 br:nth-of-type(2) {
    display: block;
  }
  .hero-intro {
    font-size: 16px;
  }
  .hero .eyebrow {
    font-size: 12px;
  }
  .quiet-link {
    margin-top: 24px;
  }
  .service-copy h3 {
    font-size: 29px;
  }
  .tabs {
    gap: 23px;
  }
  .tabs button {
    font-size: 14px;
  }
  .process ol {
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }
  .process h3 {
    font-size: 25px;
  }
  .process p {
    font-size: 14px;
  }
  .companies a {
    font-size: 21px;
  }
  .community h2 {
    font-size: 43px;
  }
  .community-intro br {
    display: none;
  }
  .contact h2 {
    font-size: 47px;
  }
  .email {
    font-size: 12px;
  }
  .footer nav {
    gap: 25px;
  }
  .footer-bottom {
    font-size: 12px;
  }
  .portfolio h1 {
    font-size: 43px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
  .hero-back,
  .hero-front {
    translate: none !important;
  }
  .project-slide,
  .project-screen .screen {
    transform: none !important;
  }
}
/* Keep mobile motion quiet and all capability labels visible. */
@media (max-width: 800px) {
  .hero-stage .screen {
    animation: none;
  }
  .hero-back,
  .hero-front {
    transform: rotateZ(-3deg);
  }
  .hero-front {
    translate: none;
  }
}
@media (max-width: 480px) {
  .tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
    overflow: visible;
  }
  .tabs button {
    padding: 14px 0;
    text-align: left;
  }
  .community-intro br {
    display: none;
  }
}

@media (max-width: 480px) {
  .nav-wrap {
    gap: 12px;
  }
  .header .brand {
    width: min(212px, calc(100% - 88px));
  }
  .menu {
    flex-shrink: 0;
  }
  .hero h1 {
    font-size: clamp(39px, 12vw, 47px);
  }
  .companies {
    gap: 20px 10px;
  }
  .companies a {
    font-size: 19px;
  }
}

/* Screen presentation refinement — retain the approved Ghost Scale direction. */
.screen {
  padding: 3px;
  border-color: #a4b5bf;
  border-radius: 10px;
}
.hero-stage {
  transform: none;
}
.hero-stage .hero-back {
  width: 87%;
  right: 6%;
}
.hero-stage .hero-front {
  width: 69% !important;
  right: 3%;
}
.work-grid .project-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: flex-start;
}
.work-grid .project-copy .button {
  margin-top: auto;
}
.work-grid .project-copy p:not(.eyebrow) {
  margin-bottom: 25px;
}
@media (max-width: 800px) {
  .hero-stage {
    height: auto;
    aspect-ratio: 1.55;
    margin-bottom: 15px;
  }
  .hero-stage .hero-back {
    width: 91%;
    right: 7%;
  }
  .hero-stage .hero-front {
    width: 42% !important;
    top: auto;
    bottom: -3%;
    right: 0;
    transform: rotateZ(2deg);
  }
  .hero-front .crop {
    aspect-ratio: 1.15;
    --zoom: 3.6 !important;
    --x: .745 !important;
    --y: .14 !important;
  }
  .hero-stage .screen {
    padding: 3px;
  }
  .hero-front .screen-bar span {
    display: none;
  }
  .stage-glow {
    bottom: 0;
  }
}

/* Icons: one inline SVG set from scripts/build.py (icon()). They take the
   colour of their text. Never use text characters as icons. */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: none;
  transition: transform 0.2s;
}
.text-link .icon,
.back-link .icon {
  width: 17px;
  height: 17px;
}
.circle .icon {
  width: 20px;
  height: 20px;
}
.circle .icon-play,
.circle .icon-pause {
  width: 16px;
  height: 16px;
}
.circle .icon-play,
#pause[aria-pressed="true"] .icon-pause {
  display: none;
}
#pause[aria-pressed="true"] .icon-play {
  display: block;
}
.menu .icon {
  width: 18px;
  height: 18px;
}
.menu .icon-shut,
.menu[aria-expanded="true"] .icon-open {
  display: none;
}
.menu[aria-expanded="true"] .icon-shut {
  display: block;
}
a:hover > .icon-arrow-up-right,
button:hover > .icon-arrow-up-right,
a:focus-visible > .icon-arrow-up-right {
  transform: translate(2px, -2px);
}
.back-link:hover .icon-arrow-left,
#previous:hover .icon-arrow-left {
  transform: translateX(-2px);
}
a:hover > .icon-arrow-right,
a:focus-visible > .icon-arrow-right,
.portfolio-card:hover .icon-arrow-right,
#next:hover .icon-arrow-right {
  transform: translateX(2px);
}
@media (prefers-reduced-motion: reduce) {
  .icon {
    transition: none;
  }
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
form .button[disabled] {
  opacity: 0.65;
  cursor: wait;
}
#sent h3,
#prepared h3 {
  margin: 8px 0 14px;
}

/* ------------------------------------------------------------------
   Home-first homepage, 28 November 2026. Version A's look (Ghost Scale,
   Plus Jakarta Sans, product screens) with version B's structure: the
   home, the address and the six companies first, the studio after.
   ------------------------------------------------------------------ */

/* Labels read as words, not as small spaced capitals. */
.eyebrow {
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 700;
}
.hero {
  background: var(--deep);
}
.hero-grid {
  grid-template-columns: 50% 50%;
  min-height: 600px;
  padding: 50px 0 90px;
}
.hero h1 {
  font-size: clamp(46px, 4.7vw, 70px);
}
.hero-intro {
  font-size: 19px;
  letter-spacing: 0;
  max-width: 470px;
  color: #e3ebf0;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.button.ghost {
  background: transparent;
  color: #fff;
  border-color: #ffffff80;
}
.button.ghost:hover {
  background: #ffffff14;
  border-color: #fff;
}
.hero-strip {
  position: relative;
  padding-bottom: 46px;
}
.hero-strip ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 36px;
}
.hero-strip a {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #a9bfcd;
  transition: color 0.2s;
}
.hero-strip a:hover,
.hero-strip a:focus-visible {
  color: #fff;
}

/* The place: 47 Hazelwood Road as the identity. */
.anchor {
  display: block;
  position: relative;
  top: -30px;
}
/* A tone step separates the place from the process section above it. */
.place {
  padding: 130px 0;
  background: #efebe3;
}
.place-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
  align-items: end;
}
.place-number {
  font-size: clamp(150px, 19vw, 290px);
  font-weight: 800;
  line-height: 0.78;
  letter-spacing: -0.06em;
  color: var(--navy);
  margin: 0 0 26px;
}
.place h2 {
  font-size: clamp(36px, 4vw, 58px);
  margin: 0 0 22px;
}
.place-lead {
  font-size: 20px;
  max-width: 470px;
  margin: 0;
}
.place-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 46px;
}
.place-points h3 {
  font-size: 27px;
  line-height: 1.15;
  margin: 16px 0 8px;
}
.place-points p {
  font-size: 17px;
  margin: 0;
  color: #3f4a54;
  max-width: 440px;
}

/* Incubation, 29 November 2026: what Hazelwood offers new ventures, as four stages on a
   yellow track. Text on the left, the stages on the right; stacked on phones. */
.incubate {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 80px;
  align-items: start;
}
.incubate h2 {
  margin: 0 0 22px;
}
.incubate-lead {
  font-size: 20px;
  max-width: 470px;
  margin: 0 0 30px;
}
.incubate-steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 34px;
}
/* The track: one piece from each circle down to the next, so it always ends at the last circle. */
.incubate-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 26.5px;
  top: 28px;
  bottom: -62px;
  width: 3px;
  background: var(--yellow);
}
.incubate-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.incubate-steps li > span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.incubate-steps li:last-child > span {
  background: var(--yellow);
  color: var(--navy);
}
.incubate-steps h3 {
  font-size: 27px;
  line-height: 1.15;
  margin: 12px 0 6px;
}
.incubate-steps p {
  font-size: 17px;
  margin: 0;
  color: #3f4a54;
  max-width: 440px;
}
.contact .text-link.email {
  display: flex;
  width: fit-content;
}
.contact .phone {
  margin-top: 14px;
}
@media (max-width: 800px) {
  .incubate {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .incubate-lead {
    font-size: 18px;
  }
  .incubate-steps {
    gap: 28px;
  }
  .incubate-steps li:not(:last-child)::after {
    left: 22.5px;
    top: 24px;
    bottom: -52px;
  }
  .incubate-steps li {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 18px;
  }
  .incubate-steps li > span {
    width: 48px;
    height: 48px;
    font-size: 13px;
  }
  .incubate-steps h3 {
    font-size: 23px;
    margin-top: 10px;
  }
  .incubate-steps p {
    font-size: 16px;
  }
}

/* The six companies, one row each, on navy. */
.house {
  position: relative;
  overflow: hidden;
  background: var(--deep);
  color: #fff;
}
.house .wrap {
  position: relative;
}
.house-rocket {
  position: absolute;
  width: 520px;
  right: -60px;
  top: -170px;
  transform: rotate(35deg);
  opacity: 0.5;
  pointer-events: none;
}
.house-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 50px;
}
.house-head h2 {
  margin: 0;
}
.house-head p {
  font-size: 19px;
  color: #d8e3e9;
  margin: 0;
  max-width: 430px;
}
.ledger {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ledger li {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 30px;
  align-items: center;
  padding: 22px 26px;
  border-radius: 12px;
}
.ledger li:nth-child(odd) {
  background: #0a2d44;
}
.ledger a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: fit-content;
  font-size: clamp(30px, 3.3vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.ledger a .icon {
  width: 24px;
  height: 24px;
  color: var(--yellow);
}
.ledger p {
  margin: 0;
  font-size: 17px;
  color: #d8e3e9;
}
/* Wording Hazelwood still has to confirm. */
.tbc {
  color: #9fb6c6;
}

/* The studio. */
.services-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 40px;
}
.services-head h2 {
  margin: 0;
}
.services-head p {
  font-size: 19px;
  margin: 0;
  max-width: 470px;
  color: #3f4a54;
}
.service-copy p.service-project {
  font-size: 16px;
  margin: 0 0 18px;
}
.service-project a {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

/* Contact: the "I would like to" choices. */
.contact-address {
  margin-top: 20px;
}
.choices {
  border: 0;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.choices legend {
  padding: 0;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
}
.form-panel label.choice {
  position: relative;
  display: inline-flex;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}
.choice span {
  display: inline-block;
  padding: 10px 17px;
  border-radius: 40px;
  background: #e9e5dc;
  transition: background 0.2s, color 0.2s;
}
.choice input:checked + span {
  background: var(--navy);
  color: #fff;
}
.choice input:focus-visible + span {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}
.form-panel label {
  font-size: 14px;
}

/* Footer: the address returns at full width. */
.footer-address {
  font-size: clamp(48px, 9.6vw, 150px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.92;
  color: #2d5878;
  margin-top: 56px;
  margin-bottom: 8px;
}
.footer nav,
.footer-bottom {
  font-size: 14px;
}

@media (max-width: 1100px) {
  .hero h1 {
    font-size: clamp(46px, 5.2vw, 60px);
  }
}
@media (max-width: 800px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 36px 0 40px;
  }
  .hero h1 {
    font-size: clamp(38px, 10.4vw, 64px);
  }
  .hero-intro {
    font-size: 18px;
  }
  .hero-strip ul {
    gap: 4px 22px;
  }
  .hero-strip a {
    font-size: 20px;
  }
  .place {
    padding: 80px 0;
  }
  .place-grid,
  .house-head,
  .services-head {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .place-grid {
    gap: 56px;
  }
  .place-points h3 {
    font-size: 24px;
  }
  .house-head {
    margin-bottom: 32px;
  }
  .ledger li {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 18px;
  }
  .ledger a {
    font-size: 32px;
  }
  .house-rocket {
    width: 380px;
    right: -120px;
  }
}
@media (max-width: 520px) {
  .hero-actions .button {
    flex: 1 1 100%;
  }
  .footer nav {
    flex-wrap: wrap;
    gap: 10px 22px;
  }
  .footer nav a {
    white-space: nowrap;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }
}

/* The AI tab's picture, 29 November 2026: everyday systems wired through AI into one
   dashboard. Side by side when the panel is wide; stacked when it is narrow (container query).
   The previous AMPS co-pilot styles are in archive/.../assets/site-before-connectors.css. */
.ai-demo {
  padding: 30px;
  border-radius: 18px;
  background: var(--deep);
  color: #fff;
}
.ai-demo[hidden] {
  display: none;
}
.ai-demo p,
.ai-demo ul {
  margin: 0;
}
.ai-demo ul {
  padding: 0;
  list-style: none;
}
.ai-meta {
  font-size: 13px;
  font-weight: 700;
  color: #9fb6c6;
}
.ai-think {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  line-height: 1.45;
  color: #a9bfcd;
}
.ai-pulse {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
  animation: ai-pulse 1.4s ease-in-out infinite;
}
.service-visual {
  container-type: inline-size;
}
.flow > * {
  min-width: 0;
}
.flow {
  display: grid;
  grid-template-columns: 172px 110px minmax(0, 1fr);
  grid-template-areas:
    "in . out"
    "sources wires board"
    "note note note";
  column-gap: 0;
  row-gap: 12px;
  align-items: center;
}
.flow-label-in { grid-area: in; }
.flow-label-out { grid-area: out; padding-left: 4px; }
.flow-sources {
  grid-area: sources;
  display: grid;
  gap: 8px;
}
.flow-sources li {
  position: relative;
  height: 44px;
  padding: 6px 28px 6px 12px;
  border-radius: 10px;
  background: #0d3350;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.flow-sources b {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}
.flow-sources span {
  font-size: 12px;
  line-height: 1.25;
  color: #9fb6c6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.flow-sources i {
  position: absolute;
  right: 11px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: #4cc38a;
}
.flow-wires {
  grid-area: wires;
  display: block;
  width: 110px;
  height: auto;
  overflow: visible;
}
.flow-wires path,
.flow-wires line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.24);
  stroke-width: 1.5;
}
.flow-dot {
  fill: var(--yellow);
  transition: opacity 0.4s ease 1s;
}
.flow-hub {
  fill: var(--yellow);
}
.flow-wires text {
  font: 800 12px var(--font);
  fill: var(--deep);
}
.flow-stem {
  display: none;
}
.flow-board {
  grid-area: board;
  padding: 18px 18px 16px;
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
}
.flow-board-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.flow-board-head p {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.flow-board-head span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #55606a;
}
.flow-board-head i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2e9d62;
}
.flow-board ul {
  display: grid;
  gap: 14px;
}
.flow-board li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  align-items: center;
}
.flow-name {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.flow-tag {
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.ok .flow-tag { background: #d9efe2; color: #1d6b42; }
.watch .flow-tag { background: var(--yellow); color: var(--ink); }
.over .flow-tag { background: #d8453b; color: #fff; }
.flow-bar {
  grid-column: 1 / -1;
  display: block;
  height: 6px;
  border-radius: 3px;
  background: #e2ddd2;
  overflow: hidden;
}
.flow-bar i {
  display: block;
  width: calc(var(--w) * 100%);
  height: 100%;
  background: var(--navy);
  transform-origin: left;
}
.over .flow-bar i { background: #d8453b; }
.flow-pct {
  grid-column: 1 / -1;
  margin-top: -2px;
  font-size: 12px;
  color: #55606a;
}
.flow-foot {
  margin-top: 14px !important;
  padding-top: 12px;
  border-top: 1px solid #e2ddd2;
  font-size: 12px;
  color: #55606a;
}
.flow-note {
  grid-area: note;
  margin-top: 6px;
}
/* Narrow panel (phones, tablets): systems as a two-column grid, a short stem down into the
   AI hub, then the dashboard. */
@container (max-width: 600px) {
  .flow {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "in" "sources" "wires" "out" "board" "note";
  }
  .flow-sources {
    grid-template-columns: 1fr 1fr;
  }
  .flow-wires {
    display: none;
  }
  .flow-stem {
    grid-area: wires;
    display: grid;
    justify-items: center;
    position: relative;
    height: 64px;
  }
  .flow-stem::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -6px;
    bottom: -6px;
    width: 1.5px;
    margin-left: -0.75px;
    background: rgba(255, 255, 255, 0.24);
  }
  .flow-stem::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -6px;
    width: 6px;
    height: 6px;
    margin-left: -3px;
    border-radius: 50%;
    background: var(--yellow);
    animation: flow-drop 1.6s linear infinite;
  }
  .flow-stem span {
    position: relative;
    z-index: 1;
    align-self: center;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--deep);
    font-size: 12px;
    font-weight: 800;
  }
  .flow-label-out {
    padding-left: 0;
  }
}
/* Motion: plays when the picture comes into view and each time its tab is chosen (site.js
   adds .play). Without script or with reduced motion the picture is complete and still. */
.ai-demo:not(.play) .flow-dot {
  opacity: 0;
}
.ai-demo.play .flow-sources li {
  animation: ai-rise 0.45s var(--ease) calc(var(--i) * 70ms) both;
}
.ai-demo.play .flow-wires path {
  stroke-dasharray: 1;
  animation: flow-draw 0.7s var(--ease) calc(0.35s + var(--i) * 60ms) both;
}
.ai-demo.play .flow-hub,
.ai-demo.play .flow-wires text,
.ai-demo.play .flow-stem span {
  transform-box: fill-box;
  transform-origin: center;
  animation: flow-pop 0.45s var(--ease) 0.95s both;
}
.ai-demo.play .flow-board {
  animation: ai-rise 0.55s var(--ease) 1.15s both;
}
.ai-demo.play .flow-bar i {
  animation: ai-fill 0.8s var(--ease) calc(1.5s + var(--i) * 120ms) both;
}
.ai-demo.play .flow-note {
  animation: ai-rise 0.5s var(--ease) 1.8s both;
}
@keyframes ai-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
@keyframes ai-fill {
  from {
    transform: scaleX(0);
  }
}
@keyframes ai-pulse {
  50% {
    opacity: 0.35;
    transform: scale(0.8);
  }
}
@keyframes flow-draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes flow-pop {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
}
@keyframes flow-drop {
  from {
    transform: translateY(0);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  to {
    transform: translateY(70px);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ai-pulse,
  .flow-stem::after,
  .ai-demo.play .flow-sources li,
  .ai-demo.play .flow-wires path,
  .ai-demo.play .flow-hub,
  .ai-demo.play .flow-wires text,
  .ai-demo.play .flow-stem span,
  .ai-demo.play .flow-board,
  .ai-demo.play .flow-bar i,
  .ai-demo.play .flow-note {
    animation: none;
  }
  .flow-dot,
  .flow-stem::after {
    display: none;
  }
}
@media (max-width: 800px) {
  .ai-demo {
    padding: 18px;
  }
  .ai-think {
    font-size: 14px;
  }
}

/* Note under a link to a password-protected platform, 28 November 2026 */
.link-note { margin: 10px 0 36px; font-size: 16px; color: #9fb6c6; }

/* ------------------------------------------------------------------
   Motion layer, 29 November 2026.
   Liftoff intro (homepage, once per visit), the hero assembling, and
   an entrance for each section. Every hidden state sits inside
   html.js and a no-preference media query, so without script or with
   reduced motion the page is simply finished.
   ------------------------------------------------------------------ */
:root {
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-launch: cubic-bezier(0.55, 0, 0.8, 0.25);
  --hd: 0.15s; /* when the hero starts arriving */
}
.lines .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}
.lines .line > span {
  display: block;
}
.lines .dot {
  display: inline-block;
}
.intro {
  display: none;
}
@media (prefers-reduced-motion: no-preference) {
  html.js:not(.no-intro) {
    --hd: 1.4s;
  }
  /* The curtain: navy, the red rocket from the logo, a yellow flame. */
  .js:not(.no-intro) .intro {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 100;
    background: var(--deep);
    clip-path: inset(0 0 0 0);
    pointer-events: none;
    animation: intro-lift 0.75s var(--ease-in-out) 0.9s both;
  }
  .intro-craft {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 62px;
    margin: -60px 0 0 -31px;
    animation:
      craft-in 0.45s var(--ease-out) both,
      craft-shake 0.09s linear 0.35s 4,
      craft-launch 0.85s var(--ease-launch) 0.7s both;
  }
  .intro-craft img {
    display: block;
    width: 100%;
    height: auto;
  }
  .intro-flame {
    position: absolute;
    left: 50%;
    top: 100%;
    width: 14px;
    height: 46px;
    margin: -6px 0 0 -7px;
    border-radius: 0 0 50% 50%;
    background: var(--yellow);
    transform-origin: top;
    animation:
      flame-on 0.3s var(--ease-out) 0.3s both,
      flame-flicker 0.12s linear 0.6s infinite alternate;
  }
  /* The vapour trail: from the launch point up, keeping pace with the rocket. */
  .intro-trail {
    position: absolute;
    left: 50%;
    bottom: calc(50% - 60px);
    width: 2px;
    height: calc(50% + 60px);
    margin-left: -1px;
    background: linear-gradient(to top, transparent, var(--yellow) 30%);
    transform-origin: bottom;
    animation:
      trail-grow 0.85s var(--ease-launch) 0.7s both,
      trail-fade 0.4s ease 1.35s forwards;
  }
  .js:not(.no-intro) .intro.skip,
  .js:not(.no-intro) .intro.skip * {
    animation-duration: 0.2s !important;
    animation-delay: 0s !important;
  }

  /* The hero assembles: the ghost rocket rises, the headline lines come up
     out of their masks, the yellow full stop lands last, the screens swing in. */
  .js .hero-rocket {
    animation: ghost-rise 1.6s var(--ease-out) calc(var(--hd) - 0.15s) both;
  }
  .js .hero .lines .line > span {
    animation: line-up 0.95s var(--ease-out) both;
    animation-delay: var(--hd);
  }
  .js .hero .lines .line:nth-child(2) > span {
    animation-delay: calc(var(--hd) + 0.1s);
  }
  .js .hero .lines .dot {
    animation: dot-land 0.6s var(--ease-out) calc(var(--hd) + 0.6s) both;
  }
  .js .hero-intro {
    animation: rise 0.9s var(--ease-out) calc(var(--hd) + 0.22s) both;
  }
  .js .hero-actions {
    animation: rise 0.9s var(--ease-out) calc(var(--hd) + 0.32s) both;
  }
  .js .header .nav-wrap {
    animation: drop 0.8s var(--ease-out) calc(var(--hd) + 0.3s) both;
  }
  .js .hero-stage .hero-back {
    animation:
      screen-in 1.3s var(--ease-out) calc(var(--hd) + 0.05s) both,
      float-back 9s ease-in-out calc(var(--hd) + 1.4s) infinite;
  }
  .js .hero-stage .hero-front {
    animation:
      screen-in 1.3s var(--ease-out) calc(var(--hd) + 0.22s) both,
      float-front 11s ease-in-out calc(var(--hd) + 1.6s) infinite;
  }
  .js .hero-stage .stage-glow {
    animation: rise 1.2s var(--ease-out) calc(var(--hd) + 0.3s) both;
  }
  @media (max-width: 800px) {
    .js .hero-stage .hero-back,
    .js .hero-stage .hero-front {
      animation: screen-in 1.2s var(--ease-out) calc(var(--hd) + 0.3s) both;
    }
    .js .hero-stage .hero-front {
      animation-delay: calc(var(--hd) + 0.45s);
    }
  }

  /* Section entrances, set by site.js. Each kind of content has its own manner. */
  .js .rv {
    opacity: 0;
    transform: translateY(28px);
  }
  .js .rv-mask {
    clip-path: inset(0 0 100% 0);
    transform: translateY(0.35em);
  }
  .js .rv-left {
    opacity: 0;
    transform: translateX(-36px);
  }
  .js .rv-open {
    clip-path: inset(10% 8% 10% 8% round 14px);
    transform: scale(0.96);
    opacity: 0.4;
  }
  .js .rv,
  .js .rv-mask,
  .js .rv-left,
  .js .rv-open {
    transition:
      opacity 0.7s var(--ease-out),
      transform 0.9s var(--ease-out),
      clip-path 1s var(--ease-out);
    transition-delay: calc(var(--i, 0) * 85ms);
  }
  .js .rv.in,
  .js .rv-left.in,
  .js .rv-open.in {
    opacity: 1;
    transform: none;
    clip-path: inset(-20% -20% -20% -20%);
  }
  .js .rv-mask.in {
    clip-path: inset(-10% -10% -25% -10%);
    transform: none;
  }

  /* Feedback under the hand. */
  .button:active,
  .gallery-controls button:active {
    scale: 0.97;
  }
  .button,
  .gallery-controls button {
    transition:
      background 0.2s,
      transform 0.2s,
      scale 0.14s var(--ease-out);
  }
  .ledger a .icon,
  .text-link .icon {
    transition: transform 0.25s var(--ease-out);
  }
  @media (hover: hover) and (pointer: fine) {
    .ledger a:hover .icon,
    .text-link:hover .icon {
      transform: translate(3px, -3px);
    }
  }
}
@keyframes intro-lift {
  to {
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
  }
}
@keyframes craft-in {
  from {
    opacity: 0;
    translate: 0 24px;
  }
}
@keyframes craft-shake {
  25% {
    rotate: -2deg;
  }
  75% {
    rotate: 2deg;
  }
}
@keyframes craft-launch {
  to {
    transform: translateY(calc(-50vh - 200px));
  }
}
@keyframes flame-on {
  from {
    transform: scaleY(0);
  }
}
@keyframes flame-flicker {
  to {
    scale: 0.85 1.25;
  }
}
@keyframes trail-grow {
  from {
    transform: scaleY(0);
  }
}
@keyframes trail-fade {
  to {
    opacity: 0;
  }
}
@keyframes ghost-rise {
  from {
    opacity: 0;
    translate: -4% 22%;
  }
}
@keyframes line-up {
  from {
    transform: translateY(105%);
  }
}
@keyframes dot-land {
  from {
    opacity: 0;
    transform: translateY(-0.6em) scale(0.4);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    translate: 0 22px;
  }
}
@keyframes drop {
  from {
    opacity: 0;
    translate: 0 -14px;
  }
}
@keyframes screen-in {
  from {
    opacity: 0;
    translate: 70px 50px;
    scale: 0.9;
    rotate: y 30deg;
  }
}
