/* Homepage (index-light) — edit index.html */

:root {
  --page: #eceef4;
  --panel: #f2f3f7;
  --surface: #08071f;
  --text: #08071f;
  --text-muted: #6b7280;
  --text-soft: #4b5563;
  --text-body: #4b5563;
  --border: #e5e7eb;
  --nav-bg: rgba(255, 255, 255, 0.9);
  --cta: #50a2ff;
  --cta-hover: #7bb8ff;
  --container: 72rem;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  background: var(--page);
  color: var(--text);
  line-height: 1.5;
}

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

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 768px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

#about,
#projects,
#expertise,
#contact,
#featured-case-study {
  scroll-margin-top: 5.5rem;
}

/* Nav */
.site-nav {
  position: relative;
  z-index: 50;
  height: 4rem;
  display: flex;
  align-items: center;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .site-nav {
    position: sticky;
    top: 0;
    height: 4.5rem;
  }
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-desktop a {
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.15s;
}

.nav-desktop a:hover {
  color: var(--cta);
}

.nav-mobile {
  display: block;
}

@media (min-width: 768px) {
  .nav-mobile {
    display: none;
  }
}

.nav-mobile summary {
  list-style: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.5rem;
}

.nav-mobile summary::-webkit-details-marker {
  display: none;
}

.nav-mobile summary:hover {
  background: rgba(0, 0, 0, 0.05);
}

.nav-mobile[open] summary {
  background: rgba(0, 0, 0, 0.05);
}

.nav-mobile-panel {
  position: absolute;
  top: 4rem;
  right: 0;
  left: 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 1rem;
}

@media (min-width: 768px) {
  .nav-mobile-panel {
    display: none;
  }
}

.nav-mobile-panel a {
  display: block;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-size: 1.125rem;
}

.nav-mobile-panel a:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--cta);
}

.btn {
  display: inline-block;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.btn--primary {
  background: var(--cta);
  color: #fff;
  font-weight: 500;
}

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

.btn--ghost {
  border: 1px solid var(--cta);
  color: var(--surface);
  background: transparent;
}

.btn--ghost:hover {
  background: rgba(80, 162, 255, 0.08);
}

/* Hero */
.page-wrap {
  margin-top: -4rem;
}

@media (min-width: 768px) {
  .page-wrap {
    margin-top: -4.5rem;
  }
}

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  color: var(--surface);
  background: #fff;
}

.hero__carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__picker {
  display: none;
  position: absolute;
  right: 1rem;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: auto;
}

@media (min-width: 768px) {
  .hero__picker {
    display: flex;
  }
}

.hero__picker-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s ease;
}

.hero__picker-btn:hover {
  opacity: 0.9;
}

.hero__picker-btn[aria-current="true"] {
  opacity: 1;
}

.hero__picker-btn img {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: cover;
  /* Wide hero art — bias right so center-right subject isn’t cropped away */
  object-position: 75% center;
  border-radius: 50%;
  border: 2px solid rgba(8, 7, 31, 0.15);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hero__picker-btn:hover img {
  border-color: rgba(8, 7, 31, 0.3);
}

.hero__picker-btn[aria-current="true"] img {
  border-color: var(--cta);
  box-shadow: 0 10px 15px rgba(80, 162, 255, 0.2);
  transform: scale(1.05);
}

.hero__picker-label {
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: var(--cta);
}

.hero__content {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  padding-bottom: 3rem;
}

@media (min-width: 1024px) {
  .hero__content {
    padding-top: 6rem;
    padding-bottom: 3.5rem;
  }
}

.hero__copy {
  max-width: 52rem;
  padding-right: 4rem;
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .hero__copy {
    padding-right: 7rem;
  }
}

.hero h1 {
  margin: 0;
  max-width: 42rem;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.16;
}

/* Hero intro — see js/hero-intro.js (matches React heroIntroMotion) */
@media (prefers-reduced-motion: no-preference) {
  [data-hero-intro]:not(.hero__copy--ready) > * {
    opacity: 0;
  }

  .hero:not(.hero--intro-ready) .trusted {
    opacity: 0;
  }

  .hero__copy--ready .hero__line {
    display: block;
    opacity: 0;
    animation: hero-fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--hero-delay, 0s);
  }

  .hero__copy--ready .hero__reveal {
    opacity: 0;
    animation: hero-fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: var(--hero-delay, 0s);
  }
}

@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 .accent {
  color: var(--cta);
}

.hero__lead {
  margin: 1.25rem 0 0;
  max-width: 38rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-soft);
}

@media (min-width: 1024px) {
  .hero__lead {
    font-size: 1.25rem;
  }
}

.services {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.25rem 2.25rem;
  max-width: 40rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .services {
    gap: 1.25rem 2.5rem;
    margin-top: 1.75rem;
  }
}

.services li {
  display: flex;
  flex: 0 1 calc(50% - 1.125rem);
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .services li {
    flex: 0 1 auto;
    max-width: 7.75rem;
  }
}

.services svg {
  width: 3rem;
  height: 3rem;
  color: var(--cta);
}

@media (min-width: 1024px) {
  .services svg {
    width: 3.5rem;
    height: 3.5rem;
  }
}

.services span {
  font-size: 0.875rem;
  color: var(--text-soft);
  line-height: 1.35;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

.hero__actions .btn--primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
}

.trusted {
  position: relative;
  z-index: 3;
  margin-top: 2rem;
  padding-top: 1.5rem;
}

.trusted .container {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.trusted__label {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.trusted__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.5rem 1.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trusted__logos img {
  height: 1.8rem;
  width: auto;
  opacity: 0.7;
}

/* Featured case study */
.featured {
  background: linear-gradient(to right, #ede8f7, #e3eef9);
  border-top: 1px solid var(--border);
  color: var(--surface);
}

.featured .container {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 1024px) {
  .featured .container {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

.featured__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .featured__grid {
    grid-template-columns: 1fr 4fr;
    gap: 2.5rem;
  }

  .featured__text {
    order: 1;
  }

  .featured__visual {
    order: 2;
  }
}

.featured__visual {
  aspect-ratio: 5 / 2;
}

.featured__visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (min-width: 640px) {
  .eyebrow {
    font-size: 0.875rem;
  }
}

.featured h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.35;
}

.featured p {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  color: var(--text-soft);
  line-height: 1.65;
}

@media (min-width: 1024px) {
  .featured p {
    font-size: 1rem;
  }
}

.featured .btn--ghost {
  margin-top: 1rem;
}

/* About & Expertise */
.content-section {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
  background: var(--panel);
}

.content-section--page {
  background: var(--page);
}

@media (min-width: 1024px) {
  .content-section {
    padding: 8rem 0;
  }
}

.content-section .section-intro {
  margin-bottom: 0;
}

.content-section .lead {
  margin: 0 0 2rem;
  font-size: 1.125rem;
  color: var(--text-muted);
}

@media (min-width: 1024px) {
  .content-section .lead {
    margin-bottom: 2.5rem;
  }
}

.content-section .prose {
  max-width: 48rem;
}

.content-section .prose p {
  margin: 0 0 1.25rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text-body);
}

.content-section .prose p:last-child {
  margin-bottom: 0;
}

/* Projects */
.projects {
  padding: 5rem 0;
  background: var(--page);
  border-top: 1px solid var(--border);
}

@media (min-width: 1024px) {
  .projects {
    padding: 8rem 0;
  }
}

.section-intro {
  max-width: 48rem;
  margin-bottom: 4rem;
}

.section-intro h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
}

.section-intro p {
  margin: 0;
  font-size: 1.125rem;
  color: var(--text-muted);
}

.projects__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.projects__list > li {
  margin: 0;
}

/* Project cards — white split layout (index-light WorkCard) */
.portfolio-card {
  display: block;
  background: #fff;
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 8px 30px rgba(8, 7, 31, 0.06);
  transition: box-shadow 0.3s ease;
}

.portfolio-card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.portfolio-card:hover {
  box-shadow: 0 12px 40px rgba(8, 7, 31, 0.09);
}

.portfolio-card__grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .portfolio-card__grid {
    grid-template-columns: 1fr 1fr;
    min-height: 22rem;
  }

  .portfolio-card__grid--media-right .portfolio-card__media {
    order: 2;
    border-left: 1px solid #f3f4f6;
  }

  .portfolio-card__grid--media-right .portfolio-card__body {
    order: 1;
  }
}

.portfolio-card__media {
  position: relative;
  min-height: 12rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .portfolio-card__media {
    min-height: 22rem;
  }
}

.portfolio-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-card__body {
  display: flex;
  flex-direction: column;
  min-height: 16rem;
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .portfolio-card__body {
    min-height: 22rem;
    padding: 2rem 2.5rem;
  }
}

.portfolio-card__copy {
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .portfolio-card__copy {
    margin-top: auto;
    margin-bottom: 1.5rem;
  }
}

.portfolio-card__copy h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  color: #111827;
}

@media (min-width: 1024px) {
  .portfolio-card__copy h3 {
    font-size: 1.75rem;
  }
}

.portfolio-card__subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.portfolio-card__desc {
  margin: 0.75rem 0 0;
  min-height: 4.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-body);
}

.portfolio-card__platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.portfolio-card__platforms li {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
}

.portfolio-card__platforms svg {
  width: 1.25rem;
  height: 1.25rem;
}

.portfolio-card__footer {
  flex-shrink: 0;
  padding-top: 1.5rem;
  border-top: 1px solid #f3f4f6;
}

.portfolio-card__footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .portfolio-card__footer-inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

.portfolio-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  margin: 0;
}

.portfolio-card__stats div {
  margin: 0;
}

.portfolio-card__stats strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  color: #111827;
}

.portfolio-card__stats span {
  display: block;
  margin-top: 0.375rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9ca3af;
}

.portfolio-card__cta {
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #111827;
}

.portfolio-card:hover .portfolio-card__cta {
  color: var(--cta);
}

/* Contact */
.contact {
  padding: 5rem 0;
  background: var(--page);
  border-top: 1px solid var(--border);
}

@media (min-width: 1024px) {
  .contact {
    padding: 8rem 0;
  }
}

.contact-form {
  max-width: 48rem;
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--surface);
  margin-bottom: 0.375rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--surface);
  font: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-muted);
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 2px solid rgba(80, 162, 255, 0.4);
  outline-offset: 2px;
  border-color: rgba(80, 162, 255, 0.5);
}

.contact-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

#contact-status {
  min-height: 1.4em;
  font-size: 0.875rem;
  color: var(--text-muted);
}

#contact-status.is-error {
  color: #dc2626;
}

.contact-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
