/* Hero-only refresh. The portfolio and the sections below keep their layout. */
.winter-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 101;
  pointer-events: none;
}
.winter-enabled .hero-stars { opacity: .6; }
.home-refresh .hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: 36px;
  height: auto;
  min-height: 0;
  max-height: none;
  padding: 68px var(--gutter) 72px;
}
.home-refresh .hero-copy {
  display: block;
  position: relative;
  inset: auto;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  transform: none;
}
.home-refresh .hero h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(48px, 4.7vw, 72px);
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 1.13;
}
.home-refresh .hero-line {
  display: block;
  white-space: nowrap;
  max-width: none;
}
.home-refresh .hero .period {
  color: var(--warm-accent);
}
.home-refresh .hero .eyebrow {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 13px;
}
.home-refresh .hero .eyebrow > span {
  background: var(--warm-accent);
}
.home-refresh .hero-product-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 28px 0 0;
  min-height: 64px;
  padding: 16px 24px;
  gap: 0;
  font-size: 14px;
  font-weight: 600;
  width: 224px;
  max-width: 100%;
  align-self: start;
}
.home-refresh .hero-button-label {
  position: relative;
  z-index: 2;
  width: auto;
  text-align: center;
  white-space: nowrap;
  line-height: 1.5;
}
.home-refresh .hero-art {
  position: relative;
  inset: auto;
  width: 100%;
  max-width: none;
  height: auto;
  max-height: none;
  aspect-ratio: 1.28;
  margin: 0;
  transform: none;
  justify-self: center;
}
/* Keep the original star field and give the brand sculpture enough presence. */
.home-refresh .hero-canvas,
.home-refresh .brand-wordmark-fallback {
  inset: 0;
  width: 100%;
  height: 100%;
  scale: 1.08;
  transform-origin: center;
}
@media (min-width: 1600px) {
  .home-refresh .hero {
    padding-top: 56px;
    padding-bottom: 60px;
  }
}
@media (min-width: 700px) and (max-width: 1023px) {
  .home-refresh .hero {
    gap: 20px;
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .home-refresh .hero h1 {
    font-size: clamp(37px, 4.7vw, 48px);
  }
  .home-refresh .hero-art {
    aspect-ratio: 1.05;
  }
}
@media (max-width: 699px) {
  .home-refresh .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 32px var(--gutter) 62px;
  }
  .home-refresh .hero-copy {
    display: contents;
  }
  .home-refresh .hero .eyebrow {
    order: 0;
    justify-content: center;
    margin: 0 0 6px;
    font-size: 12px;
  }
  .home-refresh .hero h1 {
    order: 1;
    width: 100%;
    margin: 0;
    text-align: center;
    font-size: clamp(34px, 9.2vw, 42px);
    line-height: 1.14;
  }
  .home-refresh .hero-product-button {
    order: 3;
    align-self: center;
    width: 212px;
    min-height: 56px;
    margin: 0;
    padding: 14px 20px;
    gap: 0;
  }
  .home-refresh .hero-art {
    order: 2;
    width: 100%;
    height: clamp(180px, 44vw, 206px);
    aspect-ratio: auto;
    margin: 0;
  }
  /* A tight layout box around the sculpture, without shrinking the 3D camera. */
  .home-refresh .hero-canvas,
  .home-refresh .brand-wordmark-fallback {
    top: 50%;
    bottom: auto;
    height: 300px;
    transform: translateY(-50%);
  }
  .home-refresh .footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-align: center;
    padding-top: 26px;
    padding-bottom: 26px;
  }
  .home-refresh .footer-brand {
    justify-self: center;
    margin: 0 auto;
  }
  .home-refresh .footer > span {
    margin: 0;
    text-align: center;
  }
  .home-refresh .footer p {
    width: 100%;
    margin: 0;
    text-align: center;
  }
}

/* Technology names are informational pills, with the same blue glass palette. */
.home-refresh .tech-strip {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}
.home-refresh .tech-strip > strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgb(213 147 42 / 55%);
  font-size: 15px;
  line-height: 1.4;
  font-weight: 550;
  letter-spacing: 0;
  color: #153c84;
  background: linear-gradient(
    145deg,
    rgb(24 93 241 / 9%),
    rgb(243 247 254 / 85%)
  );
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 85%),
    0 3px 10px rgb(3 17 48 / 4%);
  transition:
    border-color 0.2s,
    background 0.2s;
}
.home-refresh .service-trigger-no-icon {
  padding-left: 42px;
}
.home-refresh .tech-strip > strong:hover {
  background: rgb(24 93 241 / 10%);
  border-color: rgb(213 147 42 / 85%);
}
@media (max-width: 699px) {
  .home-refresh .tech-strip {
    gap: 8px;
  }
  .home-refresh .tech-strip > strong {
    padding: 10px 15px;
  }
  .home-refresh .service-trigger-no-icon {
    padding-left: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-refresh .hero *,
  .home-refresh .hero *::before,
  .home-refresh .hero *::after {
    animation: none !important;
    transition: none !important;
  }
  .home-refresh .hero-copy {
    transform: none;
  }
  .home-refresh .hero-product-button {
    translate: none;
  }
}
.home-refresh .about,
.home-refresh .services {
  isolation: isolate;
}
.home-refresh .about {
  background: linear-gradient(165deg, #DCE8FF, #EDF3FF);
}
.home-refresh .hero::after { background: #DCE8FF; }
.home-refresh .services {
  background: linear-gradient(135deg, #C9DAFF, #E4EDFF 72%);
}
.home-refresh .section-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.home-refresh .about::after { display: none; }
.ambient-rings {
  position: absolute;
  width: 760px;
  height: 610px;
  left: -270px;
  top: 21%;
  opacity: .78;
  animation: atmosphere-turn 30s ease-in-out infinite alternate;
}
.ambient-rings i {
  position: absolute;
  width: 75%;
  height: 85%;
  border: 24px solid rgb(24 93 241 / 15%);
  border-top-color: rgb(243 247 254 / 55%);
  border-right-color: rgb(24 93 241 / 23%);
  border-radius: 50%;
  box-shadow: inset 4px 4px 12px rgb(255 255 255 / 55%), 6px 10px 24px rgb(24 93 241 / 9%);
  transform: rotate(-32deg) scaleX(.78);
}
.ambient-rings i + i {
  left: 30%;
  top: 17%;
  transform: rotate(30deg) scaleX(.72);
  border-width: 16px;
}
.ambient-orbits {
  position: absolute;
  width: 880px;
  height: 650px;
  right: -170px;
  top: 10%;
  animation: atmosphere-turn 32s ease-in-out infinite alternate-reverse;
}
.ambient-orbits i {
  position: absolute;
  inset: 10%;
  border: 1px solid rgb(24 93 241 / 24%);
  border-radius: 50%;
  transform: rotate(-32deg) scaleY(.52);
}
.ambient-orbits i + i { inset: 0; transform: rotate(28deg) scaleY(.62); }
.ambient-orbits i::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #FFB547;
  box-shadow: 0 0 14px rgb(255 181 71 / 70%);
  offset-path: ellipse(50% 50% at 50% 50%);
  offset-rotate: 0deg;
  animation: atmosphere-particle 22s linear infinite;
}
.ambient-orbits i + i::after { animation-duration: 29s; animation-delay: -13s; width: 5px; height: 5px; }
.ambient-glow {
  position: absolute;
  width: 850px;
  height: 850px;
  right: -120px;
  top: 3%;
  background: radial-gradient(ellipse, rgb(24 93 241 / 19%), transparent 68%);
  animation: atmosphere-drift 24s ease-in-out infinite alternate;
}
.about-atmosphere .ambient-glow { right: auto; left: -250px; top: 8%; }
.ambient-warmth {
  position: absolute;
  width: 520px;
  height: 520px;
  right: -140px;
  top: -140px;
  background: radial-gradient(ellipse, rgb(255 181 71 / 18%), transparent 68%);
  animation: atmosphere-drift 28s ease-in-out -12s infinite alternate-reverse;
}
.services-atmosphere .ambient-warmth { top: auto; bottom: -200px; right: 16%; }
.ambient-stream {
  position: absolute;
  width: 110%;
  height: 65%;
  right: -52%;
  top: 16%;
  border-radius: 50%;
  background: linear-gradient(160deg, transparent 30%, rgb(243 247 254 / 30%) 45%, rgb(243 247 254 / 18%) 53%, transparent 70%);
  transform: rotate(-28deg);
  animation: atmosphere-flow 26s ease-in-out infinite alternate;
}
.section-atmosphere { animation-play-state: paused; }
.home-refresh .section-atmosphere *, .home-refresh .section-atmosphere *::after { animation-play-state: inherit; }
[data-motion-visible="true"] > .section-atmosphere { animation-play-state: running; }
html[data-tab-hidden="true"] .section-atmosphere { animation-play-state: paused; }
@keyframes atmosphere-turn {
  from { transform: rotate(-12deg) translateY(0); }
  to { transform: rotate(18deg) translateY(-32px); }
}
@keyframes atmosphere-drift {
  from { transform: translate(-40px, -10px) scale(.92); }
  to { transform: translate(55px, 48px) scale(1.08); }
}
@keyframes atmosphere-particle { to { offset-distance: 100%; } }
@keyframes atmosphere-flow {
  from { transform: translate(-20px, -20px) rotate(-32deg); }
  to { transform: translate(40px, 40px) rotate(-18deg); }
}
@media (max-width: 699px) {
  .ambient-rings { width: 490px; height: 420px; left: -270px; top: 12%; opacity: .58; }
  .ambient-rings i { border-width: 17px; }
  .ambient-rings i + i { border-width: 12px; }
  .ambient-orbits { width: 590px; height: 440px; right: -260px; top: 36%; }
  .ambient-orbits i + i { display: none; }
  .ambient-glow { width: 600px; height: 650px; right: -300px; top: 23%; opacity: .85; }
  .about-atmosphere .ambient-glow { left: -360px; top: 7%; }
  .ambient-warmth { width: 360px; height: 360px; right: -210px; top: -70px; }
  .services-atmosphere .ambient-warmth { right: -150px; bottom: -100px; }
  .ambient-stream { top: 40%; right: -72%; width: 150%; height: 38%; }
}
@media (prefers-reduced-motion: reduce) {
  .section-atmosphere *, .section-atmosphere *::after { animation: none !important; }
}
.home-refresh .header .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: auto;
  top: auto;
  bottom: 2px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: #FFB547;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.home-refresh .header .nav-link[aria-current="location"]::after { transform: scaleX(.24); }
.home-refresh .header .nav-link:hover::after,
.home-refresh .header .nav-link:focus-visible::after { transform: scaleX(1); }
.home-refresh .language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  width: 44px;
  min-height: 44px;
  padding: 8px 0;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.language-toggle:focus-visible { outline: 2px solid #FFB547; outline-offset: 4px; }
.home-refresh .showroom-previews { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.project-website {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  color: #FFB547;
  text-underline-offset: 5px;
}
.project-website:hover { text-decoration: underline; }
.project-website:focus-visible { outline: 2px solid #FFB547; outline-offset: 4px; }
@media (max-width: 699px) {
  .home-refresh .showroom-previews {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }
  .home-refresh .showroom-thumb { flex: 0 0 80px; scroll-snap-align: start; }
}
@media (max-width: 1023px) {
  .home-refresh .header { gap: 10px; }
  .home-refresh .header > .brand { margin-right: auto; }
  .home-refresh .language-toggle { align-self: center; margin: 0; flex: 0 0 44px; }
  .home-refresh .header > .header-contact:not(.language-toggle) { padding-inline: 12px; }
}
@media (max-width: 419px) {
  .home-refresh .header > .header-contact:not(.language-toggle) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .home-refresh .header .nav-link::after { transition: none; }
}
