/* An original AmericanSites picture becomes a window into the agency's work. */
.hero.service-hero.creative-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: clamp(24px, 3vw, 52px);
  height: auto;
  min-height: 780px;
  padding: 145px max(28px, calc((100% - 1320px) / 2)) 58px;
  overflow: hidden;
  background: #090b0f;
}
.hero.service-hero.creative-hero::before,
.hero.service-hero.creative-hero::after { content: none; }
.creative-hero .hero-ambient {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 89% 28%, #163f7919, transparent 49%), radial-gradient(ellipse at 59% 81%, #b52a3010, transparent 45%);
}
.hero.service-hero.creative-hero .hero-copy { width: 100%; max-width: 570px; min-width: 0; padding: 0 0 18px; }
.hero.service-hero.creative-hero h1 {
  margin: 26px 0 24px;
  font-size: clamp(44px, 4.75vw, 72px);
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: 1.045;
  text-wrap: balance;
}
.hero.service-hero.creative-hero .hero-lead { max-width: 490px; color: #b7c0cf; font-size: 15px; line-height: 1.85; }
.hero.service-hero.creative-hero .eyebrow { color: #a9c7f0; font-size: 10px; line-height: 1.6; }
.hero.service-hero.creative-hero .eyebrow::before { width: 25px; flex: none; background: #d53b4d; }
.hero.service-hero.creative-hero .hero-actions { align-items: flex-start; flex-direction: column; gap: 21px; margin-top: 29px; }
.hero.service-hero.creative-hero .hero-actions .button { min-height: 54px; padding-inline: 24px; box-shadow: 0 8px 30px #b2223320, inset 0 1px #ffffff24; font-size: 12px; }
.hero.service-hero.creative-hero .hero-note { margin-top: 29px; color: #8290a4; font-size: 10px; line-height: 1.7; }
.hero.service-hero.creative-hero .service-hero__work-link { color: #dce4f0; font-size: 12px; }
.hero.service-hero.creative-hero .entrance-replay { margin-top: 17px; color: #91a5c1; }

.hero-studio {
  --hero-x: 0px;
  --hero-y: 0px;
  --hero-rx: 0deg;
  --hero-ry: 0deg;
  --hero-px: 50%;
  --hero-py: 45%;
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 760px;
  margin: 0;
  justify-self: center;
  color: #f0f5ff;
}
.hero-studio-scene {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: clamp(480px, 40vw, 590px);
  max-height: 660px;
  overflow: hidden;
  border-radius: 22px;
  background: #05070b;
  perspective: 1200px;
  touch-action: pan-y;
}
.hero-studio-art {
  position: absolute;
  z-index: -3;
  inset: -3%;
  width: 106%;
  height: 106%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 42%;
  transform: translate3d(var(--hero-x), var(--hero-y), 0) scale(1.025);
  transition: transform .18s ease-out, filter .7s ease;
  will-change: transform;
  filter: saturate(.95) contrast(1.04);
}
.hero-studio-vignette {
  position: absolute;
  z-index: -2;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, #05070b4d, transparent 22%, transparent 60%, #05070b85), linear-gradient(90deg, #05070b2b, transparent 16%, transparent 84%, #05070b2b);
  box-shadow: inset 0 0 85px 8px #05070b88;
}
.hero-studio-glow {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background: radial-gradient(circle at var(--hero-px) var(--hero-py), #a2c8ff31, transparent 30%), radial-gradient(ellipse at 10% 51%, #f0384433, transparent 52%), radial-gradient(ellipse at 92% 52%, #2478ff33, transparent 53%);
  mix-blend-mode: screen;
  animation: hero-studio-breathe 7s ease-in-out infinite alternate;
  transition: opacity .5s;
}
.hero-studio-grid {
  position: absolute;
  z-index: -1;
  left: -40%;
  right: -40%;
  bottom: -50px;
  height: 180px;
  pointer-events: none;
  opacity: .16;
  background-image: linear-gradient(#9cbcf430 1px, transparent 1px), linear-gradient(90deg, #9cbcf430 1px, transparent 1px);
  background-size: 42px 42px;
  transform: rotateX(66deg);
  transform-origin: center bottom;
  mask-image: linear-gradient(transparent, #000 70%, transparent);
}
.hero-studio-kicker {
  position: absolute;
  z-index: 3;
  top: 20px;
  left: 22px;
  right: 22px;
  margin: 0;
  color: #d5dfea;
  font: 550 9px/1.5 var(--body);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px #000;
}
.hero-studio-kicker span { margin-inline: 9px; color: #cf5263; }
.hero-signal {
  position: absolute;
  z-index: 4;
  top: 57px;
  right: 22px;
  display: grid;
  justify-items: center;
  gap: 1px;
  width: 84px;
  padding: 3px 3px 9px;
  border: 0;
  border-radius: 50% 50% 16px 16px;
  background: radial-gradient(ellipse at center, #061020cc, #06102000 71%);
  color: #d0ddeb;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hero-signal::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border: 1px solid #8bbfff00;
  border-radius: 50%;
  transform: scale(.65);
  pointer-events: none;
}
.hero-signal img { width: 70px; height: 70px; object-fit: contain; border-radius: 50%; filter: drop-shadow(0 3px 14px #3372c78c); transition: transform .35s, filter .35s; }
.hero-signal > span { display: inline-flex; align-items: center; gap: 5px; color: #d4e5fc; font-size: 9px; font-weight: 600; line-height: 1.5; }
.hero-signal b { color: #8dbaff; font-weight: 500; }
.hero-signal:hover img,
.hero-signal:focus-visible img { transform: translateY(-4px) scale(1.06); filter: drop-shadow(0 2px 20px #7caefec9); }
.hero-signal:focus-visible { outline: 2px solid #b5d3ff; outline-offset: 4px; }
.hero-studio.is-pulsing .hero-studio-glow { animation: hero-studio-flash 1.15s ease-out both; }
.hero-studio.is-pulsing .hero-signal::before { animation: hero-signal-ring 1.15s ease-out both; }
.hero-studio.is-pulsing .hero-studio-art { filter: saturate(1.15) contrast(1.05) brightness(1.14); }

.hero-project-window {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 29px;
  width: 69%;
  max-width: 430px;
  overflow: hidden;
  border: 1px solid #cedfff52;
  border-radius: 12px;
  background: #111821f5;
  box-shadow: 0 30px 50px #0009, -9px 0 34px #c6253722, 13px 0 40px #1f68c02b, inset 0 1px #d3e5ff36;
  transform: translate3d(-50%, 0, 0) rotateX(var(--hero-rx)) rotateY(var(--hero-ry));
  transform-origin: center center;
  transition: transform .2s ease-out, border-color .35s, box-shadow .35s;
  animation: hero-window-float 6s ease-in-out infinite;
  will-change: transform;
}
.hero-project-window:hover { border-color: #c6dfff9c; box-shadow: 0 30px 50px #0009, -9px 0 34px #c625372e, 13px 0 40px #1f68c045, inset 0 1px #d3e5ff36; }
.hero-project-chrome { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 7px 12px; background: linear-gradient(180deg, #253244, #161d28); border-bottom: 1px solid #bdd5fa24; }
.hero-project-lights { display: flex; gap: 4px; flex: none; }
.hero-project-lights > span { width: 5px; height: 5px; border-radius: 50%; background: #e6656e; box-shadow: 0 0 6px #e6656e20; }
.hero-project-lights > span:nth-child(2) { background: #d1ac6e; }
.hero-project-lights > span:nth-child(3) { background: #90b4d1; }
.hero-project-domain { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #bac9dc; font: 500 9px/1.4 var(--body); }
.hero-live-indicator { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; flex: none; color: #cfdded; font-size: 8px; line-height: 1.3; }
.hero-live-indicator::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #a7caff; box-shadow: 0 0 7px #8bbaff80; }
.hero-project-image { position: relative; display: block; width: 100%; aspect-ratio: 2.2; padding: 0; overflow: hidden; border: 0; background: #1a2432; cursor: pointer; }
.hero-project-image > img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: top center; transition: transform .65s ease, opacity .2s; }
.hero-project-image::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(transparent 45%, #06101d80); }
.hero-project-explore { position: absolute; z-index: 1; right: 11px; bottom: 11px; display: inline-flex; align-items: center; gap: 13px; min-height: 32px; padding: 8px 10px; border: 1px solid #cbdffe57; border-radius: 5px; background: #07101cd9; color: #f4f8ff; font-size: 9px; font-weight: 600; box-shadow: 0 2px 10px #0004; backdrop-filter: blur(10px); transition: background .25s, border-color .25s; }
.hero-project-explore > span { color: #b9d3fc; font-size: 14px; line-height: 1; }
.hero-project-image:hover > img { transform: scale(1.04); }
.hero-project-image:hover .hero-project-explore,
.hero-project-image:focus-visible .hero-project-explore { border-color: #cbdfffaa; background: #112d52f2; }
.hero-project-image:focus-visible { outline: 2px solid #bed8ff; outline-offset: -3px; }
.hero-project-details { display: flex; align-items: center; gap: 10px; min-height: 66px; padding: 11px 12px 12px 16px; background: linear-gradient(110deg, #1b2635f2, #101620f5); }
.hero-project-details > div { display: grid; min-width: 0; gap: 4px; }
.hero-project-details strong { display: block; overflow: hidden; text-overflow: ellipsis; color: #eef4ff; font: 650 12px/1.35 var(--heading); }
.hero-project-details > div > span { color: #9aacc3; font-size: 9px; line-height: 1.4; }
.hero-next { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin-left: auto; padding: 0; border: 1px solid #b5d2ff3b; border-radius: 50%; background: #a0c3ff09; color: #d1e3ff; cursor: pointer; font-size: 23px; transition: border-color .2s, background .2s; }
.hero-next:hover { background: #4a83d32c; border-color: #b5d2ff9a; }
.hero-next:focus-visible { outline: 2px solid #bed8ff; outline-offset: 3px; }
.hero-studio.is-project-changing .hero-project-image > img { opacity: .35; transform: scale(1.025); }

.hero-studio-controls { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; align-items: center; gap: 14px; min-height: 78px; padding: 16px 3px 10px; }
.hero-studio-controls > p { display: grid; gap: 5px; margin: 0; color: #92a3bc; font-size: 9px; line-height: 1.45; }
.hero-studio-controls > p > span { color: #d1dced; font: 600 9px/1.4 var(--heading); letter-spacing: .12em; }
.hero-project-picker { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; }
.hero-project-dot { position: relative; display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 4px; border: 1px solid #6986b22e; border-radius: 9px; background: #17202d; cursor: pointer; opacity: .67; transition: opacity .25s, border-color .25s, background .25s, transform .25s; }
.hero-project-dot img { display: block; width: 100%; height: 100%; border-radius: 4px; object-fit: cover; object-position: top center; }
.hero-project-dot:hover { opacity: 1; border-color: #a5c8f882; transform: translateY(-2px); }
.hero-project-dot[aria-pressed="true"] { opacity: 1; border-color: #a9cfff; background: #294c7c; box-shadow: 0 0 0 2px #4073b52b, 0 2px 12px #184b931f; }
.hero-project-dot[aria-pressed="true"]::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 9px; height: 2px; margin-left: -4.5px; border-radius: 2px; background: #d6495e; }
.hero-project-dot:focus-visible { outline: 2px solid #bfd8ff; outline-offset: 3px; opacity: 1; }
.hero-motion { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #7898c440; border-radius: 50%; background: #14213244; color: #a9bfdd; cursor: pointer; font-size: 14px; line-height: 1; transition: background .25s, border-color .25s; }
.hero-motion:hover { background: #243d5a66; border-color: #7898c488; }
.hero-motion:focus-visible { outline: 2px solid #bfd8ff; outline-offset: 3px; }
.hero-studio-caption { margin: 4px 0 0; color: #8192aa; font-size: 10px; line-height: 1.7; text-align: center; }

@keyframes hero-studio-breathe { from { opacity: .35; } to { opacity: .73; } }
@keyframes hero-window-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes hero-studio-flash { 0% { opacity: .55; } 18% { opacity: 1; filter: brightness(1.7); } 100% { opacity: .5; filter: brightness(1); } }
@keyframes hero-signal-ring { 0% { opacity: 1; transform: scale(.65); border-color: #acd0ff88; } 100% { opacity: 0; transform: scale(3.5); border-color: #acd0ff00; } }

.hero-studio.is-motion-paused .hero-studio-art { transform: none; will-change: auto; }
.hero-studio.is-motion-paused .hero-project-window { transform: translateX(-50%); translate: none; will-change: auto; }
.hero-studio.is-motion-paused *,
.hero-studio.is-motion-paused *::before,
.hero-studio.is-motion-paused *::after { animation: none !important; transition: none !important; }
.hero-studio.is-motion-paused .hero-project-image:hover > img,
.hero-studio.is-motion-paused .hero-project-dot:hover,
.hero-studio.is-motion-paused .hero-signal:hover img,
.hero-studio.is-motion-paused .hero-signal:focus-visible img { transform: none; }
.hero-studio.is-motion-paused.is-pulsing .hero-studio-glow { opacity: .88; }

@media (max-width: 1150px) and (min-width: 901px) {
  .hero.service-hero.creative-hero { gap: 22px; padding-inline: 28px; }
  .hero.service-hero.creative-hero h1 { font-size: 51px; }
  .hero.service-hero.creative-hero .hero-lead { font-size: 14px; }
  .hero-studio-scene { height: 505px; }
  .hero-project-window { width: 83%; bottom: 27px; }
  .hero-studio-controls { grid-template-columns: 1fr 44px; gap: 10px; }
  .hero-studio-controls > p { display: none; }
  .hero-project-picker { justify-content: flex-end; }
}

@media (max-width: 900px) {
  .hero.service-hero.creative-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    min-height: 0;
    padding: 125px 28px 54px;
  }
  .hero.service-hero.creative-hero .hero-copy { display: contents; }
  .creative-hero .hero-copy > .eyebrow { order: 0; }
  .hero.service-hero.creative-hero h1 { order: 1; max-width: none; margin: 18px 0 19px; font-size: clamp(43px, 7.4vw, 64px); }
  .creative-hero .hero-studio { order: 2; width: 100%; max-width: 700px; margin: 0 auto 25px; }
  .creative-hero .hero-copy > .hero-lead { order: 3; max-width: 650px; }
  .creative-hero .hero-copy > .hero-actions { order: 4; }
  .creative-hero .hero-copy > .hero-note { order: 5; }
  .creative-hero .hero-copy > .entrance-replay { order: 6; justify-self: start; }
  .hero.service-hero.creative-hero .hero-actions { flex-direction: row; align-items: center; gap: 23px; margin-top: 23px; }
  .hero.service-hero.creative-hero .hero-note { margin-top: 22px; }
  .hero-studio-scene { height: clamp(420px, 66vw, 540px); }
  .hero-project-window { width: 70%; max-width: 455px; bottom: 25px; }
  .hero-signal { top: 58px; right: 25px; }
}

@media (max-width: 600px) {
  .hero.service-hero.creative-hero { padding: 174px 20px 46px; }
  .hero.service-hero.creative-hero h1 { margin: 18px 0 14px; font-size: clamp(37px, 9.3vw, 51px); }
  .hero.service-hero.creative-hero .eyebrow { font-size: 9px; gap: 8px; }
  .hero.service-hero.creative-hero .eyebrow::before { width: 17px; }
  .hero-studio { margin-bottom: 23px; }
  .hero-studio-scene { height: clamp(360px, 95vw, 475px); border-radius: 15px; }
  .hero-studio-art { inset: 0 -10% auto; width: 120%; height: auto; min-height: 77%; object-fit: cover; object-position: center top; transform: translate3d(var(--hero-x), var(--hero-y), 0); }
  .hero-studio-vignette { box-shadow: inset 0 0 40px 2px #05070b85; background: linear-gradient(180deg, #05070b2b, transparent 35%, #05070b00 55%, #05070b55); }
  .hero-studio-kicker { top: 15px; left: 16px; right: 16px; font-size: 8px; letter-spacing: .08em; }
  .hero-studio-kicker span { margin-inline: 6px; }
  .hero-signal { top: 39px; right: 10px; width: 66px; padding-bottom: 5px; gap: 0; }
  .hero-signal img { width: 51px; height: 51px; }
  .hero-signal > span { font-size: 8px; gap: 3px; }
  .hero-project-window { width: 84%; max-width: 370px; bottom: 19px; border-radius: 9px; }
  .hero-project-chrome { min-height: 28px; gap: 7px; padding: 5px 9px; }
  .hero-project-lights { gap: 3px; }
  .hero-project-lights > span { width: 4px; height: 4px; }
  .hero-project-domain { font-size: 8px; }
  .hero-live-indicator { gap: 4px; font-size: 7px; }
  .hero-project-image { aspect-ratio: 1.9; }
  .hero-project-details { min-height: 62px; gap: 6px; padding: 8px 9px 9px 12px; }
  .hero-project-details strong { font-size: 10px; line-height: 1.4; }
  .hero-project-details > div > span { font-size: 8px; line-height: 1.45; }
  .hero-next { width: 44px; height: 44px; font-size: 21px; }
  .hero-project-explore { right: 8px; bottom: 8px; min-height: 27px; gap: 8px; padding: 6px 8px; font-size: 8px; }
  .hero-project-explore > span { font-size: 12px; }
  .hero-studio-controls { grid-template-columns: minmax(0, 1fr) 44px; gap: 10px 9px; padding: 14px 0 8px; }
  .hero-studio-controls > p { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 15px; padding-inline: 2px; font-size: 9px; }
  .hero-studio-controls > p > span { font-size: 8px; }
  .hero-project-picker { gap: 5px; justify-content: flex-start; }
  .hero-studio-caption { margin-top: 7px; font-size: 9px; }
  .hero.service-hero.creative-hero .hero-lead { font-size: 14px; line-height: 1.8; }
  .hero.service-hero.creative-hero .hero-actions { flex-direction: column; align-items: flex-start; gap: 20px; margin-top: 24px; }
  .hero.service-hero.creative-hero .hero-actions .button { width: auto; flex: none; min-height: 53px; padding-inline: 21px; font-size: 11px; }
  .hero.service-hero.creative-hero .hero-note { margin-top: 23px; font-size: 9px; }
}

@media (max-width: 350px) {
  .hero.service-hero.creative-hero { padding-inline: 16px; }
  .hero.service-hero.creative-hero h1 { font-size: 35px; }
  .hero.service-hero.creative-hero .eyebrow { gap: 6px; font-size: 8px; }
  .hero-studio-scene { height: 355px; }
  .hero-project-window { width: 88%; bottom: 19px; }
  .hero-project-picker { gap: 2px; }
  .hero-studio-controls { column-gap: 8px; }
  .hero-project-chrome { gap: 6px; padding-inline: 8px; }
  .hero-project-domain { font-size: 7px; }
  .hero-project-details { padding-left: 9px; }
  .hero-project-details strong { font-size: 9px; }
  .hero-project-details > div > span { font-size: 7.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-studio *, .hero-studio *::before, .hero-studio *::after { animation: none !important; transition: none !important; }
  .hero-studio .hero-studio-art { transform: none; will-change: auto; }
  .hero-studio .hero-project-window { transform: translateX(-50%); translate: none; will-change: auto; }
  .hero-studio .hero-project-image:hover > img,
  .hero-studio .hero-project-dot:hover,
  .hero-studio .hero-signal:hover img,
  .hero-studio .hero-signal:focus-visible img { transform: none; }
}

/* The light switch keeps a visible state even when motion is paused. */
.hero-studio.is-lit .hero-studio-art { filter: saturate(1.22) contrast(1.04) brightness(1.16); }
.hero-studio.is-lit .hero-studio-glow { opacity: .85; }
.hero-studio.is-lit .hero-signal img { filter: drop-shadow(0 0 22px #72aaffd9) drop-shadow(-5px 2px 8px #e64d5966); }
.hero-studio.is-lit .hero-signal > span { color: #fff; }
.hero-studio.is-lit .hero-project-window { border-color: #c9e2ff91; box-shadow: 0 30px 50px #0009, -12px 0 40px #d8274045, 15px 0 45px #247bdf52, inset 0 1px #e0ecff57; }
.hero-motion:disabled { cursor: default; opacity: .5; }
.contact-beacon.is-at-hero { pointer-events: none; opacity: 0; transform: translateY(16px); visibility: hidden; }
