@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --purple-900: #1D1160;
  --purple: #2A176F;
  --purple-700: #3B238E;
  --purple-100: #EEE9FA;
  --purple-50: #FFFFFF;
  --orange: #E56020;
  --orange-600: #C94C0B;
  --orange-100: #fff0e7;
  --white: #ffffff;
  --charcoal: #26242f;
  --charcoal-soft: #565367;
  --line: #e4e1f2;
  --shadow: 0 20px 50px -25px rgba(21, 12, 71, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  color: var(--purple-900);
  line-height: 1.15;
  margin: 0 0 0.5em 0;
  letter-spacing: 0;
}

p {
  margin: 0 0 1em 0;
}

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

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

img, svg {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--orange-100);
  color: var(--purple-900);
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--orange-600);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--orange);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
  position: relative;
}

.btn:hover {
  transform: translateY(-3px) scale(1.02);
  filter: brightness(1.08);
}

.btn:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 14px 30px -12px rgba(224, 101, 27, 0.55), 0 0 24px -8px rgba(229, 96, 32, 0.35);
}

.btn-primary:hover {
  background: var(--orange-600);
  box-shadow: 0 16px 36px -10px rgba(224, 101, 27, 0.65), 0 0 32px -6px rgba(229, 96, 32, 0.48);
}

.btn-secondary {
  background: var(--purple-900);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--purple);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--purple-900);
}

.btn-ghost:hover {
  border-color: var(--purple-700);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.85rem;
}

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(1.1);
  border-bottom: 1px solid rgba(29, 17, 96, 0.08);
  box-shadow: 0 8px 24px -12px rgba(29, 17, 96, 0.12);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  max-width: 1180px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--purple-900);
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.brand small {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-600);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

nav ul a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--charcoal-soft);
  transition: color 0.15s ease;
}

nav ul a:hover {
  color: var(--purple-900);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 940px) {
  nav ul {
    display: none;
  }
  .nav-cta .btn-ghost {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
}

/* ---------- Section shells ---------- */
section {
  padding: 96px 0;
}

.section-tinted {
  background: var(--purple-50);
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head p {
  color: var(--charcoal-soft);
  font-size: 1.05rem;
}

.divider-arc {
  display: flex;
  justify-content: center;
  padding: 6px 0 0;
}

.divider-arc svg {
  width: 120px;
  height: 24px;
}

/* ---------- Cards & components ---------- */
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.service-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--purple-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--purple-900);
}

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

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

/* ---------- Chips ---------- */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--purple-900);
}

.chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

/* ---------- Footer ---------- */
footer {
  background: var(--purple-900);
  color: #cfc9ec;
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.footer-col h5 {
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  font-size: 0.9rem;
  color: #cfc9ec;
}

.footer-col ul a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #a79fd6;
}

.crisis-note {
  margin-bottom: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  color: #d6d2ef;
}

.crisis-note strong {
  color: var(--orange);
  font-weight: 700;
}

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

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

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ---------- Self-drawing brand mark ---------- */
.brand-mark path {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: draw-arc 1.6s ease-out 0.2s forwards;
}

.brand-mark circle {
  opacity: 0;
  animation: fade-in 0.6s ease-out 1.4s forwards;
}

@keyframes draw-arc {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

/* ---------- Divider arcs ---------- */
.divider-arc path {
  stroke-dasharray: 140;
  stroke-dashoffset: 140;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 2px 4px rgba(29, 17, 96, 0.08));
}

.divider-arc.in path {
  stroke-dashoffset: 0;
}

/* ---------- Staggered reveal ---------- */
.reveal {
  transition-delay: calc(var(--stagger, 0) * 90ms);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
  .brand-mark path,
  .brand-mark circle {
    animation: none !important;
    stroke-dashoffset: 0;
    opacity: 1;
  }
  .divider-arc path {
    stroke-dashoffset: 0 !important;
    transition: none;
  }
}

/* ---------- Spatial experience layer ---------- */
:root {
  --purple-900: #1D1160;
  --purple: #2A176F;
  --purple-700: #3B238E;
  --purple-100: #EEE9FA;
  --purple-50: #FFFFFF;
  --orange: #E56020;
  --orange-600: #C94C0B;
  --orange-100: #fff0e7;
  --white: #ffffff;
  --charcoal: #27242f;
  --charcoal-soft: #5e5969;
  --line: rgba(29, 17, 96, 0.14);
  --surface: rgba(255, 255, 255, 0.76);
  --surface-solid: #FFFFFF;
  --surface-dark: #1D1160;
  --glass: rgba(255, 255, 255, 0.54);
  --shadow: 0 34px 80px -44px rgba(29, 17, 96, 0.34);
  --shadow-high: 0 46px 110px -52px rgba(29, 17, 96, 0.46);
  --accent-glow: 0 24px 70px -42px rgba(229, 96, 32, 0.85);
  --radius-panel: 30px;
}

html {
  background: #FFFFFF;
}

body {
  position: relative;
  min-height: 100vh;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--charcoal);
  background:
    radial-gradient(circle at 82% 12%, rgba(229, 96, 32, 0.09), transparent 30%),
    radial-gradient(circle at 10% 18%, rgba(29, 17, 96, 0.07), transparent 28%),
    #FFFFFF;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(29, 17, 96, 0.035) 0 1px, transparent 1px 130px),
    repeating-linear-gradient(0deg, rgba(29, 17, 96, 0.025) 0 1px, transparent 1px 130px),
    linear-gradient(122deg, transparent 0 52%, rgba(229, 96, 32, 0.08) 52.2% 52.6%, transparent 52.8%),
    linear-gradient(36deg, transparent 0 62%, rgba(29, 17, 96, 0.04) 62.1% 62.5%, transparent 62.8%);
  mask-image: linear-gradient(to bottom, black 0%, black 82%, transparent 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

main {
  position: relative;
  isolation: isolate;
}

h1,
h2,
h3,
h4 {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--purple-900);
  letter-spacing: 0;
}

p {
  color: var(--charcoal-soft);
}

.wrap {
  width: min(100% - 40px, 1260px);
  max-width: none;
  padding: 0;
}

::selection {
  background: rgba(229, 96, 32, 0.18);
  color: var(--charcoal);
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 50;
  margin: 0 auto;
  background: transparent;
  border-bottom: 0;
  pointer-events: none;
}

.nav {
  width: min(100% - 40px, 1260px);
  margin: 0 auto;
  padding: 12px 14px 12px 18px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(29, 17, 96, 0.14);
  border-radius: 999px;
  box-shadow: 0 20px 60px -42px rgba(29, 17, 96, 0.46);
  backdrop-filter: blur(22px) saturate(1.15);
  pointer-events: auto;
  transform: perspective(900px) rotateX(calc(var(--depth-y, 0) * -1deg)) rotateY(calc(var(--depth-x, 0) * 1deg));
  transition: transform 0.45s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.brand {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  gap: 13px;
  font-size: 0.98rem;
  letter-spacing: 0;
}

.hpw-emblem {
  display: block;
  width: 100%;
  height: auto;
}

.brand .hpw-emblem {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  filter: drop-shadow(0 10px 18px rgba(229, 96, 32, 0.18));
}

.brand small {
  letter-spacing: 0;
  color: var(--orange-600);
}

nav ul {
  gap: clamp(16px, 2.4vw, 32px);
}

nav ul a {
  color: rgba(39, 36, 47, 0.68);
  font-size: 0.86rem;
}

nav ul a:hover,
nav ul a:focus-visible {
  color: var(--charcoal);
}

.btn {
  min-height: 44px;
  border-radius: 999px;
  border-width: 1px;
  letter-spacing: 0;
  transition:
    transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.btn:hover {
  transform: translate3d(0, -3px, 0) scale(1.01);
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(229, 96, 32, 0.78);
  outline-offset: 4px;
}

.btn-primary {
  background: var(--purple-900);
  color: var(--white);
  box-shadow: var(--shadow), var(--accent-glow);
}

.btn-primary:hover {
  background: var(--purple);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(29, 17, 96, 0.2);
  color: var(--charcoal);
  box-shadow: 0 18px 46px -38px rgba(29, 17, 96, 0.34);
  backdrop-filter: blur(16px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.82);
}

.btn-ghost {
  background: transparent;
  color: var(--charcoal);
  border-color: rgba(29, 17, 96, 0.18);
}

.btn-ghost:hover {
  border-color: rgba(229, 96, 32, 0.52);
}

.eyebrow {
  color: var(--orange-600);
  letter-spacing: 0;
  font-size: 0.72rem;
}

.eyebrow::before {
  width: 34px;
  background: linear-gradient(90deg, transparent, var(--orange));
}

section {
  position: relative;
  padding: clamp(86px, 11vw, 150px) 0;
}

.section-tinted {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0)),
    linear-gradient(112deg, rgba(29, 17, 96, 0.055), rgba(229, 96, 32, 0.055) 48%, rgba(255, 255, 255, 0.24));
  border-block: 1px solid rgba(29, 17, 96, 0.08);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 6vw, 78px);
}

.section-head.center {
  text-align: left;
}

.section-head h2 {
  font-size: clamp(2.3rem, 5vw, 5.25rem);
  line-height: 0.98;
  max-width: 11ch;
}

.section-head.center h2,
.section-head.center p,
.section-head.center .eyebrow {
  margin-left: auto;
  margin-right: auto;
}

.section-head.center h2 {
  text-align: center;
}

.section-head.center p {
  text-align: center;
}

.section-head p {
  max-width: 52ch;
  color: var(--charcoal-soft);
}

.divider-arc {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0) scale(0.985);
  transition:
    opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

@media (max-width: 940px) {
  .site-header {
    top: 10px;
  }

  .nav {
    align-items: flex-start;
    border-radius: 26px;
    flex-wrap: wrap;
  }

  .site-nav {
    order: 4;
    width: 100%;
    display: none;
    padding: 16px 6px 4px;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .site-nav ul a {
    display: block;
    padding: 11px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(29, 17, 96, 0.1);
  }

  .nav-cta {
    display: none;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(29, 17, 96, 0.12);
    color: var(--charcoal);
  }

  .menu-toggle svg {
    stroke: currentColor;
  }
}

@media (max-width: 620px) {
  .wrap,
  .nav {
    width: min(100% - 28px, 1260px);
  }

  .brand span {
    max-width: 168px;
  }

  .site-nav ul {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav,
  .reveal,
  .reveal.in,
  .btn,
  .service-card,
  .why-card,
  .apt-card,
  .ambient-panel {
    transform: none !important;
    transition: none !important;
  }
}
