.home-page {
  --home-grid-shadow: rgba(var(--ice-rgb), 0.22);
}

.home-main {
  padding-top: calc(var(--nav-height) + 1.4rem);
}

.page-ambience {
  position: fixed;
  inset: 0;
  z-index: -5;
  pointer-events: none;
  overflow: hidden;
}

.page-ambience__layer,
.page-ambience__noise,
.page-ambience__beam {
  position: absolute;
  inset: -8%;
}

.page-ambience__layer {
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 0.8s ease, transform 1.1s ease, filter 0.8s ease;
  filter: saturate(0.88) blur(0);
}

.page-ambience__layer.is-active {
  opacity: 1;
  transform: scale(1);
  filter: saturate(1) blur(0);
}

.page-ambience__layer--home {
  background:
    radial-gradient(circle at 16% 12%, rgba(var(--gold-rgb), 0.18), transparent 22%),
    radial-gradient(circle at 84% 16%, rgba(var(--ice-rgb), 0.24), transparent 26%),
    radial-gradient(circle at 50% 82%, rgba(53, 211, 164, 0.12), transparent 18%),
    linear-gradient(180deg, rgba(6, 11, 20, 0.74), rgba(4, 7, 13, 0.94));
}

.page-ambience__layer--about {
  background:
    radial-gradient(circle at 22% 18%, rgba(var(--ice-rgb), 0.16), transparent 26%),
    radial-gradient(circle at 78% 20%, rgba(var(--gold-rgb), 0.12), transparent 24%),
    linear-gradient(180deg, rgba(7, 14, 25, 0.82), rgba(5, 9, 16, 0.96));
}

.page-ambience__layer--portfolio {
  background:
    radial-gradient(circle at 15% 24%, rgba(var(--gold-rgb), 0.22), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(var(--ice-rgb), 0.16), transparent 22%),
    radial-gradient(circle at 54% 72%, rgba(var(--gold-rgb), 0.08), transparent 18%),
    linear-gradient(180deg, rgba(8, 13, 23, 0.86), rgba(4, 6, 12, 0.98));
}

.page-ambience__layer--contact {
  background:
    radial-gradient(circle at 20% 18%, rgba(53, 211, 164, 0.1), transparent 22%),
    radial-gradient(circle at 84% 18%, rgba(var(--gold-rgb), 0.14), transparent 26%),
    linear-gradient(180deg, rgba(6, 10, 18, 0.8), rgba(3, 6, 11, 0.98));
}

.page-ambience__noise {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.8), transparent 90%);
  opacity: 0.42;
}

.page-ambience__beam {
  background:
    radial-gradient(circle at 50% -10%, rgba(var(--gold-rgb), 0.1), transparent 34%),
    linear-gradient(135deg, rgba(var(--ice-rgb), 0.06), transparent 42%, rgba(var(--gold-rgb), 0.05));
  filter: blur(50px);
  opacity: 0.9;
  transition: transform 0.9s ease, opacity 0.9s ease, filter 0.9s ease;
}

body[data-theme-section="home"] .page-ambience__beam {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 0.92;
}

body[data-theme-section="about"] .page-ambience__beam {
  transform: translate3d(-8vw, 4vh, 0) scale(1.08);
  opacity: 0.78;
  filter: blur(58px) saturate(1.04);
}

body[data-theme-section="portfolio"] .page-ambience__beam {
  transform: translate3d(8vw, -5vh, 0) scale(1.16);
  opacity: 1;
  filter: blur(66px) saturate(1.16);
}

body[data-theme-section="contact"] .page-ambience__beam {
  transform: translate3d(0, 6vh, 0) scale(0.94);
  opacity: 0.76;
  filter: blur(72px) saturate(0.94);
}

.hero {
  min-height: 230vh;
  position: relative;
  padding: 0 0 3.5rem;
}

.hero-stick {
  position: sticky;
  top: calc(var(--nav-height) + 1rem);
  min-height: calc(100vh - var(--nav-height) - 1.6rem);
  display: flex;
  align-items: stretch;
}

.hero-shell {
  --hero-progress: 0;
  position: relative;
  overflow: hidden;
  border-radius: 42px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(145deg, rgba(7, 13, 23, 0.98), rgba(11, 19, 34, 0.95)),
    radial-gradient(circle at top right, rgba(var(--gold-rgb), 0.14), transparent 24%),
    radial-gradient(circle at bottom left, rgba(var(--ice-rgb), 0.14), transparent 32%);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
  perspective: 1800px;
  transform-style: preserve-3d;
  transition: transform 0.24s ease-out;
  will-change: transform;
  width: 100%;
  min-height: calc(100vh - var(--nav-height) - 1.6rem);
  height: calc(100vh - var(--nav-height) - 1.6rem);
}

.hero-shell.is-story-static {
  min-height: auto;
  height: auto;
}

.hero-shell::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.hero-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.92;
  z-index: -3;
}

.hero-shell.is-scene-fallback .hero-scene {
  display: none;
}

.hero-shell__backdrop,
.hero-shell__mesh,
.hero-shell__spot {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-shell__backdrop {
  background:
    radial-gradient(circle at 18% 18%, rgba(var(--gold-rgb), 0.16), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(var(--ice-rgb), 0.18), transparent 28%),
    linear-gradient(180deg, rgba(5, 10, 18, 0.24), rgba(5, 10, 18, 0));
  z-index: -2;
}

.hero-shell__mesh {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 66px 66px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.86), transparent 88%);
  opacity: calc(0.18 + (var(--hero-progress) * 0.12));
  transform: translate3d(0, calc(var(--hero-progress) * 30px), 0);
  z-index: -1;
}

.hero-shell__spot {
  background:
    radial-gradient(circle at 25% 12%, rgba(var(--gold-rgb), 0.16), transparent 22%),
    radial-gradient(circle at 82% 32%, rgba(var(--ice-rgb), 0.14), transparent 28%),
    radial-gradient(circle at 55% 82%, rgba(53, 211, 164, 0.1), transparent 18%);
  transform: translate3d(calc(var(--hero-progress) * -4%), calc(var(--hero-progress) * 6%), 0);
}

.hero-plane,
.hero-depth,
.hero-scroll-cue,
.hero-copy,
.hero-visual,
.proof-card,
.orbit-badge,
.availability-panel {
  will-change: transform;
}

.hero-plane {
  position: absolute;
  width: 18rem;
  height: 18rem;
  pointer-events: none;
  opacity: 0.54;
  filter: drop-shadow(0 28px 80px rgba(4, 9, 18, 0.36));
}

.hero-plane::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    linear-gradient(135deg, rgba(var(--gold-rgb), 0.15), rgba(var(--ice-rgb), 0.12)),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.08) 0 1px,
      transparent 1px 34px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.08) 0 1px,
      transparent 1px 34px
    );
}

.hero-plane--rear {
  top: -3rem;
  left: 47%;
}

.hero-plane--rear::before {
  transform: perspective(1400px) rotateX(76deg) rotateZ(-18deg);
}

.hero-plane--front {
  right: 51%;
  bottom: -5rem;
}

.hero-plane--front::before {
  transform: perspective(1400px) rotateX(76deg) rotateZ(16deg);
}

.hero-depth {
  position: absolute;
  display: grid;
  gap: 0.35rem;
  min-width: 12.8rem;
  max-width: 15rem;
  padding: 1rem 1.1rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(8, 15, 26, 0.88), rgba(6, 11, 21, 0.92)),
    linear-gradient(135deg, rgba(var(--gold-rgb), 0.08), rgba(var(--ice-rgb), 0.08));
  box-shadow:
    0 24px 60px rgba(2, 6, 14, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  pointer-events: none;
}

.hero-depth span {
  color: var(--text-faint);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-depth strong {
  color: var(--text-strong);
  font-family: "Alexandria", "Tajawal", sans-serif;
  font-size: 0.98rem;
  line-height: 1.55;
}

.hero-depth::after {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(var(--gold-rgb), 0.1), rgba(var(--gold-rgb), 0.9), rgba(var(--ice-rgb), 0.2));
}

.hero-depth--north {
  top: 1.2rem;
  left: 1.2rem;
}

.hero-depth--west {
  left: 0.7rem;
  bottom: 24%;
}

.hero-depth--east {
  right: 1rem;
  top: 18%;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: clamp(1.8rem, 3.8vw, 4rem);
  padding: clamp(1.45rem, 2.8vw, 2.8rem);
  align-items: center;
  transform-style: preserve-3d;
  min-height: 100%;
}

.hero-copy {
  display: grid;
  gap: 1rem;
  position: relative;
  z-index: 2;
  transform-style: preserve-3d;
  max-width: 38rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--text-soft);
  font-weight: 700;
}

.hero-kicker__line {
  width: 4rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--gold-rgb), 0.12), rgba(var(--gold-rgb), 0.72), rgba(var(--ice-rgb), 0.24));
}

.hero-title {
  margin: 0;
  font-family: "Alexandria", "Tajawal", sans-serif;
  font-size: clamp(2rem, 4.1vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.06em;
  color: var(--text-strong);
}

.hero-title span {
  display: block;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.1vw, 1.04rem);
  line-height: 1.8;
  color: var(--text-soft);
  max-width: 31rem;
}

.hero-subtitle strong {
  color: var(--text-strong);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  max-width: 36rem;
}

.hero-fact {
  display: grid;
  gap: 0.38rem;
  min-height: 5.4rem;
  padding: 1rem 1rem 0.95rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-fact strong {
  color: var(--text-strong);
  font-family: "Alexandria", "Tajawal", sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.24rem);
}

.hero-fact span {
  color: var(--text-faint);
  font-size: 0.82rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding-top: 0.2rem;
}

.hero-actions .btn {
  min-width: 11rem;
}

.hero-stage-rail {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 3;
  display: grid;
  gap: 0.7rem;
  transform: translate3d(0, calc(var(--hero-progress) * -24px), 0);
}

.hero-stage {
  display: inline-grid;
  gap: 0.25rem;
  min-width: 7rem;
  padding: 0.75rem 0.9rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 12, 22, 0.62);
  color: var(--text-faint);
  transform: translateX(16px);
  opacity: 0.48;
  transition: transform 0.24s ease, opacity 0.24s ease, border-color 0.24s ease, background 0.24s ease;
  backdrop-filter: blur(18px);
}

.hero-stage span {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-stage strong {
  color: var(--text-strong);
  font-family: "Alexandria", "Tajawal", sans-serif;
  font-size: 0.94rem;
}

.hero-stage.is-active {
  transform: translateX(0);
  opacity: 1;
  border-color: rgba(var(--gold-rgb), 0.24);
  background: rgba(9, 16, 28, 0.84);
}

.proof-card {
  position: relative;
  overflow: hidden;
  padding: 0.9rem 0.9rem 1rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.32s ease, border-color 0.32s ease, box-shadow 0.32s ease;
  transform-style: preserve-3d;
}

.proof-card:hover {
  transform: translate3d(0, -10px, 0) rotateX(6deg) rotateY(-4deg);
  border-color: rgba(var(--gold-rgb), 0.22);
  box-shadow:
    0 18px 48px rgba(2, 6, 14, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.proof-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 9rem;
  height: 9rem;
  background: radial-gradient(circle, rgba(var(--gold-rgb), 0.18), transparent 72%);
  pointer-events: none;
}

.proof-card__label {
  display: inline-block;
  color: var(--text-faint);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.proof-card__value {
  margin: 0.5rem 0 0;
  font-family: "Alexandria", "Tajawal", sans-serif;
  font-size: clamp(1.34rem, 1.7vw, 2rem);
  color: var(--text-strong);
}

.proof-card__copy {
  margin: 0.5rem 0 0;
  color: var(--text-soft);
  line-height: 1.65;
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
  min-height: 100%;
  display: grid;
  justify-items: end;
  align-items: center;
  padding-block: 1.2rem 0.4rem;
}

.portrait-shell {
  position: relative;
  width: min(100%, 21.5rem);
  margin-inline-start: auto;
  padding: 0.7rem;
  border-radius: 32px;
  border: 1px solid rgba(var(--ice-rgb), 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
    linear-gradient(145deg, rgba(var(--gold-rgb), 0.14), rgba(var(--ice-rgb), 0.12));
  box-shadow:
    0 26px 64px rgba(2, 6, 14, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: none !important;
}

.portrait-shell::before {
  content: "";
  position: absolute;
  inset: 0.7rem;
  border-radius: 26px;
  border: 1px solid rgba(var(--gold-rgb), 0.16);
  pointer-events: none;
  z-index: 2;
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    rgba(5, 10, 18, 0.8);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.portrait-frame img {
  width: 100%;
  aspect-ratio: 4 / 4.7;
  object-fit: cover;
  object-position: center top;
  transform: none;
  filter: saturate(1.05) contrast(1.02);
}

.portrait-overlay {
  position: absolute;
  inset: auto 0.75rem 0.75rem;
  padding: 0.95rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(4, 9, 16, 0.72);
  box-shadow: 0 18px 42px rgba(2, 6, 14, 0.25);
  backdrop-filter: blur(18px);
}

.portrait-overlay__name {
  margin: 0;
  font-family: "Alexandria", "Tajawal", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-strong);
}

.portrait-overlay__role {
  margin: 0.4rem 0 0;
  color: var(--text-soft);
  line-height: 1.55;
  font-size: 0.9rem;
}

.orbit-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.78rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 14, 24, 0.9);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
  font-weight: 800;
  backdrop-filter: blur(18px);
  animation: none;
  transform: none !important;
}

.orbit-badge i {
  color: var(--gold);
}

.orbit-badge--top {
  top: 0.8rem;
  right: -1rem;
}

.orbit-badge--left {
  top: 38%;
  left: -2rem;
  animation-delay: 1.1s;
}

.orbit-badge--bottom {
  left: 1.2rem;
  bottom: -0.75rem;
  animation-delay: 2.1s;
}

.portrait-meta {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: grid;
  gap: 0.52rem;
  min-width: 12rem;
  padding: 0.8rem 0.9rem;
  border-radius: 18px;
  border: 1px solid rgba(var(--ice-rgb), 0.16);
  background:
    linear-gradient(180deg, rgba(8, 16, 28, 0.8), rgba(6, 12, 22, 0.74)),
    linear-gradient(135deg, rgba(var(--gold-rgb), 0.08), rgba(var(--ice-rgb), 0.08));
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
  transform: none !important;
}

.portrait-meta div {
  display: grid;
  gap: 0.2rem;
}

.portrait-meta span {
  color: var(--text-faint);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.portrait-meta strong {
  color: var(--text-main);
  font-family: "Alexandria", "Tajawal", sans-serif;
  font-size: 0.94rem;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 1rem;
  margin-top: 2.2rem;
}

.narrative-card,
.process-card,
.capability-card,
.stack-lane,
.contact-card,
.featured-case,
.case-card {
  height: 100%;
  transition: transform 0.34s ease, border-color 0.34s ease, box-shadow 0.34s ease;
  transform-style: preserve-3d;
}

.capability-card,
.stack-lane,
.contact-card {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.capability-card:hover,
.stack-lane:hover,
.contact-card:hover {
  transform: translate3d(0, -8px, 0);
  border-color: rgba(var(--gold-rgb), 0.2);
  box-shadow: 0 22px 56px rgba(3, 8, 18, 0.28);
}

.narrative-card {
  display: grid;
  gap: 1rem;
}

.narrative-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.9;
}

.narrative-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.narrative-highlight {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 4rem;
  padding: 0.9rem 1rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.04);
}

.narrative-highlight i {
  display: inline-grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 18px;
  background: rgba(var(--gold-rgb), 0.12);
  color: var(--gold);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.process-card {
  display: grid;
  gap: 0.75rem;
}

.process-card__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(var(--gold-rgb), 0.18), rgba(var(--ice-rgb), 0.16));
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: "Alexandria", "Tajawal", sans-serif;
  font-weight: 800;
}

.process-card h3,
.capability-card h3,
.stack-lane h3,
.case-card h3,
.featured-case h3,
.contact-card h3 {
  margin: 0;
  color: var(--text-strong);
  font-family: "Alexandria", "Tajawal", sans-serif;
}

.process-card p,
.capability-card p,
.stack-lane p,
.case-card p,
.featured-case p,
.contact-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.85;
}

.capability-card__icon,
.stack-lane__icon,
.contact-card__icon {
  display: inline-grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(var(--gold-rgb), 0.16), rgba(var(--ice-rgb), 0.12));
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.portfolio-shell {
  display: grid;
  gap: 1.2rem;
  perspective: 1800px;
  transform-style: preserve-3d;
}

.featured-case {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: center;
}

.featured-case:hover {
  transform: translate3d(0, -12px, 0) rotateX(4deg);
}

.featured-case__copy {
  display: grid;
  gap: 0.95rem;
  align-content: start;
  padding-inline-end: 0.25rem;
}

.featured-case__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.featured-case__fact {
  padding: 0.9rem 0.85rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.featured-case__fact span {
  display: block;
  color: var(--text-faint);
  font-size: 0.85rem;
}

.featured-case__fact strong {
  display: block;
  margin-top: 0.4rem;
  color: var(--text-strong);
  font-family: "Alexandria", "Tajawal", sans-serif;
}

.featured-case__visual {
  position: relative;
  overflow: hidden;
  align-self: stretch;
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.featured-case__visual img {
  width: 100%;
  height: 100%;
  min-height: 26rem;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.featured-case__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 8, 14, 0.08), rgba(4, 8, 14, 0.8)),
    radial-gradient(circle at top right, rgba(var(--gold-rgb), 0.28), transparent 28%);
}

.featured-case:hover .featured-case__visual img {
  transform: scale(1.06);
}

.portfolio-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.15rem;
}

.portfolio-toolbar__label {
  color: var(--text-faint);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.filter-chip {
  min-height: 2.6rem;
  padding: 0.68rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease, color 0.24s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
  transform: translate3d(0, -2px, 0);
  border-color: rgba(var(--gold-rgb), 0.26);
  background: rgba(var(--gold-rgb), 0.12);
  color: var(--text-main);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  perspective: 1800px;
  align-items: stretch;
}

.case-card[hidden] {
  display: none !important;
}

.case-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  padding: 0.72rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(10, 18, 30, 0.94), rgba(7, 12, 22, 0.98));
  box-shadow: 0 16px 40px rgba(2, 6, 14, 0.22);
}

.case-card:hover {
  transform: translate3d(0, -10px, 0) rotateX(3deg);
  border-color: rgba(var(--gold-rgb), 0.2);
  box-shadow: 0 24px 56px rgba(2, 6, 14, 0.28);
}

.case-media {
  position: relative;
  overflow: hidden;
  min-height: 0;
  aspect-ratio: 16 / 10;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.case-card:hover .case-media img {
  transform: scale(1.07);
  filter: saturate(1.08);
}

.case-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 7, 12, 0.02), rgba(3, 7, 12, 0.7));
}

.case-body {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1rem 0.2rem 0.25rem;
}

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

.case-tags span {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-faint);
  font-size: 0.82rem;
  font-weight: 700;
}

.case-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: auto;
  color: var(--gold);
  font-weight: 800;
}

.contact-shell {
  display: grid;
  gap: 1rem;
}

.about-support {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.studio-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.community-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.studio-intro__copy {
  display: grid;
  gap: 0.9rem;
}

.community-intro__copy {
  display: grid;
  gap: 0.9rem;
}

.studio-intro__copy h3 {
  margin: 0;
  color: var(--text-strong);
  font-family: "Alexandria", "Tajawal", sans-serif;
  font-size: clamp(1.3rem, 2vw, 2rem);
}

.community-intro__copy h3 {
  margin: 0;
  color: var(--text-strong);
  font-family: "Alexandria", "Tajawal", sans-serif;
  font-size: clamp(1.24rem, 1.9vw, 1.9rem);
  line-height: 1.45;
}

.studio-intro__copy p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.86;
}

.community-intro__copy p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.9;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 1.1rem;
  margin-top: 2rem;
}

.contact-copy {
  display: grid;
  gap: 1.1rem;
  align-content: start;
}

.contact-copy p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.95;
}

.contact-stack {
  display: grid;
  gap: 0.9rem;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-radius: 28px;
  isolation: isolate;
}

.contact-card::after {
  content: "";
  position: absolute;
  inset: auto 1.2rem 1.2rem 1.2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--gold-rgb), 0.34), rgba(var(--ice-rgb), 0.16), transparent);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.contact-card:hover::after,
.contact-card:focus-within::after {
  opacity: 1;
}

.contact-card__body {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.contact-card__body span {
  color: var(--text-faint);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-card__body strong {
  color: var(--text-strong);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.contact-note {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-soft);
  font-weight: 700;
}

.contact-note::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: var(--mint);
  box-shadow: 0 0 0 6px rgba(53, 211, 164, 0.14);
}

html[data-theme-mode="light"] .page-ambience__layer--home {
  background:
    radial-gradient(circle at 16% 12%, rgba(var(--gold-rgb), 0.16), transparent 25%),
    radial-gradient(circle at 84% 16%, rgba(var(--ice-rgb), 0.16), transparent 28%),
    radial-gradient(circle at 50% 82%, rgba(22, 136, 108, 0.08), transparent 20%),
    linear-gradient(180deg, rgba(246, 250, 255, 0.84), rgba(238, 246, 253, 0.94));
}

html[data-theme-mode="light"] .page-ambience__layer--about,
html[data-theme-mode="light"] .page-ambience__layer--portfolio,
html[data-theme-mode="light"] .page-ambience__layer--contact {
  background:
    radial-gradient(circle at 22% 18%, rgba(var(--ice-rgb), 0.12), transparent 28%),
    radial-gradient(circle at 78% 20%, rgba(var(--gold-rgb), 0.12), transparent 26%),
    linear-gradient(180deg, rgba(247, 251, 255, 0.86), rgba(239, 246, 253, 0.96));
}

html[data-theme-mode="light"] .page-ambience__noise {
  background-image:
    linear-gradient(rgba(39, 75, 118, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 75, 118, 0.045) 1px, transparent 1px);
  opacity: 0.5;
}

html[data-theme-mode="light"] .hero-shell {
  border-color: rgba(29, 58, 92, 0.12);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(237, 246, 255, 0.9)),
    radial-gradient(circle at top right, rgba(var(--gold-rgb), 0.14), transparent 24%),
    radial-gradient(circle at bottom left, rgba(var(--ice-rgb), 0.12), transparent 32%);
  box-shadow: var(--shadow-lg);
}

html[data-theme-mode="light"] .hero-shell::before,
html[data-theme-mode="light"] .hero-fact,
html[data-theme-mode="light"] .proof-card,
html[data-theme-mode="light"] .narrative-highlight,
html[data-theme-mode="light"] .process-card__index {
  border-color: rgba(29, 58, 92, 0.12);
  background: rgba(255, 255, 255, 0.62);
}

html[data-theme-mode="light"] .hero-scene {
  opacity: 0.34;
  mix-blend-mode: multiply;
}

html[data-theme-mode="light"] .hero-shell__backdrop {
  background:
    radial-gradient(circle at 18% 18%, rgba(var(--gold-rgb), 0.16), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(var(--ice-rgb), 0.14), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent);
}

html[data-theme-mode="light"] .hero-shell__mesh {
  background-image:
    linear-gradient(rgba(39, 75, 118, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 75, 118, 0.07) 1px, transparent 1px);
  opacity: 0.16;
}

html[data-theme-mode="light"] .portrait-shell {
  border-color: rgba(29, 58, 92, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(235, 244, 253, 0.82)),
    linear-gradient(135deg, rgba(var(--gold-rgb), 0.1), rgba(var(--ice-rgb), 0.12));
  box-shadow:
    0 22px 54px rgba(54, 80, 108, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

html[data-theme-mode="light"] .portrait-frame {
  border-color: rgba(29, 58, 92, 0.13);
  background: #eef5fc;
}

html[data-theme-mode="light"] .portrait-overlay,
html[data-theme-mode="light"] .portrait-meta,
html[data-theme-mode="light"] .orbit-badge {
  border-color: rgba(29, 58, 92, 0.12);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 42px rgba(54, 80, 108, 0.18);
}

html[data-theme-mode="light"] .contact-card {
  border-color: rgba(29, 58, 92, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.9)),
    linear-gradient(135deg, rgba(var(--ice-rgb), 0.07), rgba(var(--gold-rgb), 0.06));
  box-shadow: 0 16px 38px rgba(54, 80, 108, 0.13);
}

html[data-theme-mode="light"] .contact-card:hover,
html[data-theme-mode="light"] .contact-card:focus-within {
  border-color: rgba(var(--gold-rgb), 0.28);
  box-shadow: 0 24px 58px rgba(54, 80, 108, 0.2);
}

html[data-theme-mode="light"] .contact-card__icon {
  background:
    linear-gradient(135deg, rgba(var(--gold-rgb), 0.16), rgba(var(--ice-rgb), 0.12)),
    rgba(255, 255, 255, 0.8);
  border-color: rgba(29, 58, 92, 0.12);
}

.hero-scroll-cue {
  position: absolute;
  right: 50%;
  bottom: 1.35rem;
  z-index: 3;
  display: inline-grid;
  justify-items: center;
  gap: 0.55rem;
  color: var(--text-faint);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  translate: 50% 0;
}

.hero-scroll-cue__track {
  width: 1px;
  height: 4.5rem;
  background: linear-gradient(180deg, rgba(var(--gold-rgb), 0), rgba(var(--gold-rgb), 0.5), rgba(var(--ice-rgb), 0));
  overflow: hidden;
}

.hero-scroll-cue__track span {
  display: block;
  width: 100%;
  height: 1.4rem;
  background: linear-gradient(180deg, rgba(var(--gold-rgb), 0), rgba(var(--gold-rgb), 0.95), rgba(var(--ice-rgb), 0));
  animation: cue-drift 1.6s ease-in-out infinite;
}

[data-scroll-layer] {
  will-change: transform;
}

@keyframes orbit-glow {
  0%,
  100% {
    box-shadow:
      0 10px 26px rgba(3, 8, 18, 0.24),
      0 0 0 rgba(var(--gold-rgb), 0);
  }
  50% {
    box-shadow:
      0 20px 42px rgba(3, 8, 18, 0.28),
      0 0 38px rgba(var(--gold-rgb), 0.14);
  }
}

@keyframes cue-drift {
  0% {
    transform: translateY(-110%);
  }
  100% {
    transform: translateY(260%);
  }
}

@media (max-width: 1120px) {
  .studio-intro,
  .community-intro {
    grid-template-columns: 1fr;
  }

  .hero-plane--rear {
    left: 38%;
  }

  .hero-plane--front {
    right: 42%;
  }

  .hero-depth--north {
    top: 1rem;
    left: 0.8rem;
  }

  .hero-depth--west {
    left: 0.5rem;
    bottom: 19%;
  }

  .hero-depth--east {
    right: 0.6rem;
    top: 16%;
  }

  .hero-grid,
  .featured-case,
  .contact-grid,
  .about-grid,
  .about-support {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    justify-items: center;
    padding-block: 0.4rem 0;
  }

  .portrait-shell {
    margin-inline: auto;
  }

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

@media (max-width: 860px) {
  .hero {
    min-height: auto;
    padding: 1rem 0 3rem;
  }

  .hero-stick {
    position: static;
    min-height: auto;
  }

  .hero-shell {
    min-height: auto;
    height: auto;
  }

  .page-ambience__beam {
    transform: none;
    opacity: 0.82;
    filter: blur(44px);
  }

  .hero-plane,
  .hero-depth,
  .hero-stage-rail,
  .hero-scroll-cue {
    display: none;
  }

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

  .orbit-badge--top,
  .orbit-badge--left,
  .orbit-badge--bottom {
    position: static;
  }

  .hero-visual {
    gap: 0.9rem;
    justify-items: center;
  }

  .portrait-meta {
    position: static;
    min-width: 0;
    margin-top: 0.9rem;
  }
}

@media (max-width: 640px) {
  .hero-shell {
    border-radius: 30px;
  }

  .hero-grid {
    padding: 1.15rem;
  }

  .hero-title {
    font-size: clamp(1.85rem, 10vw, 2.8rem);
  }

  .hero-subtitle {
    max-width: none;
  }

  .hero-facts,
  .process-grid,
  .case-grid,
  .about-support,
  .narrative-highlights {
    grid-template-columns: 1fr;
  }

  .featured-case__facts {
    grid-template-columns: 1fr;
  }

  .portfolio-toolbar {
    align-items: flex-start;
  }

  .portrait-shell {
    width: 100%;
    max-width: 21rem;
    padding: 0.58rem;
    border-radius: 28px;
  }

  .portrait-frame {
    border-radius: 23px;
  }

  .portrait-frame img {
    aspect-ratio: 4 / 3.45;
    max-height: 19.5rem;
  }

  .portrait-overlay {
    position: static;
    margin: 0.58rem 0 0;
    background: rgba(255, 255, 255, 0.08);
  }

  html[data-theme-mode="light"] .portrait-overlay {
    background: rgba(255, 255, 255, 0.82);
  }

  .orbit-badge {
    display: none;
  }

  .portrait-meta {
    display: none;
  }
}

/* Apple-like layout refinement: calm sections, compact cards, stable mobile sizing. */
.home-main {
  padding-top: calc(var(--nav-height) + 1rem);
}

.hero {
  min-height: auto;
  padding: clamp(1rem, 2.5vw, 2rem) 0 clamp(3rem, 6vw, 5rem);
}

.hero-stick {
  position: static;
  min-height: auto;
  display: block;
}

.hero-shell {
  min-height: auto;
  height: auto;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-scene,
.hero-plane,
.hero-depth,
.hero-scroll-cue,
.hero-stage-rail {
  display: none !important;
}

.hero-shell__mesh {
  opacity: 0.08;
  transform: none;
}

.hero-shell__spot {
  opacity: 0.56;
  transform: none;
}

.hero-grid {
  min-height: auto;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.72fr);
  gap: clamp(1.25rem, 4vw, 4rem);
  padding: clamp(1.25rem, 4vw, 4rem);
}

.hero-copy {
  max-width: 43rem;
  gap: 1rem;
}

.hero-kicker {
  font-size: 0.92rem;
}

.hero-title {
  font-size: clamp(2.25rem, 5.4vw, 5.25rem);
  line-height: 0.98;
}

.hero-subtitle {
  max-width: 39rem;
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.9;
}

.hero-facts {
  max-width: 42rem;
  gap: 0.75rem;
}

.hero-fact {
  min-height: 0;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: var(--surface-soft);
  border-color: var(--line-soft);
}

.hero-fact strong {
  font-size: clamp(1.05rem, 1.4vw, 1.24rem);
}

.hero-fact span {
  font-size: 0.82rem;
}

.hero-actions {
  gap: 0.7rem;
}

.hero-visual {
  min-height: auto;
  justify-items: center;
  padding: 0;
}

.portrait-shell {
  width: min(100%, 19.5rem);
  padding: 0.55rem;
  border-radius: 28px;
}

.portrait-shell::before {
  inset: 0.55rem;
  border-radius: 22px;
}

.portrait-frame {
  border-radius: 22px;
}

.portrait-frame img {
  aspect-ratio: 4 / 4.15;
  max-height: 24.5rem;
}

.portrait-overlay {
  inset: auto 0.6rem 0.6rem;
  padding: 0.8rem 0.85rem;
  border-radius: 17px;
}

.portrait-overlay__name {
  font-size: 1.02rem;
}

.portrait-overlay__role {
  font-size: 0.78rem;
  line-height: 1.45;
}

.orbit-badge,
.portrait-meta {
  display: none;
}

.section-block {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section-shell {
  padding: clamp(1.2rem, 3vw, 2.6rem);
  border-radius: 32px;
}

.section-top {
  max-width: 54rem;
  margin-inline: auto;
}

.about-grid,
.about-support,
.contact-grid {
  gap: 1rem;
}

.narrative-card,
.process-card,
.capability-card,
.stack-lane,
.contact-card,
.featured-case,
.case-card {
  border-radius: 24px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.capability-card:hover,
.stack-lane:hover,
.contact-card:hover,
.case-card:hover,
.featured-case:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.narrative-highlights,
.process-grid {
  gap: 0.75rem;
}

.narrative-highlight {
  min-height: 0;
  border-radius: 18px;
  padding: 0.8rem;
}

.narrative-highlight i,
.capability-card__icon,
.stack-lane__icon,
.contact-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 16px;
}

.featured-case {
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
  padding: clamp(1rem, 2vw, 1.4rem);
}

.featured-case__visual {
  border-radius: 24px;
}

.featured-case__visual img {
  min-height: 0;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.case-grid {
  gap: 1rem;
}

.case-card {
  border-radius: 24px;
}

.case-media {
  border-radius: 20px;
}

.case-media img {
  aspect-ratio: 16 / 10;
}

.case-body {
  gap: 0.65rem;
}

.contact-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.contact-copy,
.contact-card {
  border-radius: 24px;
}

.contact-stack {
  gap: 0.75rem;
}

.contact-card {
  padding: 1rem;
}

.contact-card p {
  line-height: 1.65;
}

@media (max-width: 1120px) {
  .hero-grid,
  .featured-case,
  .contact-grid,
  .about-grid,
  .about-support {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: none;
  }

  .portrait-shell {
    width: min(100%, 20rem);
  }
}

@media (max-width: 720px) {
  .home-main {
    padding-top: calc(var(--nav-height) + 0.7rem);
  }

  .hero {
    padding-bottom: 2.5rem;
  }

  .hero-shell,
  .section-shell {
    border-radius: 26px;
  }

  .hero-grid {
    padding: 1rem;
    gap: 1.1rem;
  }

  .hero-title {
    font-size: clamp(2rem, 12vw, 3rem);
    line-height: 1.05;
  }

  .hero-subtitle {
    font-size: 0.98rem;
    line-height: 1.78;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .hero-fact {
    padding: 0.82rem 0.9rem;
  }

  .portrait-shell {
    max-width: 18rem;
    width: 100%;
    margin-inline: auto;
  }

  .portrait-frame img {
    aspect-ratio: 4 / 3.35;
    max-height: 16.8rem;
  }

  .portrait-overlay {
    position: static;
    margin-top: 0.55rem;
  }

  .section-block {
    padding: 3.25rem 0;
  }

  .section-title {
    font-size: clamp(1.55rem, 8.5vw, 2.25rem);
  }

  .section-copy {
    font-size: 0.96rem;
    line-height: 1.75;
  }

  .narrative-highlights,
  .process-grid,
  .case-grid,
  .featured-case__facts {
    grid-template-columns: 1fr;
  }

  .featured-case__visual img,
  .case-media img {
    aspect-ratio: 4 / 2.65;
  }

  .contact-card {
    gap: 0.75rem;
    padding: 0.9rem;
  }
}

/* Compact the about support cards so the section uses horizontal space instead of empty height. */
.about-support {
  align-items: stretch;
  gap: 0.85rem;
  margin-top: 1rem;
}

.studio-intro,
.community-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
  align-content: start;
  min-height: 0 !important;
  padding: clamp(1rem, 1.65vw, 1.35rem);
}

.studio-intro__copy,
.community-intro__copy {
  align-content: start;
  gap: 0.58rem;
}

.studio-intro .eyebrow,
.community-intro .eyebrow {
  width: fit-content;
  min-height: 2rem;
  padding: 0.42rem 0.72rem;
  font-size: 0.7rem;
}

.studio-intro__copy h3,
.community-intro__copy h3 {
  max-width: 19ch;
  font-size: clamp(1.22rem, 2.05vw, 1.9rem);
  line-height: 1.18;
}

.community-intro__copy h3 {
  max-width: 20ch;
}

.studio-intro__copy p,
.community-intro__copy p {
  max-width: 44rem;
  font-size: 0.94rem;
  line-height: 1.62;
}

.about-support .stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.about-support .stack-chip {
  min-height: 2.1rem;
  padding: 0.42rem 0.66rem;
  border-radius: 999px;
  font-size: 0.8rem;
  line-height: 1.25;
}

.studio-intro > .btn,
.community-intro > .btn {
  justify-self: start;
  align-self: end;
  min-height: 2.55rem;
  margin-top: 0.1rem;
  padding: 0.58rem 0.85rem;
  border-radius: 999px;
}

@media (min-width: 1121px) {
  .about-support {
    grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  }

  .studio-intro,
  .community-intro {
    grid-template-rows: 1fr auto;
  }
}

@media (max-width: 720px) {
  .about-support {
    gap: 0.75rem;
  }

  .studio-intro,
  .community-intro {
    border-radius: 22px;
    padding: 0.95rem;
  }

  .studio-intro__copy h3,
  .community-intro__copy h3 {
    max-width: none;
    font-size: clamp(1.22rem, 6.8vw, 1.72rem);
    line-height: 1.22;
  }

  .studio-intro__copy p,
  .community-intro__copy p {
    font-size: 0.92rem;
    line-height: 1.7;
  }

  .about-support .stack-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scrollbar-width: none;
  }

  .about-support .stack-row::-webkit-scrollbar {
    display: none;
  }

  .about-support .stack-chip {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

/* Portfolio cards should follow the active theme instead of staying dark in light mode. */
.portfolio-shell {
  position: relative;
}

.portfolio-toolbar {
  align-items: center;
  padding: 0;
}

.portfolio-filters {
  gap: 0.45rem;
}

.filter-chip {
  min-height: 2.35rem;
  padding: 0.52rem 0.86rem;
  border-color: var(--stroke);
  background: var(--surface-soft);
  color: var(--text-soft);
  box-shadow: none;
}

.filter-chip:hover,
.filter-chip.is-active {
  transform: translateY(-1px);
  border-color: rgba(var(--gold-rgb), 0.34);
  background: linear-gradient(135deg, rgba(var(--gold-rgb), 0.18), rgba(255, 255, 255, 0.18));
  color: var(--text-strong);
  box-shadow: 0 10px 24px rgba(var(--gold-rgb), 0.12);
}

.case-grid {
  gap: 1rem;
}

.case-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0;
  overflow: hidden;
  min-height: 0;
  padding: 0.55rem;
  border-radius: 24px;
  border: 1px solid var(--stroke);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.54)),
    var(--surface);
  box-shadow: var(--shadow-sm);
}

.case-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 92% 8%, rgba(var(--gold-rgb), 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), transparent 42%);
  opacity: 0.9;
}

.case-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--gold-rgb), 0.28);
  box-shadow: var(--shadow-md);
}

.case-media,
.case-body {
  position: relative;
  z-index: 1;
}

.case-media {
  aspect-ratio: 16 / 9.4;
  border-radius: 19px;
  border: 1px solid rgba(16, 24, 40, 0.08);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.68);
}

.case-media img {
  display: block;
  aspect-ratio: 16 / 9.4;
  filter: saturate(0.98) contrast(0.99);
}

.case-media::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(248, 250, 252, 0.12)),
    radial-gradient(circle at top right, rgba(var(--gold-rgb), 0.08), transparent 36%);
}

.case-card:hover .case-media img {
  transform: scale(1.025);
  filter: saturate(1.04) contrast(1.01);
}

.case-body {
  gap: 0.58rem;
  padding: 0.82rem 0.38rem 0.22rem;
}

.case-card h3 {
  color: var(--text-strong);
  font-size: clamp(1.06rem, 1.35vw, 1.32rem);
  line-height: 1.25;
}

.case-card p {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.66;
}

.case-tags {
  gap: 0.42rem;
}

.case-tags span {
  min-height: 1.85rem;
  padding: 0.34rem 0.58rem;
  border-color: var(--stroke);
  background: var(--surface-soft);
  color: var(--text-soft);
  font-size: 0.74rem;
}

.case-link {
  width: fit-content;
  min-height: 2.25rem;
  margin-top: 0.2rem;
  padding: 0.32rem 0;
  color: var(--gold);
  font-size: 0.92rem;
}

.case-link i {
  transition: transform 0.18s ease;
}

.case-link:hover i {
  transform: translateX(-3px);
}

html[data-theme-mode="dark"] .case-card {
  border-color: rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(20, 29, 43, 0.92), rgba(8, 13, 23, 0.96)),
    var(--surface);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

html[data-theme-mode="dark"] .case-card::before {
  background:
    radial-gradient(circle at 92% 8%, rgba(var(--gold-rgb), 0.16), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 44%);
}

html[data-theme-mode="dark"] .case-media {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme-mode="dark"] .case-media::after {
  background:
    linear-gradient(180deg, rgba(3, 7, 12, 0.02), rgba(3, 7, 12, 0.22)),
    radial-gradient(circle at top right, rgba(var(--gold-rgb), 0.12), transparent 34%);
}

html[data-theme-mode="dark"] .case-tags span {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.055);
}

@media (max-width: 1120px) {
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .portfolio-toolbar {
    align-items: flex-start;
    gap: 0.7rem;
  }

  .portfolio-filters {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.12rem;
    scrollbar-width: none;
  }

  .portfolio-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-chip {
    flex: 0 0 auto;
    min-height: 2.25rem;
    padding-inline: 0.78rem;
  }

  .case-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .case-card {
    border-radius: 22px;
    padding: 0.48rem;
  }

  .case-media {
    aspect-ratio: 16 / 9.8;
    border-radius: 17px;
  }

  .case-media img {
    aspect-ratio: 16 / 9.8;
  }

  .case-body {
    padding: 0.76rem 0.3rem 0.18rem;
  }

  .case-tags {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.08rem;
    scrollbar-width: none;
  }

  .case-tags::-webkit-scrollbar {
    display: none;
  }

  .case-tags span {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

/* Hero redesign: calmer hierarchy, better portrait proportions, and theme-native surfaces. */
.home-main {
  padding-top: calc(var(--nav-height) + 0.85rem);
}

.hero {
  padding-bottom: clamp(2rem, 4vw, 3.5rem);
}

.hero-stick {
  min-height: 0;
}

.hero-shell {
  min-height: auto;
  height: auto;
  border-radius: 34px;
  border: 1px solid var(--stroke);
  background:
    radial-gradient(circle at 78% 12%, rgba(var(--ice-rgb), 0.16), transparent 28%),
    radial-gradient(circle at 14% 82%, rgba(var(--gold-rgb), 0.1), transparent 26%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(246, 250, 255, 0.72));
  box-shadow: 0 24px 70px rgba(16, 24, 40, 0.08);
  perspective: none;
}

.hero-shell::before {
  inset: 0;
  border-radius: inherit;
  border-color: rgba(255, 255, 255, 0.7);
}

.hero-shell__backdrop,
.hero-shell__mesh,
.hero-shell__spot {
  opacity: 0.42;
}

.hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.54fr);
  gap: clamp(1.6rem, 3.2vw, 3.6rem);
  min-height: 0;
  padding: clamp(1.25rem, 3.5vw, 3.1rem);
  align-items: center;
}

.hero-copy {
  max-width: 46rem;
  gap: 0.85rem;
  justify-self: end;
}

.hero-kicker {
  width: fit-content;
  min-height: 2.1rem;
  padding: 0.36rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
  color: var(--text-soft);
  font-size: 0.82rem;
}

.hero-kicker__line {
  width: 1.8rem;
}

.hero-copy > .eyebrow {
  width: fit-content;
  max-width: 100%;
  min-height: 2.2rem;
  padding: 0.42rem 0.78rem;
  border-color: rgba(var(--gold-rgb), 0.18);
  background: rgba(255, 255, 255, 0.58);
  color: var(--text-soft);
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: none;
}

.hero-title {
  max-width: 12.5ch;
  font-size: clamp(2.35rem, 4.55vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-title .gradient-text {
  font-size: 0.82em;
}

.hero-subtitle {
  max-width: 42rem;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.78;
  color: var(--text-soft);
}

.hero-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 42rem;
  gap: 0.68rem;
  margin-top: 0.22rem;
}

.hero-fact {
  min-height: 4.55rem;
  padding: 0.78rem 0.9rem;
  border-radius: 18px;
  border-color: var(--stroke);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.hero-fact strong {
  font-size: clamp(1rem, 1.2vw, 1.18rem);
}

.hero-fact span {
  font-size: 0.78rem;
  line-height: 1.48;
}

.hero-actions {
  gap: 0.65rem;
  padding-top: 0.35rem;
}

.hero-actions .btn {
  min-width: 10.25rem;
  min-height: 2.85rem;
}

.hero-visual {
  justify-items: center;
  padding: 0;
  min-height: 0;
}

.portrait-shell {
  width: min(100%, 20.5rem);
  padding: 0.55rem;
  border-radius: 28px;
  border-color: var(--stroke);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.58)),
    radial-gradient(circle at 50% 0%, rgba(var(--gold-rgb), 0.1), transparent 48%);
  box-shadow: 0 20px 56px rgba(16, 24, 40, 0.13);
}

.portrait-shell::before,
.orbit-badge,
.portrait-meta {
  display: none;
}

.portrait-frame {
  display: grid;
  gap: 0;
  overflow: hidden;
  border-radius: 23px;
  border-color: rgba(16, 24, 40, 0.08);
  background: rgba(255, 255, 255, 0.74);
}

.portrait-frame img {
  height: clamp(15.5rem, 22vw, 18.6rem);
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center 36%;
  filter: saturate(1.02) contrast(1.01);
}

.hero-visual .orbit-badge,
.hero-visual .portrait-meta {
  visibility: hidden;
  width: 0;
  height: 0;
  overflow: hidden;
}

.portrait-overlay {
  position: static;
  margin: 0;
  padding: 0.82rem 0.9rem 0.92rem;
  border: 0;
  border-top: 1px solid var(--stroke);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: none;
  backdrop-filter: none;
  text-align: start;
}

.portrait-overlay__name {
  font-size: 1rem;
  color: var(--text-strong);
}

.portrait-overlay__role {
  margin-top: 0.3rem;
  color: var(--text-soft);
  font-size: 0.78rem;
  line-height: 1.55;
}

html[data-theme-mode="dark"] .hero-shell {
  border-color: rgba(255, 255, 255, 0.09);
  background:
    radial-gradient(circle at 78% 12%, rgba(var(--ice-rgb), 0.12), transparent 28%),
    radial-gradient(circle at 14% 82%, rgba(var(--gold-rgb), 0.12), transparent 26%),
    linear-gradient(145deg, rgba(13, 20, 32, 0.94), rgba(7, 12, 22, 0.98));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.24);
}

html[data-theme-mode="dark"] .hero-kicker,
html[data-theme-mode="dark"] .hero-copy > .eyebrow,
html[data-theme-mode="dark"] .hero-fact,
html[data-theme-mode="dark"] .portrait-shell {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme-mode="dark"] .portrait-frame {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme-mode="dark"] .portrait-overlay {
  border-top-color: rgba(255, 255, 255, 0.08);
  background: rgba(8, 13, 22, 0.92);
}

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

  .hero-copy {
    justify-self: stretch;
    max-width: none;
  }

  .hero-title {
    max-width: 13ch;
  }

  .portrait-shell {
    width: min(100%, 19rem);
  }
}

@media (max-width: 720px) {
  .home-main {
    padding-top: calc(var(--nav-height) + 0.65rem);
  }

  .hero-shell {
    border-radius: 26px;
  }

  .hero-grid {
    padding: 0.95rem;
    gap: 1.1rem;
  }

  .hero-copy {
    gap: 0.72rem;
  }

  .hero-title {
    max-width: 10.5ch;
    font-size: clamp(2rem, 13vw, 3.05rem);
    line-height: 1.05;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.72;
  }

  .hero-facts {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .hero-fact {
    min-height: 0;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 0.6rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .portrait-shell {
    width: min(100%, 17.5rem);
    order: -1;
  }

  .portrait-frame img {
    height: 12.8rem;
    object-position: center 38%;
  }
}
