:root {
  --ink: #14120e;
  --ink-raise: #1d1a15;
  --paper: #f6f1e7;
  --paper-deep: #ebe3d4;
  --ink-text: #1c1914;
  --muted: #b7b0a4;
  --muted-ink: #5e584e;
  --line: rgba(243, 238, 228, 0.14);
  --saffron: #e39a3c;
  --focus: #f0c27a;
  --shadow: 0 22px 50px rgba(0, 0, 0, 0.32);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --wrap: min(1120px, calc(100% - 2rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  color: #f4efe6;
  background:
    radial-gradient(880px 420px at 8% -10%, rgba(227, 154, 60, 0.18), transparent 58%),
    radial-gradient(760px 460px at 96% 0%, rgba(92, 111, 214, 0.16), transparent 55%),
    radial-gradient(680px 380px at 70% 100%, rgba(31, 143, 130, 0.12), transparent 50%),
    var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.6;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  padding: 0.55rem 0.85rem;
  border-radius: 0.45rem;
  background: var(--paper);
  color: var(--ink-text);
  text-decoration: none;
  font-weight: 600;
}

.skip:focus {
  top: 0.7rem;
}

.ribbon {
  display: flex;
  height: 4px;
}

.ribbon span {
  flex: 1;
}

.ribbon span:nth-child(1) {
  background: #e39a3c;
}

.ribbon span:nth-child(2) {
  background: #6d7de0;
}

.ribbon span:nth-child(3) {
  background: #2f9d8e;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(20, 18, 14, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #f6f1e7;
  font-family: var(--serif);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.wordmark__logo {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(227, 154, 60, 0.45), 0 6px 18px rgba(0, 0, 0, 0.35);
  object-fit: cover;
}

.site-nav {
  display: flex;
  gap: 1.4rem;
}

.site-nav a {
  color: #f4efe6;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
}

.site-nav a:hover {
  color: var(--saffron);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: transparent;
  color: #f6f1e7;
  cursor: pointer;
}

.nav-toggle__close {
  display: none;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: #e4c89a;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow--ink {
  color: #8a4b12;
}

.hero {
  padding: 4.2rem 0 1.5rem;
}

.hero__layout {
  display: grid;
  gap: 1.5rem;
}

.hero h1 {
  max-width: 11ch;
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 5.6rem);
  font-weight: 560;
  letter-spacing: -0.04em;
  line-height: 0.96;
}

.hero h1 em {
  font-style: italic;
  font-weight: 520;
  color: #f0d7b0;
}

.lede {
  max-width: 38rem;
  margin-top: 1.25rem;
  color: #d9d1c4;
  font-size: 1.12rem;
}

.hero__signals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero__signals li {
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #f6f1e7;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.92rem;
  font-weight: 500;
}

.section-head {
  max-width: 36rem;
  margin-bottom: 1.6rem;
}

.section-head h2,
.about h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.portals {
  padding: 1.5rem 0 4.5rem;
}

.portals__grid {
  display: grid;
  gap: 1.15rem;
}

.portal {
  --accent: #e39a3c;
  --accent-ink: #8a4b12;
  --wash: #f6e6cc;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.4rem;
  background: var(--paper);
  color: var(--ink-text);
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.portal--kundli {
  --accent: #5c6fd6;
  --accent-ink: #2a3680;
  --wash: #e6e9f8;
}

.portal--company {
  --accent: #1f8f82;
  --accent-ink: #0e5c54;
  --wash: #d9f0eb;
}

.portal:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.portal:has(.portal__cta:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}

.portal__art {
  background:
    radial-gradient(120px 80px at 90% 0%, rgba(255, 255, 255, 0.45), transparent 70%),
    var(--wash);
}

.art {
  width: 100%;
  height: auto;
}

.art-draw {
  stroke-dasharray: 280;
  stroke-dashoffset: 280;
  animation: draw 1.5s ease forwards;
}

.portal__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem 1.25rem 1.15rem;
}

.portal__kicker {
  color: var(--accent-ink);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.portal h3 {
  margin: 0.3rem 0 0.55rem;
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.portal__body > p {
  color: #3f3a33;
}

.portal__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.portal__facts li {
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: rgba(28, 25, 20, 0.06);
  color: var(--accent-ink);
  font-size: 0.84rem;
  font-weight: 600;
}

.portal__note {
  margin-top: 0.85rem;
  color: var(--muted-ink);
  font-size: 0.88rem;
}

.portal__cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  background: var(--accent-ink);
  color: #f6f1e7;
  font-weight: 600;
  text-decoration: none;
}

.portal__cta::after {
  content: "";
  position: absolute;
  inset: 0;
}

.portal__cta .icon {
  transition: transform 0.3s ease;
}

.portal:hover .portal__cta .icon {
  transform: translate(3px, -3px);
}

.portal__host {
  margin-top: auto;
  padding-top: 0.9rem;
  color: var(--muted-ink);
  font-size: 0.82rem;
}

.practice {
  padding: 4rem 0;
  background: var(--ink-raise);
  border-block: 1px solid var(--line);
}

.practice__grid {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

.practice__grid li {
  padding: 1.3rem 1.2rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.02);
}

.practice__icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.9rem;
  border-radius: 0.75rem;
  background: rgba(227, 154, 60, 0.14);
  color: var(--saffron);
}

.practice__grid li:nth-child(2) .practice__icon {
  background: rgba(92, 111, 214, 0.18);
  color: #9aabf5;
}

.practice__grid li:nth-child(3) .practice__icon {
  background: rgba(31, 143, 130, 0.18);
  color: #7dcec3;
}

.practice h3 {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 560;
  letter-spacing: -0.02em;
}

.practice p {
  margin-top: 0.4rem;
  color: #d4cdc1;
}

.about {
  padding: 4.5rem 0 5rem;
}

.about__panel {
  display: grid;
  gap: 2rem;
  padding: 1.6rem;
  border-radius: 1.5rem;
  background: var(--paper);
  color: var(--ink-text);
}

.about h2 {
  color: var(--ink-text);
}

.about__role {
  margin: 0.7rem 0 0.9rem;
  color: #8a4b12;
  font-weight: 600;
}

.about__panel p:last-child {
  color: #3f3a33;
  max-width: 42rem;
}

.about__roles {
  display: grid;
  gap: 0.7rem;
  align-content: end;
}

.about__roles li {
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  background: var(--paper-deep);
  font-weight: 600;
}

.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--line);
}

.site-footer__grid {
  display: grid;
  gap: 2rem;
}

.wordmark--plain {
  color: #f6f1e7;
}

.site-footer__role {
  margin-top: 0.8rem;
  max-width: 18rem;
  color: var(--muted);
}

.site-footer__label {
  margin-bottom: 0.7rem;
  color: #e4c89a;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer__list {
  display: grid;
  gap: 0.45rem;
}

.site-footer__list a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #f4efe6;
  text-decoration: none;
}

.site-footer__list a:hover {
  color: var(--saffron);
}

.site-footer__base {
  display: grid;
  gap: 0.35rem;
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.portal:has(.portal__cta:focus-visible) .portal__cta {
  outline: none;
}

@media (min-width: 720px) {
  .portals__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 760px) {
  .practice__grid,
  .site-footer__grid,
  .about__panel {
    grid-template-columns: repeat(3, 1fr);
  }

  .about__panel {
    grid-template-columns: 1.5fr 0.9fr;
    padding: 2.2rem;
  }
}

@media (min-width: 960px) {
  .portals__grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
  }
}

@media (max-width: 759px) {
  .nav-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    display: none;
  }

  .site-header {
    position: sticky;
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    gap: 0;
    padding: 0.4rem 1rem 1rem;
    background: #1c1914;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a {
    padding: 0.8rem 0.2rem;
    border-top: 1px solid var(--line);
  }

  .is-open .nav-toggle__open {
    display: none;
  }

  .is-open .nav-toggle__close {
    display: inline-flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .art-draw {
    stroke-dashoffset: 0;
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
