/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 60px;
  background:
    radial-gradient(ellipse 900px 500px at 85% -10%, var(--purple-100) 0%, transparent 60%),
    var(--white);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.2vw, 3.5rem);
  max-width: 14ch;
}

.hero .sub {
  font-size: 1.13rem;
  color: var(--charcoal-soft);
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--charcoal-soft);
  max-width: 42ch;
}

.hero-note svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.hero-art {
  position: relative;
}

.horizon-panel {
  position: relative;
  border-radius: 28px;
  background: linear-gradient(180deg, var(--purple-900) 0%, var(--purple-700) 100%);
  aspect-ratio: 1/1.05;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.horizon-panel svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.horizon-panel canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.horizon-panel .caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  color: var(--white);
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.4;
}

@media (max-width: 940px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-art {
    order: -1;
    max-width: 340px;
    margin: 0 auto 10px;
  }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}

.about-portrait {
  border-radius: 24px;
  background: linear-gradient(160deg, var(--purple-100), var(--orange-100));
  aspect-ratio: 4/5;
  display: flex;
  align-items: flex-end;
  padding: 26px;
  position: relative;
  overflow: hidden;
}

.about-portrait svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.about-portrait .tag {
  position: relative;
  z-index: 1;
  background: var(--white);
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--purple-900);
}

.values-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 28px;
}

.value-item {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.value-item h4 {
  font-size: 1rem;
  margin-bottom: 6px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  color: var(--purple-900);
}

.value-item p {
  font-size: 0.92rem;
  color: var(--charcoal-soft);
  margin: 0;
}

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

/* ---------- Services ---------- */
.service-flagship {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--purple-900);
  color: var(--white);
  margin-bottom: 28px;
}

.service-flagship .copy {
  padding: 48px;
}

.service-flagship .copy .eyebrow {
  color: var(--orange);
}

.service-flagship .copy .eyebrow::before {
  background: var(--orange);
}

.service-flagship h3 {
  color: var(--white);
  font-size: 1.8rem;
}

.service-flagship p {
  color: #d6d2ef;
}

.service-flagship .art {
  position: relative;
  min-height: 220px;
  background: linear-gradient(200deg, var(--purple-700), var(--purple-900));
}

.service-flagship .art svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 940px) {
  .service-flagship {
    grid-template-columns: 1fr;
  }
  .service-flagship .art {
    min-height: 160px;
    order: -1;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ---------- Appointment cards ---------- */
.apt-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 26px;
  align-items: stretch;
}

.apt-grid-3 {
  grid-template-columns: 1.05fr 1fr 1fr;
}

@media (max-width: 1080px) {
  .apt-grid-3 {
    grid-template-columns: 1fr 1fr;
  }
  .apt-grid-3 .apt-primary {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .apt-grid-3 {
    grid-template-columns: 1fr;
  }
  .apt-grid-3 .apt-primary {
    grid-column: auto;
  }
  .apt-grid {
    grid-template-columns: 1fr;
  }
}

.apt-card {
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  transition: all 0.36s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.apt-primary {
  background: var(--purple-900);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.apt-primary::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 101, 27, 0.35), transparent 70%);
}

.apt-primary h3 {
  color: var(--white);
}

.apt-primary p {
  color: #d6d2ef;
}

.apt-secondary {
  background: var(--white);
  border: 1.5px dashed var(--line);
  color: var(--charcoal);
}

.apt-tertiary {
  background: var(--purple-50);
  border: 1.5px solid var(--purple-100);
  color: var(--charcoal);
}

.apt-tertiary .apt-badge {
  background: var(--orange-100);
  color: var(--orange-600);
}

.apt-tertiary .apt-feature-list svg {
  color: var(--purple-700);
}

.apt-badge {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.apt-primary .apt-badge {
  background: var(--orange);
  color: var(--white);
}

.apt-secondary .apt-badge {
  background: var(--purple-100);
  color: var(--purple-900);
}

.apt-feature-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.apt-feature-list li {
  display: flex;
  gap: 10px;
  font-size: 0.92rem;
  align-items: flex-start;
}

.apt-primary .apt-feature-list svg {
  color: var(--orange);
}

.apt-secondary .apt-feature-list svg {
  color: var(--purple-700);
}

.apt-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ---------- Commitment band ---------- */
.commitment-band {
  padding: 64px 0;
  background: var(--purple-900);
}

.commitment-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: #e8e5f7;
}

.commitment-mark {
  color: var(--orange);
}

.commitment-inner p {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--white);
  margin: 0;
}

/* ---------- Focus pills ---------- */
.focus-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.focus-pill {
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  background: var(--purple-50);
  border: 1px solid var(--line);
  color: var(--purple-900);
}

.serve-focus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}

@media (max-width: 900px) {
  .serve-focus-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

/* ---------- Why choose ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.why-card {
  padding: 30px 26px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--line);
}

.why-card .icon {
  width: 38px;
  height: 38px;
  color: var(--orange);
  margin-bottom: 16px;
}

.why-card h4 {
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--purple-900);
  margin-bottom: 6px;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--charcoal-soft);
  margin: 0;
}

@media (max-width: 940px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ---------- Client journey ---------- */
.journey {
  position: relative;
}

.journey-track {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  position: relative;
}

.journey-track::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px);
  z-index: 0;
}

.journey-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 8px;
}

.journey-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--purple-900);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  margin: 0 auto 16px;
  font-size: 0.95rem;
}

.journey-step:last-child .journey-num {
  background: var(--orange);
}

.journey-light {
  position: absolute;
  top: 13px;
  left: 6%;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd7ae 0%, var(--orange) 70%);
  box-shadow: 0 0 0 4px rgba(224, 101, 27, 0.18), 0 0 16px 2px rgba(224, 101, 27, 0.5);
  transition: left 2.4s cubic-bezier(0.2, 0.7, 0.1, 1);
  z-index: 2;
}

.journey-track.in .journey-light {
  left: 94%;
}

@media (max-width: 940px) {
  .journey-light {
    display: none;
  }
}

.journey-step h4 {
  font-family: 'Manrope', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--purple-900);
  margin-bottom: 4px;
}

.journey-step p {
  font-size: 0.78rem;
  color: var(--charcoal-soft);
  margin: 0;
}

@media (max-width: 940px) {
  .journey-track {
    grid-template-columns: 1fr 1fr;
    gap: 30px 10px;
  }
  .journey-track::before {
    display: none;
  }
}

@media (max-width: 560px) {
  .journey-track {
    grid-template-columns: 1fr;
  }
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 50px;
}

.contact-card {
  background: var(--purple-900);
  color: var(--white);
  border-radius: 24px;
  padding: 40px;
}

.contact-card h3 {
  color: var(--white);
}

.contact-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.contact-row svg {
  flex-shrink: 0;
  color: var(--orange);
  margin-top: 2px;
}

.contact-row .label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b6b0e0;
  margin-bottom: 2px;
}

.contact-row .value {
  font-size: 0.95rem;
  font-weight: 600;
}

.map-box {
  margin-top: 24px;
  border-radius: 16px;
  overflow: hidden;
  height: 150px;
  background: linear-gradient(135deg, var(--purple-700), var(--purple-900));
  position: relative;
}

.map-box svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.map-box span {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  color: #d6d2ef;
  font-weight: 600;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

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

.field label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--purple-900);
}

.field input,
.field select,
.field textarea {
  padding: 13px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  font-family: 'Manrope', sans-serif;
  font-size: 0.92rem;
  color: var(--charcoal);
  background: var(--purple-50);
  transition: all 0.24s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: inset 0 0 0 1px rgba(229, 96, 32, 0.2), 0 0 0 3px rgba(229, 96, 32, 0.12);
}

.field textarea {
  resize: vertical;
  min-height: 96px;
}

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

/* ---------- FAQ Accordion ---------- */
details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}

details[open] {
  background: var(--purple-50);
  border-color: rgba(229, 96, 32, 0.2);
}

summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--purple-900);
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  outline: none;
}

summary:hover {
  color: var(--orange);
}

summary:focus-visible {
  outline: 2px solid rgba(229, 96, 32, 0.5);
  outline-offset: 2px;
}

summary::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 16px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

details[open] summary::after {
  content: "−";
  transform: rotate(90deg);
}

details > p:last-child {
  margin-bottom: 0;
}

/* ---------- Spatial component art direction ---------- */
.spatial-hero {
  min-height: 0;
  display: flex;
  align-items: center;
  padding: clamp(70px, 9vw, 118px) 0 clamp(64px, 7vw, 96px);
  overflow: hidden;
  background:
    linear-gradient(126deg, rgba(255, 255, 255, 0.96) 0 36%, rgba(238, 233, 250, 0.58) 36.2% 62%, rgba(255, 240, 231, 0.5) 62.2% 100%),
    linear-gradient(164deg, transparent 0 46%, rgba(29, 17, 96, 0.08) 46.2% 46.7%, transparent 47%),
    linear-gradient(24deg, transparent 0 58%, rgba(229, 96, 32, 0.1) 58.2% 58.7%, transparent 59%);
}

.spatial-hero::before,
.spatial-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.spatial-hero::before {
  inset: 12% -12% auto 43%;
  height: 68%;
  background:
    linear-gradient(132deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.08)),
    linear-gradient(90deg, transparent, rgba(29, 17, 96, 0.06), transparent);
  border: 1px solid rgba(29, 17, 96, 0.08);
  transform: skewX(-14deg) rotate(-4deg);
  box-shadow: 0 70px 140px -110px rgba(29, 17, 96, 0.52);
  z-index: -1;
}

.spatial-hero::after {
  left: 0;
  right: 0;
  bottom: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(29, 17, 96, 0.16), transparent);
  opacity: 0.72;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(54px, 8vw, 126px);
  perspective: 1400px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-top: clamp(18px, 4vw, 52px);
}

.hero h1 {
  font-size: clamp(3.1rem, 6.35vw, 5.95rem);
  max-width: 12.4ch;
  line-height: 0.95;
  margin-bottom: 0.24em;
}

.hero .sub {
  max-width: 50ch;
  font-size: clamp(1.02rem, 1.6vw, 1.24rem);
  line-height: 1.72;
  color: rgba(39, 36, 47, 0.72);
  margin-bottom: 34px;
}

.hero-ctas {
  gap: 12px;
  margin-bottom: 32px;
}

.hero-note {
  width: fit-content;
  max-width: 48ch;
  padding: 12px 16px 12px 13px;
  border: 1px solid rgba(29, 17, 96, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 20px 56px -48px rgba(29, 17, 96, 0.42);
  backdrop-filter: blur(14px);
}

.hero-note svg {
  stroke: var(--orange);
}

.hero-art {
  min-height: clamp(420px, 45vw, 610px);
  transform-style: preserve-3d;
  transform: perspective(1300px) rotateX(calc(var(--depth-y, 0) * -2.2deg)) rotateY(calc(var(--depth-x, 0) * 2.8deg));
  transition: transform 0.45s ease;
}

.hero-emblem-card {
  width: fit-content;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px 12px 12px;
  margin-bottom: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(29, 17, 96, 0.13);
  box-shadow: 0 22px 70px -52px rgba(29, 17, 96, 0.48);
  backdrop-filter: blur(18px) saturate(1.06);
}

.hero-emblem-card .hpw-emblem {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.hero-emblem-card span {
  display: block;
  color: var(--purple-900);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

.horizon-panel {
  width: min(100%, 520px);
  margin-left: auto;
  aspect-ratio: 0.88 / 1;
  border-radius: 38px;
  background:
    linear-gradient(155deg, rgba(29, 17, 96, 0.98), rgba(18, 10, 61, 0.98)),
    #120A3D;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 76px 150px -78px rgba(29, 17, 96, 0.82),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transform: translateZ(40px) rotate(-2deg);
}

.horizon-panel::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  z-index: 2;
  pointer-events: none;
}

.horizon-panel::after {
  content: "";
  position: absolute;
  inset: auto 12% 19% 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.56), transparent);
  z-index: 2;
  opacity: 0.7;
}

.horizon-panel canvas {
  filter: saturate(0.92) contrast(1.02);
}

.horizon-panel .caption {
  left: 28px;
  right: 28px;
  bottom: 28px;
  padding: 15px 16px;
  border-radius: 20px;
  background: rgba(18, 10, 61, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  font-family: 'Manrope', sans-serif;
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.88);
  z-index: 3;
}

.ambient-panel {
  position: absolute;
  z-index: 4;
  min-width: 180px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(29, 17, 96, 0.12);
  box-shadow: 0 34px 92px -54px rgba(29, 17, 96, 0.54);
  backdrop-filter: blur(18px) saturate(1.08);
  transform: translate3d(calc(var(--depth-x, 0) * 8px), calc(var(--depth-y, 0) * 8px), 90px);
  transition: transform 0.42s ease, box-shadow 0.42s ease;
}

.ambient-panel span {
  display: block;
  color: rgba(29, 17, 96, 0.58);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.ambient-panel strong {
  display: block;
  color: var(--charcoal);
  font-size: 0.92rem;
  line-height: 1.25;
}

.hero-panel-a {
  top: 9%;
  left: 0;
}

.hero-panel-b {
  right: 0;
  bottom: 16%;
  min-width: 232px;
}

.hero-panel-c {
  left: 4%;
  bottom: 2%;
  min-width: 220px;
}

.about-grid {
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(52px, 8vw, 112px);
  align-items: center;
}

.about-portrait {
  border-radius: 34px;
  background:
    linear-gradient(152deg, rgba(255, 255, 255, 0.88), rgba(238, 233, 250, 0.62)),
    linear-gradient(38deg, rgba(229, 96, 32, 0.16), transparent 48%);
  border: 1px solid rgba(29, 17, 96, 0.12);
  box-shadow: var(--shadow-high);
  transform: rotate(-2deg);
}

.about-portrait .tag {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(29, 17, 96, 0.12);
  backdrop-filter: blur(16px);
  color: var(--charcoal);
}

.values-list {
  gap: 18px 28px;
}

.value-item {
  padding: 20px 0 0;
  border-top: 1px solid rgba(29, 17, 96, 0.14);
}

.value-item h4,
.service-card h4,
.why-card h4,
.field label,
summary {
  color: var(--charcoal);
}

.service-flagship {
  position: relative;
  gap: 0;
  border-radius: 34px;
  overflow: visible;
  background: transparent;
  color: var(--charcoal);
  margin-bottom: clamp(34px, 5vw, 62px);
  isolation: isolate;
}

.service-flagship::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(29, 17, 96, 0.98), rgba(42, 23, 111, 0.96)),
    var(--purple-900);
  box-shadow: var(--shadow-high);
  transform: rotate(1deg);
}

.service-flagship .copy {
  padding: clamp(34px, 5vw, 62px);
}

.service-flagship h3 {
  font-size: clamp(2rem, 3.6vw, 3.7rem);
}

.service-flagship .art {
  min-height: 300px;
  border-radius: 28px;
  margin: 18px 18px 18px 0;
  overflow: hidden;
  background:
    linear-gradient(132deg, rgba(255, 255, 255, 0.14), transparent),
    linear-gradient(24deg, rgba(229, 96, 32, 0.62), rgba(29, 17, 96, 0.86));
}

.services-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
  align-items: start;
}

.service-card,
.why-card,
.form-card,
details {
  border: 1px solid rgba(29, 17, 96, 0.12);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 28px 72px -58px rgba(29, 17, 96, 0.46);
  backdrop-filter: blur(16px);
  transition: all 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before,
.why-card::before,
.apt-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(229, 96, 32, 0.08) 0%, transparent 65%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.service-card {
  min-height: 218px;
  border-radius: 24px;
  padding: 28px 24px;
}

.service-card:nth-child(2),
.service-card:nth-child(6) {
  transform: translateY(34px);
}

.service-card:nth-child(4),
.service-card:nth-child(7) {
  transform: translateY(-18px);
}

.service-card:hover,
.why-card:hover,
.apt-card:hover {
  transform: translate3d(0, -10px, 0) scale(1.02);
  box-shadow: 0 42px 90px -48px rgba(229, 96, 32, 0.38), var(--shadow-high);
  border-color: rgba(229, 96, 32, 0.35);
}

.service-card:hover::before,
.why-card:hover::before,
.apt-card:hover::before {
  opacity: 1;
}

.service-card:nth-child(2):hover,
.service-card:nth-child(6):hover {
  transform: translate3d(0, 22px, 0) scale(1.02);
}

.service-card:nth-child(4):hover,
.service-card:nth-child(7):hover {
  transform: translate3d(0, -28px, 0) scale(1.02);
}

.service-card .icon {
  background: rgba(229, 96, 32, 0.1);
  color: var(--orange-600);
  border: 1px solid rgba(229, 96, 32, 0.18);
  border-radius: 16px;
}

.chip,
.focus-pill {
  background: rgba(255, 255, 255, 0.56);
  border-color: rgba(29, 17, 96, 0.12);
  box-shadow: 0 20px 58px -50px rgba(29, 17, 96, 0.38);
  backdrop-filter: blur(14px);
  color: var(--charcoal);
}

.chip .dot {
  background: var(--orange);
  box-shadow: 0 0 0 5px rgba(229, 96, 32, 0.12);
}

.apt-grid,
.why-grid {
  perspective: 1300px;
}

.apt-card {
  border-radius: 30px;
  border: 1px solid rgba(29, 17, 96, 0.12);
  box-shadow: var(--shadow);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.38s ease, border-color 0.38s ease;
}

.apt-primary {
  background:
    linear-gradient(148deg, rgba(29, 17, 96, 0.98), rgba(42, 23, 111, 0.96)),
    var(--purple-900);
}

.apt-primary::after {
  right: -80px;
  bottom: -100px;
  width: 290px;
  height: 290px;
  background:
    linear-gradient(140deg, transparent 0 42%, rgba(229, 96, 32, 0.32) 42.2% 43%, transparent 43.2%),
    linear-gradient(36deg, rgba(255, 255, 255, 0.08), transparent);
  border-radius: 0;
  transform: rotate(-12deg);
}

.apt-secondary,
.apt-tertiary {
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(16px);
}

.apt-tertiary {
  transform: translateY(32px);
}

.apt-badge {
  border-radius: 999px;
  letter-spacing: 0;
}

.commitment-band {
  background:
    linear-gradient(128deg, #1D1160, #1D1160 58%, #120A3D);
  position: relative;
  overflow: hidden;
}

.commitment-band::before {
  content: "";
  position: absolute;
  inset: 16% -8% auto auto;
  width: 52%;
  height: 60%;
  background:
    linear-gradient(132deg, rgba(255, 255, 255, 0.12), transparent),
    linear-gradient(42deg, rgba(229, 96, 32, 0.26), transparent 44%);
  transform: skewX(-18deg) rotate(-4deg);
  opacity: 0.68;
}

.commitment-inner {
  position: relative;
  max-width: 920px;
}

.commitment-inner p {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.45rem, 3vw, 2.6rem);
  line-height: 1.24;
}

.why-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  max-width: 1100px;
  margin: 0 auto;
}

.why-card {
  min-height: 220px;
  border-radius: 24px;
}

.why-card .icon {
  color: var(--orange);
}

.journey-track {
  min-height: 240px;
  align-items: start;
  padding: 42px 28px 28px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(29, 17, 96, 0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.journey-track::before {
  top: 61px;
  background: linear-gradient(90deg, transparent, rgba(29, 17, 96, 0.2), transparent);
}

.journey-num {
  background: var(--purple-900);
  box-shadow: 0 18px 38px -24px rgba(29, 17, 96, 0.58);
}

.journey-step:last-child .journey-num {
  background: var(--orange);
}

.journey-light {
  top: 55px;
  background: var(--orange);
  box-shadow: 0 0 0 7px rgba(229, 96, 32, 0.12), 0 0 28px rgba(229, 96, 32, 0.54);
}

.contact-card {
  border-radius: 30px;
  background:
    linear-gradient(146deg, rgba(29, 17, 96, 0.98), rgba(42, 23, 111, 0.96)),
    var(--purple-900);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-high);
}

.map-box {
  border-radius: 22px;
  background:
    linear-gradient(128deg, rgba(255, 255, 255, 0.12), transparent),
    linear-gradient(40deg, rgba(229, 96, 32, 0.42), rgba(29, 17, 96, 0.86));
}

.form-card {
  border-radius: 30px;
}

.field input,
.field select,
.field textarea {
  border-radius: 16px;
  background: rgba(238, 233, 250, 0.48);
  border-color: rgba(29, 17, 96, 0.14);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(229, 96, 32, 0.62);
}

details {
  border-radius: 20px;
}

details[open] {
  background: rgba(255, 255, 255, 0.72);
}

footer {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, #1D1160, #2A176F 62%, #120A3D);
  color: rgba(255, 255, 255, 0.7);
}

footer::before {
  content: "";
  position: absolute;
  inset: -20% 52% auto -10%;
  height: 90%;
  background:
    linear-gradient(128deg, rgba(255, 255, 255, 0.12), transparent),
    linear-gradient(32deg, rgba(229, 96, 32, 0.22), transparent 54%);
  transform: skewX(-20deg) rotate(8deg);
}

footer .wrap {
  position: relative;
}

.footer-col ul a,
.footer-bottom,
.crisis-note,
.footer-grid p {
  color: rgba(255, 255, 255, 0.68);
}

.crisis-note strong,
.footer-brand {
  color: var(--white);
}

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

  .hero-art {
    width: min(100%, 620px);
    margin: 0 auto;
    order: -1;
  }

  .horizon-panel {
    margin: 0 auto;
  }

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

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

@media (max-width: 940px) {
  .spatial-hero {
    min-height: auto;
    padding-top: 76px;
  }

  .hero-art {
    min-height: 500px;
    max-width: 560px;
  }

  .service-flagship::before,
  .service-flagship {
    transform: none;
  }

  .service-flagship .art {
    margin: 18px;
  }

  .apt-tertiary {
    transform: none;
  }

  .journey-track {
    padding: 28px;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: clamp(2.72rem, 12.8vw, 3.55rem);
    line-height: 1.02;
    max-width: 100%;
  }

  .hero-note {
    border-radius: 22px;
  }

  .hero-art {
    order: 0;
    min-height: 380px;
    margin-top: 22px;
  }

  .horizon-panel {
    width: 88%;
    border-radius: 30px;
    transform: translateZ(20px) rotate(-1.5deg);
  }

  .ambient-panel {
    min-width: 150px;
    max-width: 210px;
    padding: 13px 14px;
    border-radius: 18px;
  }

  .hero-panel-a {
    top: -4px;
    left: 2px;
  }

  .hero-panel-b {
    right: -2px;
    bottom: 8px;
    min-width: 184px;
  }

  .hero-panel-c {
    display: none;
  }

  .horizon-panel .caption {
    display: none;
  }

  .services-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-card:nth-child(2),
  .service-card:nth-child(4),
  .service-card:nth-child(6),
  .service-card:nth-child(7),
  .service-card:hover,
  .service-card:nth-child(2):hover,
  .service-card:nth-child(4):hover,
  .service-card:nth-child(6):hover,
  .service-card:nth-child(7):hover {
    transform: none;
  }

  .contact-card,
  .form-card,
  .apt-card {
    padding: 28px;
  }
}
