.iw-home-preview {
  overflow: hidden;
  background: radial-gradient(ellipse at 90% 12%, #39c7ce12, transparent 46%),
    radial-gradient(ellipse at 55% 0%, #d500690d, transparent 48%), #f6f7fb;
  color: #17213b;
}

.iw-home-preview,
.iw-home-preview * { box-sizing: border-box; }

.iw-home-preview__hero,
.iw-home-preview__references-inner {
  display: grid;
  width: min(1320px, calc(100% - 64px));
  margin-inline: auto;
  align-items: center;
  gap: 64px;
}

.iw-home-preview__hero {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  padding: 80px 0 88px;
}

.iw-home-preview__copy,
.iw-home-preview__media,
.iw-home-preview__project,
.iw-home-preview__intro { min-width: 0; }

.iw-home-preview__eyebrow {
  margin: 0 0 20px;
  color: #b5005b;
  font-size: 16px;
  font-weight: 800;
}

.iw-home-preview__eyebrow span {
  background: linear-gradient(90deg, #17213b 0%, #d50069 25%, #39c7ce 50%, #17213b 75%, #17213b 100%);
  background-size: 300% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  animation: iw-home-sheen 8s linear infinite;
}

@keyframes iw-home-sheen {
  from { background-position: 0% 50%; }
  to { background-position: 300% 50%; }
}

.iw-home-preview h1 {
  margin: 0 0 24px;
  font-size: clamp(29px, 2.9vw, 43px);
  line-height: 1.18;
  font-weight: 800;
  text-wrap: balance;
}

.iw-home-preview__description { margin: 0 0 28px; color: #526078; font-size: 19px; line-height: 1.65; }
.iw-home-preview__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

.iw-home-preview__media { position: relative; isolation: isolate; }
.iw-home-preview__media::before {
  content: "";
  position: absolute;
  inset: -16% -7%;
  z-index: -1;
  border-radius: 50%;
  background: linear-gradient(135deg, #d5006938, #bfc3ed40 45%, #39c7ce55);
  filter: blur(42px);
}

.iw-home-preview__video-shell {
  position: relative;
  overflow: hidden;
  padding: 7px;
  border: 1px solid #ffffff;
  border-radius: 26px;
  background: #ffffffb3;
  box-shadow: 0 32px 80px #22275326, 0 4px 16px #2227530a;
}

.iw-home-preview__video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 19px;
  background: #eceef5;
  object-fit: contain;
}

.iw-home-preview__video-toggle {
  position: absolute;
  left: 21px;
  bottom: 21px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid #ffffff70;
  border-radius: 50%;
  background: #17213bd9;
  color: #fff;
  box-shadow: 0 4px 16px #17213b26;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}

.iw-home-preview__video-toggle:hover { background: #b5005b; transform: scale(1.05); }
.iw-home-preview__video-toggle[hidden],
.iw-home-preview__video-error[hidden],
.iw-home-preview__video-toggle[data-playing="true"] .iw-home-preview__video-play,
.iw-home-preview__video-toggle[data-playing="false"] .iw-home-preview__video-pause { display: none; }
.iw-home-preview__video-error { margin: 16px 0 0; color: #526078; font-size: 15px; }
.iw-home-preview__video-error a { text-decoration: underline; }

.iw-home-preview__references {
  padding: 88px 0;
  border-top: 1px solid #e5e8f0;
  background: linear-gradient(135deg, #f9fafc 0%, #fff 55%);
}

.iw-home-preview__references-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.iw-home-preview__project-label { margin: 0 0 16px; color: #596174; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.iw-home-preview__carousel { min-width: 0; }
.iw-home-preview__track { display: grid; overflow: hidden; border-radius: 16px; touch-action: pan-y; box-shadow: 0 24px 64px #22275316; }
.iw-home-preview__slide { grid-area: 1 / 1; width: 100%; min-width: 0; visibility: hidden; opacity: 0; transition: opacity .24s ease, visibility 0s linear .24s; }
.iw-home-preview__slide[aria-current="true"] { visibility: visible; opacity: 1; transition: opacity .24s ease, visibility 0s; }
.iw-home-preview__window { display: block; overflow: hidden; border: 1px solid #d9dce5; border-radius: 16px; background: #fff; color: #596174; text-decoration: none; }
.iw-home-preview__toolbar { display: flex; align-items: center; gap: 12px; padding: 12px; border-bottom: 1px solid #d9dce5; background: linear-gradient(#fafafa, #e7e8eb); }
.iw-home-preview__dots { display: flex; gap: 5px; }
.iw-home-preview__dots i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.iw-home-preview__dots i:nth-child(2) { background: #febc2e; }
.iw-home-preview__dots i:nth-child(3) { background: #28c840; }
.iw-home-preview__address { flex: 1; min-width: 0; overflow: hidden; padding: 5px 12px; border: 1px solid #d4d6db; border-radius: 6px; background: #fff; text-align: center; font: 12px/1.4 system-ui, sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.iw-home-preview__window img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.iw-home-preview__carousel-controls { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 22px; }
.iw-home-preview__carousel-arrow { display: grid; width: 44px; height: 44px; padding: 0; place-items: center; border: 1px solid #d9dce5; border-radius: 50%; background: #fff; color: #222753; font-size: 24px; line-height: 1; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.iw-home-preview__carousel-arrow:hover { border-color: #222753; background: #222753; color: #fff; }
.iw-home-preview__carousel-dots { display: flex; align-items: center; justify-content: center; }
.iw-home-preview__carousel-dot { display: grid; width: 24px; height: 44px; padding: 0; place-items: center; border: 0; background: transparent; cursor: pointer; }
.iw-home-preview__carousel-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #c6cad4; transition: background-color .2s ease, transform .2s ease; }
.iw-home-preview__carousel-dot[aria-current="true"]::before { background: #d50069; transform: scale(1.3); }

.iw-home-preview__intro h3 {
  margin: 0 0 24px;
  color: #17213b;
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  text-wrap: balance;
}

.iw-home-preview__intro p { margin: 0; color: #526078; font-size: 17px; line-height: 1.75; text-align: left; }
.iw-home-preview__intro .btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.iw-home-preview a:focus-visible,
.iw-home-preview button:focus-visible,
.iw-home-preview__track:focus-visible { outline: 3px solid #13999f; outline-offset: 4px; }

@media (max-width: 1180px) {
  .iw-home-preview__hero,
  .iw-home-preview__references-inner { gap: 40px; }
  .iw-home-preview__carousel-dots { display: none; }
}

@media (max-width: 1000px) {
  .iw-home-preview__hero,
  .iw-home-preview__references-inner { width: calc(100% - 40px); grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .iw-home-preview__hero { padding: 48px 0 64px; }
  .iw-home-preview__copy,
  .iw-home-preview__media,
  .iw-home-preview__project,
  .iw-home-preview__intro { width: 100%; max-width: 760px; margin-inline: auto; }
  .iw-home-preview h1 { font-size: clamp(30px, 4.5vw, 40px); }
  .iw-home-preview__references { padding: 64px 0; }
}

@media (max-width: 760px) {
  .iw-home-preview__hero { gap: 32px; padding: 36px 0 48px; }
  .iw-home-preview h1 { font-size: clamp(26px, 6vw, 36px); }
  .iw-home-preview__description { font-size: 17px; }
  .iw-home-preview__actions .btn { width: 100%; }
  .iw-home-preview__actions { justify-content: center; }
  .iw-home-preview__video-shell { padding: 4px; border-radius: 20px; }
  .iw-home-preview__video { border-radius: 15px; }
  .iw-home-preview__video-toggle { left: 14px; bottom: 14px; }
  .iw-home-preview__references { padding: 48px 0; }
  .iw-home-preview__intro h3 { font-size: 25px; }
  .iw-home-preview__intro p { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .iw-home-preview__eyebrow span { animation: none; background: none; color: #b5005b; }
  .iw-home-preview__video-toggle,
  .iw-home-preview__carousel-arrow,
  .iw-home-preview__carousel-dot::before,
  .iw-home-preview__slide { transition: none; }
  .iw-home-preview__video-toggle:hover { transform: none; }
}

.iw-home-preview--cinematic .iw-home-preview__hero {
  position: relative;
  isolation: isolate;
  display: flex;
  width: 100%;
  min-height: min(820px, calc(100svh - 116px));
  margin: 0;
  padding: 88px 32px 96px;
  justify-content: center;
  gap: 0;
  overflow: hidden;
  background: #111a34;
  color: #fff;
  text-align: center;
}

.iw-home-preview--cinematic .iw-home-preview__backdrop,
.iw-home-preview--cinematic .iw-home-preview__shade,
.iw-home-preview--cinematic .iw-home-preview__background-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.iw-home-preview--cinematic .iw-home-preview__backdrop { z-index: 0; background-position: center; background-size: cover; pointer-events: none; }
.iw-home-preview--cinematic .iw-home-preview__background-video { display: block; object-fit: cover; }
.iw-home-preview--cinematic .iw-home-preview__background-video[hidden] { display: none; }
.iw-home-preview--cinematic .iw-home-preview__shade {
  z-index: 1;
  background: linear-gradient(120deg, #101a35d9 0%, #222753bf 50%, #471a46b8 100%),
    linear-gradient(0deg, #101a3533, transparent 45%);
  pointer-events: none;
}

.iw-home-preview--cinematic .iw-home-preview__copy {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
}

.iw-home-preview--cinematic .iw-home-preview__eyebrow { margin: 0 auto 24px; color: #8fe6eb; }
.iw-home-preview--cinematic .iw-home-preview__eyebrow span { animation: none; background: none; color: inherit; }
.iw-home-preview--cinematic h1 {
  margin-bottom: 28px;
  color: #fff;
  font-size: clamp(38px, 4.4vw, 62px);
  line-height: 1.12;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.iw-home-preview--cinematic .iw-home-preview__description {
  max-width: 800px;
  margin: 0 auto 32px;
  color: #f1f3fa;
  font-size: 20px;
  line-height: 1.65;
  text-wrap: pretty;
}

.iw-home-preview--cinematic .iw-home-preview__actions { justify-content: center; }
.iw-home-preview--cinematic .iw-home-preview__actions .iw-home-preview__primary { box-shadow: 0 12px 34px #d5006940; }
.iw-home-preview--cinematic .iw-home-preview__actions .iw-home-preview__secondary {
  border: 1px solid #ffffff80;
  background: #ffffff12;
  box-shadow: none;
}

.iw-home-preview--cinematic .iw-home-preview__video-toggle { z-index: 3; left: 32px; bottom: 24px; }
.iw-home-preview--cinematic .iw-home-preview__video-error {
  position: absolute;
  z-index: 3;
  right: 88px;
  bottom: 28px;
  left: 88px;
  margin: 0;
  color: #fff;
  text-align: center;
}

@media (min-width: 1025px) {
  .iw-home-preview--cinematic .iw-home-preview__backdrop { background-image: var(--iw-home-poster); }
}

@media (max-width: 1024px) {
  .iw-home-preview--cinematic .iw-home-preview__hero { min-height: 660px; padding: 64px 24px 72px; }
  .iw-home-preview--cinematic .iw-home-preview__shade { display: none; }
  .iw-home-preview--cinematic .iw-home-preview__copy { max-width: 760px; }
  .iw-home-preview--cinematic h1 { font-size: clamp(32px, 5.2vw, 46px); }
  .iw-home-preview--cinematic .iw-home-preview__description { font-size: 18px; }
}

@media (max-width: 760px) {
  .iw-home-preview--cinematic .iw-home-preview__hero { min-height: 0; padding: 48px 20px 56px; }
  .iw-home-preview--cinematic .iw-home-preview__eyebrow { margin-bottom: 20px; font-size: 15px; }
  .iw-home-preview--cinematic h1 { margin-bottom: 24px; font-size: clamp(27px, 6.8vw, 38px); line-height: 1.16; }
  .iw-home-preview--cinematic .iw-home-preview__description { margin-bottom: 28px; font-size: 17px; }
}
