@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root{
  --ink:#111;
  --paper:#f4f2ed;
  --white:#fff;
  --acid:#f3f566;
  --grey:#6f706b;
  --line:rgba(17,17,17,.18);
  --shadow:0 24px 70px rgba(0,0,0,.18);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:84px}
body{margin:0;background:var(--paper);color:var(--ink);font-family:'Space Grotesk',Arial,sans-serif;line-height:1.45}
button,input,textarea{font:inherit}
button,a{touch-action:manipulation}
a{color:inherit;text-decoration:none}
img{max-width:100%}

/* Header */
.site-header{position:fixed;z-index:40;top:0;left:0;right:0;height:84px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:28px;padding:0 28px;color:#fff;background:linear-gradient(to bottom,rgba(0,0,0,.72),transparent);transition:height .25s,background .25s}
.site-header.scrolled{height:70px;background:rgba(10,10,10,.96);backdrop-filter:blur(12px)}
.brand img{width:190px;display:block}
.site-header nav{display:flex;justify-content:center;align-items:center;gap:32px;font-size:.82rem;font-weight:600;text-transform:uppercase;letter-spacing:.1em}
.site-header nav a{position:relative;color:#fff;opacity:.92}
.site-header nav a:after{content:'';position:absolute;left:0;right:100%;bottom:-7px;height:2px;background:var(--acid);transition:right .25s}
.site-header nav a:hover{color:var(--acid);opacity:1}
.site-header nav a:hover:after{right:0}

.button{border:0;padding:14px 20px;text-transform:uppercase;letter-spacing:.08em;font-size:.75rem;font-weight:700;cursor:pointer;transition:transform .2s,background .2s,color .2s}
.button:hover{transform:translateY(-2px)}
.button-accent{background:var(--acid);color:#111}
.button-alt{background:#111;color:var(--acid)}
.button-ghost{border:1px solid rgba(255,255,255,.6);color:#fff;background:transparent}
.button-dark{background:#111;color:#fff}
.button-light{background:#fff;color:#111}
.text-button{border:0;background:none;padding:0;font-weight:700;text-transform:uppercase;letter-spacing:.08em;cursor:pointer}

/* Hero */
.hero{min-height:100svh;position:relative;display:flex;align-items:flex-end;color:#fff;background:#111;overflow:hidden;padding-bottom:220px}
/* .hero-media{position:absolute;inset:0;background:url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=2400&q=88') center/cover;transform:scale(1.03)} */
.hero-media {position: absolute;inset: 0;overflow: hidden;}
.hero-video {width: 100%;height: 100%;display: block;object-fit: cover;object-position: center;}
.hero-scrim{position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.88) 0%,rgba(0,0,0,.54) 50%,rgba(0,0,0,.18) 100%),linear-gradient(to top,rgba(0,0,0,.78),transparent 58%)}
.hero-content{position:relative;z-index:2;width:min(1180px,calc(100% - 56px));margin:0 auto;padding:170px 0 74px}
.eyebrow{margin:0 0 18px;font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.16em}
.hero h1,.section-heading h2,.story-copy h2,.cta-section h2{font-size:clamp(3.2rem,7.2vw,8rem);line-height:.86;letter-spacing:-.055em;text-transform:uppercase;margin:0;max-width:13ch}
.hero-copy{font-size:clamp(1.05rem,1.5vw,1.4rem);max-width:650px;margin:30px 0}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap}
.hero-title{color: #f3f566 !important;}

/* Hero service dock */
.hero-service-dock{position:absolute;z-index:4;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));background:rgba(10,10,10,.9);border-top:1px solid rgba(255,255,255,.22);backdrop-filter:blur(12px);}
.hero-service-dock a{min-height:220px;padding:20px 18px 18px;display:flex;flex-direction:column;border-right:1px solid rgba(255,255,255,.16);color:#fff;transition:background .2s,color .2s;}
.hero-service-dock a:last-child{border-right:0;}
.hero-service-dock a:hover{background:var(--acid);color:#111;}
.hero-service-dock span{font-size:.63rem;letter-spacing:.14em;opacity:.62}
.hero-service-dock strong{margin-top:auto;margin-bottom:7px;font-size:.92rem;line-height:1.05;text-transform:uppercase;letter-spacing:.015em;}
.hero-service-dock em{margin-bottom:auto;font-size:.62rem;font-style:normal;text-transform:uppercase;letter-spacing:.11em;opacity:.72;}

/* Detailed hero service dock: keep the rail quiet until interaction */
.hero-service-dock-detailed a {
  align-content: start;
}

.hero-service-dock-detailed small {
  display: block;
  margin-top: .55rem;
  max-width: 28ch;
  font-size: .72rem;
  line-height: 1.35;
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(6px);
  transition: opacity .22s ease, max-height .3s ease, transform .3s ease;
}

.hero-service-dock-detailed em {
  margin-top: 0;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(6px);
  transition: opacity .22s ease, max-height .3s ease, transform .3s ease, margin-top .3s ease;
}

.hero-service-dock-detailed strong {
  transition: transform .3s ease;
}

.hero-service-dock-detailed a:hover small,
.hero-service-dock-detailed a:focus-visible small {
  opacity: .82;
  max-height: 5rem;
  transform: translateY(0);
}

.hero-service-dock-detailed a:hover em,
.hero-service-dock-detailed a:focus-visible em {
  opacity: .72;
  max-height: 2rem;
  margin-top: .75rem;
  transform: translateY(0);
}

.hero-service-dock-detailed a:hover strong,
.hero-service-dock-detailed a:focus-visible strong {
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .hero-service-dock-detailed small {
    max-width: none;
    opacity: .78;
    max-height: none;
    transform: none;
  }

  .hero-service-dock-detailed em {
    opacity: .72;
    max-height: none;
    margin-top: .75rem;
    transform: none;
  }
}

/* Section arrows */
.section,.story-stack{position:relative}
.section-arrow{position:absolute;z-index:6;right:28px;bottom:234px;display:flex;align-items:center;gap:12px;padding:0;border:0;background:transparent;color:#fff;font-size:1.55rem;cursor:pointer;transition:transform .2s,color .2s}
.section-arrow:hover{transform:translateY(4px);color:var(--acid)}
.section-arrow span{font-size:.64rem;font-weight:700;text-transform:uppercase;letter-spacing:.13em}
.section-arrow.dark-arrow{right:28px;bottom:26px;color:#111}
.section-arrow.dark-arrow:hover{color:#566700}
.section-arrow.light-arrow{right:28px;bottom:26px;color:#fff}

/* Ticker */
.ticker{background:var(--acid);overflow:hidden;padding:12px 0;border-block:1px solid #111}
.ticker-track{display:flex;gap:38px;width:max-content;animation:marquee 20s linear infinite;text-transform:uppercase;font-weight:700;font-size:.82rem;letter-spacing:.1em}
@keyframes marquee{to{transform:translateX(-50%)}}

/* Main sections */
.section{padding:120px 28px}
.section-heading{max-width:1180px;margin:0 auto 55px}
.section-heading h2{font-size:clamp(2.8rem,6vw,6.5rem)}
.section-heading>p:last-child{max-width:720px;font-size:1.1rem}
.section-heading.split{display:grid;grid-template-columns:1.4fr .6fr;gap:50px;align-items:end}
.intro .section-heading{display:grid;grid-template-columns:1.15fr .85fr;column-gap:80px;align-items:end;}
.intro .section-heading .eyebrow{grid-column:1 / -1;}
.intro .section-heading h2{grid-column:1;margin:0;}
.intro .section-heading > p:last-child{grid-column:2;margin:0 0 8px;max-width:520px;align-self:end;}
.intro .section-heading{grid-template-columns:1fr;row-gap:24px;}
.intro .section-heading .eyebrow,.intro .section-heading h2,.intro .section-heading > p:last-child{grid-column:1;}
.floating-eyebrow{padding-top: 40px;}
/* Intro heading + floating WEBM media */
.intro .section-heading.intro-heading-with-media {
  max-width: 1180px;
  margin: 0 auto 55px;

  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
}

.intro-heading-copy {
  min-width: 0;
}

.intro-heading-copy .eyebrow {
  margin-bottom: 32px;
}

.intro-heading-copy h2 {
  margin: 0;
}

.intro-heading-copy > p:last-child:not(.eyebrow) {
  margin: 28px 0 0;
  max-width: 620px;
  font-size: 1.1rem;
}

.intro-heading-media {
  width: 100%;
  height: clamp(280px, 34vw, 430px);

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: visible;
  pointer-events: none;
}

.intro-heading-media video {
  width: 100%;
  height: 100%;

  display: block;
  object-fit: contain;
  object-position: center;

  background: transparent;
}

.service-grid{max-width:1180px;margin:auto;display:grid;grid-template-columns:repeat(12,1fr);border-top:1px solid var(--line);border-left:1px solid var(--line)}
.service-card{grid-column:span 4;min-height:320px;padding:25px;display:flex;flex-direction:column;border-right:1px solid var(--line);border-bottom:1px solid var(--line);cursor:pointer;transition:background .25s,color .25s,transform .25s;background:rgba(255,255,255,.18)}
.service-card:hover{background:#111;color:#fff;transform:translateY(-2px)}
.card-index{font-size:.75rem}
.service-card h3{font-size:2rem;line-height:1;margin:auto 0 18px;text-transform:uppercase;letter-spacing:-.04em}
.service-card p{max-width:28ch}
.card-link{margin-top:auto;font-size:.72rem;text-transform:uppercase;letter-spacing:.1em;font-weight:700}

.story-stack{background:#111;color:#fff;padding:0 28px 75px}
.story-panel{max-width:1320px;margin:auto;min-height:90vh;display:grid;grid-template-columns:1.15fr .85fr;align-items:center;gap:70px;border-bottom:1px solid rgba(255,255,255,.18)}
.story-panel.reverse{grid-template-columns:.85fr 1.15fr}
.story-panel.reverse .story-image{order:2}
.story-image{height:68vh;min-height:520px;background-position:center;background-size:cover}
.image-residential{background-image:url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1800&q=88')}
.image-commercial{background-image:url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=88')}
.image-industrial{background-image:url('https://images.unsplash.com/photo-1565793298595-6a879b1d9492?auto=format&fit=crop&w=1800&q=88')}
.story-video{position:relative;overflow:hidden;background:#111}
.story-video video{width:100%;height:100%;display:block;object-fit:cover;object-position:center;background:#111}
.story-copy h2{font-size:clamp(2.5rem,5vw,5.2rem);max-width:10ch}
.story-copy p:not(.eyebrow){font-size:1.08rem;max-width:48ch;margin:26px 0}
.story-copy .text-button{color:var(--acid)}

.examples{background:var(--paper)}
.vertical-tabs{max-width:1180px;margin:0 auto 20px;display:flex;border-bottom:1px solid var(--line)}
.vertical-tab{flex:1;padding:18px;border:0;background:none;text-transform:uppercase;font-weight:700;letter-spacing:.1em;cursor:pointer}
.vertical-tab.active{background:#111;color:#fff}
.case-carousel{max-width:1320px;height:78vh;min-height:620px;margin:auto;position:relative;overflow:hidden;background:#111;color:#fff}
.case-media{position:absolute;inset:0;background-position:center;background-size:cover;transition:opacity .25s,transform .4s}
.case-carousel:hover .case-media{transform:scale(1.015)}
.case-carousel:after{content:'';position:absolute;inset:0;background:linear-gradient(to top,rgba(0,0,0,.9),transparent 60%)}
.case-overlay{position:absolute;z-index:2;left:42px;bottom:42px;max-width:720px}
.case-overlay h3{font-size:clamp(2.4rem,5vw,5.6rem);line-height:.9;letter-spacing:-.05em;text-transform:uppercase;margin:0 0 18px}
.case-tags{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}
.case-tags span{border:1px solid rgba(255,255,255,.45);padding:7px 10px;font-size:.7rem;text-transform:uppercase}
.carousel-control{position:absolute;z-index:3;top:50%;width:48px;height:48px;border:0;background:#fff;cursor:pointer}
.carousel-control.prev{left:14px}
.carousel-control.next{right:14px}
.carousel-dots{position:absolute;z-index:3;right:35px;bottom:35px;display:flex;gap:8px}
.carousel-dots button{width:28px;height:3px;border:0;background:rgba(255,255,255,.35);cursor:pointer}
.carousel-dots button.active{background:var(--acid)}

.process{background:#fff}
.process-grid{max-width:1180px;margin:auto;display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid #111;border-left:1px solid #111}
.process-step{min-height:180px;padding:22px;border-right:1px solid #111;border-bottom:1px solid #111}
.process-step span{font-size:3rem}
.process-step h3{font-size:2rem;text-transform:uppercase;margin:12px 0 12px}

.pricing-grid{max-width:1180px;margin:auto;display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.price-card{min-height:420px;padding:28px;border:1px solid #111;display:flex;flex-direction:column}
.price-card.featured{background:#111;color:#fff}
.price-card h3{font-size:2.6rem;text-transform:uppercase;line-height:1}
.price{font-size:1.5rem;font-weight:700}
.price-card .button{margin-top:auto}
.pricing-note{max-width:1180px;margin:20px auto 0;font-size:.8rem;color:var(--grey)}

.cta-section{padding:120px 28px;background:var(--acid);}
.cta-inner{max-width:1180px;margin:0 auto;}
.cta-inner h2{font-size:clamp(3rem,7vw,7rem);line-height:.86;letter-spacing:-.055em;text-transform:uppercase;margin:0;max-width:12ch;}
.cta-inner > p:not(.eyebrow){max-width:720px;margin:26px 0 30px;font-size:1.15rem;}
.cta-inner .button{display:inline-block;}

footer{background:#0a0a0a;color:#fff;padding:55px 28px;display:grid;grid-template-columns:1fr 1fr auto;gap:30px;align-items:end}
footer .brand img{width:170px}
footer div{display:flex;gap:18px;text-transform:uppercase;font-size:.72rem}

/* Chat */
.chat-drawer{position:fixed;z-index:60;right:0;top:0;height:100%;width:min(520px,100%);background:#fff;padding:30px;transform:translateX(101%);transition:transform .32s;overflow:auto}
.chat-drawer.open{transform:none}
.drawer-backdrop{position:fixed;z-index:55;inset:0;background:rgba(0,0,0,.55);opacity:0;pointer-events:none;transition:opacity .25s}
.drawer-backdrop.open{opacity:1;pointer-events:auto}
.chat-header{display:flex;justify-content:space-between;gap:20px}
.chat-header h2{font-size:2.7rem;text-transform:uppercase;line-height:.95}
.chat-close{border:0;background:none;font-size:2rem;cursor:pointer}
.availability{display:flex;gap:12px;padding:18px;background:#f0f0eb;margin:20px 0}
.status-dot{width:10px;height:10px;border-radius:50%;background:#2daf5d;margin-top:7px;flex:0 0 auto}
.availability p{margin:3px 0 0}
.chat-drawer label{display:block;font-size:.78rem;text-transform:uppercase;font-weight:700;margin:15px 0}
.chat-drawer input,.chat-drawer textarea{width:100%;margin-top:7px;padding:13px;border:1px solid #aaa;background:#fafafa}
.checkbox{display:flex!important;gap:10px;align-items:center}
.checkbox input{width:auto;margin:0}
.form-note{font-size:.72rem;color:#666}
.chat-success{padding-top:30px}

/* Reveal: visible by default so JS failure can never blank the site. JS adds .js-ready. */
.reveal{opacity:1;transform:none}
.js-ready .reveal{opacity:0;transform:translateY(28px);transition:opacity .7s ease,transform .7s ease}
.js-ready .reveal.visible{opacity:1;transform:none}

.section-focus{animation:sectionFocus 1.1s ease}
@keyframes sectionFocus{0%,100%{box-shadow:none}45%{box-shadow:inset 0 0 0 4px var(--acid)}}

@media(max-width:1100px){
  .hero{padding-bottom:220px}
  .hero-service-dock{grid-template-columns:repeat(3,1fr)}
  .hero-service-dock a{min-height:105px;border-bottom:1px solid rgba(255,255,255,.16)}
  .section-arrow{display:none}
}

@media(max-width:900px){
  .site-header{grid-template-columns:1fr auto}
  .site-header nav{display:none}
  .brand img{width:150px}
  .hero-content{width:calc(100% - 34px)}
  .section{padding:85px 17px}
  .section-heading.split{grid-template-columns:1fr}
  .service-card{grid-column:span 6}
  .story-stack{padding:0 17px 60px}
  .story-panel,.story-panel.reverse{grid-template-columns:1fr;gap:35px;padding:65px 0}
  .story-panel.reverse .story-image{order:0}
  .story-image{height:55vh;min-height:380px}
  .process-grid{grid-template-columns:repeat(2,1fr)}
  .pricing-grid{grid-template-columns:1fr}
  .case-overlay{left:24px;right:24px;bottom:28px}
  footer{grid-template-columns:1fr}
  .intro .section-heading.intro-heading-with-media {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .intro-heading-media {
    height: 300px;
    max-width: 420px;
    margin: 0 auto;
  }
}

@media(max-width:580px){
  .site-header{padding:0 14px}
  .site-header .button{padding:11px 12px;font-size:.62rem}
  .hero{padding-bottom:0;display:block}
  .hero-content{width:calc(100% - 34px);min-height:100svh;padding:145px 0 100px;display:flex;flex-direction:column;justify-content:flex-end}
  .hero h1{font-size:3.25rem}
  .hero-service-dock{position:relative;grid-template-columns:repeat(2,1fr)}
  .hero-service-dock a{min-height:105px}
  .service-card{grid-column:span 12;min-height:250px}
  .process-grid{grid-template-columns:1fr}
  .vertical-tab{font-size:.65rem;padding:14px 6px}
  .case-carousel{height:72vh;min-height:560px}
  .case-overlay h3{font-size:2.55rem}
  .carousel-control{top:18px}
  .carousel-control.prev{left:auto;right:68px}
  .section-heading h2{font-size:3.1rem}
  .story-copy h2{font-size:3rem}
  footer div{flex-wrap:wrap}
  .intro-heading-media {
  height: 240px;
  max-width: 320px;
}
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}


/* Why ReiSource */
.why-reisource{background:#111;color:#fff}
.why-reisource .section-heading{margin-bottom:45px}
.why-reisource .section-heading>p:last-child{color:rgba(255,255,255,.72)}
.why-grid{max-width:1180px;margin:0 auto 100px;display:grid;grid-template-columns:repeat(5,1fr);border-top:1px solid rgba(255,255,255,.22);border-left:1px solid rgba(255,255,255,.22)}
.why-card{min-height:180px;padding:22px;display:flex;flex-direction:column;border-right:1px solid rgba(255,255,255,.22);border-bottom:1px solid rgba(255,255,255,.22)}
.why-card>span,.featured-project-card>span{font-size:.68rem;letter-spacing:.12em;opacity:.55}
.why-card h3{margin:auto 0 12px;font-size:1.55rem;line-height:1;text-transform:uppercase;letter-spacing:-.03em}
.why-card p{margin:0;color:rgba(255,255,255,.72)}
.why-card ul{margin:auto 0 18px;padding:0;list-style:none}
.why-card li{padding:7px 0;border-bottom:1px solid rgba(255,255,255,.14);text-transform:uppercase;font-size:.78rem;letter-spacing:.08em}
.why-card strong{font-size:1.15rem;text-transform:uppercase;color:var(--acid)}
.featured-projects-block{max-width:1180px;margin:auto}
.featured-projects-block .section-heading{margin-left:0;margin-right:0}
.featured-projects-block .section-heading.compact h2{font-size:clamp(2.5rem,4.5vw,5rem)}
.featured-projects-grid{display:grid;grid-template-columns:repeat(5,1fr);border-top:1px solid rgba(255,255,255,.22);border-left:1px solid rgba(255,255,255,.22)}
.featured-project-card{min-height:220px;padding:22px;display:flex;flex-direction:column;border-right:1px solid rgba(255,255,255,.22);border-bottom:1px solid rgba(255,255,255,.22)}
.featured-project-card h3{margin:auto 0 14px;font-size:1.35rem;line-height:1;text-transform:uppercase;letter-spacing:-.025em}
.featured-project-card p{margin:0;color:rgba(255,255,255,.7);font-size:.92rem}

/* Knowledge Center */
.knowledge-center{background:var(--paper)}
.knowledge-center .section-heading{margin-bottom:40px}
.knowledge-categories{max-width:1180px;margin:0 auto;display:grid;grid-template-columns:repeat(4,1fr);border-top:1px solid var(--line);border-left:1px solid var(--line)}
.knowledge-categories a{min-height:150px;padding:22px;display:flex;align-items:flex-end;border-right:1px solid var(--line);border-bottom:1px solid var(--line);font-size:1.25rem;font-weight:700;line-height:1;text-transform:uppercase;letter-spacing:-.02em;transition:background .2s,color .2s}
.knowledge-categories a:hover{background:#111;color:#fff}
.knowledge-actions{max-width:1180px;margin:24px auto 0}

/* Footer taxonomy */
.site-footer{background:#0a0a0a;color:#fff;padding:55px 28px;display:grid;grid-template-columns:minmax(260px,.8fr) 1.2fr;gap:60px;align-items:start}
.footer-brand{display:block}
.footer-brand .brand img{width:170px}
.footer-brand p{max-width:360px;margin:20px 0 0;color:rgba(255,255,255,.68)}
.footer-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 24px;text-transform:uppercase;font-size:.72rem;font-weight:600;letter-spacing:.05em}
.footer-links a,.footer-contact{color:#fff;opacity:.86}
.footer-links a:hover,.footer-contact:hover{color:var(--acid);opacity:1}
.footer-contact{border:0;padding:0;background:none;font:inherit;text-align:left;text-transform:uppercase;letter-spacing:.05em;cursor:pointer}

@media(max-width:1100px){
  .why-grid,.featured-projects-grid{grid-template-columns:repeat(2,1fr)}
  .why-card.integrated,.featured-project-card:last-child{grid-column:span 2}
}
@media(max-width:900px){
  .knowledge-categories{grid-template-columns:repeat(2,1fr)}
  .site-footer{grid-template-columns:1fr;gap:36px}
}
@media(max-width:580px){
  .why-grid,.featured-projects-grid,.knowledge-categories{grid-template-columns:1fr}
  .why-card.integrated,.featured-project-card:last-child{grid-column:span 1}
  .why-card,.featured-project-card{min-height:230px}
  .knowledge-categories a{min-height:105px}
  .footer-links{grid-template-columns:1fr 1fr}
}


/* Homepage image 01: "Beyond BIM. Beyond Technology." background */
.intro .section-heading.intro-heading-with-media.intro-title-image {
  position: relative;
  isolation: isolate;
  min-height: clamp(520px, 54vw, 720px);
  padding: clamp(44px, 6vw, 82px);
  background-image: url('/assets/home/beyond-bim-bg.png');
  background-size: cover;
  background-position: center center;
  overflow: hidden;
}

.intro .section-heading.intro-title-image::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg,
    rgba(0,0,0,.78) 0%,
    rgba(0,0,0,.56) 43%,
    rgba(0,0,0,.16) 72%,
    rgba(0,0,0,.08) 100%);
}

.intro .intro-title-image .intro-heading-copy {
  max-width: 690px;
  color: #fff;
}

.intro .intro-title-image .intro-heading-media {
  display: none;
}

@media(max-width:900px){
  .intro .section-heading.intro-heading-with-media.intro-title-image {
    min-height: 580px;
    padding: 48px 30px;
    background-position: 58% center;
  }

  .intro .section-heading.intro-title-image::before {
    background: linear-gradient(90deg,
      rgba(0,0,0,.82) 0%,
      rgba(0,0,0,.64) 58%,
      rgba(0,0,0,.24) 100%);
  }
}

@media(max-width:580px){
  .intro .section-heading.intro-heading-with-media.intro-title-image {
    min-height: 520px;
    padding: 38px 22px;
    background-position: 62% center;
  }
}


/* Service catalogue title: media removed */
.intro .section-heading.intro-heading-with-media.catalogue-heading {
  grid-template-columns: 1fr;
}
.intro .catalogue-heading .intro-heading-copy {
  max-width: 760px;
}

/* ---------------------------------------------------------
   Service catalogue: persistent desktop video rail + auto-rotation
   --------------------------------------------------------- */
.service-catalogue {
  max-width: 1180px;
  min-height: 640px;
  margin: auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  transition: grid-template-columns .38s cubic-bezier(.2,.75,.25,1);
}
.service-catalogue-menu {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service-catalogue-menu .service-card { grid-column: span 4; }
.service-catalogue-media {
  display: none;
  position: relative;
  min-width: 0;
  min-height: 640px;
  overflow: hidden;
  background: #0a0a0a;
  border-top: 1px solid #111;
  border-right: 1px solid #111;
  border-bottom: 1px solid #111;
}
.service-catalogue-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: none;
  transition: opacity .22s ease;
  will-change: opacity;
  backface-visibility: hidden;
}
.service-catalogue-media video.is-active { opacity: 1; transform: none; }
.service-catalogue-media-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.16), transparent 30%), linear-gradient(to top, rgba(0,0,0,.18), transparent 38%);
}
@media (min-width: 901px) {
  .service-catalogue { grid-template-columns: minmax(300px, 1fr) minmax(0, 2fr); }
  .service-catalogue .service-catalogue-menu {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 1fr);
    height: 640px;
  }
  .service-catalogue .service-card {
    grid-column: 1;
    min-height: 0;
    height: auto;
    padding: 12px 18px;
    justify-content: center;
  }
  .service-catalogue .service-card p { display: none; }
  .service-catalogue .service-card h3 { margin: 5px 0 7px; font-size: clamp(1.15rem, 1.45vw, 1.6rem); }
  .service-catalogue .service-card .card-link { margin-top: 0; opacity: .65; }
  .service-catalogue .service-card.is-active { background: #111; color: #fff; }
  .service-catalogue .service-card { transition: background .28s ease, color .28s ease, transform .25s; }
  .service-catalogue .service-card.is-active .card-link { color: var(--acid); opacity: 1; }
  .service-catalogue .service-catalogue-media { display: block; }
}
@media (max-width: 900px) {
  .service-catalogue { min-height: 0; }
  .service-catalogue-menu .service-card { grid-column: span 6; }
}
@media (max-width: 580px) {
  .service-catalogue-menu .service-card { grid-column: span 12; }
}

/* ---------------------------------------------------------
   Why ReiSource + Featured Projects: cleaner card alignment
   --------------------------------------------------------- */

/* Give both five-column rails the same internal rhythm. */
.why-card,
.featured-project-card {
  position: relative;
  justify-content: flex-start;
}

/* Number stays pinned to the top. */
.why-card > span,
.featured-project-card > span {
  display: block;
  margin: 0;
}

/* Align headings to a common lower content zone instead of relying on
   differing copy lengths to position each card. */
.why-card h3 {
  margin: auto 0 14px;
  min-height: 2em;
  display: flex;
  align-items: flex-end;
}

.why-card p {
  min-height: 3em;
}

/* Integrated Consulting follows the same vertical rhythm. */
.why-card.integrated h3 {
  margin-top: auto;
}

.why-card.integrated ul {
  margin: 4px 0 18px;
}

.why-card.integrated strong {
  margin-top: 0;
}

/* ---------------------------------------------------------
   Featured Projects: title-only resting state, rich copy on hover
   --------------------------------------------------------- */

.featured-project-card {
  min-height: 290px;
  overflow: hidden;
  transition:
    background .28s ease,
    color .28s ease,
    transform .25s ease;
}

.featured-project-card h3 {
  margin: auto 0 0;
  min-height: 3em;
  display: flex;
  align-items: flex-end;
  font-size: 1.35rem;
  line-height: 1;
  transition:
    transform .3s ease,
    margin .3s ease;
}

.featured-project-card p {
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(8px);
  color: rgba(255,255,255,.76);
  transition:
    opacity .22s ease,
    max-height .34s ease,
    transform .3s ease,
    margin-top .3s ease;
}

/* Hover/focus opens the card and exposes the project detail. */
.featured-project-card:hover,
.featured-project-card:focus-within {
  background: rgba(255,255,255,.055);
  transform: translateY(-2px);
}

.featured-project-card:hover h3,
.featured-project-card:focus-within h3 {
  margin-bottom: 0;
}

.featured-project-card:hover p,
.featured-project-card:focus-within p {
  max-height: 11rem;
  opacity: 1;
  transform: translateY(0);
  margin-top: 16px;
}

/* Touch layouts should not depend on hover. */
@media (max-width: 900px) {
  .why-card h3,
  .why-card p,
  .featured-project-card h3 {
    min-height: 0;
  }

  .featured-project-card p {
    max-height: none;
    opacity: 1;
    overflow: visible;
    transform: none;
    margin-top: 16px;
  }
}

/* ---------------------------------------------------------
   Compact hover-reveal cards: Why ReiSource + Featured Projects
   --------------------------------------------------------- */

/* Lower the overall height of both card families. */
.why-card,
.featured-project-card {
  min-height: 220px;
}

/* WHY REISOURCE
   Resting state: number + title.
   Hover state: supporting copy/list appears underneath. */
.why-card h3 {
  margin: auto 0 0;
  min-height: 0;
  transition:
    transform .3s ease,
    margin .3s ease;
}

.why-card p,
.why-card ul,
.why-card strong {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(8px);
  margin-top: 0;
  margin-bottom: 0;
  transition:
    opacity .22s ease,
    max-height .34s ease,
    transform .3s ease,
    margin .3s ease;
}

.why-card:hover,
.why-card:focus-within {
  background: rgba(255,255,255,.055);
  transform: translateY(-2px);
}

.why-card:hover p,
.why-card:focus-within p {
  max-height: 6rem;
  opacity: 1;
  transform: translateY(0);
  margin-top: 14px;
}

.why-card:hover ul,
.why-card:focus-within ul {
  max-height: 10rem;
  opacity: 1;
  transform: translateY(0);
  margin: 12px 0 14px;
}

.why-card:hover strong,
.why-card:focus-within strong {
  max-height: 3rem;
  opacity: 1;
  transform: translateY(0);
  margin-top: 0;
}

/* Override the earlier integrated-card positioning so it behaves
   exactly like the other Why ReiSource cards. */
.why-card.integrated h3 {
  margin-top: auto;
  margin-bottom: 0;
}

/* FEATURED PROJECTS
   Slightly more compact than the previous 290px version. */
.featured-project-card {
  min-height: 220px;
}

.featured-project-card h3 {
  min-height: 0;
}

/* Mobile/touch: reveal everything and allow natural card height. */
@media (max-width: 900px) {
  .why-card,
  .featured-project-card {
    min-height: 190px;
  }

  .why-card p,
  .why-card ul,
  .why-card strong,
  .featured-project-card p {
    max-height: none;
    opacity: 1;
    overflow: visible;
    transform: none;
  }

  .why-card p {
    margin-top: 14px;
  }

  .why-card ul {
    margin: 12px 0 14px;
  }
}


/* ---------------------------------------------------------
   Story panels: consistent image + video framing
   --------------------------------------------------------- */
.story-image {
  position: relative;
  height: clamp(440px, 58vh, 680px);
  min-height: 0;
  overflow: hidden;
  background: #111;
}

.story-image > img,
.story-image > video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Individual crop controls. Adjust these percentages if desired. */
.story-panel:nth-child(1) .story-image > img {
  object-position: center center;
}

.story-panel:nth-child(3) .story-image > img {
  object-position: center center;
}

/* Keep the story rows visually tighter around the new still images. */
.story-panel {
  min-height: 78vh;
}

@media (max-width: 900px) {
  .story-image {
    height: clamp(360px, 58vw, 520px);
    min-height: 360px;
  }

  .story-panel {
    min-height: 0;
  }
}

@media (max-width: 580px) {
  .story-image {
    height: 68vw;
    min-height: 300px;
  }
}

/* ---------------------------------------------------------
   Story media: preserve static artwork without cropping
   --------------------------------------------------------- */
.story-image {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #111;
}

/* Static artwork keeps its full composition/aspect ratio. */
.story-image:has(> img) {
  height: auto;
}

.story-image > img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}

/* Videos retain a cinematic fixed frame and may crop to fill it. */
.story-image:has(> video) {
  height: clamp(440px, 58vh, 680px);
}

.story-image > video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* Give media and copy equal room. */
.story-panel {
  max-width: 1320px;
  margin: auto;
  min-height: 78vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(50px, 6vw, 90px);
  border-bottom: 1px solid rgba(255,255,255,.18);
}

.story-panel.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.story-panel.reverse .story-image {
  order: 2;
}

@media (max-width: 900px) {
  .story-panel,
  .story-panel.reverse {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 35px;
    padding: 65px 0;
  }

  .story-panel.reverse .story-image {
    order: 0;
  }

  .story-image:has(> video) {
    height: min(65vh, 560px);
  }
}


/* =========================================================
   HERO SERVICE DOCK
   Fixed rail, individual cards expand upward
   ========================================================= */

@media (min-width: 901px) {
  .hero-service-dock {
    height: 145px;
    min-height: 145px;
    align-items: end;
    overflow: visible;
  }

  .hero-service-dock-detailed > a {
    position: relative;
    box-sizing: border-box;
    height: 145px;
    min-height: 145px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1;
    transition:
      height .38s cubic-bezier(.2,.75,.25,1),
      transform .38s cubic-bezier(.2,.75,.25,1),
      background .25s ease,
      color .25s ease;
  }

  .hero-service-dock-detailed > a:hover,
  .hero-service-dock-detailed > a:focus-visible {
    height: 245px;
    transform: translateY(-100px);
    z-index: 20;
  }

  .hero-service-dock-detailed > a strong {
    margin-top: auto;
  }

  .hero-service-dock-detailed > a small,
  .hero-service-dock-detailed > a em {
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(8px);
    transition:
      max-height .34s ease,
      opacity .22s ease,
      transform .3s ease,
      margin-top .3s ease;
  }

  .hero-service-dock-detailed > a:hover small,
  .hero-service-dock-detailed > a:focus-visible small {
    max-height: 6rem;
    margin-top: .7rem;
    opacity: .82;
    transform: translateY(0);
  }

  .hero-service-dock-detailed > a:hover em,
  .hero-service-dock-detailed > a:focus-visible em {
    max-height: 2rem;
    margin-top: .7rem;
    opacity: .72;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .hero-service-dock {
    height: auto;
    min-height: 0;
  }

  .hero-service-dock-detailed > a {
    height: auto;
    transform: none;
  }

  .hero-service-dock-detailed > a small,
  .hero-service-dock-detailed > a em {
    max-height: none;
    opacity: 1;
    overflow: visible;
    transform: none;
  }
}



/* =========================================================
   COMMON CHALLENGES / "HOW DO WE..." CARDS
   Match Why ReiSource card typography and bottom alignment
   ========================================================= */

.process-step {
  min-height: 180px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.process-step h3 {
  margin: auto 0 12px;
  max-width: 12ch;
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: -.03em;
  text-transform: uppercase;
}

/* Keep the grid compact and readable on smaller screens. */
@media (max-width: 900px) {
  .process-step {
    min-height: 160px;
  }
}

@media (max-width: 580px) {
  .process-step {
    min-height: 140px;
  }

  .process-step h3 {
    font-size: 1.35rem;
  }
}

/* =========================================================
   SCROLLED HEADER
   Keep logo, navigation and CTA vertically centered
   ========================================================= */

.site-header.scrolled {
  align-items: center;
}

.site-header.scrolled .brand,
.site-header.scrolled nav,
.site-header.scrolled > .button {
  align-self: center;
  margin-top: 0;
  margin-bottom: 0;
}

.site-header.scrolled .brand {
  display: flex;
  align-items: center;
}

.site-header.scrolled nav {
  display: flex;
  align-items: center;
}

.site-header.scrolled > .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


/* Homepage footer: centered brand and navigation */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}
.site-footer .footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.site-footer .footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 28px;
}

@media (min-width: 901px) {
  .hero-service-dock-detailed > a:not(:hover):not(:focus-visible) {
    justify-content: flex-start;
  }

  .hero-service-dock-detailed > a:not(:hover):not(:focus-visible) strong {
    margin-top: 34px;
    margin-bottom: 0;
    opacity: 1;
    visibility: visible;
  }

  .hero-service-dock-detailed > a:hover strong,
  .hero-service-dock-detailed > a:focus-visible strong {
    margin-top: auto;
  }
}

/* =========================================================
   2026-10-09: Hero dock and Why ReiSource alignment correction
   ========================================================= */
@media (min-width: 901px) {
  .hero .hero-service-dock.hero-service-dock-detailed {
    height: 145px;
    min-height: 145px;
    align-items: end;
    overflow: visible;
  }
  .hero .hero-service-dock-detailed > a {
    align-self: end;
    height: 145px;
    min-height: 145px;
    transform: none;
    justify-content: flex-start;
    overflow: hidden;
    padding: 18px;
  }
  .hero .hero-service-dock-detailed > a:not(:hover):not(:focus-visible) strong {
    margin: auto 0 0;
    opacity: 1;
    visibility: visible;
    display: block;
    flex-shrink: 0;
  }
  .hero .hero-service-dock-detailed > a small,
  .hero .hero-service-dock-detailed > a em {
    flex-shrink: 0;
    margin-bottom: 0;
  }
  .hero .hero-service-dock-detailed > a:hover,
  .hero .hero-service-dock-detailed > a:focus-visible {
    height: 245px;
    transform: none; /* grid end alignment grows the card upward */
    z-index: 20;
  }
  .hero .hero-service-dock-detailed > a:hover strong,
  .hero .hero-service-dock-detailed > a:focus-visible strong {
    margin-top: auto;
    margin-bottom: 7px;
  }
}

/* All five resting headings share the same bottom edge.
   Integrated Consulting's hidden list and label must take no space. */
.why-grid .why-card { justify-content: flex-start; }
.why-grid .why-card h3,
.why-grid .why-card.integrated h3 {
  margin: auto 0 0;
  min-height: 0;
  flex-shrink: 0;
  align-items: flex-end;
}
.why-grid .why-card.integrated:not(:hover):not(:focus-within) ul,
.why-grid .why-card.integrated:not(:hover):not(:focus-within) strong {
  max-height: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
  overflow: hidden;
}
.why-grid .why-card.integrated:hover ul,
.why-grid .why-card.integrated:focus-within ul {
  margin: 12px 0 14px;
  max-height: 12rem;
  opacity: 1;
}
.why-grid .why-card.integrated:hover strong,
.why-grid .why-card.integrated:focus-within strong {
  max-height: 3rem;
  opacity: 1;
}
@media (max-width: 900px) {
  .why-grid .why-card.integrated ul,
  .why-grid .why-card.integrated strong {
    max-height: none;
    opacity: 1;
    overflow: visible;
  }
  .why-grid .why-card.integrated ul { margin: 12px 0 14px; }
}

/* FINAL HERO RAIL FIX: lock the grid track, not just card heights.
   Expanded card overlays upward; other titles stay visible. */
@media (min-width: 901px) {
  .hero .hero-service-dock.hero-service-dock-detailed {
    grid-template-rows: 145px;
    height: 145px;
    min-height: 145px;
    align-items: stretch;
    overflow: visible;
  }
  .hero .hero-service-dock-detailed > a {
    align-self: stretch;
    min-width: 0;
    height: 145px;
    min-height: 145px;
    margin-top: 0;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    transform: none;
    transition: margin-top .38s cubic-bezier(.2,.75,.25,1), height .38s cubic-bezier(.2,.75,.25,1), background .25s, color .25s;
  }
  .hero .hero-service-dock-detailed > a > span { flex: 0 0 auto; }
  .hero .hero-service-dock-detailed > a > strong,
  .hero .hero-service-dock-detailed > a:not(:hover):not(:focus-visible) > strong {
    display: block;
    flex: 0 0 auto;
    margin: auto 0 0;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .hero .hero-service-dock-detailed > a > small,
  .hero .hero-service-dock-detailed > a > em {
    flex: 0 0 auto;
    max-height: 0;
    margin: 0;
    opacity: 0;
    overflow: hidden;
    transform: none;
  }
  .hero .hero-service-dock-detailed > a:hover,
  .hero .hero-service-dock-detailed > a:focus-visible {
    height: 245px;
    margin-top: -100px;
    transform: none;
    z-index: 20;
  }
  .hero .hero-service-dock-detailed > a:hover > strong,
  .hero .hero-service-dock-detailed > a:focus-visible > strong {
    margin: auto 0 7px;
    transform: none;
  }
  .hero .hero-service-dock-detailed > a:hover > small,
  .hero .hero-service-dock-detailed > a:focus-visible > small {
    max-height: 7rem;
    margin-top: .55rem;
    opacity: .82;
  }
  .hero .hero-service-dock-detailed > a:hover > em,
  .hero .hero-service-dock-detailed > a:focus-visible > em {
    max-height: 2rem;
    margin-top: .65rem;
    opacity: .75;
  }
}

/* WHY REISOURCE: identical title anchor for all five cards.
   The integrated card has extra reveal elements, so its heading must
   not participate in flex spacing. */
@media (min-width: 901px) {
  .why-grid .why-card { position: relative; min-height: 220px; }
  .why-grid .why-card > h3,
  .why-grid .why-card.integrated > h3 {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 64px;
    margin: 0;
    min-height: 0;
    display: block;
    transform: none;
    transition: bottom .25s ease;
  }
  .why-grid .why-card:hover > h3,
  .why-grid .why-card:focus-within > h3 { bottom: 132px; }
  .why-grid .why-card > p,
  .why-grid .why-card > ul,
  .why-grid .why-card > strong {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 20px;
    margin: 0;
    min-height: 0;
  }
  .why-grid .why-card > ul { bottom: 25px; }
  .why-grid .why-card.integrated > strong { bottom: 12px; }
  .why-grid .why-card.integrated > ul { bottom: 43px; }
  .why-grid .why-card.integrated:hover > ul,
  .why-grid .why-card.integrated:focus-within > ul { margin: 0; }
}


/* What we do: dark editorial palette, scoped to this section only. */
.section.intro {
  background: #111;
  color: #fff;
}
.section.intro > .service-grid {
  border-top-color: rgba(255,255,255,.25);
  border-left-color: rgba(255,255,255,.25);
}
.section.intro > .service-grid > .service-card {
  background: transparent;
  color: #fff;
  border-right-color: rgba(255,255,255,.25);
  border-bottom-color: rgba(255,255,255,.25);
}
.section.intro > .service-grid > .service-card .card-index,
.section.intro > .service-grid > .service-card .card-link {
  color: var(--acid);
}
.section.intro > .service-grid > .service-card:hover,
.section.intro > .service-grid > .service-card:focus-visible {
  background: #222;
  color: #fff;
}


/* Homepage footer: brand and description only, centered */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0;
}
.site-footer .footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.site-footer .footer-brand p { margin: 20px auto 0; }

/* Service catalogue: acid yellow default, warm off-white on active/hover */
.service-catalogue .service-catalogue-menu .service-card,
.service-catalogue .service-catalogue-menu .service-card.is-active {
  background: var(--acid, #f3f76a);
  color: #111;
  transform: none;
}
.service-catalogue .service-catalogue-menu .service-card .card-index,
.service-catalogue .service-catalogue-menu .service-card .card-link,
.service-catalogue .service-catalogue-menu .service-card.is-active .card-link {
  color: #111;
  opacity: 1;
}
.service-catalogue .service-catalogue-menu .service-card:hover,
.service-catalogue .service-catalogue-menu .service-card:focus-visible,
.service-catalogue .service-catalogue-menu .service-card.is-active {
  background: var(--paper, #f3f1ed);
  color: #111;
}

/* Compact three-part story sequence: consistent media, tighter typography. */
@media (min-width: 901px) {
  .story-stack { padding: 18px 28px 40px; }
  .story-stack .story-panel,
  .story-stack .story-panel.reverse {
    min-height: 0;
    height: auto;
    padding: 24px 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(32px, 4vw, 62px);
  }
  .story-stack .story-image,
  .story-stack .story-image:has(> img),
  .story-stack .story-image:has(> video) {
    height: clamp(290px, 24vw, 340px);
    min-height: 0;
  }
  .story-stack .story-copy h2 {
    font-size: clamp(2.2rem, 3.5vw, 3.8rem);
    line-height: .98;
    max-width: 13ch;
  }
  .story-stack .story-copy p:not(.eyebrow) {
    margin: 16px 0 20px;
    font-size: 1rem;
    line-height: 1.55;
  }
}
@media (max-width: 900px) {
  .story-stack .story-panel,
  .story-stack .story-panel.reverse { padding: 35px 0; gap: 24px; }
  .story-stack .story-image,
  .story-stack .story-image:has(> video) {
    height: clamp(240px, 48vw, 380px);
    min-height: 0;
  }
  .story-stack .story-copy p:not(.eyebrow) { margin: 14px 0 18px; }
}


/* Homepage: Why ReiSource and Selected Delivery Outcomes hover palette */
.why-grid .why-card,
.featured-project-card {
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.why-grid .why-card:hover,
.why-grid .why-card:focus-within,
.featured-project-card:hover,
.featured-project-card:focus-within {
  background: var(--acid, #f3f76a);
  color: #111;
  border-color: #111;
}
.why-grid .why-card:hover > *,
.why-grid .why-card:focus-within > *,
.featured-project-card:hover > *,
.featured-project-card:focus-within > * {
  color: #111;
}
.why-grid .why-card:hover p,
.why-grid .why-card:focus-within p,
.why-grid .why-card:hover ul,
.why-grid .why-card:focus-within ul,
.why-grid .why-card:hover strong,
.why-grid .why-card:focus-within strong,
.featured-project-card:hover p,
.featured-project-card:focus-within p {
  color: #111;
}
@media (hover: none) {
  .why-grid .why-card:active,
  .featured-project-card:active {
    background: var(--acid, #f3f76a);
    color: #111;
  }
}

/* Example carousel: images and videos share the same full-bleed frame. */
.case-media { overflow:hidden; pointer-events:none; }
.case-media .case-media-asset {
  display:block; width:100%; height:100%; object-fit:cover; object-position:center;
}
.case-media video.case-media-asset { background:#111; }
@media (prefers-reduced-motion: reduce) {
  .case-carousel:hover .case-media { transform:none; }
}

/* Examples gallery: balanced desktop height and contained overlay title. */
@media (min-width: 581px) {
  .case-carousel {
    max-width: 1320px;
    height: clamp(780px, 97.5vh, 1020px);
    min-height: 0;
    margin: auto;
    position: relative;
    overflow: hidden;
    background: #111;
    color: #fff;
  }
  .case-overlay {
    position: absolute;
    z-index: 2;
    left: 42px;
    bottom: 32px;
    max-width: 720px;
  }
  .case-overlay h3 {
    font-size: clamp(2.4rem, 4vw, 4.5rem);
    line-height: .95;
    letter-spacing: -.05em;
    text-transform: uppercase;
    margin: 0 0 16px;
  }
}

/* Live desktop hero: keep the six service tabs in the initial viewport.
   Preserve the existing hover-to-expand behavior and mobile layout. */
@media (min-width: 901px) {
  .hero {
    height: 100svh;
    min-height: 690px;
    padding-bottom: 145px;
  }
  .hero .hero-content {
    padding-top: clamp(95px, 12vh, 130px);
    padding-bottom: clamp(20px, 3vh, 32px);
  }
  .hero h1 {
    font-size: clamp(3.2rem, min(6.2vw, 10vh), 6.6rem);
  }
  .hero .hero-copy { margin: 20px 0; }
}


/* 2026-10-27: vertically center hero copy above the compact service rail.
   Keep the six titles visible and preserve upward hover expansion. */
@media (min-width: 901px) {
  .hero {
    display: flex;
    align-items: center;
    height: 100svh;
    min-height: 620px;
    padding-bottom: 112px;
  }
  .hero .hero-content {
    margin: 0 auto;
    padding: 84px 0 0;
  }
  .hero .hero-service-dock.hero-service-dock-detailed {
    grid-template-rows: 112px;
    height: 112px;
    min-height: 112px;
  }
  .hero .hero-service-dock-detailed > a {
    height: 112px;
    min-height: 112px;
    padding: 14px 16px;
  }
  .hero .hero-service-dock-detailed > a:hover,
  .hero .hero-service-dock-detailed > a:focus-visible {
    height: 212px;
    margin-top: -100px;
  }
  .hero .section-arrow {
    bottom: 126px;
  }
}
