/* ==========================================================================
   Parth Raj — design system
   Deep charcoal, off-white, one warm accent. No neon. No template chrome.
   ========================================================================== */

:root {
  color-scheme: dark;
  --bg: #0b0b0d;
  --bg-elevated: #111113;
  --surface: #161618;
  --surface-2: #1d1d20;
  --surface-3: #242428;
  --border: rgba(242, 241, 238, 0.08);
  --border-strong: rgba(242, 241, 238, 0.16);
  --text: #f2f1ee;
  --text-muted: #9c9a94;
  --text-faint: #6e6c67;
  --accent: #c9a56a;
  --accent-hover: #d8b67c;
  --accent-pressed: #b08d52;
  --accent-soft: rgba(201, 165, 106, 0.12);
  --accent-line: rgba(201, 165, 106, 0.4);
  --on-accent: #1a150c;
  --danger: #c97a6c;
  --danger-soft: rgba(201, 122, 108, 0.12);
  --ok: #7d9e78;
  --header-bg: rgba(11, 11, 13, 0.78);
  --overlay: rgba(8, 8, 10, 0.88);
  --grid-line: rgba(242, 241, 238, 0.05);
  --hero-glow: rgba(201, 165, 106, 0.08);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", system-ui, sans-serif;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 7rem;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
  --header-h: 72px;
  --container: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f2ec;
  --bg-elevated: #ebe7de;
  --surface: #fffcf7;
  --surface-2: #efebe3;
  --surface-3: #e6e1d6;
  --border: rgba(22, 21, 15, 0.08);
  --border-strong: rgba(22, 21, 15, 0.16);
  --text: #16150f;
  --text-muted: #5c5a52;
  --text-faint: #8a877c;
  --accent: #8f6a32;
  --accent-hover: #a47b3c;
  --accent-pressed: #7a5928;
  --accent-soft: rgba(143, 106, 50, 0.12);
  --accent-line: rgba(143, 106, 50, 0.45);
  --on-accent: #fffaf0;
  --danger: #b45a4c;
  --ok: #4f7a4c;
  --header-bg: rgba(244, 242, 236, 0.84);
  --overlay: rgba(244, 242, 236, 0.92);
  --grid-line: rgba(22, 21, 15, 0.06);
  --hero-glow: rgba(143, 106, 50, 0.12);
  --shadow: 0 18px 40px rgba(40, 32, 16, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top));
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 100%;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  letter-spacing: 0.01em;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

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

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

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  touch-action: manipulation;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 1000;
  padding: 0.6rem 1rem;
  background: var(--accent);
  color: #111;
  border-radius: 6px;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Loader
   -------------------------------------------------------------------------- */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-brand {
  text-align: center;
  padding: 1rem;
}

.loader-name {
  margin: 0;
  font-family: "Great Vibes", "Segoe Script", cursive;
  font-style: italic;
  font-size: clamp(2.8rem, 8vw, 4.6rem);
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
  color: var(--text);
}

.loader-words {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
  font-size: 1.05rem;
}

.loader-words span {
  display: inline-block;
}

.loader-bar {
  width: min(160px, 50vw);
  height: 1px;
  margin: 1.5rem auto 0;
  background: var(--border-strong);
  overflow: hidden;
}

.loader-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
}

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  flex-shrink: 0;
  overflow: visible;
  padding-top: env(safe-area-inset-top);
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body.nav-open .site-header {
  z-index: 220;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1px solid var(--accent-line);
  border-radius: 9px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.script-r {
  font-family: "Great Vibes", "Segoe Script", cursive;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1;
  display: inline-block;
  color: var(--text);
  white-space: nowrap;
  transform-origin: 50% 75%;
}

.script-r--brand {
  font-size: 1.85rem;
  line-height: 1;
  padding-top: 0.12em;
}

.script-r--loader {
  font-size: 1em;
  line-height: 1;
}

.script-r--hero {
  font-size: 1em;
  line-height: 0.95;
}

.script-r--footer {
  font-size: 2.7rem;
  line-height: 1;
}

.script-r--inline {
  font-size: 1.45em;
  line-height: 1;
  vertical-align: -0.06em;
  color: inherit;
}

.script-r--mono {
  font-size: clamp(2.6rem, 6vw, 3.8rem);
  line-height: 1.1;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav__list a {
  display: inline-flex;
  align-items: center;
  position: relative;
  min-height: 44px;
  padding: 0 0.7rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 400;
  border-radius: 8px;
  background-image: linear-gradient(var(--accent-soft), var(--accent-soft));
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 0% 100%;
  transition: background-size 0.55s cubic-bezier(0.22, 1, 0.36, 1), color 0.35s var(--ease);
}

.nav__list a::after {
  content: "";
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 10px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s var(--ease);
}

.nav__list a:hover {
  color: var(--text);
}

.nav__list a:hover::after,
.nav__list a.is-active::after {
  transform: scaleX(1);
}

.nav__list a.is-active {
  color: var(--text);
  background-size: 100% 100%;
}

.nav__cta {
  margin-left: 0.35rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  position: relative;
  z-index: 72;
  pointer-events: auto;
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--text);
  flex-shrink: 0;
}

.icon-btn:hover {
  background: var(--accent-soft);
}

.theme-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: block;
  position: relative;
}

.theme-icon--sun {
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.theme-icon--moon {
  background: var(--text);
  box-shadow: inset -4px -2px 0 -1px var(--bg);
  display: none;
}

html[data-theme="light"] .theme-icon--sun {
  display: none;
}

html[data-theme="light"] .theme-icon--moon {
  display: block;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  position: relative;
  z-index: 230;
  overflow: hidden;
  pointer-events: auto;
  border-radius: 10px;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--accent);
  clip-path: inset(100% 0 0 0 round 10px);
  transition: clip-path 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}

.nav-toggle[aria-expanded="true"]::before {
  clip-path: inset(0 0 0 0 round 10px);
}

.nav-toggle:active {
  transform: scale(0.96);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0;
  background: var(--text);
  pointer-events: none;
  position: relative;
  z-index: 1;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), background 0.4s var(--ease), opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span {
  background: var(--on-accent);
  transition-delay: 0s, 0.28s, 0s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body.nav-open {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.25rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

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

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}

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

.btn--ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.btn--small {
  min-height: 40px;
  padding: 0 0.9rem;
  font-size: 0.85rem;
}

.btn.is-disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* --------------------------------------------------------------------------
   Page frame
   -------------------------------------------------------------------------- */

.page-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
}

.page-main > * {
  min-width: 0;
  max-width: 100%;
}

.section {
  padding: var(--space-8) 0;
}

.section--tight {
  padding: var(--space-7) 0;
}

.section--hero {
  padding: var(--space-8) 0;
  position: relative;
}

.page-main > :last-child {
  padding-bottom: var(--space-8);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.85rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-head {
  max-width: 40rem;
  margin-bottom: var(--space-6);
}

.section-head h2,
.page-intro h1,
.hero__copy h1,
.not-found h1 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

.lede {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 40rem;
}

.page-intro {
  padding: var(--space-8) 0 var(--space-6);
}

.page-intro h1,
.not-found h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  margin-bottom: 0.9rem;
  max-width: 100%;
  overflow-wrap: break-word;
}

.page-intro .btn-row,
.not-found .btn-row {
  margin-top: 1.5rem;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  display: grid;
  gap: var(--space-6);
  align-items: center;
  min-height: min(38rem, calc(100svh - var(--header-h) - 2rem));
  position: relative;
}

.hero__copy h1 {
  font-size: clamp(2.7rem, 7vw, 4.6rem);
  margin-bottom: 0.35rem;
}

.hero__role {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-weight: 500;
  margin-bottom: 0.45rem;
}

.hero__tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  color: var(--accent);
  margin-bottom: 1.4rem;
}

.hero__support {
  max-width: 38rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
  font-size: 1.08rem;
}

.hero-visual {
  position: relative;
  min-height: 240px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse at 70% 30%, var(--hero-glow), transparent 50%),
    linear-gradient(180deg, var(--surface), var(--bg-elevated));
  overflow: hidden;
}

.hero-visual svg {
  width: 100%;
  height: 100%;
  min-height: 240px;
  will-change: transform;
}

.hero-layer {
  position: absolute;
  inset: 0;
  will-change: transform;
  pointer-events: none;
}

.hero-float {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-chip {
  position: absolute;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}

.hero-chip--a { top: 18%; left: 10%; }
.hero-chip--b { top: 58%; right: 12%; }
.hero-chip--c { bottom: 16%; left: 22%; }

.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Interest chips / focus cards
   -------------------------------------------------------------------------- */

.interest-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.interest {
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.interest strong {
  display: block;
  font-weight: 500;
  margin-bottom: 0.2rem;
}

.interest span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.focus-grid {
  display: grid;
  gap: 1rem;
}

.focus-card {
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.focus-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  margin-bottom: 0.55rem;
}

.focus-card p {
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Project / venture cards
   -------------------------------------------------------------------------- */

.card-grid {
  display: grid;
  gap: 1.1rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  min-width: 0;
  height: 100%;
}

.project-card.is-clickable {
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.project-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  overflow: hidden;
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transform-origin: center;
}

.project-card {
  position: relative;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top;
  z-index: 1;
}

.project-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.15rem 1.15rem 1.25rem;
  flex: 1;
}

.project-card__main .project-card__body {
  padding-bottom: 0.75rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pill--status {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.project-card h3,
.venture-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
}

.project-card p,
.venture-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.78rem;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.4rem;
}

.project-card__main {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.project-card__main > .card-actions {
  padding: 0 1.15rem 0.35rem;
}

.project-card__hint {
  align-self: flex-start;
  margin: 0.15rem 1.15rem 1.15rem;
  padding: 0;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.project-card__hint:hover {
  color: var(--accent-hover);
}

.project-card__more .card-actions {
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  max-width: 46rem;
  border-top: 1px solid var(--border);
}

.venture-grid {
  display: grid;
  gap: 1.1rem;
}

.venture-card {
  padding: 1.6rem 1.4rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(201, 165, 106, 0.05), transparent 40%),
    var(--surface);
}

.dates {
  color: var(--text-faint);
  font-size: 0.88rem;
}

.venture-card .dates {
  margin: 0.35rem 0 0.9rem;
}

.project-card--expandable {
  cursor: pointer;
}

.project-card--expandable:focus-within {
  box-shadow: 0 0 0 2px var(--accent);
}

.project-card.is-open {
  grid-column: 1 / -1;
  height: auto;
  cursor: default;
}

.project-card.is-open .project-card__media {
  aspect-ratio: 16 / 10;
}

.project-card__more {
  padding: 1.35rem 1.15rem 1.5rem;
  border-top: 1px solid var(--border);
}

.project-card__more[hidden] {
  display: none;
}

.project-card.is-open .project-card__more > :first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.project-card__story-title {
  max-width: 18em;
  margin: 0.2rem 0 1.15rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.project-story h3 {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
}

.project-story__track {
  position: relative;
  display: grid;
  margin: 0 0 2rem;
  padding: 0 0 0 1.35rem;
  list-style: none;
}

.project-story__track::before {
  content: "";
  position: absolute;
  top: 0.45rem;
  bottom: 0.45rem;
  left: 0.28rem;
  width: 1px;
  background: var(--border-strong);
}

.project-story__step {
  position: relative;
  padding: 0 0 1.15rem 0.9rem;
}

.project-story__step:last-child {
  padding-bottom: 0;
}

.project-story__step::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  left: -1.18rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.project-story__step time {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-story__step p {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
}

.project-story__milestones,
.project-story__essay,
.project-story__lessons {
  max-width: 46rem;
}

.project-story__essay {
  padding-top: 1.25rem;
  border-top: 0;
}

.project-story__milestones + .project-story__essay,
.project-story__essay + .project-story__lessons {
  margin-top: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.project-story__essay p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.project-story__essay p:last-child {
  margin-bottom: 0;
}

.project-story__points {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.project-story__points:last-child {
  margin-bottom: 0;
}

.project-story__points li {
  position: relative;
  padding-left: 0.95rem;
  color: var(--text-muted);
}

.project-story__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.project-story__lessons {
  margin-top: 1.7rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
}

.project-story__lessons .tags {
  margin-top: 0.15rem;
}

.learn-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1rem;
}

.client-note {
  max-width: 40rem;
  margin: 0;
  padding: 1.6rem 1.45rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, var(--accent-soft), transparent 42%),
    var(--surface);
}

.client-note blockquote {
  margin: 0;
}

.client-note p {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--text);
}

.client-note figcaption {
  margin-top: 1.15rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.client-note__name {
  font-size: 0.95rem;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Timeline
   -------------------------------------------------------------------------- */

.timeline {
  position: relative;
  display: grid;
  gap: 0;
  padding-left: 1.4rem;
  list-style: none;
}

.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  left: 0.28rem;
  top: 0.4rem;
  width: 1px;
  pointer-events: none;
}

.timeline::before {
  bottom: 0.4rem;
  background: var(--border-strong);
}

.timeline::after {
  height: calc((100% - 0.8rem) * var(--journey, 0));
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--accent) 25%, transparent),
    var(--accent)
  );
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 75%, transparent);
  opacity: 0;
}

.timeline.is-on::after {
  opacity: 1;
}

.timeline-item {
  position: relative;
  min-height: 16rem;
  padding: 1.15rem 1rem 3rem 1.35rem;
  border-radius: 12px;
}

.timeline-item:last-child {
  padding-bottom: 1.15rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.22rem;
  top: 0.95rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.timeline-item time,
.timeline-item .when {
  display: block;
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.timeline-item h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
}

.timeline-item p {
  color: var(--text-muted);
  max-width: 46rem;
}

.timeline-item p + p {
  margin-top: 0.9rem;
}

.timeline-points {
  display: grid;
  gap: 0.55rem;
  max-width: 46rem;
  margin-top: 1rem;
}

.timeline-points li {
  position: relative;
  padding-left: 0.95rem;
  color: var(--text-muted);
}

.timeline-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-item.is-future::before {
  background: transparent;
  border: 1px solid var(--accent);
}

.timeline.is-tracking .timeline-item {
  opacity: 0.5;
}

.timeline.is-tracking .timeline-item.is-lit {
  opacity: 1;
  background: linear-gradient(90deg, var(--accent-soft), transparent 76%);
}

.timeline.is-tracking .timeline-item.is-lit::before {
  box-shadow: 0 0 0 4px var(--accent-soft), 0 0 16px var(--accent);
}

.timeline.is-tracking .timeline-item.is-lit.is-future::before {
  background: var(--accent);
}

.timeline.is-tracking .timeline-item.is-lit p,
.timeline.is-tracking .timeline-item.is-lit .timeline-points li {
  color: var(--text);
}

/* --------------------------------------------------------------------------
   Connect / form
   -------------------------------------------------------------------------- */

.social-grid {
  display: grid;
  gap: 0.75rem;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  min-height: 76px;
  cursor: pointer;
}

.social-card__text {
  flex: 1;
  min-width: 0;
}

.social-card__arrow {
  color: var(--accent);
  font-size: 1.1rem;
  transition: transform 0.2s var(--ease);
}

.social-card.is-placeholder {
  cursor: default;
}

.copy-btn {
  width: auto;
  min-width: 44px;
  padding: 0 0.7rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.social-card__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}

.social-card__icon svg {
  width: 18px;
  height: 18px;
}

.social-card strong {
  display: block;
  font-weight: 500;
}

.social-card small {
  color: var(--text-faint);
}

.form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  min-height: 48px;
}

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

.field input:focus-visible,
.field textarea:focus-visible {
  border-color: var(--accent-line);
}

.field.is-invalid input,
.field.is-invalid textarea {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.field .error {
  color: var(--danger);
  font-size: 0.82rem;
  min-height: 1.1em;
}

.form-note {
  color: var(--text-faint);
  font-size: 0.88rem;
}

.form-status {
  min-height: 1.4em;
  font-size: 0.92rem;
}

.form-status.is-error {
  color: var(--danger);
}

.form-status.is-ok {
  color: var(--ok);
}

/* --------------------------------------------------------------------------
   Filters
   -------------------------------------------------------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: var(--space-6);
}

.filter-btn {
  min-height: 40px;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.filter-btn.is-active {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
}

.filter-btn {
  min-height: 44px;
}

.card-grid.is-filtering {
  opacity: 0.35;
}

.card-grid {
  transition: opacity 0.2s var(--ease);
}

html.is-transitioning .page-loader {
  display: none;
}

body.nav-open {
  overflow: hidden;
}

.empty-state {
  padding: 2.4rem 1.4rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-muted);
  text-align: left;
}

.empty-state strong {
  display: block;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.45rem;
}

/* --------------------------------------------------------------------------
   Story / about
   -------------------------------------------------------------------------- */

.story {
  display: grid;
  gap: var(--space-6);
}

.story__text p + p {
  margin-top: 1rem;
}

.story__text p {
  color: var(--text-muted);
  max-width: 42rem;
}

.monogram {
  display: grid;
  place-items: center;
  min-height: 220px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 30% 20%, rgba(201, 165, 106, 0.14), transparent 45%),
    var(--surface);
  color: var(--accent);
  overflow: hidden;
}

.cta-band {
  margin: 0;
  padding: var(--space-7) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  margin-bottom: 0.7rem;
}

.cta-band p {
  color: var(--text-muted);
  margin-bottom: 1.3rem;
  max-width: 36rem;
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.not-found {
  flex: 1;
  display: grid;
  align-content: center;
  justify-items: start;
  padding: var(--space-8) 0;
}

.not-found .container {
  min-width: 0;
  max-width: 100%;
}

.not-found .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 8rem);
  color: var(--accent);
  line-height: 0.9;
  margin-bottom: 0.6rem;
}

.not-found .lede {
  max-width: 28rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  flex-shrink: 0;
  width: 100%;
  border-top: 1px solid var(--border);
  padding: var(--space-7) 0 var(--space-5);
  background: var(--bg-elevated);
}

.footer-grid {
  display: grid;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.footer-name {
  font-family: "Great Vibes", "Segoe Script", cursive;
  font-style: italic;
  font-size: 2.7rem;
  line-height: 1;
  color: var(--text);
}

.footer-title {
  margin-top: 0.2rem;
  font-size: 0.95rem;
}

.footer-tag {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
  margin-top: 0.25rem;
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1rem;
}

.footer-nav a {
  color: var(--text-muted);
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-social a,
.footer-social span {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-copy {
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 0.88rem;
}

.section-split {
  display: grid;
  gap: var(--space-5);
}

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

.to-top {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 30;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--surface);
  color: var(--text);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  box-shadow: var(--shadow);
}

.to-top__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}

.to-top__track,
.to-top__progress {
  fill: none;
  stroke-width: 2;
}

.to-top__track {
  stroke: var(--border-strong);
}

.to-top__progress {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 131.95;
  stroke-dashoffset: 131.95;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.detail {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: grid;
  place-items: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}

.detail[hidden] {
  display: none;
}

.detail__backdrop {
  position: absolute;
  inset: 0;
  background: var(--overlay);
  opacity: 0;
  transition: opacity 0.28s var(--ease);
}

.detail__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 40rem);
  max-height: min(88svh, 760px);
  overflow: auto;
  padding: 1.15rem 1.2rem 1.4rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease);
}

.detail.is-open .detail__backdrop {
  opacity: 1;
}

.detail.is-open .detail__panel {
  opacity: 1;
  transform: none;
}

.detail__close {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 40px;
  align-self: flex-end;
  margin: 0 0 0.85rem;
  padding: 0 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
  background: var(--bg);
}

.detail__close span {
  font-size: 1.25rem;
  line-height: 1;
}

.detail__media {
  margin-bottom: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
}

.detail__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.detail__body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 400;
  margin: 0.7rem 0 0.75rem;
}

.detail__body p {
  color: var(--text-muted);
  max-width: 38rem;
}

.detail__body .tags,
.detail__body .card-actions {
  margin-top: 1rem;
}

body.detail-open {
  overflow: hidden;
}

body.nav-open .to-top {
  visibility: hidden;
  opacity: 0;
}

.site-footer {
  padding-bottom: calc(var(--space-5) + env(safe-area-inset-bottom));
}

html.is-transitioning::after,
html.is-leaving::after,
html.is-arriving::after {
  content: "Parth Raj";
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--text);
  font-family: "Great Vibes", "Segoe Script", cursive;
  font-style: italic;
  letter-spacing: 0;
  font-size: clamp(2.8rem, 8vw, 4.4rem);
  line-height: 1;
  pointer-events: none;
}

html.is-arriving::after {
  animation: overlay-out 0.2s var(--ease) both;
}

@keyframes overlay-out {
  from { opacity: 1; }
  to { opacity: 0; visibility: hidden; }
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}
