/* Project invitation and editorial cards complete the page's visual rhythm. */
.reference-home .ref-project {
  margin: 8px clamp(18px,2vw,40px) 0;
  padding: clamp(38px,4vw,64px) 28px;
  border: 1px solid #24466c;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(90deg,#041225ed,#07213ddd),url('assets/hero-office.png') center 40%/cover;
}
body[data-page="home"] .reference-home .ref-project > .container {
  width: 100%;
  max-width: 1320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  text-align: center;
}
.reference-home .ref-project .ref-tag { padding: 6px 12px; font-size: 10px; letter-spacing: 1.4px; margin-bottom: 16px; border: 1px solid #35628b; background: #163655; }
.reference-home .ref-project h2 { font-size: clamp(30px,3vw,48px); line-height: 1.15; margin-bottom: 18px; letter-spacing: -.035em; }
.reference-home .ref-project p { font-size: 15px; line-height: 1.8; max-width: 560px; margin-inline: auto; color: #bbcee3; }
.reference-home .ref-project p br { display: none; }
.reference-home .project-right { text-align: center; }
.reference-home .project-right .button { padding: 16px 30px; font-size: 14px; box-shadow: 0 8px 25px #0088ff26; }
.reference-home .project-right > div { margin-top: 24px; gap: 25px; flex-wrap: wrap; justify-content: center; font-size: 12px; color: #bfd1e6; }
.reference-home .ref-blog { padding-block: 56px; }
.reference-home .ref-blog .ref-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto 32px;
  padding: 0;
}
.reference-home .ref-blog .ref-heading h2 { font-size: clamp(28px,2.5vw,42px); line-height: 1.18; }
.reference-home .ref-blog .ref-heading h2::after { display: none; }
.reference-home .ref-blog .ref-heading > p { margin: 0; max-width: 520px; font-size: 15px; line-height: 1.75; }
.reference-home .ref-blog .ref-heading .ref-tag { padding: 6px 12px; font-size: 10px; margin-bottom: 15px; }
.reference-home .ref-blog-grid { gap: 24px; }
.reference-home .ref-blog .article-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  border-radius: 18px;
  border: 1px solid #e0e9f5;
  box-shadow: 0 6px 24px #173b6808;
  transition: transform .25s,box-shadow .25s,border-color .25s;
}
.reference-home .ref-blog .article-card > img { width: 100%; height: clamp(180px,15vw,250px); object-fit: cover; transition: transform .5s ease; }
.reference-home .ref-blog .article-card > span { padding: 26px 26px 20px; flex: 1; background: #fff; position: relative; }
.reference-home .ref-blog .article-card strong { font-size: clamp(17px,1.3vw,22px); line-height: 1.45; letter-spacing: -.4px; }
.reference-home .ref-blog .article-card small { margin-top: 12px; font-size: 14px; line-height: 1.7; color: #60758f; }
.reference-home .ref-blog .article-card > b {
  position: static;
  align-self: flex-start;
  width: auto;
  height: auto;
  margin: 0 26px 24px;
  background: transparent;
  color: #075bdf;
  font-size: 0;
  line-height: 1.5;
}
.reference-home .ref-blog .article-card > b::after { content: 'Read article  →'; font-size: 13px; font-weight: 600; }
@media (hover:hover) {
  .reference-home .ref-blog .article-card:hover { transform: translateY(-5px); border-color: #afcdf5; box-shadow: 0 14px 30px #173b6814; }
  .reference-home .ref-blog .article-card:hover > img { transform: scale(1.035); }
}
@media (max-width: 700px) {
  .reference-home .ref-project { padding: 32px 20px; border-radius: 20px; }
  .reference-home .ref-project p { font-size: 13px; }
  .reference-home .project-right > div { gap: 12px 18px; font-size: 10px; }
  .reference-home .ref-blog { padding-block: 36px; }
  .reference-home .ref-blog .ref-heading > p { font-size: 14px; }
  .reference-home .ref-blog-grid { grid-template-columns: 1fr; gap: 18px; }
  .reference-home .ref-blog .article-card > img { height: 200px; }
  .reference-home .ref-blog .article-card > span { padding: 22px 22px 17px; }
  .reference-home .ref-blog .article-card > b { margin: 0 22px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .reference-home .ref-blog .article-card,
  .reference-home .ref-blog .article-card > img { transition: none; }
}

/* Center the process introduction to match the adjacent sections. */
.reference-home .ref-process { padding-block: 48px 36px; }
.reference-home .ref-process .ref-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto 34px;
  padding: 0;
}
.reference-home .ref-process .ref-heading h2 {
  font-size: clamp(28px, 2.5vw, 42px);
  line-height: 1.18;
  letter-spacing: -.035em;
}
.reference-home .ref-process .ref-heading h2::after { display: none; }
.reference-home .ref-process .ref-heading > p {
  max-width: 560px;
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
}
.reference-home .ref-process .ref-heading .ref-tag {
  margin-bottom: 15px;
  padding: 6px 12px;
  font-size: 10px;
}
@media (max-width: 700px) {
  .reference-home .ref-process { padding-block: 32px; }
  .reference-home .ref-process .ref-heading { gap: 13px; margin-bottom: 24px; }
  .reference-home .ref-process .ref-heading > p { font-size: 13px; }
}

/* Focused showcase sections: centered introductions and clearly grouped cards. */
.reference-home .showcase-section { padding-block: 56px; }
.reference-home .showcase-section .ref-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  margin: 0 auto 32px;
  padding: 0;
  max-width: 740px;
}
.reference-home .showcase-section .ref-heading h2 {
  font-size: clamp(28px, 2.5vw, 44px);
  line-height: 1.16;
  letter-spacing: -.04em;
}
.reference-home .showcase-section .ref-heading h2 br { display: none; }
.reference-home .showcase-section .ref-heading h2 br::after { content: ' '; }
.reference-home .showcase-section .ref-heading h2::after { display: none; }
.reference-home .showcase-section .ref-heading > p {
  max-width: 560px;
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
}
.reference-home .showcase-section .ref-heading .ref-tag {
  margin-bottom: 15px;
  padding: 6px 12px;
  background: #edf4ff;
  border: 1px solid #dce9ff;
  font-size: 10px;
}
.reference-home .ref-tech.showcase-section {
  margin-block: 16px 0;
  background: radial-gradient(ellipse at 50% 0, #e5f1ffb3, transparent 65%), #fff;
  border: 1px solid #e2ebf6;
  border-radius: 24px;
  box-shadow: 0 8px 30px #21457606;
  padding-bottom: 26px;
}
.reference-home .ref-tech .tech-motion-controls {
  margin: 0 28px 16px;
  justify-content: flex-end;
}
.reference-home .ref-tech .tech-motion-controls > span { display: none; }
.reference-home .ref-tech .tech-pause { font-size: 12px; padding: 9px 15px; }
.reference-home .ref-tech .tech-marquee { border: 0; background: transparent; padding: 0 0 18px; }
.reference-home .ref-tech .tech-group > div {
  width: 152px;
  min-height: 134px;
  margin-inline: 9px;
  justify-content: center;
  padding: 20px;
  background: #f9fbff;
  box-shadow: none;
  border: 1px solid #e7eef9;
  gap: 15px;
}
.reference-home .ref-tech .tech-group small { font-size: 13px; font-weight: 600; }
.reference-home .ref-tech .tech-round { background: #fff; box-shadow: 0 4px 13px #173b6808; }
.reference-home .ref-industries .industry-grid {
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 18px;
}
.reference-home .ref-industries .industry-grid > a {
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  gap: 18px;
  padding: 26px 22px;
  min-height: 123px;
  border: 1px solid #e2eaf6;
  border-radius: 16px;
  box-shadow: 0 5px 20px #173b6805;
}
.reference-home .ref-industries .industry-icon {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  background: #edf4ff;
  border-radius: 14px;
  transition: background .25s, transform .25s;
}
.reference-home .ref-industries .industry-copy { text-align: left; min-width: 0; }
.industry-copy strong { display: block; font-size: 16px; font-weight: 650; color: #152640; margin-bottom: 7px; }
.industry-copy small { display: block; color: #687b95; font-size: 12px; line-height: 1.55; }
.industry-arrow { color: #7a91b2; font-weight: 400; font-size: 20px; margin-left: auto; align-self: flex-start; }
.reference-home .ref-difference.showcase-section {
  background: radial-gradient(ellipse at 50% 0, #143a62, transparent 65%), #091a30;
  border: 1px solid #233b56;
  border-radius: 24px;
  padding: 48px 32px 36px;
  margin-bottom: 40px;
}
.reference-home .ref-difference.showcase-section .ref-heading h2 { color: #f5f9ff; }
.reference-home .ref-difference.showcase-section .ref-heading p { color: #a8bdd6; }
.reference-home .ref-difference.showcase-section .ref-tag { background: #142e4a; border-color: #2a4766; color: #8fcaff; }
.reference-home .ref-difference .difference-grid { gap: 18px; }
.reference-home .ref-difference .difference-grid article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 21px;
  padding: 28px;
  border: 1px solid #ffffff18;
  border-radius: 16px;
  background: #ffffff06;
  box-shadow: none;
  min-height: 210px;
}
.reference-home .ref-difference .difference-grid article > span { background: #163657; border: 1px solid #2d5075; border-radius: 13px; padding: 12px; color: #77bbff; }
.reference-home .ref-difference .difference-grid h3 { color: #f2f7ff; font-size: 18px; margin-bottom: 10px; }
.reference-home .ref-difference .difference-grid p { color: #a8bad1; font-size: 14px; line-height: 1.7; max-width: 32ch; }
@media (hover:hover) {
  .reference-home .ref-industries .industry-grid > a:hover .industry-icon { transform: rotate(-5deg); background: #daeaff; }
  .reference-home .ref-difference .difference-grid article:hover { background: #ffffff0d; border-color: #5283b2; transform: translateY(-5px); }
}
@media (max-width: 1200px) {
  .reference-home .ref-industries .industry-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .reference-home .ref-difference .difference-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .reference-home .showcase-section { padding-block: 36px; }
  .reference-home .showcase-section .ref-heading { padding-inline: 12px; gap: 13px; margin-bottom: 25px; }
  .reference-home .showcase-section .ref-heading > p { font-size: 13px; }
  .reference-home .ref-tech .tech-group > div { width: 128px; min-height: 125px; }
  .reference-home .ref-tech .tech-motion-controls { margin-inline: 18px; }
  .reference-home .ref-industries .industry-grid { grid-template-columns: 1fr; gap: 12px; }
  .reference-home .ref-industries .industry-grid > a { padding: 20px; min-height: 104px; }
  .reference-home .ref-difference.showcase-section { padding: 32px 18px 20px; border-radius: 20px; }
  .reference-home .ref-difference .difference-grid { grid-template-columns: 1fr; gap: 12px; }
  .reference-home .ref-difference .difference-grid article { min-height: 0; padding: 22px; flex-direction: row; gap: 16px; }
  .reference-home .ref-difference .difference-grid h3 { font-size: 16px; }
  .reference-home .ref-difference .difference-grid p { font-size: 13px; }
}

/* Consistent cards: readable copy, aligned content, and restrained movement. */
.reference-home .ref-about { gap: clamp(22px, 2.5vw, 46px); align-items: stretch; }
.reference-home .ref-about > div:first-child { align-self: center; }
.reference-home .ref-about p { max-width: 46ch; font-size: 13px; line-height: 1.7; }
.reference-home .mission-stack p { font-size: 12px; line-height: 1.55; }
.reference-home .mission-stack h3 { font-size: 14px; }
.reference-home .ref-steps { gap: 18px; }
.reference-home .ref-steps article,
.reference-home .industry-grid > a,
.reference-home .difference-grid article,
.reference-home .mission-stack article {
  border: 1px solid #e0eaf7;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 18px #173b6810;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.reference-home .ref-steps article { padding: 22px; }
.reference-home .step-top > b { transform: none; border: none; background: #eef5ff; }
.reference-home .ref-steps h3 { font-size: 16px; margin-block: 7px; }
.reference-home .ref-steps p { font-size: 13px; line-height: 1.65; max-width: 27ch; }
.reference-home .industry-grid > a { min-height: 110px; justify-content: center; gap: 13px; }
.reference-home .industry-grid span { font-size: 12px; }
.reference-home .difference-grid article { padding: 20px; align-items: flex-start; }
.reference-home .difference-grid h3 { font-size: 14px; line-height: 1.4; }
.reference-home .difference-grid p { font-size: 12px; line-height: 1.6; }
.reference-home .picture-card { height: auto; min-height: 230px; border-radius: 14px; }
.reference-home .picture-copy { padding: 18px; width: 76%; }
.reference-home .picture-card h3 { font-size: 16px; line-height: 1.3; max-width: 220px; }
.reference-home .picture-card p { font-size: 12px; line-height: 1.6; max-width: 22ch; margin-bottom: 16px; }
.reference-home .learn { font-size: 11px; }
.reference-home .article-card { border-radius: 12px; }
.reference-home .article-card strong { font-size: 13px; line-height: 1.5; }
.reference-home .article-card small { font-size: 11px; }
.reference-home .article-card img { height: 120px; }
.reference-home .tech-group > div {
  flex-shrink: 0;
  margin-inline: 7px;
  padding: 18px 12px;
  border: 1px solid #e1eafa;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 12px #173b680b;
}
@media (hover: hover) {
  .reference-home .ref-steps article:hover,
  .reference-home .industry-grid > a:hover,
  .reference-home .difference-grid article:hover,
  .reference-home .mission-stack article:hover {
    transform: translateY(-4px);
    border-color: #b1d1ff;
    box-shadow: 0 12px 28px #173b6814;
  }
}
.card-enter { animation: card-arrive .55s cubic-bezier(.2,.65,.3,1) both; animation-delay: var(--card-delay, 0ms); }
@keyframes card-arrive { from { opacity: .25; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1100px) {
  .reference-home .picture-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .reference-home .ref-steps { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .reference-home .industry-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .reference-home .ref-about { grid-template-columns: 1fr; }
  .reference-home .team-photo { min-height: 240px; }
  .reference-home .ref-about h2 { font-size: 28px; }
  .reference-home .ref-steps { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .reference-home .ref-steps article { padding: 17px; }
  .reference-home .ref-steps p { font-size: 12px; }
  .reference-home .picture-copy { padding: 14px; width: 100%; }
  .reference-home .picture-card h3 { font-size: 14px; max-width: 165px; }
  .reference-home .picture-card p { font-size: 11px; max-width: 18ch; }
  .reference-home .picture-card { min-height: 245px; }
  .reference-home .industry-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .reference-home .difference-grid { grid-template-columns: 1fr; }
  .reference-home .difference-grid article { padding: 18px; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  .card-enter { animation: none; }
  .reference-home .ref-steps article,
  .reference-home .industry-grid > a,
  .reference-home .difference-grid article,
  .reference-home .mission-stack article { transition: none; }
}

/* Section headings and the continuous technology showcase. */
.reference-home .ref-heading {
  padding-top: 12px;
  margin-bottom: 28px;
}
.reference-home .ref-heading h2 {
  font-size: clamp(26px, 2.2vw, 40px);
  line-height: 1.18;
  letter-spacing: -.035em;
  font-weight: 800;
  color: #10213e;
  text-wrap: balance;
}
.reference-home .ref-heading h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 16px;
  border-radius: 4px;
  background: linear-gradient(90deg, #075bff, #00c5ee);
}
.reference-home .ref-heading .ref-tag {
  background: #eaf2ff;
  border: 1px solid #dceaff;
  padding: 5px 11px;
  letter-spacing: 1.5px;
  font-size: 9px;
  margin-bottom: 12px;
}
.reference-home .ref-heading > p {
  font-size: clamp(12px, .9vw, 15px);
  line-height: 1.75;
  max-width: 480px;
  color: #59708f;
}
.ref-process, .ref-tech, .ref-industries, .ref-difference { padding-block: 24px; }
.tech-motion-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: -8px 0 10px;
  font-size: 11px;
  color: #59708f;
}
.tech-pause {
  border: 1px solid #d6e5fa;
  border-radius: 20px;
  background: white;
  color: #1654bb;
  padding: 7px 13px;
  font-size: 11px;
  white-space: nowrap;
}
.tech-pause:hover { background: #edf5ff; }
.tech-marquee {
  overflow: hidden;
  padding-block: 14px 18px;
  border-block: 1px solid #e1edfc;
  background: linear-gradient(180deg, #ffffffb3, #f3f9ff80);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.tech-track {
  display: flex;
  width: max-content;
  animation: technology-scroll 36s linear infinite;
}
.ref-tech-grid.tech-group {
  display: flex;
  flex: 0 0 auto;
  gap: 0;
}
.tech-group > div { width: clamp(108px, 8.5vw, 168px); padding-block: 8px; gap: 13px; }
.tech-group .tech-round { width: 59px; height: 59px; border: 1px solid #e1edfc; box-shadow: 0 5px 16px #1b5cb312; }
.tech-group small { font-size: 11px; font-weight: 500; }
.tech-marquee:hover .tech-track, .tech-marquee.is-paused .tech-track { animation-play-state: paused; }
@keyframes technology-scroll { to { transform: translateX(-50%); } }
@media (max-width: 700px) {
  .reference-home .ref-heading { margin-bottom: 22px; }
  .reference-home .ref-heading h2::after { margin-top: 12px; width: 42px; height: 3px; }
  .tech-motion-controls > span { max-width: 180px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .tech-track { animation: none; width: 100%; }
  .tech-group[aria-hidden="true"] { display: none; }
  .ref-tech-grid.tech-group { flex-wrap: wrap; justify-content: center; width: 100%; }
  .tech-marquee { mask-image: none; }
  .tech-pause { display: none; }
}

/* Fill wide screens below the hero, with a small responsive edge gutter. */
body[data-page="home"] .reference-home > .container:not(.ref-hero-inner),
body[data-page="home"] .wave-sections > .container,
body[data-page="home"] .ref-project > .container,
body[data-page="home"] .footer > .container {
  width: calc(100% - clamp(36px, 4vw, 80px));
  max-width: none;
}

/* The homepage hero follows the full reference composition at a 2.5:1 ratio. */
body[data-page="home"] .header {
  position: absolute;
  inset: 0 0 auto;
  background: rgba(0, 7, 14, .78);
  border-bottom: 1px solid #ffffff0b;
}
body[data-page="home"] .nav {
  width: 88%;
  max-width: 1760px;
  height: clamp(76px, 6.1vw, 112px);
}
body[data-page="home"] .nav nav { gap: clamp(18px, 2vw, 38px); }
body[data-page="home"] .nav nav a { font-size: clamp(10px, .75vw, 14px); }
body[data-page="home"] .brand > span:last-child {
  display: block;
  width: 158px;
  height: 40px;
  background: url('assets/logo.png') -65px -116px / 290px auto no-repeat;
  font-size: 0;
  filter: brightness(1.35) drop-shadow(0 0 1px #bce8ff80);
}
body[data-page="home"] .brand > span:last-child * { display: none; }
.ref-hero {
  background-image: linear-gradient(90deg, #010a1255, transparent 50%), url('assets/hero-reference.png');
  background-position: center;
  background-size: cover;
}
.ref-hero-inner {
  width: 88%;
  max-width: 1760px;
  height: clamp(530px, 39.8vw, 830px);
  min-height: 0;
  display: block;
}
.ref-hero-copy {
  width: 45%;
  padding: clamp(115px, 8.5vw, 170px) 0 25px;
}
.hero-kicker { font-size: clamp(8px, .7vw, 12px); margin-bottom: clamp(16px, 1.5vw, 28px); }
.ref-hero h1 {
  font-size: clamp(34px, 3.4vw, 68px);
  line-height: 1.07;
  letter-spacing: -.035em;
  margin-bottom: clamp(18px, 1.5vw, 28px);
  white-space: nowrap;
  text-shadow: 0 2px 6px #0005;
}
.ref-hero-copy > p {
  max-width: 96%;
  font-size: clamp(12px, .96vw, 18px);
  line-height: 1.48;
  margin-bottom: clamp(22px, 2vw, 36px);
}
.ref-actions { gap: 26px; }
.ref-actions .button { font-size: clamp(11px, .8vw, 14px); padding: 15px 28px; }
.ref-actions .button-outline { padding: 12px 23px; }
.hero-assurances { margin-top: clamp(28px, 2.4vw, 46px); gap: 20px; max-width: none; }
.hero-assurances strong { font-size: clamp(13px, 1.15vw, 21px); }
.hero-assurances small { font-size: clamp(8px, .63vw, 11px); }
.hero-assurances svg { width: clamp(25px, 2.3vw, 39px); height: clamp(25px, 2.3vw, 39px); }
.ref-hero-visual { display: block; position: absolute; inset: 0; pointer-events: none; }
.hero-badges { inset: 0; display: block; }
.hero-badge {
  position: absolute;
  width: 16%;
  min-width: 0;
  min-height: clamp(48px, 4.7vw, 83px);
  padding: clamp(10px, 1vw, 18px);
  gap: clamp(8px, .8vw, 15px);
  font-size: clamp(10px, .83vw, 15px);
  background: linear-gradient(110deg, #7896b75c, #131c27d9);
  border: 1px solid #cce4fb50;
  border-radius: 9px;
  box-shadow: 0 5px 16px #0006, inset 0 1px 0 #ffffff21;
  pointer-events: auto;
}
.hero-badge svg { width: clamp(27px, 2.7vw, 45px); height: clamp(27px, 2.7vw, 45px); }
.badge-0 { left: 47%; top: 26%; }
.badge-2 { left: 46.5%; top: 42%; }
.badge-4 { left: 46%; top: 58%; }
.badge-1 { left: 77%; top: 29%; width: 13.5%; }
.badge-3 { left: 78%; top: 45%; width: 13.5%; }
.badge-5 { left: 79%; top: 61%; width: 13.5%; }
/* The new scene contains the physical logo, with the wall's perspective and light. */
.ref-hero > .wall-logo { display: none; }
@media (min-width: 951px) and (max-width: 1250px) {
  body[data-page="home"] .nav { width: 90%; }
  body[data-page="home"] .nav nav { gap: 15px; }
  .ref-hero-inner { width: 90%; }
  .ref-hero { background-size: 100% 100%; }
  .ref-hero-inner { height: 46vw; }
  .ref-hero-copy { width: 45%; padding-top: 100px; }
  .ref-hero h1 { font-size: 3.4vw; }
  .ref-hero-copy > p { font-size: 11px; margin-bottom: 19px; }
  .ref-actions { gap: 16px; }
  .ref-actions .button { padding: 12px 19px; font-size: 10px; }
  .ref-actions .button-outline { padding: 9px 16px; }
  .hero-assurances { gap: 12px; margin-top: 27px; }
  .hero-assurances strong { font-size: 11px; white-space: nowrap; }
  .hero-assurances small { font-size: 7px; }
  .hero-badge { font-size: 9px; }
}
@media (max-width: 950px) {
  body[data-page="home"] .nav { height: 76px; width: calc(100% - 36px); }
  body[data-page="home"] .brand > span:last-child { width: 145px; }
  .ref-hero-inner { width: calc(100% - 48px); height: auto; min-height: 580px; }
  .ref-hero-copy { width: 67%; max-width: 560px; padding: 120px 0 38px; }
  .ref-hero h1 { font-size: clamp(34px, 4.5vw, 43px); }
  .ref-hero-copy > p { font-size: 14px; max-width: 465px; }
  .ref-hero-visual { display: none; }
  .ref-hero { background-image: linear-gradient(90deg,#010a12c9,#010a1240),url('assets/hero-reference.png'); background-position: 60% center; }
  .hero-assurances { gap: 12px; }
  .hero-assurances strong { font-size: 13px; }
  .hero-assurances small { font-size: 8px; }
}
@media (max-width: 700px) {
  body[data-page="home"] .nav nav { top: 76px; }
  body[data-page="home"] .nav nav a { font-size: 13px; }
  .ref-hero-inner { width: calc(100% - 36px); min-height: 530px; }
  .ref-hero-copy { width: 100%; max-width: none; padding: 112px 0 32px; }
  .ref-hero h1 { font-size: clamp(29px, 6.5vw, 44px); white-space: normal; margin-bottom: 20px; }
  .ref-hero-copy > p { font-size: 12px; max-width: 440px; margin-bottom: 24px; }
  .ref-hero { background-position: 63% center; }
  .ref-actions { gap: 14px; }
  .ref-actions .button { font-size: 10px; padding: 12px 18px; }
  .ref-actions .button-outline { padding: 9px 13px; }
  .hero-assurances { margin-top: 28px; gap: 8px; }
  .hero-assurances strong { font-size: 11px; }
  .hero-assurances small { font-size: 7px; }
  .hero-assurances svg { width: 21px; height: 23px; }
}

/* About and services use the same deliberate spacing as the showcase panels. */
.reference-home .ref-about {
  padding-block: 48px;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 32px;
  align-items: stretch;
}
.reference-home .ref-about > div:first-child {
  padding: 26px;
  border: 1px solid #e3ecf8;
  border-radius: 18px;
  background: #fff;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.reference-home .ref-about h2 { font-size: clamp(27px,2.1vw,36px); line-height: 1.2; margin-bottom: 18px; }
.reference-home .ref-about > div:first-child p { font-size: 14px; line-height: 1.8; max-width: 46ch; margin-bottom: 23px; }
.reference-home .ref-about .team-photo { min-height: 320px; border-radius: 18px; }
.reference-home .ref-about .team-photo > img { object-position: center 45%; }
.reference-home .ref-about .team-photo > span { padding: 22px; font-size: 14px; }
.reference-home .ref-about .mission-stack { gap: 14px; }
.reference-home .ref-about .mission-stack article { padding: 22px; gap: 18px; }
.reference-home .ref-services { padding-block: 8px 48px; }
.reference-home .ref-services .ref-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  margin: 0 auto 32px;
  max-width: 820px;
}
.reference-home .ref-services .ref-heading h2 { font-size: clamp(28px,2.5vw,42px); line-height: 1.18; }
.reference-home .ref-services .ref-heading h2::after { display: none; }
.reference-home .ref-services .ref-heading > p { margin: 0; max-width: 550px; font-size: 15px; line-height: 1.75; }
.reference-home .ref-services .ref-outline { display: inline-flex; padding: 11px 21px; font-size: 12px; }
.reference-home .ref-services .picture-grid { gap: 22px; }
.reference-home .ref-services .picture-card {
  min-height: 280px;
  border-radius: 18px;
  border: 1px solid #dfebf7;
  box-shadow: 0 5px 20px #183d6b08;
}
.reference-home .ref-services .picture-card::after {
  background: linear-gradient(90deg,#fff 0%,#fffffffa 38%,#ffffffe8 52%,#ffffff20 100%);
}
.reference-home .ref-services .picture-copy { width: 78%; padding: 24px; }
.reference-home .ref-services .ref-icon { padding: 11px; border-radius: 13px; margin-bottom: 16px; }
.reference-home .ref-services .picture-card h3 { font-size: 18px; line-height: 1.3; margin-bottom: 12px; max-width: 240px; }
.reference-home .ref-services .picture-card p { font-size: 14px; line-height: 1.65; max-width: 25ch; margin-bottom: 23px; }
.reference-home .ref-services .learn { font-size: 12px; padding-top: 4px; gap: 12px; }
@media (max-width: 1200px) {
  .reference-home .ref-about { grid-template-columns: 1fr 1fr; gap: 22px; }
  .reference-home .ref-about .mission-stack { grid-column: 1/-1; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .reference-home .ref-services .picture-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .reference-home .ref-about { grid-template-columns: 1fr; padding-block: 28px; gap: 16px; }
  .reference-home .ref-about > div:first-child { padding: 24px; }
  .reference-home .ref-about .team-photo { min-height: 260px; }
  .reference-home .ref-about .mission-stack { grid-template-columns: 1fr; }
  .reference-home .ref-services .ref-heading { gap: 14px; margin-bottom: 24px; }
  .reference-home .ref-services .ref-heading > p { font-size: 14px; }
  .reference-home .ref-services .picture-grid { grid-template-columns: 1fr; gap: 16px; }
  .reference-home .ref-services .picture-card { min-height: 260px; }
  .reference-home .ref-services .picture-copy { width: 80%; padding: 22px; }
  .reference-home .ref-services .picture-card p { max-width: 23ch; }
}
