.home-reference {
  --ground: #09090b;
  --surface: #101012;
  --ink: #f5f5f7;
  --secondary: #aaa9b1;
  --muted: #96949e;
  --line: #242328;
  --page-gutter: clamp(24px, 5.9vw, 86px);
  background: var(--ground);
  overflow-x: clip;
}
.home-reference .frame {
  width: min(calc(100% - 2 * var(--frame-gutter)), 1280px);
}
.wide-frame {
  width: min(calc(100% - clamp(40px, 8vw, 112px)), 1328px);
  margin-inline: auto;
}
.home-reference .site-header {
  min-height: clamp(72px, 6.2vw, 96px);
  border: 0;
  grid-template-columns: 1fr auto;
}
.home-reference .brand-logo {
  width: clamp(108px, 11.4vw, 164px);
}
.home-reference .header-navigation {
  gap: clamp(28px, 10vw, 150px);
}
.home-reference .main-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  gap: clamp(16px, 2.5vw, 36px);
}
.home-reference .main-nav a {
  padding: 7px 0;
  min-height: 44px;
  font-size: clamp(11px, 0.98vw, 14px);
  color: #bab8c0;
}
.home-reference .main-nav a[aria-current="page"] {
  background: #1a191e;
  padding-inline: 16px;
  border-radius: 24px;
  text-decoration: none;
  color: #f5f5f7;
}
.home-reference .header-contact {
  gap: 12px;
  padding: 10px 16px;
  font-size: clamp(11px, 0.92vw, 13px);
  background: transparent;
  border-color: #444149;
  border-radius: 24px;
  min-height: 44px;
  white-space: nowrap;
}
.link-arrow {
  width: 15px;
  height: 15px;
}
.home-reference .button {
  gap: 14px;
  min-height: clamp(42px, 3.5vw, 50px);
  padding: 12px clamp(18px, 1.9vw, 28px);
  font-size: clamp(12px, 0.98vw, 14px);
  font-weight: 500;
  border-radius: 10px;
}
.home-reference .button-light {
  background: #f3f3f4;
  color: #17171a;
}
.home-reference .button-light:hover {
  background: white;
}
.home-reference .button-quiet {
  background: #0d0d10;
  border-color: #2b292f;
}
.home-reference .button-quiet:hover {
  background: #151419;
  border-color: #5f5968;
}
.section-label {
  color: #e7e4ed;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0.26em;
}
.reference-hero {
  position: relative;
  padding-block: clamp(26px, 2.8vw, 40px) clamp(26px, 2.1vw, 32px);
  isolation: isolate;
}
.reference-hero-copy {
  position: relative;
  width: 54%;
  z-index: 2;
}
.reference-hero h1 {
  font-size: clamp(48px, 6.05vw, 86px);
  line-height: 0.99;
  letter-spacing: -0.035em;
  margin-top: 12px;
  white-space: nowrap;
  text-wrap: initial;
}
.reference-definition {
  font-size: clamp(13px, 1.2vw, 17px);
  line-height: 1.65;
  color: #c3c1ca;
  max-width: 555px;
  margin-top: 20px;
}
.reference-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.engineering-attributes {
  list-style: none;
  padding: 0;
  display: flex;
  gap: clamp(25px, 4.6vw, 66px);
  margin: clamp(26px, 2.5vw, 36px) 0 0;
}
.engineering-attributes li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: clamp(11px, 0.98vw, 14px);
  color: #bdbac3;
  white-space: nowrap;
}
.engineering-attributes svg {
  width: 21px;
  height: 21px;
  color: #a4a0ac;
}
.home-reference .sculpture {
  left: auto;
  right: -4%;
  top: -30px;
  bottom: -5px;
  width: 59%;
  overflow: hidden;
  z-index: 1;
}
.home-reference .sculpture::before {
  content: "";
  position: absolute;
  inset: 8% 2%;
  background: radial-gradient(ellipse at 48% 58%, #8870be13, transparent 57%);
  pointer-events: none;
}
.home-reference .sculpture canvas {
  mix-blend-mode: screen;
}
.home-reference .sculpture-fallback {
  opacity: 0.95;
}
.reference-motion {
  position: absolute;
  bottom: 16px;
  right: 0;
  z-index: 3;
  width: 44px;
  height: 44px;
  background: #101014;
  opacity: 0.7;
}
.reference-motion:hover,
.reference-motion:focus-visible {
  opacity: 1;
}
.reference-brands {
  border-block: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 2.6fr;
  gap: 44px;
  align-items: center;
  padding-block: 24px;
  margin-top: 12px;
}
.reference-brands > p {
  font-size: clamp(12px, 1.12vw, 16px);
  line-height: 1.55;
  color: #c4c1cb;
}
.project-wordmarks {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 26px;
  border-left: 1px solid var(--line);
  padding-left: clamp(24px, 5.5vw, 80px);
}
.project-wordmarks a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #9c98a5;
  transition: color 0.2s;
}
.project-wordmarks a:hover {
  color: #f5f5f7;
}
.wordmark-nostalgeek {
  font-size: clamp(17px, 2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.065em;
}
.wordmark-kvist {
  gap: 8px;
  font-size: clamp(16px, 1.65vw, 24px);
  font-weight: 400;
  letter-spacing: 0.03em;
}
.wordmark-kvist svg {
  width: 28px;
  height: 28px;
}
.wordmark-rapport {
  font-size: clamp(19px, 2.1vw, 30px);
  font-weight: 600;
  letter-spacing: -0.065em;
}
.project-wordmarks .more-projects {
  gap: 8px;
  font-size: clamp(11px, 0.9vw, 13px);
  white-space: nowrap;
}
.wordmark-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.engineering-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.engineering-card {
  border: 1px solid #222126;
  border-radius: 16px;
  background: linear-gradient(155deg, #101012, #0c0c0f);
  padding: clamp(18px, 2vw, 28px);
  min-height: clamp(138px, 15.2vw, 219px);
  transition:
    background 0.3s,
    border-color 0.3s,
    transform 0.3s;
}
.engineering-card:hover {
  border-color: #49414f;
  background: #121116;
  transform: translateY(-3px);
}
.engineering-card > svg {
  width: 27px;
  height: 27px;
  color: #d7d3df;
  margin-bottom: 16px;
}
.engineering-card h2 {
  font-family: var(--display);
  font-size: clamp(18px, 1.94vw, 28px);
  line-height: 1.15;
  font-weight: 400;
  letter-spacing: -0.035em;
}
.engineering-card p {
  font-size: clamp(12px, 1.05vw, 15px);
  line-height: 1.55;
  margin-top: 12px;
  color: #a9a6b1;
}
.reference-projects {
  display: grid;
  grid-template-columns: 0.72fr 1.8fr;
  gap: 52px;
  align-items: center;
  padding-block: 68px 24px;
}
.reference-projects h2,
.capabilities-heading h2,
.reference-conversation h2 {
  font-family: var(--display);
  font-size: clamp(38px, 4.2vw, 60px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.reference-projects h2 {
  margin-top: 16px;
}
.section-description {
  font-size: clamp(13px, 1.12vw, 16px);
  line-height: 1.65;
  color: #aaa6b3;
}
.reference-projects-copy .section-description {
  max-width: 29ch;
  margin-top: 24px;
}
.reference-projects-copy > .button {
  margin-top: 28px;
}
.project-carousel {
  min-width: 0;
  position: relative;
}
.project-deck {
  position: relative;
  perspective: 1400px;
  aspect-ratio: 2.3;
  min-height: 0;
  touch-action: pan-y;
}
.project-slide {
  position: absolute;
  width: 79%;
  inset: 0 auto 0 0;
  border: 1px solid #53465e;
  border-radius: 18px;
  overflow: hidden;
  background: #141118;
  transform-origin: 50% 50%;
  transition:
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.6s;
}
.project-slide[data-position="0"] {
  transform: translate3d(0, 0, 0) rotateY(-9deg) rotateZ(-3deg);
  opacity: 1;
  z-index: 3;
}
.project-slide[data-position="1"] {
  transform: translate3d(16%, 14px, -50px) rotateY(-9deg) rotateZ(-1deg)
    scale(0.97);
  opacity: 0.4;
  z-index: 2;
  border-color: #625c6c;
}
.project-slide[data-position="2"] {
  transform: translate3d(32%, 28px, -100px) rotateY(-9deg) rotateZ(1deg)
    scale(0.94);
  opacity: 0.2;
  z-index: 1;
  border-color: #625c6c;
}
.project-surface {
  display: block;
  height: 100%;
}
.project-surface > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.project-surface:focus-visible {
  outline-offset: -5px;
}
.nostal-preview {
  position: relative;
  width: 100%;
  height: 100%;
  color: #f5f0ff;
  background: #191020;
  overflow: hidden;
  container-type: inline-size;
}
.nostal-preview > img,
.nostal-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nostal-shade {
  background:
    linear-gradient(90deg, #17101dec 0%, #17101d80 42%, #130f1d10 76%),
    linear-gradient(0deg, #101016a0, transparent 55%);
}
.nostal-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 24px;
}
.nostal-brand {
  font-size: clamp(13px, 1.5vw, 22px);
  font-weight: 700;
  letter-spacing: -0.06em;
}
.nostal-header > div {
  display: flex;
  gap: 18px;
  font-size: 9px;
  color: #d6cbe3;
}
.nostal-ticket {
  background: #f4effa;
  color: #1c1523;
  border-radius: 20px;
  padding: 9px 13px;
  font-size: 9px;
  white-space: nowrap;
}
.nostal-copy {
  position: relative;
  padding: clamp(24px, 3vw, 44px) 24px 16px;
}
.nostal-copy h3 {
  font-size: clamp(27px, 3.3vw, 48px);
  line-height: 1.02;
  font-weight: 650;
  letter-spacing: -0.035em;
}
.nostal-copy > p {
  font-size: clamp(9px, 0.8vw, 12px);
  color: #dbd2e4;
  margin-top: 18px;
}
.nostal-tags {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.nostal-tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #faf0ff14;
  border: 1px solid #d9c3f016;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 9px;
}
.nostal-tags svg {
  width: 12px;
  height: 12px;
}
.project-carousel-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-right: 12px;
}
.project-pagination {
  display: flex;
  align-items: center;
  gap: 0;
}
.project-pagination button {
  width: 28px;
  height: 44px;
  background: transparent;
  border: 0;
  padding: 0;
  display: grid;
  place-items: center;
}
.project-pagination button::before {
  content: "";
  width: 5px;
  height: 5px;
  background: #8d8798;
  border-radius: 5px;
  transition:
    width 0.3s,
    background 0.3s;
}
.project-pagination button[aria-pressed="true"]::before {
  width: 23px;
  background: #f6f1fc;
}
.project-arrows {
  display: flex;
  gap: 10px;
}
.project-arrows button {
  width: 44px;
  height: 44px;
  border: 1px solid #514b59;
  background: #16141b;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.project-arrows button:hover {
  background: #25212c;
  border-color: #9d91ad;
}
.project-arrows svg {
  width: 18px;
  height: 18px;
}
.carousel-status {
  font-size: 12px;
  min-height: 1.6em;
  line-height: 1.6;
  color: #918a9e;
}
.reference-capabilities {
  position: relative;
  padding-top: 64px;
}
.wave-divider {
  position: absolute;
  top: -50px;
  width: 100%;
  height: 150px;
  pointer-events: none;
  opacity: 0.65;
}
.wave-divider canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.capabilities-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  position: relative;
}
.capabilities-heading h2 {
  margin-top: 18px;
}
.capabilities-heading > p {
  max-width: 350px;
}
.capability-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}
.capability-link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 18px;
  font-size: clamp(12px, 0.95vw, 14px);
  background: #0c0c0f;
  border: 1px solid #232127;
  border-radius: 14px;
  transition:
    border-color 0.25s,
    background 0.25s;
}
.capability-link svg {
  width: 26px;
  height: 26px;
  color: #d3cedc;
}
.capability-link:hover {
  border-color: #55465f;
  background: #121016;
}
.reference-conversation {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 36px;
  align-items: center;
  border: 1px solid #302a37;
  border-radius: 18px;
  background: #0d0b12;
  padding: 36px 40px;
  margin-top: 72px;
  overflow: hidden;
}
.reference-conversation::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse at 17% 0, #8061b323, transparent 60%);
}
.reference-conversation h2 {
  margin-top: 8px;
  font-size: clamp(38px, 3.8vw, 54px);
}
.reference-conversation > p {
  position: relative;
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.65;
  color: #b8b1c1;
  max-width: 44ch;
}
.conversation-wave {
  position: absolute;
  z-index: -1;
  inset: -45% 0 0;
  width: 100%;
  height: 210%;
  opacity: 0.65;
  pointer-events: none;
}
.reference-conversation > a {
  justify-self: end;
  white-space: nowrap;
}
.reference-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  padding-block: 34px;
  margin-top: 44px;
  border-top: 1px solid var(--line);
}
.reference-footer .brand-logo {
  width: 130px;
}
.reference-footer nav {
  display: flex;
  gap: 28px;
}
.reference-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  color: #aaa4b3;
}
.reference-footer nav a:hover {
  color: white;
}
.reference-footer > span {
  font-size: 12px;
  color: #87818f;
}
[data-reveal] {
  animation: reference-enter 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes reference-enter {
  from {
    opacity: 0.6;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@supports (animation-timeline: view()) {
  .engineering-card[data-reveal],
  .reference-projects-copy[data-reveal],
  .capabilities-heading[data-reveal] {
    animation-timeline: view();
    animation-range: entry 0% entry 90%;
  }
}
@media (max-width: 1100px) {
  .home-reference .header-navigation {
    gap: 28px;
  }
  .home-reference .header-contact {
    padding-inline: 12px;
    gap: 8px;
  }
  .engineering-grid {
    gap: 16px;
    margin-top: 30px;
  }
  .reference-projects {
    gap: 28px;
    padding-top: 68px;
  }
  .nostal-header {
    padding: 14px 18px;
    gap: 10px;
  }
  .nostal-header > div {
    gap: 10px;
    font-size: 8px;
  }
  .nostal-copy {
    padding: 26px 20px 14px;
  }
  .nostal-copy > p {
    margin-top: 14px;
  }
  .nostal-tags {
    margin-top: 16px;
  }
  .capability-links {
    gap: 12px;
  }
  .capability-link {
    padding: 14px 12px;
    gap: 9px;
    min-height: 66px;
  }
  .capability-link svg {
    width: 22px;
    height: 22px;
  }
  .reference-conversation {
    padding: 28px;
    gap: 24px;
  }
}
@media (max-width: 760px),
  (max-width: 960px) and (max-height: 500px) and (pointer: coarse) {
  .home-reference .site-header {
    min-height: 76px;
    grid-template-columns: 1fr auto;
  }
  .home-reference .brand-logo {
    width: 142px;
  }
  .home-reference .header-navigation {
    gap: 20px;
  }
  .home-reference .main-nav {
    position: static;
    transform: none;
    gap: 0;
  }
  .home-reference .main-nav a {
    font-size: 16px;
    padding: 14px 0;
    min-height: 52px;
  }
  .home-reference .main-nav a[aria-current="page"] {
    border-radius: 0;
    background: transparent;
    padding-inline: 0;
    text-decoration: underline;
  }
  .home-reference .header-contact {
    min-height: 48px;
    font-size: 14px;
    border-radius: 10px;
  }
}
@media (max-width: 760px) {
  .home-reference {
    --page-gutter: 24px;
  }
  .wide-frame {
    width: calc(100% - 48px);
  }
  .reference-hero {
    padding-top: 28px;
    padding-bottom: 18px;
    display: flex;
    flex-direction: column;
  }
  .reference-hero-copy {
    width: 100%;
  }
  .hero-label {
    font-size: 11px;
    letter-spacing: 0.2em;
  }
  .reference-hero h1 {
    font-size: clamp(45px, 11.6vw, 76px);
    line-height: 1.02;
    margin-top: 15px;
    white-space: normal;
  }
  .reference-definition {
    font-size: 16px;
    line-height: 1.7;
    margin-top: 24px;
    max-width: 42ch;
  }
  .reference-actions {
    gap: 12px;
    margin-top: 26px;
  }
  .home-reference .reference-actions .button {
    padding-inline: 17px;
    min-height: 48px;
    font-size: 13px;
  }
  .engineering-attributes {
    gap: 0;
    justify-content: space-between;
    margin-top: 30px;
  }
  .engineering-attributes li {
    white-space: normal;
    width: 30%;
    max-width: 140px;
    font-size: 11px;
    line-height: 1.55;
    gap: 9px;
  }
  .engineering-attributes svg {
    width: 20px;
    height: 20px;
  }
  .home-reference .sculpture {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: calc(100% + 24px);
    margin: 4px -12px 0;
    height: clamp(270px, 78vw, 430px);
  }
  .reference-motion {
    bottom: 12px;
    right: 0;
  }
  .reference-brands {
    display: block;
    margin-top: 0;
    padding-block: 23px 15px;
  }
  .reference-brands > p {
    font-size: 13px;
  }
  .project-wordmarks {
    border: 0;
    padding: 0;
    gap: 16px;
    margin-top: 14px;
    flex-wrap: wrap;
  }
  .project-wordmarks a {
    flex: none;
  }
  .wordmark-nostalgeek {
    font-size: 20px;
  }
  .wordmark-kvist {
    font-size: 17px;
  }
  .wordmark-rapport {
    font-size: 22px;
  }
  .project-wordmarks .more-projects {
    font-size: 12px;
  }
  .engineering-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
  }
  .engineering-card {
    padding: 20px 16px;
    min-height: 210px;
  }
  .engineering-card h2 {
    font-size: 22px;
  }
  .engineering-card p {
    font-size: 13px;
    line-height: 1.6;
  }
  .engineering-card > svg {
    width: 24px;
    height: 24px;
    margin-bottom: 14px;
  }
  .reference-projects {
    display: block;
    padding-block: 48px 24px;
  }
  .reference-projects h2,
  .capabilities-heading h2 {
    font-size: 42px;
    line-height: 1.04;
  }
  .reference-projects-copy .section-description {
    font-size: 15px;
    max-width: 37ch;
    margin-top: 20px;
  }
  .reference-projects-copy > .button {
    margin-top: 24px;
  }
  .project-carousel {
    margin-top: 38px;
  }
  .project-deck {
    min-height: 205px;
    aspect-ratio: 1.7;
  }
  .project-slide {
    border-radius: 13px;
    width: 86%;
  }
  .project-slide[data-position="1"] {
    transform: translate3d(8%, 9px, -40px) rotateY(-9deg) rotateZ(-1deg)
      scale(0.97);
  }
  .project-slide[data-position="2"] {
    transform: translate3d(16%, 18px, -80px) rotateY(-9deg) rotateZ(1deg)
      scale(0.94);
  }
  .nostal-header {
    padding: 12px;
    gap: 8px;
  }
  .nostal-brand {
    font-size: 14px;
  }
  .nostal-header > div {
    display: none;
  }
  .nostal-ticket {
    font-size: 7px;
    padding: 6px 8px;
  }
  .nostal-copy {
    padding: 24px 14px 12px;
  }
  .nostal-copy h3 {
    font-size: 29px;
  }
  .nostal-copy > p {
    font-size: 9px;
    max-width: 24ch;
    margin-top: 12px;
  }
  .nostal-tags {
    margin-top: 14px;
    gap: 6px;
  }
  .nostal-tags span {
    padding: 5px 6px;
    font-size: 7px;
  }
  .nostal-tags svg {
    width: 10px;
    height: 10px;
  }
  .project-carousel-controls {
    margin-top: 18px;
    padding: 0;
  }
  .carousel-status {
    font-size: 12px;
    margin-top: 3px;
  }
  .reference-capabilities {
    padding-top: 50px;
  }
  .wave-divider {
    top: -30px;
    height: 110px;
  }
  .capabilities-heading {
    display: block;
  }
  .capabilities-heading h2 {
    font-size: 39px;
    margin-top: 16px;
  }
  .capabilities-heading > p {
    font-size: 15px;
    max-width: 34ch;
    margin-top: 20px;
  }
  .capability-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 26px;
  }
  .capability-link {
    min-height: 74px;
    padding: 14px;
    font-size: 12px;
    gap: 10px;
  }
  .capability-link:last-child {
    grid-column: 1/-1;
  }
  .capability-link svg {
    width: 22px;
    height: 22px;
  }
  .reference-conversation {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
    padding: 28px 24px;
    margin-top: 42px;
  }
  .reference-conversation h2 {
    font-size: 46px;
  }
  .reference-conversation > p {
    font-size: 15px;
    line-height: 1.7;
  }
  .reference-conversation > .button {
    align-self: flex-start;
    margin-top: 2px;
    min-height: 48px;
    font-size: 14px;
  }
  .reference-footer {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
    margin-top: 34px;
    padding-block: 26px;
  }
  .reference-footer .brand-logo {
    width: 130px;
  }
  .reference-footer nav {
    gap: 0;
    justify-content: space-between;
    width: 100%;
    order: 2;
  }
  .reference-footer nav a {
    font-size: 12px;
  }
  .reference-footer > span {
    margin-left: auto;
    font-size: 11px;
  }
}
@media (max-width: 370px) {
  .home-reference {
    --page-gutter: 20px;
  }
  .wide-frame {
    width: calc(100% - 40px);
  }
  .reference-hero h1 {
    font-size: 41px;
  }
  .reference-actions {
    flex-direction: column;
  }
  .engineering-grid {
    grid-template-columns: 1fr;
  }
  .engineering-card {
    min-height: 0;
    padding: 24px;
  }
  .engineering-card h2 {
    font-size: 26px;
  }
  .engineering-card p {
    font-size: 14px;
  }
  .project-wordmarks {
    gap: 12px 20px;
  }
  .reference-projects h2 {
    font-size: 39px;
  }
  .capability-links {
    grid-template-columns: 1fr;
  }
  .capability-link:last-child {
    grid-column: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-reference *,
  .home-reference *::before {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .engineering-card:hover {
    transform: none;
  }
}

/* Preserve the reference proportions without transferring an intrinsic canvas ratio to the page width. */
.project-deck {
  width: 100%;
  max-width: 100%;
}
.reference-projects > *,
.reference-conversation > * {
  min-width: 0;
}
@media (min-width: 1101px) {
  .home-reference .site-header {
    min-height: 104px;
  }
  .reference-hero {
    min-height: 560px;
  }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .home-reference .site-header {
    min-height: 62px;
  }
  .reference-hero {
    padding-top: 22px;
    padding-bottom: 18px;
  }
  .reference-hero h1 {
    margin-top: 8px;
  }
  .reference-definition {
    margin-top: 14px;
    line-height: 1.6;
  }
  .reference-actions {
    margin-top: 18px;
  }
  .engineering-attributes {
    margin-top: 24px;
  }
  .engineering-attributes svg {
    width: 16px;
    height: 16px;
  }
  .engineering-attributes li {
    gap: 8px;
  }
  .reference-brands {
    padding-block: 18px;
    margin-top: 6px;
    gap: 28px;
  }
  .engineering-card {
    padding: 14px 16px;
  }
  .engineering-card h2 {
    font-size: 18px;
  }
  .engineering-card p {
    font-size: 12px;
    line-height: 1.5;
    margin-top: 8px;
  }
  .engineering-card > svg {
    width: 22px;
    height: 22px;
    margin-bottom: 8px;
  }
  .reference-projects {
    padding-block: 48px 16px;
  }
  .reference-projects-copy .section-description {
    font-size: 12px;
    line-height: 1.55;
    margin-top: 18px;
  }
  .reference-projects h2 {
    font-size: 34px;
  }
  .reference-capabilities {
    padding-top: 34px;
  }
  .reference-conversation {
    margin-top: 36px;
  }
}
@media (max-width: 760px) {
  .project-deck {
    min-height: 0;
    aspect-ratio: 1.6;
  }
}
@media (max-width: 370px) {
  .nostal-copy {
    padding-top: 14px;
  }
  .nostal-copy h3 {
    font-size: 27px;
  }
  .nostal-copy > p {
    margin-top: 8px;
  }
  .nostal-tags {
    margin-top: 10px;
  }
}

/* The interface in the project preview scales as one composition. */
.nostal-header {
  padding: 3.2cqw 4cqw;
  gap: 2cqw;
}
.nostal-brand {
  font-size: 3.8cqw;
}
.nostal-header > div {
  gap: 3cqw;
  font-size: 1.4cqw;
}
.nostal-ticket {
  padding: 1.3cqw 2cqw;
  font-size: 1.5cqw;
}
.nostal-copy {
  padding: 5.4cqw 4cqw 3cqw;
}
.nostal-copy h3 {
  font-size: 7.4cqw;
}
.nostal-copy > p {
  font-size: 1.8cqw;
  margin-top: 3cqw;
}
.nostal-tags {
  gap: 1.6cqw;
  margin-top: 3.4cqw;
}
.nostal-tags span {
  padding: 1.2cqw 1.6cqw;
  font-size: 1.6cqw;
}
.nostal-tags svg {
  width: 2cqw;
  height: 2cqw;
}
@media (min-width: 761px) and (max-width: 1100px) {
  .capability-links {
    margin-top: 24px;
  }
  .capability-link {
    min-height: 56px;
    padding-block: 12px;
    font-size: 11px;
  }
  .reference-conversation {
    padding: 22px 26px;
  }
}
@media (max-width: 760px) {
  .project-deck {
    aspect-ratio: 1.9;
  }
  .project-slide {
    width: 79%;
  }
  .project-slide[data-position="1"] {
    transform: translate3d(15%, 9px, -35px) rotateY(-9deg) rotateZ(-1deg)
      scale(0.97);
  }
  .project-slide[data-position="2"] {
    transform: translate3d(30%, 18px, -70px) rotateY(-9deg) rotateZ(1deg)
      scale(0.94);
  }
  .nostal-header {
    padding: 4cqw;
  }
  .nostal-brand {
    font-size: 5cqw;
  }
  .nostal-ticket {
    font-size: 2.3cqw;
    padding: 2cqw 2.6cqw;
  }
  .nostal-copy {
    padding: 5cqw 4cqw 2cqw;
  }
  .nostal-copy h3 {
    font-size: 10cqw;
  }
  .nostal-copy > p {
    font-size: 2.7cqw;
    margin-top: 3cqw;
  }
  .nostal-tags {
    margin-top: 4cqw;
  }
  .nostal-tags span {
    font-size: 2.3cqw;
    padding: 1.5cqw 2cqw;
  }
  .nostal-tags svg {
    width: 3cqw;
    height: 3cqw;
  }
}

@media (min-width: 761px) {
  .home-reference .mobile-menu[data-desktop] .header-navigation {
    display: flex;
    justify-content: flex-end;
  }
}
.carousel-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 761px) and (max-width: 1100px) {
  .reference-hero {
    padding-bottom: 8px;
  }
  .reference-hero h1 {
    line-height: 0.93;
  }
  .reference-definition {
    margin-top: 8px;
  }
  .reference-actions {
    margin-top: 16px;
  }
  .engineering-attributes {
    margin-top: 20px;
  }
  .reference-brands {
    padding-block: 16px;
  }
  .engineering-grid {
    margin-top: 24px;
  }
  .reference-projects {
    padding-block: 32px 4px;
  }
  .project-carousel-controls {
    margin-top: 10px;
  }
}

/* The surface starts after the carousel and fades before the reading layer. */
.wave-divider {
  top: 0;
  height: 110px;
  opacity: 0.55;
  mask-image: linear-gradient(
    to bottom,
    transparent,
    #000 18%,
    #000 72%,
    transparent
  );
}
.conversation-wave {
  opacity: 0.4;
}

@media (min-width: 761px) {
  .home-reference .sculpture canvas,
  .home-reference .sculpture-fallback {
    transform: translateX(7%);
  }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .reference-definition {
    max-width: 360px;
  }
}

/* A single document layer scrolls natively with its content on iOS. */
.home-reference {
  position: relative;
}
.particle-field {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  z-index: 2;
  pointer-events: none;
  visibility: hidden;
  contain: strict;
}
.home-reference[data-particles-live] .particle-field {
  visibility: visible;
}
.home-reference[data-particles-live] .particle-fallback {
  visibility: hidden;
}
.particle-fallback {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}
.reference-projects {
  position: relative;
}
.particle-bridge {
  position: absolute;
  inset: 6px 0 auto;
  height: clamp(28px, 3.2vw, 46px);
  overflow: hidden;
  opacity: 0.16;
  pointer-events: none;
}
@media (max-width: 760px) and (max-height: 700px) and (orientation: landscape) {
  .particle-bridge {
    height: 20px;
  }
}


/* The opening section fills the space below the persistent header. */
.home-reference .reference-hero {
  min-height: calc(100vh - var(--navigation-clearance, 104px));
  min-height: calc(100svh - var(--navigation-clearance, 104px));
  display: flex;
  align-items: center;
}
@media (max-width: 1100px) {
  .home-reference .reference-hero {
    min-height: calc(100vh - 76px);
    min-height: calc(100svh - 76px);
  }
}
@media (max-width: 760px), (max-width: 960px) and (max-height: 500px) and (pointer: coarse) {
  .home-reference .reference-hero {
    justify-content: center;
  }
}

/* Content stays visible without JavaScript and when reduced motion is selected. */
.home-reference [data-scroll-reveal] {
  animation: none;
}
@media (prefers-reduced-motion: no-preference) {
  .home-reference [data-scroll-reveal] {
    transition: opacity 480ms cubic-bezier(.2,.7,.2,1);
  }
  .home-reference [data-scroll-reveal].reveal-pending {
    opacity: 0;
  }
}


/* Give neighboring elements a small, bounded cadence as they enter view. */
@media (prefers-reduced-motion: no-preference) {
  .home-reference [data-scroll-reveal] {
    transition-duration: 400ms;
    transition-timing-function: cubic-bezier(.2,.7,.2,1);
  }
  .home-reference .engineering-grid > :nth-child(2),
  .home-reference .project-wordmarks > :nth-child(2),
  .home-reference .capability-links > :nth-child(2),
  .home-reference .reference-conversation > p { transition-delay: 65ms; }
  .home-reference .engineering-grid > :nth-child(3),
  .home-reference .project-wordmarks > :nth-child(3),
  .home-reference .capability-links > :nth-child(3),
  .home-reference .reference-conversation > a { transition-delay: 130ms; }
  .home-reference .engineering-grid > :nth-child(4),
  .home-reference .project-wordmarks > :nth-child(4),
  .home-reference .capability-links > :nth-child(4) { transition-delay: 195ms; }
  .home-reference .capability-links > :nth-child(5) { transition-delay: 260ms; }
  .home-reference .project-carousel { transition-delay: 85ms; }
  .home-reference [data-scroll-reveal]:focus-within { transition-delay: 0s; }
}
