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

:root {
  font-family: 'Manrope', sans-serif;
  color: #f4f8ff;
  background: #020a13;
  font-synthesis: none;
  --ink: #020a13;
  --panel: #061421;
  --line: rgba(147, 190, 229, 0.16);
  --muted: #91a2b4;
  --blue: #178eff;
  --blue-soft: #61b5ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 90% 20%, rgba(18, 114, 203, 0.1), transparent 30%),
    var(--ink);
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  overflow: hidden;
}

.header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 50%;
  width: min(100% - 48px, 1280px);
  height: 92px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  transform: translateX(-50%);
}

.logo {
  display: block;
  width: 190px;
  flex-shrink: 0;
}

.logo img {
  display: block;
  width: 100%;
  height: auto;
}

.nav {
  display: flex;
  gap: 38px;
  margin-left: auto;
  margin-right: 48px;
}

.nav a {
  color: rgba(244, 248, 255, 0.78);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 180ms ease;
}

.nav a:hover {
  color: #fff;
}

.header__cta {
  padding: 14px 26px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow:
    0 10px 30px rgba(23, 142, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.header__cta:hover {
  background: #3aa0ff;
  transform: translateY(-1px);
  box-shadow:
    0 14px 38px rgba(23, 142, 255, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  min-height: 800px;
  height: 100svh;
  max-height: 980px;
  display: flex;
  align-items: center;
}

.hero__image,
.showcase > img,
.contact > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__image {
  object-position: center 55%;
  animation: hero-in 1.6s ease-out both;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: scale(1.05);
  }
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(1, 8, 16, 0.95) 0%, rgba(1, 9, 18, 0.76) 34%, rgba(1, 8, 16, 0.22) 68%),
    linear-gradient(0deg, #020a13 0%, transparent 30%, rgba(2, 10, 19, 0.46) 100%);
}

.hero__glow {
  position: absolute;
  left: 32%;
  top: 15%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(23, 142, 255, 0.14), transparent 65%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(100% - 48px, 1280px);
  margin: 50px auto 0;
}

.eyebrow,
.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-soft);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 30px;
  height: 1px;
  background: var(--blue);
}

.hero h1 {
  max-width: 850px;
  margin: 30px 0 24px;
  font-size: clamp(44px, 5.7vw, 82px);
  font-weight: 300;
  line-height: 1.03;
  letter-spacing: -0.045em;
}

h1 em,
h2 em {
  color: var(--blue);
  font-style: normal;
}

.hero__content > p {
  max-width: 550px;
  margin: 0;
  color: #b7c4d1;
  font-size: 16px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 42px;
}

.button {
  height: 58px;
  padding: 0 10px 0 26px;
  display: inline-flex;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  background: var(--blue);
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(10, 122, 228, 0.22);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(10, 122, 228, 0.34);
}

.button svg,
.text-link svg,
.project-card__arrow svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.button > svg {
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.13);
}

.button--secondary {
  border-color: rgba(86, 174, 255, 0.45);
  background: rgba(7, 25, 42, 0.35);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.video-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: none;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.video-button > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(126, 196, 255, 0.6);
  border-radius: 50%;
}

.video-button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.hero__facts {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 50%;
  width: min(100% - 48px, 1280px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  transform: translateX(-50%);
}

.hero__facts > div {
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.hero__facts > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero__facts strong {
  font-size: 25px;
  font-weight: 400;
}

.hero__facts span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
}

.scroll-mark {
  position: absolute;
  z-index: 2;
  right: 26px;
  bottom: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: rotate(90deg);
  transform-origin: right bottom;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.scroll-mark i {
  width: 44px;
  height: 1px;
  background: var(--blue);
}

.section {
  width: min(100% - 48px, 1280px);
  margin: 0 auto;
  padding: 130px 0;
}

.section__intro,
.section__heading {
  display: grid;
  grid-template-columns: 1.45fr 0.55fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 54px;
}

.section__intro h2,
.section__heading h2,
.showcase h2,
.contact h2 {
  max-width: 710px;
  margin: 18px 0 0;
  font-size: clamp(36px, 4.2vw, 62px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section__intro > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.service-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}

.service-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.service-card:hover img,
.project-card:hover img {
  transform: scale(1.045);
}

.service-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 11, 20, 0.97) 0%, rgba(2, 11, 20, 0.74) 48%, rgba(2, 11, 20, 0.12));
}

.service-card__number {
  position: absolute;
  top: 28px;
  right: 30px;
  color: rgba(255, 255, 255, 0.36);
  font-size: 10px;
  letter-spacing: 0.15em;
}

.service-card__icon {
  position: absolute;
  top: 34px;
  left: 34px;
  width: 42px;
  color: var(--blue-soft);
}

.service-card__icon svg {
  width: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}

.service-card__icon text {
  fill: currentColor;
  stroke: none;
  font-size: 6px;
}

.service-card__copy {
  position: absolute;
  z-index: 2;
  left: 34px;
  bottom: 32px;
  width: 58%;
}

.service-card__copy h3,
.project-card__copy h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 400;
}

.service-card__copy p {
  margin: 10px 0 20px;
  color: #9fabb8;
  font-size: 11px;
  line-height: 1.65;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-soft);
  font-size: 10px;
}

.showcase {
  position: relative;
  min-height: 650px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 130px;
}

.showcase__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 10, 19, 0.92), rgba(2, 10, 19, 0.38) 60%, rgba(2, 10, 19, 0.6)),
    linear-gradient(0deg, #020a13, transparent 35%, #020a13);
}

.showcase__content {
  position: relative;
  z-index: 2;
  width: min(100% - 48px, 1280px);
  margin: 0 auto;
}

.showcase__content p,
.contact__copy p {
  max-width: 500px;
  margin: 24px 0 34px;
  color: #b0bdc9;
  font-size: 13px;
  line-height: 1.8;
}

.orbit {
  position: absolute;
  z-index: 2;
  right: max(7vw, 60px);
  top: 40%;
  width: 240px;
  height: 240px;
  display: grid;
  place-content: center;
  text-align: center;
  transform: translateY(-50%);
}

.orbit__ring {
  position: absolute;
  border: 1px solid rgba(79, 172, 255, 0.5);
  border-left-color: transparent;
  border-radius: 50%;
  animation: spin 16s linear infinite;
}

.orbit__ring--outer {
  inset: 0;
}

.orbit__ring--inner {
  inset: 20px;
  animation-direction: reverse;
  animation-duration: 12s;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.orbit strong {
  font-size: 38px;
  font-weight: 300;
}

.orbit span {
  margin-top: 5px;
  color: var(--blue-soft);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section__heading {
  display: flex;
  justify-content: space-between;
}

.projects__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  grid-template-rows: repeat(2, 270px);
  gap: 16px;
}

.project-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
}

.project-card--1 {
  grid-row: 1 / 3;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.project-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 10, 19, 0.9), transparent 60%);
}

.project-card__copy {
  position: absolute;
  left: 28px;
  bottom: 26px;
}

.project-card__copy span {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-soft);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.project-card__arrow {
  position: absolute;
  right: 24px;
  bottom: 24px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
}

.process {
  position: relative;
  border-top: 1px solid var(--line);
}

.process__steps {
  --active: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process__track {
  position: absolute;
  top: 9px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
}

.process__track i {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--active) * ((100% - 60px) / 4 + 20px) + 10px);
  background: linear-gradient(90deg, rgba(23, 142, 255, 0.2), var(--blue));
  box-shadow: 0 0 18px rgba(23, 142, 255, 0.7);
  transition: width 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.process-step {
  position: relative;
  min-height: 420px;
  padding: 56px 30px 32px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 24px;
  margin-top: 40px;
  background: linear-gradient(180deg, rgba(8, 26, 44, 0.6), rgba(4, 14, 25, 0.3));
  outline: none;
  cursor: default;
  transition:
    transform 320ms ease,
    border-color 320ms ease,
    background 320ms ease;
}

.process-step__node {
  position: absolute;
  top: -41px;
  left: -1px;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(147, 190, 229, 0.4);
  border-radius: 50%;
  background: var(--ink);
  transition: all 320ms ease;
}

.process-step--passed .process-step__node,
.process-step--active .process-step__node {
  border-color: var(--blue);
  background: var(--blue);
}

.process-step--active .process-step__node {
  box-shadow:
    0 0 0 8px rgba(23, 142, 255, 0.16),
    0 0 24px rgba(23, 142, 255, 0.9);
}

.process-step__number {
  position: absolute;
  top: 6px;
  right: 18px;
  font-size: 128px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(97, 181, 255, 0.28);
  pointer-events: none;
  transition: all 320ms ease;
}

.process-step__time {
  align-self: flex-start;
  margin-bottom: auto;
  padding: 8px 14px;
  border: 1px solid rgba(97, 181, 255, 0.3);
  border-radius: 999px;
  color: var(--blue-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.process-step h3 {
  margin: 120px 0 14px;
  font-size: clamp(26px, 2.3vw, 34px);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.process-step p {
  margin: 0 0 28px;
  color: #a9b8c7;
  font-size: 16px;
  line-height: 1.6;
}

.process-step__result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: #dfe9f4;
  font-size: 14px;
  font-weight: 500;
}

.process-step__result svg {
  width: 18px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.6;
}

.process-step--active {
  border-color: rgba(23, 142, 255, 0.6);
  background:
    radial-gradient(circle at 80% 0%, rgba(23, 142, 255, 0.35), transparent 60%),
    linear-gradient(180deg, rgba(10, 40, 70, 0.85), rgba(4, 16, 30, 0.85));
  box-shadow: 0 30px 60px rgba(0, 20, 50, 0.5);
}

.process-step--active .process-step__number {
  color: rgba(23, 142, 255, 0.14);
  -webkit-text-stroke-color: rgba(97, 181, 255, 0.85);
}

.process-step--active .process-step__time {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.contact {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  padding: 120px 0;
}

.contact__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 10, 19, 0.96), rgba(2, 10, 19, 0.7) 52%, rgba(2, 10, 19, 0.5)),
    linear-gradient(0deg, #020a13, transparent 40%),
    linear-gradient(180deg, #020a13, transparent 30%);
}

.contact__inner {
  position: relative;
  z-index: 2;
  width: min(100% - 48px, 1280px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr minmax(380px, 500px);
  gap: 80px;
  align-items: center;
}

.contact__copy h2 {
  max-width: 640px;
}

.contact__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  color: #bfccd8;
  font-size: 14px;
}

.contact__meta a:first-child {
  color: white;
  font-size: 26px;
  font-weight: 500;
}

.contact__meta a:hover {
  color: var(--blue-soft);
}

.contact__form {
  padding: 40px;
  border: 1px solid rgba(97, 181, 255, 0.24);
  border-radius: 28px;
  background: rgba(4, 16, 30, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
}

.contact__form > h3 {
  margin: 0 0 28px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lead-form .button {
  justify-content: space-between;
  width: 100%;
  margin-top: 6px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field > span,
.chips legend {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.field input,
.field textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(147, 190, 229, 0.22);
  border-radius: 14px;
  background: rgba(2, 10, 19, 0.6);
  color: #fff;
  font: inherit;
  font-size: 16px;
  outline: none;
  resize: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(145, 162, 180, 0.6);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(23, 142, 255, 0.16);
}

.field--error input {
  border-color: #ff6b7d;
}

.field small {
  color: #ff8a98;
  font-size: 12px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.chips legend {
  margin-bottom: 8px;
  padding: 0;
}

.chip {
  padding: 9px 14px;
  border: 1px solid rgba(147, 190, 229, 0.22);
  border-radius: 999px;
  background: transparent;
  color: #cfdbe7;
  font-size: 14px;
  cursor: pointer;
  transition: all 160ms ease;
}

.chip:hover {
  border-color: rgba(97, 181, 255, 0.6);
}

.chip--active {
  border-color: var(--blue);
  background: rgba(23, 142, 255, 0.2);
  color: #fff;
}

.lead-form__note {
  margin: 0;
  color: rgba(145, 162, 180, 0.7);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.lead-form--done {
  align-items: flex-start;
  gap: 14px;
  padding: 10px 0;
}

.lead-form--done h3 {
  margin: 8px 0 0;
  font-size: 28px;
  font-weight: 500;
}

.lead-form--done p {
  margin: 0 0 12px;
  color: #b7c4d1;
  font-size: 16px;
  line-height: 1.6;
}

.lead-form__check {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 10px rgba(23, 142, 255, 0.15);
}

.lead-form__check svg {
  width: 26px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
}

.modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow-y: auto;
  background: rgba(1, 6, 12, 0.72);
  backdrop-filter: blur(10px);
  animation: modal-fade 220ms ease;
}

.modal__panel {
  position: relative;
  width: min(100%, 520px);
  padding: 48px 44px 40px;
  border: 1px solid rgba(97, 181, 255, 0.28);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(23, 142, 255, 0.28), transparent 50%),
    #061421;
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.6);
  animation: modal-in 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal__panel h2 {
  margin: 16px 0 14px;
  font-size: 40px;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.modal__subtitle {
  margin: 0 0 30px;
  color: #a9b8c7;
  font-size: 16px;
  line-height: 1.6;
}

.modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: all 180ms ease;
}

.modal__close:hover {
  border-color: var(--blue);
  background: rgba(23, 142, 255, 0.15);
}

.modal__close svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

@keyframes modal-fade {
  from {
    opacity: 0;
  }
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
}

footer {
  width: min(100% - 48px, 1280px);
  min-height: 150px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr;
  gap: 32px;
  padding: 28px 0;
  align-items: center;
  border-top: 1px solid var(--line);
}

footer p,
footer > span {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: 0.02em;
}

footer .logo {
  width: 220px;
  max-width: 100%;
}

footer p {
  text-align: center;
}

footer > span {
  text-align: right;
}

@media (max-width: 900px) {
  .nav {
    position: absolute;
    top: 92px;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    gap: 0;
    margin: 0;
    background: rgba(2, 10, 19, 0.98);
    transition: max-height 240ms ease;
  }

  .nav--open {
    max-height: 300px;
    border-bottom: 1px solid var(--line);
  }

  .nav a {
    padding: 18px 4px;
    border-top: 1px solid var(--line);
  }

  .header__cta {
    margin-left: auto;
    margin-right: 18px;
  }

  .nav a {
    font-size: 17px;
  }

  .process__track {
    display: none;
  }

  .process__steps {
    grid-template-columns: 1fr 1fr;
  }

  .process-step {
    min-height: 360px;
    margin-top: 0;
  }

  .process-step__node {
    display: none;
  }

  .process-step h3 {
    margin-top: 80px;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .menu-toggle {
    width: 38px;
    height: 38px;
    display: grid;
    place-content: center;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
  }

  .menu-toggle span {
    width: 15px;
    height: 1px;
    background: white;
  }

  .hero {
    min-height: 760px;
  }

  .hero__facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__facts > div {
    min-height: 70px;
  }

  .hero__facts > div:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }

  .hero__facts > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .section__intro {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .orbit {
    right: 30px;
    width: 170px;
    height: 170px;
  }

  .showcase__content h2 {
    max-width: 560px;
  }
}

@media (max-width: 680px) {
  .header .logo {
    width: 160px;
  }

  .header {
    width: calc(100% - 32px);
    height: 76px;
  }

  .header__cta {
    display: none;
  }

  .menu-toggle {
    margin-left: auto;
  }

  .nav {
    top: 76px;
  }

  .hero {
    min-height: 760px;
    height: auto;
    align-items: flex-start;
  }

  .hero__content {
    width: calc(100% - 32px);
    margin-top: 155px;
  }

  .hero h1 {
    margin-top: 22px;
    font-size: 42px;
  }

  .hero__content > p {
    font-size: 13px;
  }

  .hero__actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
    margin-top: 30px;
  }

  .hero__facts {
    width: calc(100% - 32px);
  }

  .hero__facts strong {
    font-size: 19px;
  }

  .hero__facts > div {
    padding-left: 16px;
  }

  .scroll-mark {
    display: none;
  }

  .section {
    width: calc(100% - 32px);
    padding: 90px 0;
  }

  .section__intro,
  .section__heading {
    margin-bottom: 36px;
  }

  .section__intro h2,
  .section__heading h2,
  .showcase h2,
  .contact h2 {
    font-size: 36px;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 330px;
  }

  .service-card__copy {
    width: 72%;
  }

  .showcase {
    min-height: 0;
    align-items: stretch;
    padding-top: 90px;
  }

  .showcase__content {
    width: calc(100% - 32px);
  }

  .orbit {
    position: relative;
    top: auto;
    right: auto;
    width: 180px;
    height: 180px;
    margin: 56px auto 0;
    transform: none;
  }

  .section__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 30px;
  }

  .projects__grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 310px);
  }

  .project-card--1 {
    grid-row: auto;
  }

  .process__steps {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .process-step {
    min-height: 0;
    padding: 28px 24px;
  }

  .process-step__number {
    font-size: 96px;
  }

  .process-step h3 {
    margin-top: 56px;
    font-size: 28px;
  }

  .contact {
    min-height: 0;
    padding: 90px 0;
  }

  .contact__inner {
    width: calc(100% - 32px);
  }

  .contact__meta {
    margin-top: 32px;
  }

  .contact__form {
    padding: 28px 22px;
  }

  .modal__panel {
    padding: 44px 24px 28px;
  }

  .modal__panel h2 {
    font-size: 32px;
  }

  footer {
    width: calc(100% - 32px);
    min-height: 220px;
    grid-template-columns: 1fr;
    justify-items: start;
    align-content: center;
    gap: 24px;
  }

  footer p,
  footer > span {
    margin: 0;
    text-align: left;
  }
}

.nav a.active {
  color: #fff;
}

.nav a.active::after {
  content: '';
  display: block;
  height: 2px;
  margin-top: 6px;
  border-radius: 2px;
  background: var(--blue);
  box-shadow: 0 0 12px rgba(23, 142, 255, 0.8);
}

.page-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  padding: 180px 0 90px;
}

.page-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-in 1.4s ease-out both;
}

.page-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(1, 8, 16, 0.96) 0%, rgba(1, 9, 18, 0.75) 45%, rgba(1, 8, 16, 0.35) 100%),
    linear-gradient(0deg, #020a13 0%, transparent 45%, rgba(2, 10, 19, 0.6) 100%);
}

.page-hero__content {
  position: relative;
  z-index: 2;
  width: min(100% - 48px, 1280px);
  margin: 0 auto;
}

.page-hero h1 {
  max-width: 820px;
  margin: 22px 0 22px;
  font-size: clamp(42px, 5.4vw, 78px);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.page-hero__content > p {
  max-width: 560px;
  margin: 0;
  color: #b7c4d1;
  font-size: 17px;
  line-height: 1.65;
}

.page-hero__stats {
  display: flex;
  gap: 56px;
  margin: 48px 0 0;
}

.page-hero__stats div {
  padding-left: 18px;
  border-left: 2px solid var(--blue);
}

.page-hero__stats dt {
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.page-hero__stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.portfolio {
  padding-top: 40px;
}

.portfolio__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.filter {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  padding: 12px 22px;
  border: 1px solid rgba(147, 190, 229, 0.22);
  border-radius: 999px;
  background: transparent;
  color: #cfdbe7;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 180ms ease;
}

.filter sup {
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
}

.filter:hover {
  border-color: rgba(97, 181, 255, 0.6);
  color: #fff;
}

.filter--active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 26px rgba(23, 142, 255, 0.35);
}

.filter--active sup {
  color: rgba(255, 255, 255, 0.8);
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 24px;
}

.portfolio-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: card-in 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.portfolio-card--wide {
  grid-column: span 2;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

.portfolio-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
}

.portfolio-card--wide .portfolio-card__media {
  aspect-ratio: auto;
  height: 100%;
  min-height: 300px;
}

.portfolio-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 700ms ease,
    filter 700ms ease;
}

.portfolio-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 10, 19, 0.55), transparent 50%);
  transition: opacity 400ms ease;
}

.portfolio-card:hover .portfolio-card__media img {
  transform: scale(1.06);
}

.portfolio-card__media .project-card__arrow {
  z-index: 2;
  color: #fff;
  background: rgba(2, 10, 19, 0.4);
  backdrop-filter: blur(6px);
  transition: all 300ms ease;
}

.portfolio-card:hover .project-card__arrow {
  border-color: var(--blue);
  background: var(--blue);
  transform: rotate(-45deg);
}

.portfolio-card__year {
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(2, 10, 19, 0.6);
  backdrop-filter: blur(6px);
  font-size: 13px;
  font-weight: 600;
}

.portfolio-card__category {
  color: var(--blue-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.portfolio-card__body h3 {
  margin: 10px 0 12px;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.portfolio-card__meta {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 15px;
}

.portfolio-card__meta span + span::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 18px 3px 0;
  border-radius: 50%;
  background: var(--blue);
}

.portfolio-cta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-top: 80px;
  border-top: 1px solid var(--line);
}

.portfolio-cta h2 {
  margin: 18px 0 0;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

@media (max-width: 900px) {
  .portfolio__grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav a.active::after {
    display: none;
  }
}

@media (max-width: 680px) {
  .page-hero {
    min-height: 560px;
    padding: 140px 0 60px;
  }

  .page-hero__content {
    width: calc(100% - 32px);
  }

  .page-hero h1 {
    font-size: 40px;
  }

  .page-hero__content > p {
    font-size: 15px;
  }

  .page-hero__stats {
    gap: 24px;
  }

  .page-hero__stats dt {
    font-size: 26px;
  }

  .portfolio__filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-right: -16px;
    padding-right: 16px;
    scrollbar-width: none;
  }

  .filter {
    flex: none;
  }

  .portfolio__grid {
    grid-template-columns: 1fr;
  }

  .portfolio-card--wide {
    grid-column: auto;
  }

  .portfolio-card--wide .portfolio-card__media {
    aspect-ratio: 4 / 3;
    height: auto;
    min-height: 0;
  }

  .portfolio-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

.showcase__content > p {
  max-width: 560px;
  font-size: 17px;
  line-height: 1.65;
}

.showcase__directions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 290px));
  gap: 16px;
  margin: 0 0 38px;
  padding: 0;
  list-style: none;
}

.showcase__directions li {
  display: flex;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(97, 181, 255, 0.22);
  border-radius: 18px;
  background: rgba(4, 16, 30, 0.55);
  backdrop-filter: blur(12px);
}

.showcase__directions li > span {
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

.showcase__directions h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.showcase__directions p {
  margin: 0;
  color: #a9b8c7;
  font-size: 14px;
  line-height: 1.55;
}

.stats {
  position: relative;
  z-index: 2;
  width: min(100% - 48px, 1280px);
  margin: 110px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 22, 32, 0.78), rgba(6, 14, 24, 0.78));
  backdrop-filter: blur(10px);
}

.stats > div {
  padding: 66px 36px 62px;
  border-left: 1px solid var(--line);
}

.stats > div:first-child {
  border-left: 0;
}

.stats dt {
  font-size: clamp(36px, 3.4vw, 46px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stats dd {
  margin: 22px 0 0;
  color: var(--blue-soft);
  font-size: 14px;
}

@media (max-width: 900px) {
  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .stats > div:nth-child(3) {
    border-left: 0;
  }

  .stats > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .stats > div {
    padding: 40px 28px;
  }
}

@media (max-width: 680px) {
  .showcase__directions {
    grid-template-columns: 1fr;
  }

  .stats {
    width: calc(100% - 32px);
    margin-top: 56px;
  }

  .stats > div {
    padding: 30px 18px;
  }

  .stats dd {
    margin-top: 12px;
    font-size: 13px;
  }
}

/* Stretched link: the whole project card opens the widget */
.portfolio-card {
  position: relative;
}

.card-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
}

.card-link:focus-visible {
  outline: none;
}

.card-link:focus-visible::after {
  border-radius: 22px;
  box-shadow: inset 0 0 0 2px var(--blue);
}

/* ---------- Widget ---------- */

.widget {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #01060c;
  color: #fff;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.widget svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.widget button {
  border: 0;
  background: none;
  cursor: pointer;
}

.widget__stage {
  position: absolute;
  inset: 0;
  animation: widget-fade 420ms ease both;
}

@keyframes widget-fade {
  from {
    opacity: 0;
  }
}

.widget__shade {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  pointer-events: none;
}

.widget__shade--top {
  top: 0;
  height: 160px;
  background: linear-gradient(180deg, rgba(1, 6, 12, 0.7), transparent);
}

.widget__shade--bottom {
  bottom: 0;
  height: 180px;
  background: linear-gradient(0deg, rgba(1, 6, 12, 0.75), transparent);
}

.widget-glass {
  border: 1px solid rgba(160, 205, 255, 0.18);
  background: rgba(6, 18, 32, 0.62);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
}

/* Top bar */
.widget__top {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 28px;
  pointer-events: none;
}

.widget__top > * {
  pointer-events: auto;
}

.widget__top-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.widget__title {
  margin: 0 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.widget__title span {
  margin-left: 10px;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 400;
}

.widget__logo {
  flex-shrink: 0;
  width: 150px;
  padding-top: 14px;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5));
}

.widget__logo img {
  display: block;
  width: 100%;
  height: auto;
}

/* Date picker */
.widget-date {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 6px;
}

.widget-date__step {
  width: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  transition:
    background 180ms ease,
    opacity 180ms ease;
}

.widget .widget-date__step {
  border: 1px solid rgba(160, 205, 255, 0.18);
}

.widget-date__step svg {
  width: 20px;
}

.widget-date__step:hover:not(:disabled) {
  background: rgba(23, 142, 255, 0.35);
}

.widget-date__step:disabled {
  opacity: 0.35;
  cursor: default;
}

.widget .widget-date__trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
  padding: 10px 14px 10px 16px;
  border: 1px solid rgba(160, 205, 255, 0.18);
  border-radius: 16px;
  color: #fff;
  text-align: left;
  transition: border-color 180ms ease;
}

.widget .widget-date__trigger:hover,
.widget .widget-date__trigger[aria-expanded='true'] {
  border-color: rgba(23, 142, 255, 0.7);
}

.widget-date__trigger > svg {
  width: 22px;
  flex-shrink: 0;
  color: var(--blue-soft);
}

.widget-date__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.widget-date__text small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.widget-date__text strong {
  font-size: 17px;
  font-weight: 600;
}

.widget-date__chevron {
  display: grid;
  transition: transform 200ms ease;
}

.widget-date__chevron svg {
  width: 18px;
}

.widget-date__chevron--open {
  transform: rotate(180deg);
}

.widget-date__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 52px;
  min-width: 230px;
  max-height: min(360px, 60vh);
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  border-radius: 16px;
  list-style: none;
  animation: widget-menu 180ms ease both;
}

@keyframes widget-menu {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

.widget-date__menu button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 11px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  text-align: left;
}

.widget-date__menu button:hover {
  background: rgba(255, 255, 255, 0.07);
}

.widget-date__menu button.is-active {
  background: var(--blue);
  color: #fff;
}

.widget-date__menu em {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(97, 181, 255, 0.2);
  color: #9fd2ff;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.widget-date__menu .is-active em {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* Bottom switcher */
.widget__switch {
  --index: 0;
  position: absolute;
  z-index: 10;
  bottom: 28px;
  left: 50%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 6px;
  border-radius: 999px;
  transform: translateX(-50%);
}

.widget__switch-indicator {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 6px;
  width: calc((100% - 12px) / 3);
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 8px 22px rgba(23, 142, 255, 0.5);
  transform: translateX(calc(var(--index) * 100%));
  transition: transform 340ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.widget__switch button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 150px;
  padding: 14px 22px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  font-weight: 600;
  transition: color 200ms ease;
}

.widget__switch button:hover,
.widget__switch button.is-active {
  color: #fff;
}

.widget__switch svg {
  width: 20px;
}

/* Panorama */
.widget-pano,
.widget-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.widget-pano__image {
  position: absolute;
  inset: 0;
  background-repeat: repeat-x;
  background-size: auto 100%;
  cursor: grab;
  touch-action: pan-y;
}

.widget-pano__image:active {
  cursor: grabbing;
}

.widget-hint {
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(1, 6, 12, 0.55);
  backdrop-filter: blur(8px);
  font-size: 14px;
  font-weight: 500;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 400ms ease;
}

.widget-hint svg {
  width: 22px;
  animation: hint-sway 1.8s ease-in-out infinite;
}

.widget-hint--hidden {
  opacity: 0;
}

@keyframes hint-sway {
  50% {
    transform: translateX(4px);
  }
}

.widget-loader {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.widget-loader span {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(97, 181, 255, 0.2);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

/* Video */
.widget-video {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 120px 32px 120px;
  background:
    radial-gradient(circle at 50% 40%, rgba(23, 142, 255, 0.14), transparent 60%),
    #01060c;
}

.widget-video__frame {
  position: relative;
  width: min(100%, calc((100dvh - 240px) * 16 / 9));
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(160, 205, 255, 0.16);
  border-radius: 20px;
  background: #000;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.6);
}

.widget-video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.widget-video__source {
  position: absolute;
  bottom: 100px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Gallery */
.widget-gallery {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.widget-gallery__backdrop {
  position: absolute;
  inset: -40px;
  width: calc(100% + 80px);
  height: calc(100% + 80px);
  object-fit: cover;
  filter: blur(40px) brightness(0.45);
}

.widget-gallery__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: widget-fade 380ms ease both;
}

.widget-gallery__nav {
  position: absolute;
  z-index: 6;
  top: 50%;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  transform: translateY(-50%);
  transition: background 180ms ease;
}

.widget .widget-gallery__nav {
  border: 1px solid rgba(160, 205, 255, 0.18);
}

.widget-gallery__nav:hover {
  background: var(--blue);
}

.widget-gallery__nav svg {
  width: 24px;
}

.widget-gallery__nav--prev {
  left: 28px;
}

.widget-gallery__nav--next {
  right: 28px;
}

.widget-gallery__footer {
  position: absolute;
  z-index: 6;
  left: 28px;
  right: 28px;
  bottom: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  pointer-events: none;
}

.widget-gallery__footer > * {
  pointer-events: auto;
}

.widget-gallery__caption {
  max-width: calc(50% - 260px);
  padding-bottom: 6px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.widget-gallery__caption span {
  color: var(--blue-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.widget-gallery__caption p {
  margin: 6px 0 0;
  font-size: 16px;
  font-weight: 500;
}

.widget-gallery__thumbs {
  display: flex;
  gap: 8px;
  max-width: calc(50% - 260px);
  overflow-x: auto;
  scrollbar-width: none;
}

.widget .widget-gallery__thumbs button {
  flex: none;
  width: 72px;
  height: 52px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 12px;
  opacity: 0.6;
  transition:
    opacity 180ms ease,
    border-color 180ms ease;
}

.widget .widget-gallery__thumbs button.is-active {
  border-color: var(--blue);
  opacity: 1;
}

.widget .widget-gallery__thumbs button:hover {
  opacity: 1;
}

.widget-gallery__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Empty state */
.widget-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(23, 142, 255, 0.16), transparent 55%),
    #01060c;
}

.widget-empty > svg {
  width: 52px;
  margin-bottom: 6px;
  color: var(--blue-soft);
}

.widget-empty strong {
  font-size: 22px;
  font-weight: 600;
}

.widget-empty p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Gallery footer must not collide with the centered switcher on narrower desktops */
@media (max-width: 1100px) {
  .widget-gallery__caption,
  .widget-gallery__thumbs {
    max-width: none;
  }

  .widget-gallery__footer {
    bottom: 110px;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
  }
}

@media (max-width: 680px) {
  .widget__top {
    padding: 14px 14px;
    gap: 10px;
  }

  .widget__top-left {
    gap: 8px;
  }

  .widget-date {
    gap: 4px;
  }

  .widget-date__step {
    width: 38px;
    border-radius: 13px;
  }

  .widget .widget-date__trigger {
    min-width: 0;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 13px;
  }

  .widget-date__trigger > svg {
    display: none;
  }

  .widget-date__text small {
    font-size: 9px;
  }

  .widget-date__text strong {
    font-size: 14px;
  }

  .widget-date__menu {
    left: 0;
    min-width: 220px;
  }

  .widget__title {
    font-size: 13px;
  }

  .widget__title span {
    display: block;
    margin: 2px 0 0;
    font-size: 12px;
  }

  .widget__logo {
    width: 92px;
    padding-top: 12px;
  }

  .widget__switch {
    bottom: max(16px, env(safe-area-inset-bottom));
    width: calc(100% - 28px);
    max-width: 420px;
    padding: 5px;
  }

  .widget__switch-indicator {
    top: 5px;
    bottom: 5px;
    left: 5px;
    width: calc((100% - 10px) / 3);
  }

  .widget__switch button {
    min-width: 0;
    flex-direction: column;
    gap: 4px;
    padding: 9px 6px;
    font-size: 12px;
  }

  .widget__switch svg {
    width: 20px;
  }

  .widget-video {
    padding: 120px 0 110px;
  }

  .widget-video__frame {
    width: 100%;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .widget-video__source {
    bottom: 96px;
  }

  .widget-gallery__image {
    object-fit: contain;
  }

  .widget-gallery__nav {
    width: 44px;
    height: 44px;
  }

  .widget-gallery__nav--prev {
    left: 12px;
  }

  .widget-gallery__nav--next {
    right: 12px;
  }

  .widget-gallery__footer {
    left: 14px;
    right: 14px;
    bottom: 96px;
  }

  .widget .widget-gallery__thumbs button {
    width: 56px;
    height: 42px;
  }

  .widget-gallery__caption p {
    font-size: 14px;
  }
}

[hidden] {
  display: none !important;
}

.widget-date__menu a {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 11px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
}

.widget-date__menu a:hover {
  background: rgba(255, 255, 255, 0.07);
}

.widget-date__menu a.is-active {
  background: var(--blue);
  color: #fff;
}
