/* Nexora Tech & Climate Solutions: site styles.
   The films are SVG scenes animated with CSS; films.js only chooses the scene and the play state.
   Brand colours come from the logo; change them here, in one place. */

:root {
  --navy: #0c253c;
  --navy-2: #12324f;
  --navy-3: #081a2c;
  --green: #138763;
  --green-ink: #0e6e50;
  --mint: #e6f4ec;
  --ai: #5fe0cf;
  --sky: #e3f0f8;
  --ink: #1a2531;
  --ink-muted: #4a5a6b;
  --on-dark: #eef4f8;
  --on-dark-muted: #b4c6d6;
  --tint: #f3f6f9;
  --line: #dce3ea;
  --white: #ffffff;
  --radius: 16px;
  --container: 76rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

img,
svg {
  max-width: 100%;
}

img {
  height: auto;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

a:hover {
  text-decoration-color: var(--green);
  text-decoration-thickness: 2px;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy);
  line-height: 1.12;
  text-wrap: balance;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.on-dark :focus-visible {
  outline-color: var(--ai);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -10rem;
  left: 1rem;
  z-index: 20;
  padding: .75rem 1rem;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.eyebrow {
  margin: 0 0 .9rem;
  color: var(--green-ink);
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.on-dark .eyebrow {
  color: var(--ai);
}

.lead {
  max-width: 36em;
  font-size: clamp(1.125rem, 1.02rem + .45vw, 1.3125rem);
  line-height: 1.55;
}

/* ---------- Top bar and motion switch ---------- */

.top-bar {
  background: var(--navy-3);
  color: var(--on-dark);
  font-size: .875rem;
}

.top-bar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .35rem 1rem;
  padding-block: .4rem;
}

.top-bar p {
  margin: 0;
}

.top-bar-email {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--white);
  font-weight: 600;
  text-decoration-color: rgba(255, 255, 255, .45);
  overflow-wrap: anywhere;
}

.top-bar-email:hover {
  color: var(--white);
  text-decoration-color: var(--ai);
}

.motion-text-short {
  display: none;
}

@media (max-width: 30em) {
  .motion-text-full {
    display: none;
  }

  .motion-text-short {
    display: inline;
  }
}

.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 40px;
  padding: .3rem .85rem .3rem .45rem;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.motion-switch {
  position: relative;
  flex: none;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .25);
}

.motion-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
}

.motion-toggle[aria-pressed="true"] .motion-switch {
  background: var(--ai);
}

.motion-toggle[aria-pressed="true"] .motion-switch::after {
  transform: translateX(14px);
  background: var(--navy);
}

/* ---------- Header ---------- */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .25rem 2rem;
  padding-block: .75rem .25rem;
}

.brand {
  display: inline-flex;
  border-radius: 6px;
}

.brand img {
  display: block;
  width: auto;
  height: 88px;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: inline-block;
  padding: .75rem .125rem;
  color: var(--navy);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: .45em;
}

.site-nav a:hover {
  text-decoration-color: var(--green);
}

/* Menu button and phone menu (below 48em). Computers show the links in a row and the
   email address and motion switch in the top bar. */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  padding: .45rem 1rem;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.menu-icon {
  position: relative;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}

.menu-icon::before,
.menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}

.menu-icon::before {
  top: -6px;
}

.menu-icon::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-icon {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-icon::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

.menu-email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--navy);
  font-weight: 650;
  overflow-wrap: anywhere;
}

.menu-extras .motion-toggle {
  border-color: var(--line);
  color: var(--navy);
}

.menu-extras .motion-switch {
  background: #c9d4de;
}

.menu-extras .motion-toggle[aria-pressed="true"] .motion-switch {
  background: var(--green);
}

.menu-extras .motion-toggle[aria-pressed="true"] .motion-switch::after {
  background: var(--white);
}

@media (max-width: 47.99em) {
  .top-bar {
    display: none;
  }

  .header-inner {
    padding-block: .6rem;
  }

  .site-menu {
    flex-basis: 100%;
    padding-bottom: .25rem;
  }

  .menu-ready .site-menu:not(.is-open) {
    display: none;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav a {
    display: block;
    padding: .8rem .25rem;
    border-top: 1px solid var(--line);
    font-size: 1.125rem;
  }

  .menu-extras {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
    padding: .75rem .25rem .9rem;
    border-top: 1px solid var(--line);
  }
}

@media (min-width: 48em) {
  .menu-toggle,
  .menu-extras {
    display: none;
  }

  .header-inner {
    padding-block: 1rem;
  }

  .brand img {
    height: 104px;
  }

  .site-nav ul {
    gap: 0 1.75rem;
  }
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  max-width: 100%;
  min-height: 3rem;
  padding: .7rem min(1.5rem, 5vw);
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.button-primary {
  background: var(--navy);
  color: var(--white);
}

.button-primary:hover {
  background: var(--navy-2);
  color: var(--white);
}

.button-ghost {
  border-color: currentColor;
  background: transparent;
  color: var(--navy);
}

.button-ghost:hover {
  background: var(--tint);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
  margin-top: 2rem;
}

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

.hero {
  padding-block: clamp(2rem, 5vw, 4.5rem) clamp(2.75rem, 6vw, 5rem);
  background: radial-gradient(120% 80% at 90% 0%, #e4f1fa 0%, var(--white) 62%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}

.hero h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.5rem, 1.4rem + 4vw, 4.4rem);
  font-weight: 850;
  line-height: 1.02;
  letter-spacing: -.035em;
}

.hero h1 span {
  color: var(--green-ink);
}

@media (min-width: 64em) {
  .hero-inner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

/* ---------- Film player ---------- */

.film {
  margin: 0;
  color: var(--navy);
}

.on-dark .film {
  color: var(--white);
}

.film-stage {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy-3);
  box-shadow: 0 28px 60px -30px rgba(6, 22, 38, .6);
}

.film-stage > .shot {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .9s ease;
}

.film-stage > .shot.is-active {
  opacity: 1;
}

.film-tag {
  position: absolute;
  top: .7rem;
  left: .7rem;
  z-index: 3;
  padding: .2rem .6rem;
  border-radius: 999px;
  background: rgba(6, 22, 38, .62);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .03em;
}

.film-captions {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 58%;
  background: linear-gradient(to bottom, rgba(5, 16, 28, 0), rgba(5, 16, 28, .86));
  pointer-events: none;
}

.caption {
  position: absolute;
  right: 1.25rem;
  bottom: 1rem;
  left: 1.25rem;
  right: 4.5cqi;
  bottom: 4cqi;
  left: 4.5cqi;
  margin: 0;
  color: var(--white);
  font-size: 1rem;
  font-size: clamp(.86rem, 2.7cqi, 1.4rem);
  font-weight: 650;
  line-height: 1.35;
  text-wrap: balance;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s ease .25s, transform .6s ease .25s;
}

.caption.is-active {
  opacity: 1;
  transform: none;
}

.film-controls {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: .85rem;
}

.film-play {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.film-play:hover {
  background: rgba(127, 160, 190, .16);
}

.film-play svg {
  width: 20px;
  height: 20px;
}

.film-play .i-pause,
.film-play .i-replay,
.film[data-state="playing"] .film-play .i-play,
.film[data-state="ended"] .film-play .i-play {
  display: none;
}

.film[data-state="playing"] .film-play .i-pause,
.film[data-state="ended"] .film-play .i-replay {
  display: block;
}

.film-progress {
  display: flex;
  flex: 1;
  gap: .4rem;
  min-width: 0;
}

.seg {
  position: relative;
  flex: 1;
  min-width: 0;
  height: 30px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.seg::before,
.seg-fill {
  position: absolute;
  top: 13px;
  right: 0;
  left: 0;
  height: 4px;
  border-radius: 2px;
}

.seg::before {
  content: "";
  background: currentColor;
  opacity: .28;
}

.seg-fill {
  display: block;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
}

.seg.is-done .seg-fill,
.film[data-state="ended"] .seg.is-current .seg-fill {
  transform: none;
}

.film:is([data-state="playing"], [data-state="paused"]) .seg.is-current .seg-fill {
  animation: seg-fill var(--shot, 5.5s) linear forwards;
}

.film[data-state="paused"] :is(.seg-fill, .shot *) {
  animation-play-state: paused !important;
}

.film:is([data-state="idle"], [data-state="ended"]) .shot * {
  animation: none !important;
}

.film-count {
  flex: none;
  min-width: 3.4em;
  font-size: .875rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  text-align: right;
  opacity: .85;
}

.film-note {
  margin-top: .6rem;
  color: var(--ink-muted);
  font-size: .9375rem;
}

.on-dark .film-note {
  color: var(--on-dark-muted);
}

.film-script {
  margin-top: .15rem;
}

.film-script summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  cursor: pointer;
}

.film-script ol {
  margin: .25rem 0 .5rem;
  padding-left: 1.3rem;
}

.film-script li {
  margin-bottom: .4rem;
}

@keyframes seg-fill {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

/* ---------- Scene animations ---------- */

.shot text,
.dream-art text {
  font-family: var(--font);
}

:is(.shot, .dream-art) :is(.grow, .pop, .ping, .spin, .spin-slow, .pulse, .swell, .turn-left, .turn-right, .sway, .ripple, .tank-level, .type-line) {
  transform-box: fill-box;
}

.grow,
.sway,
.tank-level {
  transform-origin: 50% 100%;
}

.pop,
.ping,
.spin,
.spin-slow,
.pulse,
.swell,
.ripple {
  transform-origin: 50% 50%;
}

.turn-left {
  transform-origin: 100% 50%;
}

.turn-right,
.type-line {
  transform-origin: 0% 50%;
}

.kb {
  transform-box: view-box;
  transform-origin: 50% 55%;
}

.shimmer {
  opacity: .5;
}

.ping,
.ripple {
  opacity: .5;
}

.flow,
.flow-up {
  stroke-dasharray: 16 18;
}

.draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

/* One-off entrances: they play each time a scene becomes active. */
.shot.is-active .kb {
  animation: kb var(--shot, 5.5s) ease-out both;
}

.shot.is-active .grow {
  animation: grow 1.3s cubic-bezier(.2, .8, .2, 1) var(--d, 0s) both;
}

.shot.is-active .pop {
  animation: pop .8s cubic-bezier(.2, .9, .3, 1.2) var(--d, 0s) both;
}

.shot.is-active .fade-in,
.shot.is-active .glow-on {
  animation: fade-in 1.2s ease var(--d, 0s) both;
}

.shot.is-active .fade-up {
  animation: fade-up 1s ease var(--d, 0s) both;
}

.shot.is-active .slide-in {
  animation: slide-in 2.4s ease-out var(--d, 0s) both;
}

.shot.is-active .swell {
  animation: swell 3.4s ease-out var(--d, 0s) both;
}

.shot.is-active .rise {
  animation: rise 3.8s ease-out var(--d, .4s) both;
}

.shot.is-active .draw {
  animation: draw 1.6s ease var(--d, 0s) both;
}

.shot.is-active :is(.turn-left, .turn-right) {
  animation: turn 1.1s cubic-bezier(.2, .8, .2, 1) var(--d, 0s) both;
}

.shot.is-active .pass {
  animation: pass 2.6s ease-in-out var(--d, .4s) both;
}

.shot.is-active .rise-sun {
  animation: rise-sun 4.5s ease-out var(--d, 0s) both;
}

.shot.is-active .type-line {
  animation: type-line 1.1s steps(10) var(--d, 0s) both;
}

/* Loops: they run while a scene is active, or while a dream illustration is on screen. */
:is(.shot.is-active, .dream-art.is-live) .rain line {
  animation: rain .9s linear var(--d, 0s) infinite;
}

.dream-art.is-live .rain line {
  animation-name: rain-small;
}

:is(.shot.is-active, .dream-art.is-live) .ping {
  animation: ping 2.2s ease-out var(--d, 0s) infinite;
}

:is(.shot.is-active, .dream-art.is-live) .spin {
  animation: spin 3s linear infinite;
}

:is(.shot.is-active, .dream-art.is-live) .spin-slow {
  animation: spin 40s linear infinite;
}

:is(.shot.is-active, .dream-art.is-live) .pulse {
  animation: pulse 3s ease-in-out var(--d, 0s) infinite;
}

:is(.shot.is-active, .dream-art.is-live) :is(.flow, .flow-up) {
  animation: flow 1.4s linear infinite;
}

:is(.shot.is-active, .dream-art.is-live) .shimmer {
  animation: shimmer 2.6s ease-in-out var(--d, 0s) infinite;
}

:is(.shot.is-active, .dream-art.is-live) .twinkle {
  animation: twinkle 2.4s ease-in-out var(--d, 0s) infinite;
}

:is(.shot.is-active, .dream-art.is-live) .float {
  animation: float 4s ease-in-out var(--d, 0s) infinite;
}

:is(.shot.is-active, .dream-art.is-live) .blink {
  animation: twinkle 1.4s ease-in-out var(--d, 0s) infinite;
}

:is(.shot.is-active, .dream-art.is-live) .wave {
  animation: wave 1.8s ease-out var(--d, 0s) infinite;
}

:is(.shot.is-active, .dream-art.is-live) .drip {
  animation: drip 1.6s ease-in var(--d, 0s) infinite;
}

.dream-art.is-live .sway {
  animation: sway 4s ease-in-out var(--d, 0s) infinite alternate;
}

.dream-art.is-live .ripple {
  animation: ripple 3s ease-out var(--d, 0s) infinite;
}

.dream-art.is-live .tank-level {
  animation: tank 6s ease-in-out infinite;
}

@keyframes kb {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.07) translate(-1%, -1.2%);
  }
}

@keyframes grow {
  from {
    transform: scale(.25, 0);
    opacity: 0;
  }
}

@keyframes pop {
  from {
    transform: scale(0);
    opacity: 0;
  }

  70% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes fade-up {
  from {
    transform: translateY(34px);
    opacity: 0;
  }
}

@keyframes slide-in {
  from {
    transform: translateX(-280px);
    opacity: 0;
  }
}

@keyframes swell {
  from {
    transform: scaleX(.3);
  }
}

@keyframes rise {
  from {
    transform: translateY(150px);
  }
}

@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }
}

@keyframes turn {
  from {
    transform: scaleX(0);
  }
}

@keyframes pass {
  from {
    transform: translateX(-230px);
  }
}

@keyframes rise-sun {
  from {
    transform: translateY(170px);
  }
}

@keyframes type-line {
  from {
    transform: scaleX(0);
  }
}

@keyframes rain {
  from {
    transform: translate(0, -70px);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  to {
    transform: translate(-26px, 150px);
    opacity: 0;
  }
}

@keyframes rain-small {
  from {
    transform: translate(0, -18px);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  to {
    transform: translate(-8px, 44px);
    opacity: 0;
  }
}

@keyframes ping {
  from {
    transform: scale(.35);
    opacity: .9;
  }

  to {
    transform: scale(2.3);
    opacity: 0;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  50% {
    transform: scale(1.08);
  }
}

@keyframes flow {
  to {
    stroke-dashoffset: -68;
  }
}

@keyframes shimmer {
  0%,
  100% {
    transform: translateY(0);
    opacity: .15;
  }

  50% {
    transform: translateY(-16px);
    opacity: .7;
  }
}

@keyframes twinkle {
  50% {
    opacity: .2;
  }
}

@keyframes float {
  50% {
    transform: translateY(-14px);
  }
}

@keyframes wave {
  from {
    transform: translateX(-6px);
    opacity: 0;
  }

  40% {
    opacity: 1;
  }

  to {
    transform: translateX(10px);
    opacity: 0;
  }
}

@keyframes drip {
  from {
    transform: translateY(-10px);
    opacity: 0;
  }

  30% {
    opacity: 1;
  }

  to {
    transform: translateY(26px);
    opacity: 0;
  }
}

@keyframes sway {
  from {
    transform: rotate(-2.5deg);
  }

  to {
    transform: rotate(2.5deg);
  }
}

@keyframes ripple {
  from {
    transform: scale(.4);
    opacity: .8;
  }

  to {
    transform: scale(1.6);
    opacity: 0;
  }
}

@keyframes tank {
  0%,
  100% {
    transform: scaleY(.25);
  }

  50% {
    transform: scaleY(1);
  }
}

/* ---------- Films section ---------- */

.theatre {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  background: radial-gradient(120% 60% at 12% 0%, #16405f 0%, var(--navy) 55%, var(--navy-3) 100%);
  color: var(--on-dark);
}

.theatre h2,
.theatre h3 {
  color: var(--white);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-head h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  font-weight: 850;
  letter-spacing: -.02em;
}

.section-head p {
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
}

.theatre .section-head p {
  color: var(--on-dark-muted);
}

.film-list {
  display: grid;
  gap: clamp(3.5rem, 8vw, 6rem);
}

.film-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem 3.5rem;
  align-items: center;
}

.film-copy h3 {
  margin-bottom: .75rem;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -.015em;
}

.film-copy p {
  color: var(--on-dark-muted);
}

@media (min-width: 62em) {
  .film-row {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .film-row.is-flipped {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .film-row.is-flipped .film-copy {
    order: 2;
  }
}

/* ---------- Dreams section ---------- */

.dreams {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  background: var(--white);
}

.dream-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dream {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.dream-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  background: var(--sky);
}

.dream-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: .55rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.dream-body h3 {
  font-size: 1.375rem;
  font-weight: 800;
}

.dream-body p {
  margin: 0;
}

.dream-label {
  align-self: flex-start;
  padding: .15rem .6rem;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green-ink);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.dream-experts {
  margin-top: auto !important;
  padding-top: .85rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: .9375rem;
}

.dream-experts strong {
  color: var(--navy);
}

.dream--feature {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--on-dark);
}

.dream--feature h3 {
  color: var(--white);
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem);
}

.dream--feature .dream-label {
  background: rgba(95, 224, 207, .16);
  color: var(--ai);
}

.dream--feature .dream-body > p:not(.dream-experts) {
  color: var(--on-dark-muted);
  font-size: 1.0625rem;
}

.dream--feature .dream-experts {
  border-color: rgba(255, 255, 255, .18);
  color: var(--on-dark-muted);
}

.dream--feature .dream-experts strong {
  color: var(--white);
}

@media (min-width: 52em) {
  .dream-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .dream--feature {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }

  .dream--feature .dream-art {
    height: 100%;
    min-height: 22rem;
    aspect-ratio: auto;
  }

  .dream--feature .dream-body {
    justify-content: center;
    padding: clamp(1.5rem, 3vw, 2.5rem);
  }
}

/* ---------- What we do today ---------- */

.work {
  padding-block: clamp(3.5rem, 8vw, 6rem);
  background: var(--tint);
}

.work-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.work-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.work-icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  background: var(--tint);
  color: var(--navy);
}

.work-icon svg {
  width: 2.25rem;
  height: 2.25rem;
}

.work-card h3 {
  margin-bottom: .6rem;
  font-size: 1.3125rem;
  font-weight: 800;
}

.work-card > p {
  margin-bottom: 1.4rem;
}

.example {
  margin-top: auto;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  background: var(--mint);
}

.example-label {
  margin-bottom: .35rem;
  color: var(--green-ink);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.example-text {
  margin: 0;
}

.work-note {
  margin: 2rem 0 0;
}

@media (min-width: 62em) {
  .work-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 1.5rem;
  }

  /* Line up the headings, descriptions and example boxes across the three cards. */
  @supports (grid-template-rows: subgrid) {
    .work-card {
      display: grid;
      grid-row: span 4;
      grid-template-rows: subgrid;
      grid-template-columns: minmax(0, 1fr);
    }

    .example {
      margin-top: 0;
    }
  }
}

/* ---------- Experts section ---------- */

.experts {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.experts-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem 4rem;
  align-items: center;
}

.experts h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem);
  font-weight: 850;
  letter-spacing: -.02em;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.5rem 0 .75rem;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: .45rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--tint);
  color: var(--navy);
  font-size: .9375rem;
  font-weight: 650;
}

.chips li.is-team {
  border-color: #bfe2cf;
  background: var(--mint);
}

.chips-note {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--ink-muted);
  font-size: .9375rem;
}

.chips-note::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 1px solid #bfe2cf;
  border-radius: 50%;
  background: var(--mint);
}

.experts-art {
  aspect-ratio: 6 / 5;
  border-radius: var(--radius);
  background: var(--navy);
}

@media (min-width: 60em) {
  .experts-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* ---------- About and contact ---------- */

.about {
  padding-block: clamp(3rem, 7vw, 5rem);
  background: var(--tint);
}

.about h2,
.contact h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.875rem, 1.45rem + 1.7vw, 2.625rem);
  font-weight: 850;
  letter-spacing: -.02em;
}

.about-text {
  max-width: 40em;
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  line-height: 1.65;
}

.contact {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.contact-card {
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 40px -30px rgba(12, 37, 60, .45);
}

.contact-label {
  margin-bottom: .25rem;
  color: var(--ink-muted);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.contact-email {
  margin-bottom: 1.5rem;
  color: var(--navy);
  font-size: clamp(1.25rem, .95rem + 1.6vw, 1.875rem);
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
  -webkit-user-select: all;
  user-select: all;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.contact-actions .button {
  flex: 1 1 auto;
  min-width: 0;
}

.copy-status {
  margin: .75rem 0 0;
  color: var(--navy);
  font-weight: 600;
}

.copy-status:empty {
  margin: 0;
}

@media (min-width: 60em) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 2.5rem;
  background: var(--navy);
  color: rgba(255, 255, 255, .85);
  font-size: .9375rem;
}

.site-footer p {
  margin-bottom: .35rem;
}

.site-footer p:has(> a) {
  margin-bottom: 0;
}

.site-footer a {
  display: inline-block;
  padding-block: .75rem;
  color: var(--white);
  overflow-wrap: anywhere;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem 3rem;
}

.footer-inner > div {
  min-width: 0;
  max-width: 100%;
}

.footer-name {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
}

/* ---------- Page not found ---------- */

.error-page {
  padding-block: clamp(3rem, 10vw, 7rem);
}

.error-page h1 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
}

/* ---------- Motion preferences ---------- */

html.motion-off :is(.shot, .dream-art) *,
html.motion-off .seg-fill {
  animation: none !important;
}

html.motion-off :is(.shot, .caption) {
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html:not(.motion-on) :is(.shot, .dream-art) *,
  html:not(.motion-on) .seg-fill {
    animation: none !important;
  }

  html:not(.motion-on) :is(.shot, .caption) {
    transition: none !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (forced-colors: active) {
  :is(.film-stage, .dream-art, .experts-art) {
    forced-color-adjust: none;
  }
}
