/*
 * Amnova Projects: project page styles.
 * Colours and type follow the Amnova design system (brand kit tokens).
 * Every rule sits under .amnova-project and every class starts with "amp-",
 * so nothing here leaks into the rest of the site, and the theme's own
 * styles do not leak in.
 */

.amnova-project {
  --navy: #040C1D;
  --charcoal: #3D4049;
  --yellow: #FFD730;
  --coral: #FF898A;
  --sky: #9DE6FF;
  --off-white: #FCFEFD;
  --grey: #E6E6E6;

  /* Page background: a very light, slightly cool grey. Change both together
     (the second is the same colour as R, G, B for the hero's fade). */
  --page: #F4F5F7;
  --page-rgb: 244, 245, 247;

  --surface: var(--off-white);
  --surface-muted: #ECEDF0;
  --surface-inverse: var(--navy);
  --ink: var(--navy);
  --ink-body: var(--charcoal);
  --ink-muted: #6B7180;
  --border: var(--grey);
  --rule: #D8DADF;
  --text-sky: #045366;
  --text-coral: #701010;

  --font-heading: "Urbanist", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, sans-serif;
  --radius: 4px;

  --gutter: clamp(20px, 4vw, 56px);
  --section: clamp(64px, 9vw, 128px);

  /* Set these two if the site header is sticky, e.g. in Elementor > Custom CSS:
     .amnova-project { --amp-header-h: 80px; --amp-sticky-top: 80px; } */

  color: var(--ink-body);
  font: 400 16px/1.7 var(--font-body);
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

/* The browser page itself takes the project background colour on project
   pages (the plugin adds the amp-page class to <body>), so no white shows
   above the hero or at the sides. Same colour as --page above. */
body.amp-page { background-color: #F4F5F7 !important; }

/* A whole project page sits on very light grey with faint patches of the three brand
   colours (sky, yellow, coral) alternating down the page. The hero at the
   top is plain grey (see the hero's own cover further down); the
   patches begin below it. No area is tinted one colour all over.
   Layers are listed front to back. */
.amnova-project--page {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  background-color: var(--page);
  background-repeat: no-repeat;
  background-image:
    radial-gradient(closest-side, rgba(255, 215, 48, .26), rgba(255, 215, 48, 0)),
    radial-gradient(closest-side, rgba(255, 137, 138, .27), rgba(255, 137, 138, 0)),
    radial-gradient(closest-side, rgba(255, 137, 138, .21), rgba(255, 137, 138, 0)),
    radial-gradient(closest-side, rgba(157, 230, 255, .42), rgba(157, 230, 255, 0)),
    radial-gradient(closest-side, rgba(157, 230, 255, .32), rgba(157, 230, 255, 0)),
    radial-gradient(closest-side, rgba(255, 215, 48, .27), rgba(255, 215, 48, 0)),
    radial-gradient(closest-side, rgba(255, 137, 138, .27), rgba(255, 137, 138, 0)),
    radial-gradient(closest-side, rgba(157, 230, 255, .37), rgba(157, 230, 255, 0));
  background-size:
    max(54vw, 320px) 640px,
    max(84vw, 420px) 940px,
    max(48vw, 300px) 560px,
    max(92vw, 460px) 1040px,
    max(52vw, 320px) 620px,
    max(88vw, 440px) 980px,
    max(82vw, 420px) 860px,
    max(72vw, 380px) 760px;
  background-position:
    right 8vw top 26%,
    right -26vw top 22%,
    left 6vw top 52%,
    left -30vw top 44%,
    right 2vw top 79%,
    right -30vw top 70%,
    left -24vw top 95%,
    right -14vw top 100%;
}

.amnova-project *, .amnova-project *::before, .amnova-project *::after { box-sizing: border-box; }
.amnova-project img, .amnova-project video, .amnova-project svg { display: block; max-width: 100%; height: auto; }
.amnova-project h1, .amnova-project h2, .amnova-project h3, .amnova-project p,
.amnova-project ul, .amnova-project ol, .amnova-project dl, .amnova-project dt, .amnova-project dd,
.amnova-project figure { margin: 0; padding: 0; }
.amnova-project ul, .amnova-project ol { list-style: none; }
.amnova-project li { margin: 0; }
.amnova-project :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.amnova-project .amp-container {
  width: 100%;
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type ---------- */

.amnova-project .amp-eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 24px;
  font: 600 14px/1.3 var(--font-heading);
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--text-sky);
}
.amnova-project .amp-eyebrow__no {
  display: inline-flex; align-items: center; gap: 14px;
  color: var(--ink);
}
.amnova-project .amp-eyebrow__no::after { content: ""; width: 32px; height: 1px; background: var(--ink); }
.amnova-project .amp-eyebrow--yellow { color: var(--yellow); }

.amnova-project .amp-label {
  font: 500 12px/1.4 var(--font-body);
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink-muted);
}

.amnova-project .amp-page-title {
  font: 800 clamp(36px, 5vw, 64px)/1.05 var(--font-heading);
  letter-spacing: -1px; color: var(--ink);
  margin-bottom: 48px;
}

.amnova-project .amp-statement {
  font: 800 clamp(28px, 3.2vw, 44px)/1.12 var(--font-heading);
  letter-spacing: -1px; color: var(--ink);
  max-width: 20ch;
  margin-bottom: 32px;
  text-wrap: balance;
}

.amnova-project .amp-prose p + p { margin-top: 1.1em; }
.amnova-project .amp-prose p:first-child { font-size: 18px; color: var(--ink); }

/* ---------- Buttons, chips, links ---------- */

.amnova-project .amp-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 28px;
  background: var(--yellow); color: var(--navy);
  border: 1px solid var(--yellow); border-radius: var(--radius);
  font: 900 12px/1 var(--font-body);
  letter-spacing: 4px; text-transform: uppercase; text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}

.amnova-project .amp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.amnova-project .amp-chip {
  display: inline-flex; align-items: center;
  min-height: 34px; padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--rule); border-radius: var(--radius);
  font: 500 13px/1.2 var(--font-body);
  color: var(--ink); text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s;
}
.amnova-project .amp-chip:hover { background: var(--navy); border-color: var(--navy); color: var(--off-white); }

.amnova-project .amp-text-link {
  font-weight: 500; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.amnova-project .amp-text-link:hover { text-decoration-color: var(--ink); }

/* ---------- Media frames and placeholders ---------- */

.amnova-project .amp-frame {
  position: relative; overflow: hidden;
  background: var(--surface-muted);
  border-radius: var(--radius);
}
.amnova-project .amp-frame > img, .amnova-project .amp-frame > video { width: 100%; height: 100%; object-fit: cover; }

.amnova-project .amp-placeholder {
  width: 100%; height: 100%; min-height: 120px;
  display: grid; place-items: center;
  background-color: var(--surface-muted);
  background-image:
    linear-gradient(135deg, transparent calc(50% - .5px), var(--rule) calc(50% - .5px), var(--rule) calc(50% + .5px), transparent calc(50% + .5px)),
    linear-gradient(45deg, transparent calc(50% - .5px), var(--rule) calc(50% - .5px), var(--rule) calc(50% + .5px), transparent calc(50% + .5px));
}
.amnova-project .amp-placeholder span {
  padding: 6px 12px;
  background: var(--surface-muted);
  font: 500 11px/1.4 var(--font-body);
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--charcoal);
}

/* ---------- Hero ---------- */

.amnova-project .amp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(320px, 1fr);
  align-items: center;
  gap: clamp(20px, 3vw, 48px);
  max-width: 1840px;
  margin-inline: auto;
  padding: clamp(16px, 2vw, 32px) clamp(16px, 2.2vw, 36px);
}
/* On a full page the hero stays plain (no patches) however long or short the page
   is: a full-width cover in the page colour sits behind it and fades out at its bottom
   edge, where the colour patches take over. */
.amnova-project--page .amp-hero { position: relative; }
.amnova-project--page .amp-hero::before {
  content: "";
  position: absolute; top: 0; bottom: -40px; left: 50%; z-index: -1;
  width: 100vw; transform: translateX(-50%);
  background: linear-gradient(180deg, var(--page) calc(100% - 200px), rgba(var(--page-rgb), 0));
  pointer-events: none;
}
/* The first colour patch (sky, on the left) is tied to the hero's bottom edge,
   so colour arrives just as the hero ends whatever the hero's height. */
.amnova-project--page .amp-hero::after {
  content: "";
  position: absolute; top: calc(100% - 150px); left: calc(50% - 68vw); z-index: -1;
  width: max(72vw, 400px); height: 720px;
  background: radial-gradient(closest-side, rgba(157, 230, 255, .44), rgba(157, 230, 255, 0));
  pointer-events: none;
}
/* The picture or video is shown whole, at its own shape: never cropped to fill. */
.amnova-project .amp-hero__media { display: flex; align-items: center; justify-content: center; min-width: 0; }
.amnova-project .amp-hero__media > img,
.amnova-project .amp-hero__media > video {
  width: auto; height: auto;
  max-width: 100%;
  max-height: min(88vh, 1000px);
  object-fit: contain;
  border-radius: var(--radius);
}
.amnova-project .amp-hero__media > .amp-placeholder { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); }

.amnova-project .amp-hero__info { display: flex; flex-direction: column; justify-content: center; min-width: 0; }

.amnova-project .amp-breadcrumb { display: flex; gap: 10px; margin-bottom: 28px; }
.amnova-project .amp-breadcrumb a { text-decoration: none; color: inherit; }
.amnova-project .amp-breadcrumb a:hover { color: var(--ink); }
.amnova-project .amp-breadcrumb span:last-child { color: var(--ink); }

.amnova-project .amp-hero__title {
  font: 800 clamp(34px, 3.4vw, 54px)/1.04 var(--font-heading);
  letter-spacing: -1px; color: var(--ink);
  text-wrap: balance;
}
.amnova-project .amp-hero__summary { margin-top: 18px; font-size: 18px; line-height: 1.55; max-width: 46ch; }

.amnova-project .amp-spec-list { margin-top: 36px; border-top: 1px solid var(--ink); }
.amnova-project .amp-spec-list__row {
  display: grid; grid-template-columns: 120px 1fr; gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.amnova-project .amp-spec-list dt {
  font: 500 12px/1.9 var(--font-body);
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-muted);
}
.amnova-project .amp-spec-list dd { font-weight: 500; color: var(--ink); line-height: 1.5; }

.amnova-project .amp-hero__group { margin-top: 32px; }
.amnova-project .amp-hero__group > .amp-label { margin-bottom: 12px; }
.amnova-project .amp-hero__links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }

.amnova-project .amp-socials { display: flex; gap: 8px; }
.amnova-project .amp-socials a {
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--rule); border-radius: var(--radius);
  color: var(--ink);
  transition: background-color .15s, color .15s, border-color .15s;
}
.amnova-project .amp-socials a:hover { background: var(--navy); border-color: var(--navy); color: var(--off-white); }

@media (max-width: 980px) {
  .amnova-project .amp-hero { grid-template-columns: 1fr; }
  .amnova-project .amp-hero__media > img, .amnova-project .amp-hero__media > video { max-height: 70vh; }
}

/* ---------- Sections ---------- */

.amnova-project .amp-section { padding-block: var(--section); }
.amnova-project .amp-section--flush { padding-top: 0; }
.amnova-project .amp-section--ruled { border-top: 1px solid var(--rule); }

.amnova-project .amp-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.amnova-project .amp-split--technical { grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr); }
@media (max-width: 900px) {
  .amnova-project .amp-split, .amnova-project .amp-split--technical { grid-template-columns: 1fr; }
}

/* Overview sketch: drifts gently as the page scrolls (parallax) and tilts in
   3D towards the mouse while it is over the picture. project.js sets the
   three values; with no JavaScript the picture simply sits still. */
.amnova-project .amp-sketch { perspective: 1100px; }
.amnova-project .amp-sketch__inner {
  transform: translate3d(0, var(--amp-shift, 0px), 0) rotateX(var(--amp-tilt-x, 0deg)) rotateY(var(--amp-tilt-y, 0deg));
  transform-style: preserve-3d;
  will-change: transform;
}
.amnova-project .amp-sketch__inner > img, .amnova-project .amp-sketch__drawing { display: block; width: 100%; }
.amnova-project .amp-sketch__drawing { color: var(--ink); padding: 4%; }
.amnova-project .amp-sketch__dims text { font: 500 12px var(--font-body); fill: var(--ink-muted); letter-spacing: 1px; }

/* Overview sketch, second kind: a circle under the mouse shows the render.
   The render lies underneath the sketch, both the same size. The sketch has a
   round hole cut in it that follows the pointer; the render is hidden
   everywhere except inside that hole, so nothing peeps out around the sketch.
   project.js sets --amp-x / --amp-y (where the hole is) and --amp-r (its
   radius right now: it grows from nothing when the pointer arrives).
   To change the size, e.g. in Elementor > Custom CSS:
     .amnova-project .amp-peek { --amp-peek-size: 240px; }   (the diameter) */
.amnova-project .amp-peek {
  --amp-peek-size: 200px;
  --amp-x: 50%; --amp-y: 50%; --amp-r: 0px;
  position: relative;
  cursor: none;
  touch-action: pan-y;
}
.amnova-project .amp-peek > img {
  display: block; width: 100%; height: auto; max-width: none;
  -webkit-user-select: none; user-select: none; -webkit-user-drag: none;
}
.amnova-project .amp-peek > img.amp-peek__under {
  position: absolute; inset: 0; height: 100%; object-fit: contain;
  -webkit-mask-image: radial-gradient(circle var(--amp-r) at var(--amp-x) var(--amp-y), #000 100%, transparent 100%);
          mask-image: radial-gradient(circle var(--amp-r) at var(--amp-x) var(--amp-y), #000 100%, transparent 100%);
}
.amnova-project .amp-peek > img.amp-peek__top {
  position: relative;
  -webkit-mask-image: radial-gradient(circle var(--amp-r) at var(--amp-x) var(--amp-y), transparent 100%, #000 100%);
          mask-image: radial-gradient(circle var(--amp-r) at var(--amp-x) var(--amp-y), transparent 100%, #000 100%);
}
.amnova-project .amp-peek__ring {
  position: absolute; left: var(--amp-x); top: var(--amp-y);
  width: calc(var(--amp-r) * 2); height: calc(var(--amp-r) * 2);
  translate: -50% -50%;
  border: 2px solid var(--yellow); border-radius: 50%;
  pointer-events: none;
}

/* Project photos. The layout follows the number of photos:
   1 = one wide photo; 2 = two side by side; 3 = one large with two small;
   4 = two by two; 5 or more = rows of three. Nothing reacts to the mouse. */
.amnova-project .amp-photo-row { display: grid; gap: 16px; }
.amnova-project .amp-photo-row__item { display: flex; flex-direction: column; min-height: 0; margin: 0; }
.amnova-project .amp-photo-row__item .amp-frame { flex: 1; aspect-ratio: 4 / 3; }
.amnova-project .amp-photo-row figcaption { margin-top: 12px; }
.amnova-project .amp-photo-row .amp-frame > img,
.amnova-project .amp-photo-row .amp-frame > img:hover,
.amnova-project .amp-photo-row .amp-frame > video,
.amnova-project .amp-photo-row .amp-frame > video:hover { transform: none; opacity: 1; filter: none; transition: none; }

.amnova-project .amp-photo-row--1 { grid-template-columns: 1fr; }
.amnova-project .amp-photo-row--1 .amp-frame { aspect-ratio: 16 / 9; }
.amnova-project .amp-photo-row--2,
.amnova-project .amp-photo-row--4 { grid-template-columns: 1fr 1fr; }
.amnova-project .amp-photo-row--many { grid-template-columns: repeat(3, 1fr); }

.amnova-project .amp-photo-row--3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.amnova-project .amp-photo-row--3 .amp-photo-row__item:first-child { grid-row: span 2; }
.amnova-project .amp-photo-row--3 .amp-photo-row__item:first-child .amp-frame { aspect-ratio: auto; min-height: 320px; }
@media (max-width: 700px) {
  .amnova-project .amp-photo-row--3,
  .amnova-project .amp-photo-row--many { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .amnova-project .amp-photo-row--3 .amp-photo-row__item:first-child,
  .amnova-project .amp-photo-row--many .amp-photo-row__item:first-child { grid-column: span 2; grid-row: auto; }
  .amnova-project .amp-photo-row--3 .amp-photo-row__item:first-child .amp-frame { aspect-ratio: 4 / 3; min-height: 0; }
}

/* Technical breakdown */
.amnova-project .amp-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  margin-bottom: 48px;
  border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule);
}
.amnova-project .amp-stats__item { display: flex; flex-direction: column; padding: 20px 16px 20px 0; }
.amnova-project .amp-stats dd { font: 800 clamp(28px, 3vw, 40px)/1.1 var(--font-heading); letter-spacing: -1px; color: var(--ink); }
.amnova-project .amp-stats dt { margin-top: 6px; font-size: 13px; color: var(--ink-muted); }

.amnova-project .amp-tech-block {
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}
.amnova-project .amp-tech-block:first-child { padding-top: 0; }
.amnova-project .amp-tech-block__no { padding-top: 7px; color: var(--ink); }
.amnova-project .amp-tech-block h3 { font: 700 24px/1.25 var(--font-heading); color: var(--ink); margin-bottom: 10px; }

.amnova-project .amp-services {
  position: sticky; top: calc(var(--amp-sticky-top, 0px) + 32px);
  padding: clamp(24px, 3vw, 40px);
  background: var(--surface-inverse); color: var(--grey);
  border-radius: var(--radius);
}
.amnova-project .amp-services__title { font: 700 28px/1.2 var(--font-heading); color: var(--off-white); }
.amnova-project .amp-services__count { margin-top: 6px; color: var(--yellow); }
.amnova-project .amp-services__group { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(252, 254, 253, .16); }
.amnova-project .amp-services__group h3 { color: #B0B5BE; margin-bottom: 10px; }
.amnova-project .amp-services__group ul { display: flex; flex-wrap: wrap; gap: 6px; }
.amnova-project .amp-services__group li {
  padding: 6px 12px;
  border: 1px solid rgba(252, 254, 253, .28); border-radius: var(--radius);
  font: 500 13px/1.3 var(--font-body); color: var(--off-white);
}
@media (max-width: 900px) { .amnova-project .amp-services { position: static; } }

/* ---------- Dark section (Technical breakdown) ----------
   Navy ground. The brand colours carry on through it as glows coming in from
   the edges, so the page gradient reads as one continuous thing. */

.amnova-project .amp-section--dark {
  position: relative;
  isolation: isolate;
  color: var(--grey);
  background-color: var(--navy);
  background-repeat: no-repeat;
  background-image:
    radial-gradient(closest-side, rgba(157, 230, 255, .55), rgba(157, 230, 255, 0)),
    radial-gradient(closest-side, rgba(255, 137, 138, .50), rgba(255, 137, 138, 0)),
    radial-gradient(closest-side, rgba(255, 215, 48, .34), rgba(255, 215, 48, 0)),
    radial-gradient(closest-side, rgba(255, 215, 48, .22), rgba(255, 215, 48, 0));
  background-size: max(86vw, 460px) 860px, max(80vw, 440px) 820px, max(52vw, 320px) 560px, max(40vw, 280px) 420px;
  background-position: right -34vw top -430px, left -34vw bottom -410px, right -8vw bottom -330px, left 10vw top -250px;
}
.amnova-project .amp-section--dark .amp-eyebrow { color: var(--sky); }
.amnova-project .amp-section--dark .amp-eyebrow__no { color: var(--off-white); }
.amnova-project .amp-section--dark .amp-eyebrow__no::after { background: var(--off-white); }
.amnova-project .amp-section--dark .amp-statement { color: var(--off-white); }
.amnova-project .amp-section--dark .amp-stats { border-top-color: var(--off-white); border-bottom-color: rgba(252, 254, 253, .2); }
.amnova-project .amp-section--dark .amp-stats dd { color: var(--yellow); }
.amnova-project .amp-section--dark .amp-stats dt { color: #B0B5BE; }
.amnova-project .amp-section--dark .amp-tech-block { border-bottom-color: rgba(252, 254, 253, .2); }
.amnova-project .amp-section--dark .amp-tech-block__no { color: var(--sky); }
.amnova-project .amp-section--dark .amp-tech-block h3 { color: var(--off-white); }
.amnova-project .amp-section--dark .amp-tech-block p { color: var(--grey); }
.amnova-project .amp-section--dark .amp-services {
  background: rgba(252, 254, 253, .08);
  border: 1px solid rgba(252, 254, 253, .22);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

/* How it was made */
.amnova-project .amp-section--board {
  background-color: var(--surface-muted);
  background-image:
    linear-gradient(rgba(4, 12, 29, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(4, 12, 29, .06) 1px, transparent 1px);
  background-size: 40px 40px;
}
.amnova-project .amp-process {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
}
.amnova-project .amp-process__step {
  scroll-snap-align: start;
  padding: 12px 12px 20px;
  background: var(--surface);
  border: 1px solid var(--rule); border-radius: var(--radius);
}
.amnova-project .amp-process__step .amp-frame { aspect-ratio: 4 / 3; margin-bottom: 16px; }
.amnova-project .amp-process__no {
  display: inline-block; padding: 3px 8px; margin-bottom: 10px;
  background: var(--yellow); color: var(--navy); border-radius: var(--radius);
  font: 900 11px/1.4 var(--font-body); letter-spacing: 2px;
}
.amnova-project .amp-process__step h3 { font: 700 20px/1.25 var(--font-heading); color: var(--ink); margin-bottom: 6px; }
.amnova-project .amp-process__step p { font-size: 14px; line-height: 1.6; }

/* Gallery */
/* Twelve columns. Each photo's place is worked out for the number of photos
   (amp_gallery_layout in front.php) and written on the photo itself: a large
   first photo, then full rows of two, three or four. No photo is ever left
   alone on a row. Photos are cropped to fill their tile. */
.amnova-project .amp-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(150px, 19vw, 270px);
  gap: 16px;
}
.amnova-project .amp-gallery__item { display: block; width: 100%; height: 100%; padding: 0; border: 0; }
.amnova-project button.amp-gallery__item { cursor: zoom-in; }
/* Hover: the picture zooms in slowly. It never dims or greys out. */
.amnova-project button.amp-gallery__item img, .amnova-project button.amp-gallery__item video {
  opacity: 1; filter: none;
  transition: transform 1.1s cubic-bezier(.2, .6, .2, 1);
}
.amnova-project button.amp-gallery__item:hover img, .amnova-project button.amp-gallery__item:hover video,
.amnova-project button.amp-gallery__item:focus-visible img, .amnova-project button.amp-gallery__item:focus-visible video {
  opacity: 1; filter: none;
  transform: scale(1.1);
  transition-duration: 1.8s;
}
.amnova-project .amp-gallery__play {
  position: absolute; left: 16px; bottom: 16px;
  width: 44px; height: 44px; border-radius: var(--radius);
  background: var(--yellow);
}
.amnova-project .amp-gallery__play::after {
  content: ""; position: absolute; left: 17px; top: 13px;
  border-left: 14px solid var(--navy);
  border-top: 9px solid transparent; border-bottom: 9px solid transparent;
}
/* Phones: two columns, in order. An odd photo at the end takes the full width. */
@media (max-width: 700px) {
  .amnova-project .amp-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 40vw; gap: 10px; }
  .amnova-project .amp-gallery .amp-gallery__item { grid-column: auto !important; grid-row: auto !important; }
  .amnova-project .amp-gallery .amp-gallery__item:first-child,
  .amnova-project .amp-gallery .amp-gallery__item--last-odd { grid-column: 1 / -1 !important; }
  .amnova-project .amp-gallery .amp-gallery__item:first-child { grid-row: span 2 !important; }
}

/* Lightbox */
.amnova-project .amp-lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none;
  margin: 0; padding: 64px 72px 56px;
  background: rgba(4, 12, 29, .96); color: var(--off-white);
  border: 0;
}
.amnova-project .amp-lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
/* Opening: the dark backdrop fades in while the picture grows out of the
   thumbnail that was clicked (project.js does the growing). Closing fades out. */
.amnova-project .amp-lightbox[open] { animation: amp-lightbox-in .38s ease both; }
.amnova-project .amp-lightbox.amp-is-closing { animation: amp-lightbox-out .24s ease both; }
.amnova-project .amp-lightbox[open] .amp-lightbox__btn,
.amnova-project .amp-lightbox[open] .amp-lightbox__caption { animation: amp-lightbox-in .5s .18s ease both; }
@keyframes amp-lightbox-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes amp-lightbox-out { from { opacity: 1; } to { opacity: 0; } }
.amnova-project .amp-lightbox::backdrop { background: transparent; }
.amnova-project .amp-lightbox__stage { flex: 1; min-height: 0; width: 100%; display: grid; place-items: center; }
.amnova-project .amp-lightbox__stage img, .amnova-project .amp-lightbox__stage video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius); }
.amnova-project .amp-lightbox__caption { margin-top: 16px; min-height: 1.4em; color: var(--grey); }
.amnova-project .amp-lightbox__btn {
  position: absolute; width: 44px; height: 44px;
  background: transparent; color: var(--off-white);
  border: 1px solid rgba(252, 254, 253, .4); border-radius: var(--radius);
  font-size: 20px; line-height: 1; cursor: pointer;
}
.amnova-project .amp-lightbox__btn:hover { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.amnova-project .amp-lightbox__btn:focus-visible { outline-color: var(--yellow); }
.amnova-project .amp-lightbox__btn--close { top: 12px; right: 14px; }
.amnova-project .amp-lightbox__btn--prev { left: 14px; top: 50%; translate: 0 -50%; }
.amnova-project .amp-lightbox__btn--next { right: 14px; top: 50%; translate: 0 -50%; }
@media (max-width: 700px) {
  .amnova-project .amp-lightbox { padding: 64px 12px 72px; }
  .amnova-project .amp-lightbox__btn--prev, .amnova-project .amp-lightbox__btn--next { top: auto; bottom: 14px; translate: none; }
}

/* ---------- Project cards ---------- */

/* ---------- Project tiles ----------
   The picture fills the tile. Industries sit top left, the title sits on a
   slanted tab bottom left (the tab is the page colour, so it looks cut out of
   the picture), and a yellow plus sits bottom right.
   Four tiles a row on wide screens, then three, two and one. */
.amnova-project .amp-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.amnova-project .amp-card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1300px) { .amnova-project .amp-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px)  { .amnova-project .amp-card-grid, .amnova-project .amp-card-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 560px)  { .amnova-project .amp-card-grid, .amnova-project .amp-card-grid--three { grid-template-columns: 1fr; } }

.amnova-project .amp-tile {
  position: relative; display: block; isolation: isolate; overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: var(--navy);
  text-decoration: none; color: var(--ink);
}
.amnova-project .amp-tile[hidden] { display: none; }
.amnova-project .amp-tile__media { position: absolute; inset: 0; display: block; }
.amnova-project .amp-tile__media img,
.amnova-project .amp-tile__media video,
.amnova-project .amp-tile__media .amp-placeholder {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover;
  transition: transform 1.1s cubic-bezier(.2, .6, .2, 1);
}
.amnova-project .amp-tile:hover .amp-tile__media img,
.amnova-project .amp-tile:hover .amp-tile__media video,
.amnova-project .amp-tile:focus-visible .amp-tile__media img { transform: scale(1.07); transition-duration: 1.8s; }

.amnova-project .amp-tile__tags {
  position: absolute; top: 14px; left: 14px; right: 14px; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.amnova-project .amp-tile__tag {
  padding: 7px 10px 6px;
  background: var(--off-white); color: var(--navy);
  border-radius: 2px;
  font: 500 11px/1 var(--font-body); letter-spacing: 1.5px; text-transform: uppercase;
}
.amnova-project .amp-tile__title {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  max-width: 80%; margin: 0;
  padding: 15px 46px 13px 16px;
  background: var(--amp-tile-tab, var(--page));
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 100%, 0 100%);
  font: 700 clamp(15px, 1.15vw, 19px)/1.2 var(--font-heading);
  letter-spacing: .6px; text-transform: uppercase;
  color: var(--navy);
}
.amnova-project .amp-tile__plus {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  width: 32px; height: 32px;
  background: var(--yellow);
  border-radius: 2px;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.amnova-project .amp-tile__plus::before,
.amnova-project .amp-tile__plus::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 14px; height: 1.5px; margin: -.75px 0 0 -7px;
  background: var(--navy);
}
.amnova-project .amp-tile__plus::after { transform: rotate(90deg); }
.amnova-project .amp-tile:hover .amp-tile__plus,
.amnova-project .amp-tile:focus-visible .amp-tile__plus { transform: rotate(90deg); }
/* the same band of light as the buttons and gallery pictures */
.amnova-project .amp-tile::after {
  content: "";
  position: absolute; top: -60%; left: -95%; z-index: 1;
  width: 22%; height: 220%;
  background: #fff; opacity: .3;
  transform: rotate(35deg);
  transition: left 1.15s cubic-bezier(.19, 1, .22, 1);
  pointer-events: none;
}
.amnova-project .amp-tile:hover::after, .amnova-project .amp-tile:focus-visible::after { left: 170%; }
.amnova-project a.amp-tile, .amnova-project a.amp-tile:hover { color: var(--ink); text-decoration: none; }
/* a tile coming back after a filter change */
.amnova-project .amp-tile.amp-is-arriving { animation: amp-tile-in .45s ease both; }
@keyframes amp-tile-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- The projects page ---------- */
.amnova-project .amp-container--wide { max-width: 1760px; }

/* Heading on the left, a few lines on the right, hairlines between and below
   with a dot where they meet. */
.amnova-project .amp-list-head {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  margin-bottom: clamp(36px, 4.5vw, 64px);
  border-bottom: 1px solid var(--rule);
}
.amnova-project .amp-list-head__title {
  margin: 0; padding: 0 32px clamp(32px, 4vw, 56px) 0;
  font: 800 clamp(34px, 4.4vw, 68px)/1.02 var(--font-heading);
  letter-spacing: -1px; text-transform: uppercase;
  color: var(--ink);
  max-width: 14ch;
}
.amnova-project .amp-list-head__text {
  position: relative;
  display: flex; align-items: center;
  padding: 0 0 clamp(32px, 4vw, 56px) clamp(32px, 9vw, 150px);
  border-left: 1px solid var(--rule);
}
.amnova-project .amp-list-head__text p { max-width: 44ch; margin: 0; font-size: 15px; line-height: 1.7; }
.amnova-project .amp-list-head__text::after {
  content: ""; position: absolute; left: -3px; bottom: -3px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--navy);
}
@media (max-width: 800px) {
  .amnova-project .amp-list-head { grid-template-columns: 1fr; }
  .amnova-project .amp-list-head__title { padding: 0 0 20px; }
  .amnova-project .amp-list-head__text { padding-left: 0; border-left: 0; }
  .amnova-project .amp-list-head__text::after { display: none; }
}

/* Industry filter buttons: navy, the chosen one yellow. */
.amnova-project .amp-filters {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 32px;
  margin-bottom: 28px;
}
.amnova-project .amp-filters__label {
  min-width: 210px; margin: 0; padding: 11px 14px 10px;
  background: var(--navy); color: var(--off-white);
  border-radius: 2px;
  font: 500 11px/1.2 var(--font-body); letter-spacing: 1.5px; text-transform: uppercase;
}
.amnova-project .amp-filters__list { flex: 1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.amnova-project button.amp-filter,
.amnova-project button.amp-filter:hover,
.amnova-project button.amp-filter:focus {
  position: relative; isolation: isolate; overflow: hidden;
  min-width: 150px; padding: 11px 14px 10px;
  background: var(--navy); color: var(--off-white);
  border: 0; border-radius: 2px; box-shadow: none;
  font: 500 11px/1.2 var(--font-body); letter-spacing: 1.5px; text-transform: uppercase; text-align: left;
  cursor: pointer;
}
.amnova-project button.amp-filter.is-active,
.amnova-project button.amp-filter.is-active:hover,
.amnova-project button.amp-filter.is-active:focus { background: var(--yellow); color: var(--navy); }
.amnova-project button.amp-filter:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.amnova-project button.amp-filter::after {
  content: "";
  position: absolute; top: -50px; left: -75px; z-index: -1;
  width: 50px; height: 155px;
  background: #fff; opacity: .22;
  transform: rotate(35deg);
  transition: left .72s cubic-bezier(.19, 1, .22, 1);
  pointer-events: none;
}
.amnova-project button.amp-filter:hover::after { left: 120%; }
.amnova-project .amp-filters__empty { margin-top: 8px; }
.amnova-project .amp-filters__empty[hidden] { display: none; }
@media (max-width: 700px) {
  .amnova-project .amp-filters__label { min-width: 0; width: 100%; }
  .amnova-project .amp-filters__list { justify-content: flex-start; }
  .amnova-project button.amp-filter { min-width: 0; }
}

.amnova-project .amp-related-industries { margin-top: 48px; }
.amnova-project .amp-related-industries .amp-label { margin-bottom: 12px; }

/* ---------- Call to action and footer ---------- */

.amnova-project .amp-cta { background: var(--navy); color: var(--off-white); padding-block: clamp(56px, 7vw, 96px); }
.amnova-project .amp-cta__inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.amnova-project .amp-cta__title { font: 800 clamp(30px, 4vw, 52px)/1.08 var(--font-heading); letter-spacing: -1px; max-width: 18ch; }
.amnova-project .amp-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.amnova-project .amp-cta .amp-eyebrow { margin-bottom: 16px; }


/* ---------- Holding our own against theme and Elementor defaults ---------- */

.amnova-project a.amp-text-link, .amnova-project a.amp-text-link:hover { color: var(--ink); }
.amnova-project a.amp-chip { text-decoration: none; }

.amnova-project button.amp-gallery__item,
.amnova-project button.amp-gallery__item:hover,
.amnova-project button.amp-gallery__item:focus {
  background: var(--surface-muted); border: 0; border-radius: var(--radius); padding: 0; box-shadow: none;
}
.amnova-project button.amp-lightbox__btn { padding: 0; box-shadow: none; font-family: var(--font-body); }
.amnova-project button.amp-lightbox__btn:focus { background: transparent; color: var(--off-white); }
.amnova-project .amp-lightbox__btn[hidden] { display: none; }

.amnova-project .amp-frame > img, .amnova-project .amp-frame > video { height: 100%; }
.amnova-project .amp-sketch__inner > img { height: auto; }

.amnova-project .amp-pagination { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 8px; }
.amnova-project .amp-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; min-height: 40px; padding: 0 12px;
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--surface); color: var(--ink);
  font-weight: 500; text-decoration: none;
}
.amnova-project .amp-pagination .page-numbers.current,
.amnova-project .amp-pagination a.page-numbers:hover { background: var(--navy); border-color: var(--navy); color: var(--off-white); }

/* ---------- Buttons: a band of light sweeps across on hover ----------
   Every button, industry tag, social icon and page number has a slanted,
   see-through band parked just off its left edge. On hover the band slides
   across to the right and out the other side.
   The band is white on the navy main buttons and yellow on the white tags
   and icons (white would not show on white). */

.amnova-project .amp-button,
.amnova-project .amp-chip,
.amnova-project .amp-socials a,
.amnova-project .amp-pagination .page-numbers {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.amnova-project .amp-button::after,
.amnova-project .amp-chip::after,
.amnova-project .amp-socials a::after,
.amnova-project .amp-pagination a.page-numbers::after {
  content: "";
  position: absolute; top: -50px; left: -75px; z-index: -1;
  width: 50px; height: 155px;
  background: var(--amp-shine, #fff);
  opacity: var(--amp-shine-strength, .22);
  transform: rotate(35deg);
  transition: left .72s cubic-bezier(.19, 1, .22, 1);
  pointer-events: none;
}
.amnova-project .amp-button:hover::after, .amnova-project .amp-button:focus-visible::after,
.amnova-project .amp-chip:hover::after, .amnova-project .amp-chip:focus-visible::after,
.amnova-project .amp-socials a:hover::after, .amnova-project .amp-socials a:focus-visible::after,
.amnova-project .amp-pagination a.page-numbers:hover::after { left: 120%; }

/* Main buttons: navy with a hairline border, on light and dark grounds alike. */
.amnova-project a.amp-button,
.amnova-project a.amp-button:hover,
.amnova-project a.amp-button:focus {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--off-white);
  text-decoration: none;
}
.amnova-project .amp-cta a.amp-button,
.amnova-project .amp-section--dark a.amp-button { border-color: rgba(252, 254, 253, .55); }

/* Tags, social icons, page numbers: stay white; the band is yellow. */
.amnova-project .amp-chip,
.amnova-project .amp-socials a,
.amnova-project .amp-pagination .page-numbers {
  --amp-shine: var(--yellow);
  --amp-shine-strength: .6;
}
.amnova-project a.amp-chip:hover, .amnova-project a.amp-chip:focus-visible,
.amnova-project .amp-socials a:hover, .amnova-project .amp-socials a:focus-visible,
.amnova-project .amp-pagination a.page-numbers:hover {
  background: var(--surface);
  border-color: var(--navy);
  color: var(--ink);
}

/* ---------- Scroll reveal (only when JavaScript is running) ---------- */

.amnova-project.amp-js .amp-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.amnova-project.amp-js .amp-reveal.amp-is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .amnova-project.amp-js .amp-reveal { opacity: 1; transform: none; transition: none; }
  .amnova-project *, .amnova-project *::before, .amnova-project *::after { transition-duration: 0s !important; animation-duration: 0s !important; animation-delay: 0s !important; }
}

/* ---------- Pictures keep their colour on hover ----------
   Elementor's Site Settings > Images has a "Hover > Opacity" setting that
   fades every picture on the site when the mouse is over it. Nothing in the
   project pages may fade or change colour on hover: photos, the design sketch,
   gallery thumbnails, project cards and the enlarged gallery view. */
.amnova-project img:hover,
.amnova-project video:hover,
.amnova-project svg:hover,
.amnova-project a:hover img,
.amnova-project button:hover img,
.amnova-project .amp-lightbox img:hover,
.amnova-project .amp-lightbox video:hover {
  opacity: 1 !important;
  filter: none !important;
  -webkit-filter: none !important;
}

/* ---------- Gallery pictures: the same band of light as the buttons ----------
   A slanted, see-through white band is parked off the left edge of each
   gallery picture and sweeps across to the right on hover. It is sized from
   the picture, so large and small tiles look alike. */
.amnova-project button.amp-gallery__item::after {
  content: "";
  position: absolute; top: -60%; left: -95%; z-index: 1;
  width: 22%; height: 220%;
  background: #fff;
  opacity: .3;
  transform: rotate(35deg);
  transition: left 1.15s cubic-bezier(.19, 1, .22, 1);
  pointer-events: none;
}
.amnova-project button.amp-gallery__item:hover::after,
.amnova-project button.amp-gallery__item:focus-visible::after { left: 170%; }

/* ---------- The projects page has a plain background ----------
   No colour patches here: just the very light grey. Each tile's title tab is
   that same grey, so the tab reads as a piece cut out of the tile rather
   than a label on top of it. */
.amnova-project.amnova-project--list { background-image: none; background-color: var(--page); }
.amnova-project--list .amp-tile__title { background: var(--page); }

/* ---------- Industry buttons span the full width ----------
   No label beside them. The buttons share each row between them, so every
   row runs edge to edge however many industries there are. */
.amnova-project .amp-filters { display: block; }
.amnova-project .amp-filters__list { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
.amnova-project button.amp-filter,
.amnova-project button.amp-filter:hover,
.amnova-project button.amp-filter:focus { flex: 1 1 auto; min-width: 0; text-align: center; white-space: nowrap; }

/* Projects page heading: space between its paragraphs. */
.amnova-project .amp-list-head__text p + p { margin-top: 1em; }

/* ---------- Enlarged gallery picture: always fits the screen ----------
   Never wider than half the screen, never taller than the space between the
   close button and the caption. Sizes are tied to the screen itself (vw / vh)
   so a theme's own image rules cannot make the picture overflow.
   On phones half the screen would be tiny, so there it may use the full width. */
.amnova-project .amp-lightbox__stage { overflow: hidden; }
.amnova-project .amp-lightbox__stage img,
.amnova-project .amp-lightbox__stage video {
  width: auto; height: auto;
  max-width: 50vw;
  max-height: calc(100vh - 170px);
  max-height: calc(100dvh - 170px);
  object-fit: contain;
}
@media (max-width: 700px) {
  .amnova-project .amp-lightbox__stage img,
  .amnova-project .amp-lightbox__stage video { max-width: calc(100vw - 24px); max-height: calc(100dvh - 190px); }
}

/* ---------- Related projects sit on plain grey ----------
   The colour patches fade out just above this section, and the section itself
   is the plain page grey. That way each tile's title tab (also page grey)
   blends into the page and the tile reads as a cut-out shape, as it does on
   the projects page. */
.amnova-project--page #related { position: relative; background: var(--page); }
.amnova-project--page #related::before {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 100%; z-index: -1;
  height: 260px;
  background: linear-gradient(180deg, rgba(var(--page-rgb), 0), var(--page));
  pointer-events: none;
}

/* ---------- Sketch: a hint that there is a render to find ----------
   A small label under the sketch. On top of it, the first time the sketch
   scrolls into view the circle opens by itself for a moment (project.js), so
   people see what happens before they touch anything. Once someone has used
   the circle the label fades back. */
.amnova-project .amp-peek__hint {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 14px;
  font: 500 11px/1.4 var(--font-body); letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ink);
  transition: opacity .6s ease;
}
.amnova-project .amp-sketch.amp-is-used .amp-peek__hint { opacity: .45; }
.amnova-project .amp-peek__hint-icon {
  flex: none; position: relative;
  width: 18px; height: 18px;
  border: 2px solid var(--yellow); border-radius: 50%;
}
.amnova-project .amp-peek__hint-icon::after {
  content: ""; position: absolute; inset: -2px;
  border: 2px solid var(--yellow); border-radius: 50%;
  animation: amp-hint-pulse 2.2s ease-out infinite;
}
.amnova-project .amp-sketch.amp-is-used .amp-peek__hint-icon::after { animation: none; opacity: 0; }
@keyframes amp-hint-pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
.amnova-project .amp-peek__hint-touch { display: none; }
@media (hover: none) {
  .amnova-project .amp-peek__hint-mouse { display: none; }
  .amnova-project .amp-peek__hint-touch { display: inline; }
}

/* ---------- Video play button ----------
   The only control a video on the page has: a yellow disc with a navy
   triangle, in the middle of the picture. It hides while the video plays. */
.amnova-project video[data-amp-player] { cursor: pointer; }
.amnova-project video[data-amp-player]::-webkit-media-controls,
.amnova-project video[data-amp-player]::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
.amnova-project button.amp-play,
.amnova-project button.amp-play:hover,
.amnova-project button.amp-play:focus {
  position: absolute; left: 50%; top: 50%; z-index: 3;
  width: clamp(56px, 6vw, 84px); height: clamp(56px, 6vw, 84px);
  margin: 0; padding: 0;
  translate: -50% -50%;
  background: var(--yellow); color: var(--navy);
  border: 0; border-radius: 50%; box-shadow: 0 6px 24px rgba(4, 12, 29, .28);
  cursor: pointer;
  transition: scale .3s cubic-bezier(.2, .8, .2, 1), opacity .25s ease;
}
.amnova-project button.amp-play::before {
  content: ""; position: absolute; left: 53%; top: 50%;
  translate: -50% -50%;
  border-left: clamp(16px, 1.7vw, 24px) solid var(--navy);
  border-top: clamp(10px, 1.1vw, 15px) solid transparent;
  border-bottom: clamp(10px, 1.1vw, 15px) solid transparent;
}
.amnova-project button.amp-play:hover { scale: 1.08; }
.amnova-project button.amp-play:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.amnova-project .amp-is-playing > button.amp-play { opacity: 0; pointer-events: none; }

/* ---------- Amnova Lab: coming soon ----------
   A navy panel the height of the screen, with the three brand colours as soft
   glows in the corners (the same treatment as the Technical breakdown
   section). Three overlapping rings stand in for a logo. Nothing moves. */
body.amp-lab-page { background-color: #040C1D !important; }
.amnova-project.amp-lab {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  min-height: min(100vh, 900px);
  min-height: min(100svh, 900px);
  padding-block: clamp(72px, 10vw, 140px);
  color: var(--grey);
  background-color: var(--navy);
  background-repeat: no-repeat;
  background-image:
    radial-gradient(closest-side, rgba(157, 230, 255, .50), rgba(157, 230, 255, 0)),
    radial-gradient(closest-side, rgba(255, 137, 138, .46), rgba(255, 137, 138, 0)),
    radial-gradient(closest-side, rgba(255, 215, 48, .30), rgba(255, 215, 48, 0));
  background-size: max(80vw, 460px) 820px, max(76vw, 440px) 780px, max(50vw, 320px) 540px;
  background-position: right -30vw top -420px, left -32vw bottom -400px, right 4vw bottom -330px;
}
.amnova-project .amp-lab__inner { max-width: 1360px; }
.amnova-project .amp-lab__mark { position: relative; width: 92px; height: 56px; margin-bottom: clamp(28px, 4vw, 48px); }
.amnova-project .amp-lab__mark span {
  position: absolute; top: 0; width: 56px; height: 56px;
  border: 2px solid var(--sky); border-radius: 50%;
}
.amnova-project .amp-lab__mark span:nth-child(1) { left: 0; border-color: var(--sky); }
.amnova-project .amp-lab__mark span:nth-child(2) { left: 18px; border-color: var(--yellow); }
.amnova-project .amp-lab__mark span:nth-child(3) { left: 36px; border-color: var(--coral); }
.amnova-project.amp-lab .amp-eyebrow { margin-bottom: 18px; }
.amnova-project .amp-lab__title {
  margin: 0;
  font: 800 clamp(48px, 9vw, 132px)/.95 var(--font-heading);
  letter-spacing: -2px; text-transform: uppercase;
  color: var(--off-white);
}
.amnova-project .amp-lab__text { max-width: 46ch; margin-top: clamp(24px, 3vw, 40px); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.65; color: var(--grey); }
.amnova-project .amp-lab__text p { margin: 0; }
.amnova-project .amp-lab__text p + p { margin-top: .8em; }
.amnova-project .amp-lab__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(32px, 4vw, 48px); }
.amnova-project.amp-lab a.amp-button { border-color: rgba(252, 254, 253, .55); }
.amnova-project.amp-lab a.amp-button--yellow,
.amnova-project.amp-lab a.amp-button--yellow:hover,
.amnova-project.amp-lab a.amp-button--yellow:focus { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }

/* ---------- Project photos and gallery: 80% of the screen width ----------
   These two sections are wider than the text sections: always 80% of the
   screen, centred, however wide the screen is. Gallery rows grow taller with
   them so the tiles keep their proportions on large monitors.
   On tablets and phones 80% would waste space, so there they use the normal
   page margins instead. */
@media (min-width: 901px) {
  .amnova-project #photos > .amp-container,
  .amnova-project #gallery > .amp-container {
    width: 80vw; max-width: none;
    margin-left: calc(50% - 40vw); margin-right: 0;
    padding-inline: 0;
  }
  .amnova-project #gallery .amp-gallery { grid-auto-rows: clamp(150px, 15.5vw, 400px); }
}

/* ---------- Tiles: no hairline around the title tab ----------
   The tile used to have a navy ground behind its picture. Where the tile's
   rounded corners clip the tab, browsers let a hair of that navy show along
   the tab's left and bottom edges, which spoiled the cut-out look. The ground
   is now the page grey (so nothing dark can show), the tab overlaps the
   tile's edge by a pixel, and the tile has no outline of its own. */
.amnova-project .amp-tile,
.amnova-project a.amp-tile:hover,
.amnova-project a.amp-tile:focus { background: var(--page); border: 0; outline: 0; box-shadow: none; }
.amnova-project a.amp-tile:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.amnova-project .amp-tile__title { left: -1px; bottom: -1px; padding-left: 17px; padding-bottom: 14px; }
