:root {
  --red: #e01821;
  --red-dark: #a90f16;
  --black: #090909;
  --ink: #151515;
  --charcoal: #242424;
  --muted: #696969;
  --line: rgba(18, 18, 18, 0.12);
  --paper: #fffdfb;
  --soft: #f7f4f1;
  --white: #ffffff;
  --gold: #d8b56d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.14);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  cursor: none;
}

body.loaded .loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.nav-open {
  overflow: hidden;
}

a,
button,
input,
textarea,
summary,
.interactive {
  cursor: none;
}

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

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

button,
input,
textarea {
  font: inherit;
}

::selection {
  background: var(--red);
  color: var(--white);
}

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

.loader-logo {
  width: min(320px, 68vw);
  animation: loader-rise 1.8s cubic-bezier(0.2, 0.9, 0.2, 1) infinite alternate;
  filter: drop-shadow(0 18px 28px rgba(224, 24, 33, 0.14));
}

body.internal-transition-load .loader {
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

body.internal-transition-load .loader-logo {
  animation: internal-logo-pop 0.48s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

@keyframes loader-rise {
  from {
    transform: translateY(14px) scale(0.97);
    opacity: 0.72;
  }
  to {
    transform: translateY(-8px) scale(1);
    opacity: 1;
  }
}

@keyframes internal-logo-pop {
  0% {
    opacity: 0;
    transform: scale(0.94);
  }
  42%, 82% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0.96;
    transform: scale(0.99);
  }
}

.cursor-dot,
.cursor-pencil {
  position: fixed;
  z-index: 10000;
  pointer-events: none;
  transform: translate(-50%, -50%);
  mix-blend-mode: multiply;
}

.cursor-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
}

.cursor-pencil {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(224, 24, 33, 0.46);
  border-radius: 50%;
  transition: width 0.22s ease, height 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.cursor-pencil::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 3px;
  width: 14px;
  height: 3px;
  border-radius: 999px;
  background: var(--black);
  transform: rotate(-38deg);
}

.cursor-pencil.is-hovering {
  width: 52px;
  height: 52px;
  background: rgba(224, 24, 33, 0.08);
  border-color: var(--red);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: 82px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.74), rgba(8, 8, 8, 0.18));
  color: var(--white);
  backdrop-filter: blur(14px);
  transition: background 0.35s ease, box-shadow 0.35s ease, height 0.35s ease;
}

.site-header.scrolled,
.site-header.light {
  height: 74px;
  background: rgba(8, 8, 8, 0.9);
  color: var(--white);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.nav-wrap {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand img {
  width: 138px;
  height: 54px;
  object-fit: contain;
  animation: nav-pulse 3.8s ease-in-out infinite;
  transform-origin: center;
}

@keyframes nav-pulse {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.16));
  }
  42% {
    transform: translate3d(0, -3px, 0) rotate(-0.35deg);
    filter: drop-shadow(0 12px 18px rgba(224, 24, 33, 0.16));
  }
  72% {
    transform: translate3d(1px, 0, 0) rotate(0.25deg);
    filter: drop-shadow(0 9px 16px rgba(0, 0, 0, 0.16));
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  padding: 10px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 100%;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.28s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  color: inherit;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 850;
  letter-spacing: 0.02em;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.34) 45%, transparent 64%);
  transform: translateX(-130%);
  transition: transform 0.65s ease;
  z-index: -1;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

.btn:hover::before {
  transform: translateX(130%);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-dark {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn-ghost {
  color: inherit;
  border-color: currentColor;
  background: transparent;
}

.btn-light {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.96);
  opacity: 0;
  visibility: hidden;
  transform: none;
  pointer-events: none;
}

.page-transition::before {
  content: "";
  width: min(280px, 58vw);
  height: 150px;
  background: url("../logo/level-up-logo-transparent-normal.png") center / contain no-repeat;
  filter: drop-shadow(0 18px 36px rgba(224, 24, 33, 0.16));
  opacity: 0;
  transform: scale(0.92);
}

.page-transition.active {
  visibility: visible;
  animation: logo-page-fade 0.58s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

.page-transition.active::before {
  animation: logo-page-pop 0.58s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

@keyframes logo-page-fade {
  0% {
    opacity: 0;
  }
  28%, 74% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes logo-page-pop {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  32%, 76% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.98);
  }
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--black);
  padding: 112px 0 46px;
}

.sub-hero {
  min-height: 62vh;
  align-items: center;
  padding-bottom: 80px;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  opacity: 0.74;
  animation: hero-zoom 17s ease-in-out infinite alternate;
}

.hero-media video {
  display: block;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.45) 42%, rgba(0, 0, 0, 0.18)),
    radial-gradient(circle at 70% 30%, rgba(224, 24, 33, 0.36), transparent 34%);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 2;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 90px 90px;
  transform: perspective(700px) rotateX(62deg) translateY(18%);
  animation: grid-drift 14s linear infinite;
  opacity: 0.38;
}

@keyframes hero-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

@keyframes grid-drift {
  from { background-position: 0 0; }
  to { background-position: 180px 90px; }
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.hero-logo {
  width: min(292px, 64vw);
  max-height: 112px;
  margin-bottom: 22px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.94);
  padding: 12px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--red);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 800px;
  font-size: clamp(2.65rem, 5.3vw, 4.85rem);
}

.sub-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.85rem);
}

h2 {
  font-size: clamp(2.2rem, 4.8vw, 4.8rem);
}

h3 {
  font-size: clamp(1.28rem, 2vw, 1.8rem);
}

p {
  color: var(--muted);
  line-height: 1.72;
}

.hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.02rem, 1.55vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.hero-strip {
  position: relative;
  z-index: 3;
  width: min(var(--max), calc(100% - 36px));
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-strip div {
  background: rgba(8, 8, 8, 0.56);
  padding: 18px;
  backdrop-filter: blur(16px);
}

.hero-strip strong {
  display: block;
  font-size: 1.55rem;
  color: var(--white);
}

.hero-strip span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.88rem;
}

.section {
  padding: 110px 0;
  overflow: hidden;
}

.section.alt {
  background: var(--soft);
}

.section.dark {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(224, 24, 33, 0.18), transparent 32%),
    var(--black);
}

.section.dark p,
.section.dark .section-lead {
  color: rgba(255, 255, 255, 0.74);
}

.container {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 0.55fr);
  gap: 46px;
  align-items: end;
  margin-bottom: 42px;
}

.section-lead {
  margin: 0;
  font-size: 1.07rem;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

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

.card,
.stat-card,
.review-card,
.service-card,
.faq details,
.contact-panel,
.profile-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.card,
.service-card,
.review-card,
.stat-card {
  padding: 26px;
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

.card:hover,
.service-card:hover,
.review-card:hover {
  transform: translateY(-8px);
  border-color: rgba(224, 24, 33, 0.28);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.14);
}

.icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--black);
  margin-bottom: 18px;
  font-weight: 900;
}

.icon.red {
  background: var(--red);
}

.service-card {
  min-height: 248px;
  display: flex;
  flex-direction: column;
}

.service-card .link-line {
  margin-top: auto;
}

.link-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-weight: 900;
}

.link-line::after {
  content: "→";
  transition: transform 0.25s ease;
}

.link-line:hover::after {
  transform: translateX(5px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.stat-card {
  position: relative;
  min-height: 150px;
  overflow: hidden;
}

.stat-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 94px;
  height: 94px;
  border: 16px solid rgba(224, 24, 33, 0.12);
  border-radius: 50%;
}

.stat-number {
  display: inline-block;
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 950;
  color: var(--red);
  letter-spacing: 0;
}

.stat-star {
  display: inline-block;
  margin-left: 4px;
  color: var(--gold);
  font-size: clamp(1.8rem, 3.2vw, 3.3rem);
  font-weight: 950;
  line-height: 1;
  transform: translateY(-0.08em);
}

.stat-label {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 750;
}

.image-panel {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--black);
}

.image-panel img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.image-panel:hover img {
  transform: scale(1.065);
}

.image-panel .caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  padding: 20px;
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(14px);
}

.caption p,
.caption h3 {
  color: inherit;
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 0.72fr);
  gap: 54px;
  align-items: center;
}

.review-carousel,
.testimonial-stream {
  position: relative;
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 34%);
  gap: 18px;
  overflow-x: auto;
  padding: 12px 4px 28px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.review-card {
  scroll-snap-align: start;
  min-height: 260px;
  appearance: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.google-review-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
}

.review-author {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 28px;
  gap: 12px;
  align-items: center;
}

.review-author strong {
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 950;
}

.review-author span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.review-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #f1f3f4;
  color: #4285f4;
  font-weight: 950;
}

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

.review-avatar span {
  margin-top: 0;
  color: #4285f4;
  font-size: 0.92rem;
}

.google-review-badge {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #4285f4;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  font-weight: 950;
}

.google-review-badge .google-mark,
.google-logo .google-mark,
.google-mini .google-mark {
  width: 18px;
  height: 18px;
  display: block;
}

.google-logo .google-mark {
  width: 26px;
  height: 26px;
}

.google-colour-g {
  display: inline-block;
  color: transparent;
  background:
    conic-gradient(from -40deg, #4285f4 0 24%, #34a853 0 43%, #fbbc05 0 63%, #ea4335 0 82%, #4285f4 0);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: Inter, sans-serif;
  font-weight: 950;
}

.review-author .google-review-badge {
  margin-top: 0;
  font-size: 0.9rem;
}

.stars {
  color: var(--red);
  letter-spacing: 0.08em;
  font-weight: 950;
}

.star-muted {
  color: rgba(0, 0, 0, 0.18);
}

.review-card blockquote {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.45;
}

.review-meta {
  color: var(--red);
  font-weight: 900;
  font-size: 0.9rem;
  margin-top: auto;
}

.marquee {
  display: flex;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--white);
}

.marquee-track {
  display: flex;
  min-width: max-content;
  animation: marquee 26s linear infinite;
}

.school-logo {
  display: grid;
  place-items: center;
  min-width: 210px;
  height: 92px;
  margin: 0;
  color: var(--charcoal);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.14rem;
  font-weight: 800;
  border-right: 1px solid var(--line);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  padding: 20px 22px;
}

.faq summary {
  list-style: none;
  font-weight: 900;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

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

.faq summary::after {
  content: "+";
  color: var(--red);
  font-size: 1.4rem;
  transition: transform 0.25s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq p {
  margin: 12px 0 0;
}

.accordion details {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}

.accordion summary {
  list-style: none;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 18px;
  align-items: center;
  font-weight: 900;
  font-size: 1.2rem;
}

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

.accordion summary::after {
  content: "↓";
  color: var(--red);
  transition: transform 0.25s ease;
}

.accordion details[open] summary::after {
  transform: rotate(180deg);
}

.accordion .body {
  margin-left: 76px;
  max-width: 760px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.pill-list li {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-weight: 800;
  color: var(--charcoal);
  font-size: 0.9rem;
}

.pill-list.linked-pills li {
  padding: 0;
}

.pill-list.linked-pills a {
  display: block;
  padding: 9px 12px;
  color: inherit;
  text-decoration: none;
}

.pill-list.linked-pills a:hover {
  color: var(--red);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.gallery-item {
  min-height: 230px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--black);
}

.gallery-item.large {
  grid-column: span 7;
  min-height: 440px;
}

.gallery-item.medium {
  grid-column: span 5;
  min-height: 440px;
}

.gallery-item.small {
  grid-column: span 4;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  transition: transform 1s ease, opacity 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
  opacity: 1;
}

.message-card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(224, 24, 33, 0.08), transparent 40%),
    var(--white);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.06);
  transform: rotate(var(--tilt, -1deg));
}

.message-card p {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  color: var(--ink);
}

.video-tile {
  position: relative;
  min-height: 300px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--black), #3b0b0f);
  color: var(--white);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px;
}

.video-story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.video-story-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.video-story-card video {
  width: 100%;
  height: auto;
  display: block;
  background: transparent;
}

.video-story-caption {
  padding: 22px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(224, 24, 33, 0.34), transparent 54%),
    var(--black);
}

.video-story-caption h3,
.video-story-caption p {
  margin: 0;
  color: inherit;
}

.video-story-caption p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.76);
}

.play {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  background: var(--red);
  color: var(--white);
  box-shadow: 0 0 0 14px rgba(224, 24, 33, 0.18);
  animation: play-pulse 1.8s ease-in-out infinite;
}

@keyframes play-pulse {
  50% { box-shadow: 0 0 0 24px rgba(224, 24, 33, 0.04); }
}

.profile-card {
  padding: 30px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 26px;
  align-items: center;
}

.profile-mark {
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  background: radial-gradient(circle at 30% 20%, #f5545c, var(--red-dark) 60%, var(--black));
  font-family: "Playfair Display", Georgia, serif;
  font-size: 4rem;
  font-weight: 900;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 0.62fr);
  gap: 36px;
}

.contact-panel {
  padding: 30px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-grid label {
  display: grid;
  gap: 8px;
  color: var(--charcoal);
  font-weight: 850;
}

.form-grid .full {
  grid-column: 1 / -1;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 52px;
  padding: 13px 14px;
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color 0.24s ease, box-shadow 0.24s ease;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--red) 50%), linear-gradient(135deg, var(--red) 50%, transparent 50%);
  background-position: calc(100% - 18px) 22px, calc(100% - 12px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(224, 24, 33, 0.11);
}

.map {
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: var(--radius);
  filter: grayscale(0.18) contrast(1.05);
}

.cta-band {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(110deg, rgba(224, 24, 33, 0.94), rgba(8, 8, 8, 0.96)),
    var(--black);
  padding: 64px;
  border-radius: var(--radius);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.78);
  max-width: 720px;
}

.cta-band::after {
  content: "↑";
  position: absolute;
  right: 42px;
  top: 28px;
  font-size: 13rem;
  font-weight: 900;
  line-height: 1;
  opacity: 0.12;
  animation: arrow-float 3.2s ease-in-out infinite;
}

@keyframes arrow-float {
  50% { transform: translateY(-14px); }
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: var(--black);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 32px;
  align-items: start;
}

.footer-logo {
  width: 180px;
  background: var(--white);
  padding: 9px 12px;
  border-radius: var(--radius);
  margin-bottom: 18px;
}

.site-footer h3 {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.site-footer a {
  display: block;
  margin: 9px 0;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: 40px;
  padding-top: 22px;
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

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

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }

.fullscreen-video {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: none;
  background: rgba(0, 0, 0, 0.92);
  color: var(--white);
  padding: 28px;
}

.fullscreen-video.open {
  display: grid;
  place-items: center;
}

.film {
  position: relative;
  width: min(1080px, 94vw);
  max-height: 86vh;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
}

.film img,
.film video {
  width: 100%;
  max-height: 86vh;
  height: auto;
  object-fit: contain;
  display: block;
}

.film img {
  animation: hero-zoom 12s ease-in-out infinite alternate;
}

.film video {
  animation: none;
  background: transparent;
}

.film::after {
  content: none;
  position: absolute;
  left: 34px;
  bottom: 30px;
  max-width: 560px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 3.6rem);
  line-height: 1.05;
}

.close-video {
  position: absolute;
  right: 24px;
  top: 24px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 1.5rem;
}

@media (max-width: 980px) {
  body {
    cursor: auto;
  }

  a,
  button,
  input,
  textarea,
  summary,
  .interactive {
    cursor: pointer;
  }

  .cursor-dot,
  .cursor-pencil {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 74px 0 0 0;
    display: grid;
    align-content: start;
    gap: 0;
    padding: 24px 28px;
    background: rgba(255, 255, 255, 0.98);
    color: var(--black);
    transform: translateX(100%);
    transition: transform 0.32s ease;
  }

  body.nav-open .nav-links {
    transform: translateX(0);
  }

  .nav-links a {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-actions .btn {
    display: none;
  }

  .section-head,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .grid-4,
  .stats-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .carousel-track {
    grid-auto-columns: minmax(280px, 78%);
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 74px;
  }

  .brand img {
    width: 118px;
    height: 48px;
  }

  .hero {
    min-height: 94vh;
    padding-top: 110px;
  }

  .section {
    padding: 72px 0;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .stats-grid,
  .footer-grid,
  .hero-strip,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-logo {
    width: 250px;
  }

  .card,
  .service-card,
  .review-card,
  .contact-panel {
    padding: 22px;
  }

  .profile-card {
    grid-template-columns: 1fr;
  }

  .profile-mark {
    width: 128px;
  }

  .accordion summary {
    grid-template-columns: 46px 1fr auto;
    font-size: 1rem;
  }

  .accordion .body {
    margin-left: 0;
  }

  .gallery {
    display: grid;
  }

  .gallery-item.large,
  .gallery-item.medium,
  .gallery-item.small {
    grid-column: 1 / -1;
    min-height: 280px;
  }

  .cta-band {
    padding: 34px 24px;
  }

  .cta-band::after {
    font-size: 8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Redesign pass */
:root {
  --paper: #fbf7f2;
  --soft: #f1ebe3;
  --cream: #fbf7f2;
  --wine: #3a070a;
}

body {
  background:
    radial-gradient(circle at 85% 8%, rgba(224, 24, 33, 0.08), transparent 28%),
    linear-gradient(180deg, #fffaf4 0%, #f4eee6 48%, #fffaf4 100%);
}

.brand {
  min-width: 142px;
}

.brand img,
.footer-logo,
.hero-logo {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.brand img {
  width: 126px;
  height: 58px;
  object-fit: contain;
}

.site-header.scrolled .brand img {
  filter: none;
}

.site-footer .footer-logo {
  width: 170px;
  filter: drop-shadow(0 12px 22px rgba(224, 24, 33, 0.16));
}

.hero-logo {
  width: min(310px, 72vw);
  max-height: 142px;
  filter: drop-shadow(0 20px 34px rgba(0, 0, 0, 0.5));
}

.cinema-hero {
  min-height: 92vh;
  align-items: center;
}

.cinema-hero .hero-content {
  display: grid;
  grid-template-columns: minmax(0, 0.74fr) minmax(300px, 0.46fr);
  gap: 44px;
  align-items: center;
}

.hero-copy h1 {
  max-width: 760px;
}

.hero-orbit {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.orbit-ring {
  position: absolute;
  width: 340px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  animation: spin-slow 18s linear infinite;
}

.orbit-ring::before,
.orbit-ring::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 22px rgba(224, 24, 33, 0.8);
}

.orbit-ring::before {
  top: 22px;
  left: 54px;
}

.orbit-ring::after {
  right: 26px;
  bottom: 76px;
}

.orbit-card {
  position: relative;
  z-index: 2;
  width: min(320px, 82vw);
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: var(--white);
  background: rgba(10, 10, 10, 0.58);
  backdrop-filter: blur(18px);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
  animation: levitate 4.2s ease-in-out infinite;
}

.orbit-card strong {
  display: block;
  font-size: 3.2rem;
  color: var(--red);
  line-height: 1;
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

@keyframes levitate {
  50% { transform: translateY(-14px); }
}

.stats-band {
  margin-top: -1px;
  padding: 54px 0;
  color: var(--white);
  background: linear-gradient(100deg, var(--black), var(--wine) 56%, var(--black));
  overflow: hidden;
}

.stats-band .stats-grid {
  position: relative;
  z-index: 2;
}

.stats-band .stat-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(30px);
  animation: stat-pop 0.8s ease forwards;
}

.stats-band .stat-label {
  color: rgba(255, 255, 255, 0.76);
}

@keyframes stat-pop {
  to { transform: translateY(0); }
}

.review-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.55fr) minmax(320px, 0.45fr);
  gap: 28px;
  align-items: stretch;
}

.google-panel,
.facebook-panel {
  position: relative;
  min-height: 370px;
  padding: 28px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
}

.google-logo {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  font-weight: 950;
  font-size: 2rem;
  background: var(--white);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

.review-stage {
  position: relative;
  min-height: 250px;
  margin-top: 20px;
}

.review-stage .review-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(40px) scale(0.98);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.review-stage .review-card.active {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.panel-review-marquee {
  width: calc(100% + 56px);
  margin: 20px -28px 0;
  overflow: hidden;
  padding: 4px 0 22px 28px;
}

.google-panel .panel-google-track {
  animation: reviews-flow var(--google-review-duration, 225s) linear infinite;
}

.google-panel .panel-google-track .review-card {
  flex: 0 0 min(520px, calc(100vw - 86px));
  min-height: 190px;
}

.facebook-panel {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(224, 24, 33, 0.88), rgba(10, 10, 10, 0.92)),
    var(--black);
}

.facebook-panel p,
.facebook-panel .review-meta {
  color: rgba(255, 255, 255, 0.76);
}

.facebook-panel .review-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--white);
}

.facebook-panel .review-card blockquote {
  color: var(--white);
}

.facebook-review-marquee {
  padding-bottom: 30px;
}

.facebook-marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: reviews-flow 46s linear infinite;
}

.facebook-marquee-track:hover {
  animation-play-state: running;
}

.facebook-panel .facebook-review-card {
  flex: 0 0 min(540px, calc(100vw - 86px));
  min-height: 252px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 22px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.55);
}

.facebook-review-top {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.facebook-review-top strong,
.facebook-panel .facebook-review-top strong {
  display: block;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 950;
}

.facebook-review-top span,
.facebook-panel .facebook-review-top span {
  color: #65676b;
  font-size: 0.82rem;
  font-weight: 750;
}

.facebook-review-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background-color: #e7f3ff;
  box-shadow: 0 0 0 3px #fff, 0 10px 24px rgba(0, 0, 0, 0.14);
}

.facebook-review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.facebook-panel .facebook-review-card blockquote {
  color: var(--ink);
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

.facebook-panel .facebook-review-card .review-meta {
  color: #65676b;
}

.visual-services {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.visual-service-card {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: end;
  overflow: hidden;
  border-radius: 8px;
  color: var(--white);
  background: var(--black);
  box-shadow: var(--shadow);
  scroll-snap-align: start;
}

.visual-service-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.72;
  transition: transform 0.9s ease, opacity 0.35s ease;
}

.visual-service-card:nth-child(1) img {
  object-position: 24% center;
}

.visual-service-card:nth-child(2) img {
  object-position: 60% center;
}

.visual-service-card:nth-child(3) img {
  object-position: 45% center;
}

.visual-service-card:nth-child(4) img {
  object-position: center 24%;
}

.visual-service-card:nth-child(5) img {
  object-position: 62% center;
}

.visual-service-card .service-image-fill {
  position: absolute;
  inset: -16px;
  z-index: 0;
  background-position: center;
  background-size: cover;
  filter: blur(12px);
  opacity: 0.52;
  transform: scale(1.08);
}

.visual-service-card img.home-younger-zoom-out {
  object-fit: contain;
  object-position: center;
  opacity: 0.88;
}

.visual-service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 12%, rgba(0, 0, 0, 0.42) 46%, rgba(0, 0, 0, 0.92));
}

.visual-service-card:hover img {
  transform: scale(1.08);
  opacity: 0.92;
}

.visual-service-card:hover img.home-younger-zoom-out {
  transform: scale(1.02);
}

.visual-service-content {
  position: relative;
  z-index: 2;
  padding: 24px;
}

.visual-service-content p {
  color: rgba(255, 255, 255, 0.78);
}

.mini-points {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 0;
  list-style: none;
  font-weight: 800;
}

.mini-points li::before {
  content: "—";
  color: var(--red);
  margin-right: 8px;
}

.faq-combo {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(340px, 0.48fr);
  gap: 34px;
  align-items: start;
}

.faq-image {
  position: sticky;
  top: 110px;
}

.service-detail-grid {
  display: grid;
  gap: 24px;
}

.service-detail-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.45fr) minmax(0, 0.55fr);
  gap: 0;
  min-height: 520px;
  scroll-margin-top: 18vh;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.08);
}

.service-detail-card:nth-child(even) {
  grid-template-columns: minmax(0, 0.55fr) minmax(280px, 0.45fr);
}

.service-detail-card:nth-child(even) .service-detail-media {
  order: 2;
}

.service-detail-media {
  min-height: 380px;
  overflow: hidden;
}

.service-detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.service-detail-media img.service-shift-right {
  object-position: 72% center;
}

.service-detail-media img.service-shift-slight-right {
  object-position: 60% center;
}

.service-detail-media img.service-shift-left-strong {
  object-position: 8% center;
}

.service-detail-card:hover .service-detail-media img {
  transform: scale(1.06);
}

.service-detail-copy {
  padding: clamp(28px, 5vw, 54px);
}

.format-panel {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--black), var(--wine));
  border: 0;
}

.format-panel p {
  color: rgba(255, 255, 255, 0.76);
}

.results-social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.reviews-split-section {
  overflow: hidden;
}

.reviews-split-section .section-head {
  margin-bottom: 34px;
}

.reviews-split-shell {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  border-block: 0;
  background: transparent;
}

.reviews-split-shell .results-social-grid {
  position: relative;
  width: 100%;
  margin: 0 auto;
  gap: 0;
}

.reviews-split-shell .results-social-grid::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 38px;
  bottom: 38px;
  left: 50%;
  width: 1px;
  display: none;
}

.reviews-split-shell .google-panel,
.reviews-split-shell .facebook-panel {
  min-height: 360px;
  padding: 10px clamp(18px, 3.2vw, 52px) 42px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.reviews-split-shell .google-panel {
  padding-right: clamp(8px, 1.6vw, 24px);
}

.reviews-split-shell .facebook-panel {
  padding-left: clamp(8px, 1.6vw, 24px);
}

.reviews-split-shell .panel-review-marquee {
  width: calc(100% + clamp(18px, 3.2vw, 52px));
  margin: 22px 0 0;
  padding: 4px 0 30px;
}

.reviews-split-shell .panel-google-track .review-card,
.reviews-split-shell .facebook-panel .facebook-review-card {
  flex: 0 0 min(500px, calc(50vw - 92px));
  width: min(500px, calc(50vw - 92px));
  min-height: 282px;
  height: 282px;
  overflow: hidden;
}

.reviews-split-shell .facebook-panel .facebook-review-card blockquote {
  -webkit-line-clamp: 4;
}

.reviews-split-shell .facebook-panel {
  color: var(--ink);
}

.reviews-split-shell .facebook-panel p,
.reviews-split-shell .facebook-panel .review-meta {
  color: var(--muted);
}

.reviews-split-shell .facebook-panel .facebook-review-card .review-meta {
  color: #65676b;
}

.reviews-split-shell .google-panel h3,
.reviews-split-shell .facebook-panel h3 {
  margin-top: 0;
}

.about-tabs {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.65fr);
  gap: 62px;
  align-items: center;
}

.tab-buttons {
  display: flex;
  gap: 0;
  margin-top: 34px;
}

.tab-buttons button {
  min-width: 150px;
  padding: 18px 24px;
  border: 1px solid var(--line);
  background: transparent;
  color: #071263;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tab-buttons button.active {
  color: var(--red);
  background: rgba(255, 255, 255, 0.72);
  border-bottom-color: transparent;
}

.tab-panel {
  display: none;
  min-height: 300px;
  padding: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.tab-panel.active {
  display: block;
  animation: tab-rise 0.45s ease;
}

@keyframes tab-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.headshot-panel {
  min-height: 520px;
  border: 4px solid rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(224, 24, 33, 0.18), rgba(0, 0, 0, 0.18)),
    url("../images/vibha-kataria-headshot.png") center 28% / cover;
  box-shadow: var(--shadow);
}

.full-map-section {
  padding: 0;
}

.full-map-section .map {
  display: block;
  width: 100%;
  min-height: 520px;
  border-radius: 0;
}

@media (max-width: 980px) {
  .cinema-hero .hero-content,
  .review-showcase,
  .faq-combo,
  .service-detail-card,
  .service-detail-card:nth-child(even),
  .about-tabs,
  .results-social-grid {
    grid-template-columns: 1fr;
  }

  .service-detail-card:nth-child(even) .service-detail-media {
    order: 0;
  }

  .hero-orbit {
    display: none;
  }

  .visual-services {
    grid-template-columns: repeat(5, 82vw);
  }

  .reviews-split-shell .results-social-grid {
    width: 100%;
  }

  .reviews-split-shell .results-social-grid::before {
    display: none;
  }

  .reviews-split-shell .google-panel,
  .reviews-split-shell .facebook-panel {
    min-height: 390px;
    padding-inline: 18px;
  }

  .reviews-split-shell .panel-google-track .review-card,
  .reviews-split-shell .facebook-panel .facebook-review-card {
    flex-basis: min(500px, calc(100vw - 48px));
    width: min(500px, calc(100vw - 48px));
  }
}

@media (max-width: 640px) {
  .tab-buttons {
    overflow-x: auto;
  }

  .tab-buttons button {
    min-width: 132px;
  }

  .service-detail-media,
  .headshot-panel {
    min-height: 300px;
  }
}

/* Quality rebuild pass */
.loader-logo,
.brand img,
.hero-logo,
.footer-logo {
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.24));
}

.hero-logo {
  background: transparent !important;
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.95))
    drop-shadow(0 12px 24px rgba(0, 0, 0, 0.42));
}

.compact-hero {
  min-height: 52vh;
  padding-block: 112px 72px;
}

.compact-hero h1 {
  max-width: 760px;
  font-size: clamp(2.4rem, 4.8vw, 4.7rem);
}

.review-marquee-section {
  width: 100%;
}

.review-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}

.review-title h2 {
  max-width: 760px;
}

.google-mini,
.facebook-logo {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-left: 10px;
  border-radius: 50%;
  font-family: Inter, sans-serif;
  font-size: 0.9rem;
  font-weight: 950;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.facebook-logo {
  color: #1877f2;
}

.google-marquee {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 16px 0 28px;
}

.google-marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: reviews-flow var(--google-review-duration, 225s) linear infinite;
}

.google-marquee-track:hover {
  animation-play-state: running;
}

.google-marquee-track.is-paused,
.google-marquee-track.is-paused:hover {
  animation-play-state: paused;
}

.google-marquee-track .review-card {
  flex: 0 0 min(540px, 86vw);
  min-height: 190px;
  background: rgba(255, 255, 255, 0.72);
}

.google-inline-review-card {
  position: relative;
  height: 228px;
  min-height: 228px;
  overflow: hidden;
}

.google-marquee-track .review-card blockquote {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.google-inline-review-card.service-review-sm blockquote {
  font-size: 0.92rem;
  line-height: 1.32;
  -webkit-line-clamp: 5;
}

.google-inline-review-card.service-review-xs blockquote,
.google-inline-review-card.service-review-too-long blockquote {
  font-size: 0.82rem;
  line-height: 1.24;
  -webkit-line-clamp: 6;
}

.google-inline-review-card.is-expanded {
  height: auto;
  min-height: 228px;
  overflow: visible;
  z-index: 8;
  box-shadow: 0 26px 90px rgba(20, 9, 9, 0.18);
}

.google-marquee-track .google-inline-review-card.is-expanded blockquote {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.google-all-panel {
  width: min(1280px, 96vw);
  max-height: 92vh;
  overflow-y: auto;
}

.modal-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.modal-title-row h2 {
  margin: 6px 0 0;
}

.google-all-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.google-all-card {
  min-height: 250px;
  background: rgba(255, 255, 255, 0.9);
  cursor: default;
}

.google-all-card.is-focused {
  border-color: rgba(224, 24, 33, 0.68);
  box-shadow: 0 28px 80px rgba(224, 24, 33, 0.18);
}

.google-all-card blockquote {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.google-all-empty {
  grid-column: 1 / -1;
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfb;
}

@keyframes reviews-flow {
  to { transform: translateX(-50%); }
}

.service-cinema {
  background:
    linear-gradient(90deg, rgba(9, 9, 9, 0.04), transparent 34%),
    var(--paper);
}

.service-shell {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.service-rail {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 18px;
  padding: 28px 0 28px 18px;
  border-left: 1px solid rgba(0, 0, 0, 0.2);
}

.service-rail a {
  position: relative;
  color: var(--muted);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  transition: color 0.24s ease, transform 0.24s ease;
}

.service-rail a::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 50%;
  width: 8px;
  height: 8px;
  border: 1px solid currentColor;
  transform: translateY(-50%);
}

.service-rail a:hover {
  color: var(--red);
  transform: translateX(5px);
}

.service-detail-card {
  transform-style: preserve-3d;
}

.service-detail-card .btn {
  margin-top: 22px;
}

.service-cinema .section-head h1 {
  max-width: 880px;
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.6rem, 5vw, 5rem);
  line-height: 0.96;
}

.service-modal {
  position: fixed;
  inset: 0;
  z-index: 8500;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.service-modal.open {
  display: grid;
}

.service-modal-panel {
  position: relative;
  width: min(980px, 96vw);
  padding: clamp(30px, 5vw, 54px);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.45);
  animation: modal-rise 0.35s ease;
}

.service-modal-panel ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 24px;
}

.service-modal-panel > .btn {
  margin-top: 24px;
}

.service-evidence {
  display: grid;
  gap: 28px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.service-evidence-block {
  display: grid;
  gap: 14px;
}

.service-evidence-block h3 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.55rem, 2vw, 2.2rem);
  line-height: 1;
}

.service-evidence-marquee {
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
  padding: 4px 0 14px;
}

.service-evidence-marquee.has-expanded {
  overflow-y: visible;
  padding-bottom: 34px;
}

.service-evidence-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: service-evidence-flow var(--service-evidence-duration, 48s) linear infinite;
}

.service-evidence-marquee.is-paused .service-evidence-track {
  animation-play-state: paused;
}

.service-evidence-track:hover {
  animation-play-state: running;
}

.service-evidence-marquee.is-paused .service-evidence-track:hover {
  animation-play-state: paused;
}

.service-single-testimonial {
  max-width: 780px;
}

.service-single-testimonial .service-evidence-card {
  width: 100%;
  min-height: 0;
  max-width: none;
}

.service-evidence-card {
  position: relative;
  flex: 0 0 min(420px, 74vw);
  height: 226px;
  min-height: 226px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.84);
}

.service-facebook-evidence-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
}

.service-evidence-card blockquote {
  display: -webkit-box;
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.42;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}

.service-evidence-card.service-review-sm blockquote {
  font-size: 0.9rem;
  line-height: 1.28;
  -webkit-line-clamp: 7;
}

.service-evidence-card.service-review-xs blockquote {
  font-size: 0.8rem;
  line-height: 1.2;
  -webkit-line-clamp: 8;
}

.service-evidence-card.service-review-too-long blockquote {
  font-size: 0.82rem;
  line-height: 1.22;
  -webkit-line-clamp: 7;
}

.service-evidence-card.is-expanded {
  height: auto;
  min-height: 226px;
  overflow: visible;
  z-index: 4;
  box-shadow: 0 24px 80px rgba(20, 9, 9, 0.16);
}

.service-evidence-card.is-expanded blockquote {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.review-expand-btn {
  align-self: flex-start;
  margin-top: auto;
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 0 0 2px;
  color: var(--red);
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 950;
  cursor: pointer;
}

.review-expand-btn:hover {
  color: var(--black);
}

.service-facebook-evidence-card .facebook-review-top {
  grid-template-columns: 48px minmax(0, 1fr) 28px;
}

.service-facebook-evidence-card .facebook-review-source {
  display: block;
}

.facebook-review-badge {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #1877f2;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(24, 119, 242, 0.22);
  font-size: 0.95rem;
  font-weight: 950;
}

.service-online-testimonial {
  max-width: 920px;
  margin: 0;
  padding: clamp(24px, 4vw, 38px);
  border-left: 5px solid var(--red);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 244, 241, 0.92));
  box-shadow: var(--shadow-soft);
}

.service-online-testimonial blockquote {
  margin: 0;
  color: var(--ink);
  font-family: "Playfair Display", serif;
  font-size: clamp(1.15rem, 1.6vw, 1.55rem);
  line-height: 1.45;
}

.service-online-testimonial figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin-top: 18px;
  color: var(--muted);
  font-weight: 850;
}

.service-online-testimonial figcaption span {
  color: var(--ink);
  font-weight: 950;
}

.service-online-testimonial figcaption strong {
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.76rem;
}

.service-review-highlight {
  padding: 0 0.18em;
  border-radius: 4px;
  color: var(--red);
  background: rgba(224, 24, 33, 0.12);
}

.service-result-card {
  flex: 0 0 min(310px, 66vw);
  height: 390px;
  margin: 0;
  padding: 10px;
  overflow: hidden;
  border: 1px solid rgba(20, 9, 9, 0.12);
  border-radius: 8px;
  background: #fffdfb;
  box-shadow: var(--shadow-soft);
}

.service-result-card img {
  display: block;
  width: 100%;
  height: calc(100% - 38px);
  object-fit: contain;
  border-radius: 6px;
  background: var(--white);
}

.service-result-card figcaption {
  overflow: hidden;
  padding: 10px 4px 0;
  color: var(--ink);
  font-weight: 950;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes service-evidence-flow {
  to { transform: translateX(calc(-50% - 7px)); }
}

@keyframes modal-rise {
  from { opacity: 0; transform: translateY(22px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.facebook-logo {
  width: 44px;
  height: 44px;
  margin: 0 0 16px;
  color: #1877f2;
  font-size: 1.7rem;
}

.results-social-grid .review-stage {
  min-height: 260px;
}

.about-profile-section {
  background: #fffaf5;
}

.about-tabs {
  perspective: 1200px;
}

.about-tabs h2 {
  font-family: Inter, sans-serif;
  text-transform: uppercase;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 0.95;
  font-weight: 950;
}

.tab-panel ul {
  margin: 20px 0 0;
  display: grid;
  gap: 14px;
  color: var(--charcoal);
  line-height: 1.8;
}

.accomplishments-band {
  color: white;
  background: #042f4b;
}

.accomplishments-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.accomplishments-grid img,
.mission-grid img {
  width: 100%;
  min-height: 330px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.accomplishments-grid h2,
.accomplishments-grid p,
.accomplishments-grid li {
  color: white;
}

.accomplishments-grid ul {
  display: grid;
  gap: 14px;
  line-height: 1.8;
}

.mission-panel {
  background: #fff;
}

.mission-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.7fr);
  gap: 34px;
  align-items: center;
}

.mission-copy {
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--line);
  background: #fffaf5;
}

.about-copy-card {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.about-copy-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(120deg, transparent 12%, rgba(224, 24, 33, 0.08) 44%, transparent 68%);
  opacity: 0;
  transform: translateX(-120%);
  pointer-events: none;
}

.about-copy-card > * {
  position: relative;
  z-index: 1;
}

.about-copy-card.reveal.in-view {
  animation: about-card-depth 0.95s cubic-bezier(0.18, 0.9, 0.2, 1) both;
}

.about-copy-card.reveal.in-view::after {
  animation: about-card-sheen 2.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.45s both;
}

.about-copy-card:hover {
  transform: translateY(-8px) rotateX(1.2deg);
  box-shadow: 0 30px 90px rgba(20, 9, 9, 0.12);
}

.about-copy-card .tab-buttons {
  animation: about-tab-drift 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.about-copy-card .eyebrow,
.about-copy-card h2,
.about-copy-card .section-lead {
  animation: about-copy-rise 0.72s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.about-copy-card h2 {
  animation-delay: 0.08s;
}

.about-copy-card .section-lead {
  animation-delay: 0.16s;
}

.about-profile-section .tab-buttons button {
  transition:
    transform 0.28s ease,
    color 0.28s ease,
    background 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.about-profile-section .tab-buttons button:hover {
  transform: translateY(-3px);
  border-color: rgba(224, 24, 33, 0.32);
  box-shadow: 0 18px 42px rgba(20, 9, 9, 0.08);
}

.about-profile-section .tab-buttons button.active {
  box-shadow: inset 0 -3px 0 var(--red);
}

.about-profile-section .tab-panel.active p,
.about-profile-section .tab-panel.active li {
  animation: about-panel-line 0.72s cubic-bezier(0.18, 0.9, 0.2, 1) both;
}

.about-profile-section .tab-panel.active li:nth-child(2) {
  animation-delay: 0.08s;
}

.about-profile-section .tab-panel.active li:nth-child(3) {
  animation-delay: 0.16s;
}

.about-headshot-panel {
  position: relative;
  overflow: hidden;
  transition: transform 0.65s ease, box-shadow 0.65s ease, filter 0.65s ease;
}

.about-headshot-panel.reveal.in-view {
  animation: about-headshot-arrive 1.05s cubic-bezier(0.18, 0.9, 0.2, 1) both, about-photo-float 7.5s ease-in-out 1.1s infinite;
}

.about-headshot-panel:hover {
  transform: translateY(-6px) scale(1.012);
  filter: saturate(1.05);
  box-shadow: 0 30px 90px rgba(20, 9, 9, 0.24);
}

.about-media-lift {
  perspective: 900px;
}

.about-media-lift.reveal.in-view {
  animation: about-media-arrive 0.92s cubic-bezier(0.18, 0.9, 0.2, 1) both;
}

.about-media-lift img {
  transition: transform 0.7s ease, box-shadow 0.7s ease, filter 0.7s ease;
}

.about-media-lift:hover img {
  transform: translateY(-8px) scale(1.018);
  filter: saturate(1.06) contrast(1.02);
}

.about-story-copy li {
  transform-origin: left center;
}

.about-story-copy.motion-in li,
.about-story-copy.reveal.in-view li {
  animation: about-list-pop 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.about-story-copy li:nth-child(2) { animation-delay: 0.08s; }
.about-story-copy li:nth-child(3) { animation-delay: 0.16s; }
.about-story-copy li:nth-child(4) { animation-delay: 0.24s; }

.about-story-copy.reveal.in-view .eyebrow {
  animation: about-copy-rise 0.66s cubic-bezier(0.18, 0.9, 0.2, 1) both;
}

.about-story-copy.reveal.in-view h2 {
  animation: about-story-title 0.86s cubic-bezier(0.18, 0.9, 0.2, 1) 0.08s both;
}

.about-story-copy.reveal.in-view p {
  animation: about-panel-line 0.72s cubic-bezier(0.18, 0.9, 0.2, 1) both;
}

.about-story-copy.reveal.in-view p:nth-of-type(2) {
  animation-delay: 0.12s;
}

.results-school-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fffaf5;
}

.results-school-strip .school-logo {
  min-width: 178px;
  height: 86px;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: center;
  justify-content: center;
  color: var(--black);
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(224, 24, 33, 0.18);
  text-align: center;
  line-height: 0.98;
  white-space: normal;
}

.results-school-strip .school-logo span {
  display: block;
  white-space: nowrap;
}

@keyframes about-copy-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes about-card-depth {
  from { opacity: 0; transform: translateY(42px) rotateX(7deg) scale(0.985); filter: blur(8px); }
  68% { filter: blur(0); }
  to { opacity: 1; transform: translateY(0) rotateX(0) scale(1); filter: blur(0); }
}

@keyframes about-card-sheen {
  0% { opacity: 0; transform: translateX(-120%); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translateX(120%); }
}

@keyframes about-tab-drift {
  from { opacity: 0; transform: translateX(-18px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes about-panel-line {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes about-list-pop {
  from { opacity: 0; transform: translateX(16px) scale(0.98); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes about-headshot-arrive {
  from { opacity: 0; transform: translateX(38px) rotateY(-8deg) scale(0.98); filter: blur(8px) saturate(0.9); }
  to { opacity: 1; transform: translateX(0) rotateY(0) scale(1); filter: blur(0) saturate(1); }
}

@keyframes about-photo-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}

@keyframes about-media-arrive {
  from { opacity: 0; transform: translateY(36px) rotateX(5deg) scale(0.985); filter: blur(7px); }
  to { opacity: 1; transform: translateY(0) rotateX(0) scale(1); filter: blur(0); }
}

@keyframes about-story-title {
  from { opacity: 0; transform: translateX(-18px); }
  to { opacity: 1; transform: translateX(0); }
}

.elevated-contact {
  align-items: stretch;
}

.contact-card-stack {
  color: white;
  background:
    linear-gradient(150deg, rgba(224, 24, 33, 0.9), rgba(9, 9, 9, 0.96)),
    var(--black);
}

.contact-card-stack p,
.contact-card-stack a {
  color: rgba(255, 255, 255, 0.86);
}

.contact-card-stack h2 {
  color: white;
}

.contact-icon-links,
.footer-icon-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 26px;
}

.contact-icon-link,
.site-footer .contact-icon-link {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.contact-icon-link svg {
  width: 32px;
  height: 32px;
}

.contact-icon-link:hover {
  transform: translateY(-5px) scale(1.04);
  border-color: rgba(255, 255, 255, 0.64);
  box-shadow: 0 26px 62px rgba(0, 0, 0, 0.24);
}

.footer-icon-links {
  margin-top: 10px;
}

.site-footer .contact-icon-link {
  width: 46px;
  height: 46px;
}

.site-footer .contact-icon-link svg {
  width: 26px;
  height: 26px;
}

.clean-map-link {
  display: block;
  overflow: hidden;
}

.google-map-frame {
  display: block;
  width: 100%;
  overflow: hidden;
  background: #e8e4dc;
}

.google-map {
  display: block;
  width: 100%;
  height: clamp(420px, 44vw, 620px);
  min-height: 0;
  border: 0;
  border-radius: 0;
}

.clean-map {
  height: clamp(320px, 42vw, 540px);
  min-height: 0;
  object-fit: cover;
  border-radius: 0;
}

.contact-hero .hero-media::before {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.34)),
    radial-gradient(circle at 76% 45%, rgba(224, 24, 33, 0.28), transparent 34%);
}

.reveal.in-view .visual-service-card,
.service-detail-card.in-view,
.gallery-item.in-view {
  animation: quiet-float 5s ease-in-out infinite;
}

@keyframes quiet-float {
  50% { transform: translateY(-5px); }
}

@media (max-width: 980px) {
  .service-shell,
  .accomplishments-grid,
  .mission-grid {
    grid-template-columns: 1fr;
  }

  .service-rail {
    position: relative;
    top: auto;
    grid-template-columns: repeat(5, max-content);
    overflow-x: auto;
    border-left: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 18px;
  }

  .service-rail a::before {
    display: none;
  }
}

@media (max-width: 640px) {
  .compact-hero {
    min-height: 62vh;
  }

  .google-marquee-track .review-card {
    flex-basis: 300px;
  }
}

.site-header,
.site-header.scrolled,
.site-header.light {
  background: rgba(255, 250, 245, 0.92);
  color: var(--black);
  border-bottom-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.08);
}

.nav-links a::after {
  background: var(--red);
}

.required {
  color: var(--red);
}

.first-page-section {
  padding-top: 140px;
}

.service-detail-copy h2 {
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(2rem, 4.2vw, 4.2rem);
  line-height: 0.95;
  font-weight: 950;
  text-transform: uppercase;
}

.service-detail-copy p {
  margin: 16px 0 0;
}

.service-modal-panel {
  max-height: min(860px, 90vh);
  overflow-y: auto;
}

.results-carousel {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  padding: 12px 0 28px;
}

.results-carousel-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: results-slide 48s linear infinite;
}

.results-slide {
  display: flex;
  flex-direction: column;
  width: min(380px, 82vw);
  height: 520px;
  margin: 0;
  padding: 10px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(20, 9, 9, 0.12);
  background: #fffdfb;
  box-shadow: var(--shadow);
}

.results-slide-inner {
  display: grid;
  flex: 1;
  min-height: 0;
  gap: 8px;
}

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

.results-slide img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  border-radius: 6px;
  background: var(--white);
  transition: transform 0.8s ease;
}

.results-slide figcaption {
  padding: 12px 6px 4px;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 950;
  line-height: 1.2;
  text-align: center;
}

.results-slide figcaption span {
  display: block;
}

.results-slide:hover img {
  transform: scale(1.03);
}

@keyframes results-slide {
  to { transform: translateX(calc(-50% - 9px)); }
}

body.modal-open {
  overflow: hidden;
}

.results-modal {
  padding: 16px;
}

.results-modal-panel {
  width: min(1540px, 97vw);
  max-height: 94vh;
  overflow-y: auto;
  padding: clamp(16px, 2vw, 28px);
}

.results-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.result-gallery-card {
  display: flex;
  flex-direction: column;
  min-height: 560px;
  margin: 0;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(20, 9, 9, 0.12);
  border-radius: 8px;
  background: #fffdfb;
  box-shadow: var(--shadow-soft);
}

.result-gallery-card > img,
.result-gallery-pair > div {
  flex: 1;
  min-height: 0;
}

.result-gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  background: var(--white);
}

.result-gallery-pair > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.result-gallery-card figcaption {
  padding: 8px 6px 2px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 950;
  line-height: 1.1;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.result-gallery-card figcaption span {
  display: inline;
}

.result-gallery-card figcaption span + span::before {
  content: " / ";
}

@media (max-width: 640px) {
  .first-page-section {
    padding-top: 112px;
  }

  .results-slide {
    height: 440px;
  }

  .results-gallery-grid {
    grid-template-columns: 1fr;
  }

  .results-modal {
    padding: 10px;
  }

  .results-modal-panel {
    width: 98vw;
    max-height: 92vh;
    padding: 14px;
  }

  .result-gallery-card {
    min-height: 520px;
  }

  .video-story-grid {
    grid-template-columns: 1fr;
  }
}

/* Cinematic story layout */
.services-story.first-page-section {
  padding-top: 0;
}

.services-story {
  --stage-shift: 0vw;
  --stage-lift: 0px;
  --stage-text-shift: 0px;
  position: relative;
  min-height: 620vh;
  overflow: clip;
  color: var(--white);
  background: #070505;
}

.service-story-sticky {
  position: sticky;
  top: 0;
  min-height: 720px;
  height: 100vh;
  display: grid;
  grid-template-columns: minmax(112px, 13vw) minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
}

.service-story-bg,
.story-media,
.service-story-bg::before,
.service-story-bg::after,
.story-grid-lines,
.story-scan {
  position: absolute;
  inset: 0;
}

.service-story-bg {
  z-index: 0;
  background: #070505;
}

.story-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.14) translate3d(4vw, 0, 0);
  filter: saturate(0.92) contrast(1.08);
  transition: opacity 0.8s ease, transform 1.1s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.story-media.active {
  opacity: 0.56;
  transform: scale(1.06) translate3d(var(--stage-shift), var(--stage-lift), 0);
}

.service-story-bg::before {
  content: "";
  z-index: 2;
  background:
    radial-gradient(circle at 72% 46%, rgba(224, 24, 33, 0.34), transparent 30%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.62) 42%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 32%, rgba(0, 0, 0, 0.78));
}

.service-story-bg::after {
  content: "";
  z-index: 3;
  background: linear-gradient(90deg, rgba(224, 24, 33, 0.14), transparent 24%, transparent 78%, rgba(255, 255, 255, 0.07));
  mix-blend-mode: screen;
}

.story-grid-lines {
  z-index: 4;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 90px 90px;
  transform: translate3d(var(--stage-shift), 0, 0);
}

.story-scan {
  z-index: 5;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.09) 48%, transparent 52%);
  transform: translateY(calc(-70% + (var(--story-progress) * 140%)));
  opacity: 0.45;
}

.service-story-rail {
  position: relative;
  z-index: 8;
  display: grid;
  gap: 18px;
  padding: 118px 0 60px clamp(18px, 3vw, 42px);
  align-self: stretch;
  align-content: center;
}

.service-story-rail::before {
  content: "";
  position: absolute;
  left: clamp(22px, 3.4vw, 48px);
  top: 24%;
  bottom: 20%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.service-story-rail a {
  position: relative;
  display: grid;
  gap: 4px;
  width: max-content;
  padding-left: 26px;
  color: rgba(255, 255, 255, 0.48);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  transition: color 0.28s ease, transform 0.28s ease;
}

.service-story-rail a::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 12px;
  width: 9px;
  height: 9px;
  border: 1px solid currentColor;
  background: #070505;
  transform: rotate(45deg);
  transition: background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.service-story-rail a span {
  color: rgba(224, 24, 33, 0.82);
  font-size: 0.72rem;
}

.service-story-rail a.active {
  color: var(--white);
  transform: translateX(8px);
}

.service-story-rail a.active::before {
  background: var(--red);
  border-color: var(--red);
  box-shadow: 0 0 0 8px rgba(224, 24, 33, 0.18);
}

.service-story-copy {
  position: relative;
  z-index: 7;
  width: min(760px, calc(100vw - 220px));
  min-height: 620px;
  display: grid;
  align-items: center;
  padding: 120px 34px 82px;
}

.story-kicker {
  position: absolute;
  top: 118px;
  left: 34px;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.story-kicker::before {
  content: "";
  display: inline-block;
  width: 38px;
  height: 2px;
  margin-right: 12px;
  vertical-align: middle;
  background: currentColor;
}

.story-counter {
  position: absolute;
  top: 116px;
  right: 34px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: rgba(255, 255, 255, 0.42);
  font-weight: 950;
}

.story-counter span:first-child {
  color: var(--white);
  font-size: clamp(2.6rem, 7vw, 6.8rem);
  line-height: 0.8;
  font-family: "Playfair Display", serif;
}

.service-story-slides {
  position: relative;
  min-height: 500px;
}

.story-slide {
  position: absolute;
  inset: 0 auto auto 0;
  max-width: 650px;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 48px, 0) scale(0.97);
  transition: opacity 0.5s ease, transform 0.65s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.story-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, var(--stage-text-shift), 0) scale(1);
}

.story-giant {
  position: absolute;
  z-index: -1;
  left: -0.06em;
  top: -0.48em;
  color: rgba(255, 255, 255, 0.07);
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(6rem, 17vw, 16rem);
  line-height: 0.78;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.story-slide .eyebrow {
  color: var(--red);
}

.story-slide h1 {
  max-width: 720px;
  margin: 0 0 22px;
  color: var(--white);
  font-family: "Playfair Display", serif;
  font-size: clamp(4.2rem, 10vw, 9.5rem);
  line-height: 0.78;
  letter-spacing: 0;
}

.story-slide p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.35vw, 1.22rem);
  line-height: 1.75;
}

.story-slide .pill-list {
  margin: 26px 0 28px;
}

.story-slide .pill-list li {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.story-list {
  display: grid;
  gap: 16px;
  max-width: 680px;
  margin: 24px 0 0;
  padding-left: 1.1em;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1rem, 1.32vw, 1.2rem);
  line-height: 1.75;
}

.story-list li::marker {
  color: var(--red);
}

.about-story {
  min-height: 620vh;
}

.about-story .story-media {
  object-position: center;
}

.about-story .about-headshot-media {
  object-position: center 22%;
}

.about-story .story-media.active {
  opacity: 0.48;
}

.about-story .service-story-copy {
  width: min(860px, calc(100vw - 220px));
}

.about-story .story-slide {
  max-width: 760px;
}

.about-story .story-slide h1 {
  font-size: clamp(3.4rem, 8vw, 7.4rem);
}

.about-story .story-slide p {
  max-width: 720px;
  font-size: clamp(0.98rem, 1.18vw, 1.12rem);
  line-height: 1.68;
}

.story-caption {
  position: absolute;
  z-index: 9;
  left: calc(minmax(112px, 13vw));
  left: clamp(130px, 16vw, 230px);
  right: clamp(18px, 5vw, 70px);
  bottom: 34px;
  display: grid;
  grid-template-columns: minmax(160px, 0.5fr) minmax(260px, 0.5fr);
  gap: 26px;
  align-items: center;
}

.story-progress {
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.2);
}

.story-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--white));
  transition: width 0.14s linear;
}

.story-caption p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 800;
}

@media (max-width: 980px) {
  .services-story {
    min-height: auto;
    padding: 112px 0 44px;
    overflow: hidden;
  }

  .service-story-sticky {
    position: relative;
    height: auto;
    min-height: 0;
    display: block;
    padding: 0 18px;
  }

  .service-story-bg,
  .service-story-rail,
  .story-counter,
  .story-caption {
    display: none;
  }

  .service-story-copy {
    width: 100%;
    min-height: 0;
    padding: 0;
  }

  .story-kicker {
    position: relative;
    top: auto;
    left: auto;
    margin-bottom: 24px;
  }

  .service-story-slides {
    min-height: 0;
    display: grid;
    gap: 18px;
  }

  .story-slide,
  .story-slide.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    max-width: none;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding: 28px;
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(224, 24, 33, 0.22), rgba(9, 9, 9, 0.96));
    box-shadow: var(--shadow);
  }

  .story-slide h1 {
    font-size: clamp(3rem, 14vw, 5.6rem);
  }

  .story-giant {
    top: 12px;
    left: 18px;
    font-size: clamp(5rem, 24vw, 10rem);
  }

  .about-story .service-story-copy,
  .about-story .story-slide {
    width: 100%;
    max-width: none;
  }

  .about-story .story-slide h1 {
    font-size: clamp(3rem, 13vw, 5.4rem);
  }

  .story-list {
    font-size: 1rem;
  }
}

/* Premium animation pass */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10001;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--red), #ffffff 48%, var(--red-dark));
  box-shadow: 0 0 18px rgba(224, 24, 33, 0.36);
  pointer-events: none;
  transition: transform 0.08s linear;
}

.field-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  line-height: 1.1;
  transition: color 0.24s ease, transform 0.24s ease;
}

.required {
  display: inline;
  margin-left: 2px;
  color: var(--red);
  font-weight: 950;
  line-height: 1;
}

.form-grid label:focus-within .field-label {
  color: var(--red);
  transform: translateX(3px);
}

input,
textarea,
select {
  transition: border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

input:focus,
textarea:focus,
select:focus {
  transform: translateY(-2px);
}

.site-footer .footer-logo {
  width: clamp(220px, 20vw, 290px) !important;
  animation: footer-logo-breathe 4.8s ease-in-out infinite;
}

.reveal {
  transform: translateY(46px) scale(0.985);
  transition:
    opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

.reveal.in-view {
  transform: translateY(0) scale(1);
  animation: reveal-settle 0.85s cubic-bezier(0.18, 0.9, 0.2, 1) both;
}

.motion-lift {
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  transition:
    opacity 0.85s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.85s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.32s ease,
    border-color 0.32s ease;
  transition-delay: var(--motion-delay, 0ms);
  will-change: opacity, transform;
}

.motion-lift.motion-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.section:not(.services-story) {
  position: relative;
}

.section:not(.services-story)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(var(--max), calc(100% - 36px));
  height: 1px;
  transform: translateX(-50%) scaleX(0.22);
  transform-origin: left;
  background: linear-gradient(90deg, transparent, rgba(224, 24, 33, 0.48), transparent);
  opacity: 0.58;
  pointer-events: none;
  animation: section-line-scan 6.8s ease-in-out infinite;
}

:is(.card, .service-card, .review-card, .stat-card, .contact-panel, .profile-card, .visual-service-card, .service-detail-card, .faq details, .video-story-card, .results-slide) {
  position: relative;
  overflow: hidden;
  transform-origin: center;
  transition:
    transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.32s ease,
    border-color 0.32s ease,
    background 0.32s ease;
}

:is(.card, .service-card, .review-card, .stat-card, .contact-panel, .profile-card, .visual-service-card, .service-detail-card, .faq details, .video-story-card, .results-slide) > * {
  position: relative;
  z-index: 1;
}

:is(.card, .service-card, .review-card, .stat-card, .contact-panel, .profile-card, .visual-service-card, .service-detail-card, .faq details, .video-story-card, .results-slide)::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.52) 42%, transparent 62%);
  opacity: 0;
  transform: translateX(-128%) skewX(-14deg);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.78s cubic-bezier(0.2, 0.8, 0.2, 1);
}

:is(.card, .service-card, .review-card, .stat-card, .contact-panel, .profile-card, .visual-service-card, .service-detail-card, .faq details, .video-story-card, .results-slide):hover::before {
  opacity: 1;
  transform: translateX(128%) skewX(-14deg);
}

:is(.contact-panel, .service-detail-card, .video-story-card, .visual-service-card, .results-slide):hover {
  transform: translateY(-10px) scale(1.01);
  box-shadow: 0 30px 82px rgba(0, 0, 0, 0.16);
}

:is(.visual-service-card img, .service-detail-media img, .gallery-item img, .results-slide img, .headshot-panel img, .accomplishments-grid img, .mission-grid img) {
  will-change: transform;
  animation: media-breathe 10s ease-in-out infinite alternate;
}

:is(.visual-service-card:nth-child(even) img, .service-detail-card:nth-child(even) .service-detail-media img, .results-slide:nth-child(even) img) {
  animation-duration: 12s;
  animation-delay: -2.2s;
}

.btn-primary {
  animation: cta-breathe 3.7s ease-in-out infinite;
}

.btn-primary::before {
  animation: button-sheen 4.8s ease-in-out infinite;
}

.btn:hover::before {
  animation-play-state: paused;
}

.eyebrow {
  position: relative;
}

.eyebrow::after {
  content: "";
  position: absolute;
  left: 44px;
  bottom: -7px;
  width: 30px;
  height: 2px;
  background: currentColor;
  opacity: 0.34;
  animation: eyebrow-pulse 2.6s ease-in-out infinite;
}

.reveal.in-view :is(h1, h2, h3),
.motion-in :is(h1, h2, h3) {
  animation: headline-lift 0.86s cubic-bezier(0.18, 0.9, 0.2, 1) both;
}

.motion-in:is(.visual-service-card, .service-detail-card, .review-card, .contact-panel, .video-story-card) {
  animation: soft-levitate 5.8s ease-in-out infinite;
  animation-delay: calc(var(--motion-delay, 0ms) + 0.8s);
}

.google-marquee-track,
.facebook-panel .panel-track,
.results-carousel-track,
.logo-track {
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.08));
}

.google-marquee-track .review-card,
.facebook-panel .facebook-review-card {
  transition: transform 0.32s ease, box-shadow 0.32s ease;
}

.google-marquee-track .review-card:hover,
.facebook-panel .facebook-review-card:hover {
  transform: translateY(-7px) scale(1.01);
}

.site-header {
  animation: header-arrive 0.82s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes reveal-settle {
  0% { opacity: 0; transform: translateY(46px) scale(0.985); filter: blur(8px); }
  65% { filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes section-line-scan {
  0%, 100% { transform: translateX(-50%) scaleX(0.22); opacity: 0.28; }
  50% { transform: translateX(-50%) scaleX(1); opacity: 0.74; }
}

@keyframes media-breathe {
  from { transform: scale(1.01) translateY(0); }
  to { transform: scale(1.055) translateY(-4px); }
}

@keyframes cta-breathe {
  0%, 100% { box-shadow: 0 12px 30px rgba(224, 24, 33, 0.18); }
  50% { box-shadow: 0 18px 44px rgba(224, 24, 33, 0.32); }
}

@keyframes button-sheen {
  0%, 56%, 100% { transform: translateX(-130%); }
  72% { transform: translateX(130%); }
}

@keyframes footer-logo-breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.025); }
}

@keyframes eyebrow-pulse {
  0%, 100% { transform: scaleX(0.35); transform-origin: left; }
  50% { transform: scaleX(1); transform-origin: left; }
}

@keyframes headline-lift {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes soft-levitate {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -5px; }
}

@keyframes header-arrive {
  from { transform: translateY(-18px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Keep homepage service card copy readable above the photography. */
.visual-service-card > img {
  position: absolute !important;
  inset: 0;
  z-index: 0 !important;
}

.visual-service-card::after {
  z-index: 1 !important;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.42) 42%, rgba(0, 0, 0, 0.94) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.32), transparent 62%);
}

.visual-service-card::before {
  z-index: 2 !important;
}

.visual-service-card .visual-service-content {
  position: relative !important;
  z-index: 3 !important;
  width: 100%;
  padding: 22px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.58);
}

.visual-service-card .visual-service-content h3 {
  max-width: none;
  margin-bottom: 8px;
  font-size: clamp(1.22rem, 1.55vw, 1.78rem);
  line-height: 1.06;
  white-space: nowrap;
}

.visual-service-card .visual-service-content p {
  max-width: none;
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  line-height: 1.38;
}

.visual-service-card .visual-service-content .link-line {
  color: var(--white);
}

.hero-logo {
  width: min(440px, 86vw) !important;
  max-height: 220px !important;
  animation: logo-subtle-float 4.2s ease-in-out infinite !important;
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.95))
    drop-shadow(0 22px 38px rgba(0, 0, 0, 0.48)) !important;
}

.site-footer .footer-logo {
  animation: logo-subtle-float 4.2s ease-in-out infinite !important;
}

.stat-number.is-counting {
  animation: counter-breathe 0.72s ease-in-out infinite;
  text-shadow: 0 0 24px rgba(224, 24, 33, 0.22);
}

.stat-card:has(.stat-number.is-counting)::after {
  animation: stat-ring-pulse 1.4s ease-in-out infinite;
}

@keyframes counter-breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-3px) scale(1.035); }
}

@keyframes stat-ring-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.18); opacity: 0.58; }
}

@keyframes logo-subtle-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.portal-section {
  position: relative;
  min-height: calc(100vh - 96px);
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 18%, rgba(224, 24, 33, 0.24), transparent 28%),
    linear-gradient(135deg, #080707 0%, #150506 46%, #f8f1ec 46.2%, #fffaf6 100%);
}

.portal-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.52;
  background-image:
    linear-gradient(115deg, transparent 0 34%, rgba(255, 255, 255, 0.14) 34.15%, transparent 34.35%),
    linear-gradient(115deg, transparent 0 58%, rgba(224, 24, 33, 0.2) 58.15%, transparent 58.35%),
    radial-gradient(circle at 18% 78%, rgba(255, 255, 255, 0.18), transparent 25%);
  animation: portal-lines 14s ease-in-out infinite alternate;
}

.portal-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.72fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  min-height: calc(100vh - 96px);
  padding-block: clamp(72px, 10vw, 128px);
}

.portal-login-shell {
  grid-template-columns: minmax(320px, 520px);
  justify-content: center;
}

.portal-dashboard-shell {
  grid-template-columns: minmax(320px, 760px);
  justify-content: center;
}

.portal-login-shell .portal-card {
  width: min(100%, 520px);
}

.portal-dashboard-shell .portal-card {
  width: min(100%, 760px);
}

.portal-story {
  max-width: 720px;
  color: var(--white);
}

.portal-story h1 {
  margin: 0;
  max-width: 11ch;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(4rem, 8vw, 8.5rem);
  line-height: 0.86;
}

.portal-story p {
  max-width: 540px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.7;
}

.portal-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.portal-feature-list span {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 11px 15px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.portal-card {
  display: grid;
  gap: 18px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(20, 9, 9, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 30px 90px rgba(20, 9, 9, 0.18);
  backdrop-filter: blur(18px);
}

.portal-card-logo {
  width: min(240px, 70%);
  filter: drop-shadow(0 14px 22px rgba(20, 9, 9, 0.18));
}

.portal-card h2 {
  margin: 4px 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.4rem, 4.4vw, 4.4rem);
  line-height: 0.92;
}

.portal-card label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.portal-card input {
  min-height: 54px;
}

.password-control {
  position: relative;
  display: block;
}

.password-control input {
  padding-right: 82px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  padding: 0 14px;
  background: var(--ink);
  color: var(--white);
  font-weight: 900;
  cursor: pointer;
}

.password-toggle:hover {
  background: var(--red);
}

.portal-status {
  min-height: 24px;
  margin: 0;
  color: rgba(20, 9, 9, 0.68);
  font-weight: 700;
  line-height: 1.5;
}

.portal-status.visible {
  color: var(--red);
}

.portal-home-card {
  align-self: center;
}

.portal-tool-grid {
  display: grid;
  gap: 14px;
}

.portal-tool-link {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(20, 9, 9, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.portal-tool-link:hover {
  transform: translateY(-4px);
  border-color: rgba(224, 24, 33, 0.26);
  box-shadow: 0 18px 36px rgba(20, 9, 9, 0.12);
}

.portal-tool-link span {
  color: var(--red);
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.portal-tool-link strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.6rem;
  line-height: 1;
}

.portal-tool-link small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

.portal-workspace {
  background:
    radial-gradient(circle at 92% 8%, rgba(224, 24, 33, 0.15), transparent 24%),
    linear-gradient(180deg, #fffaf6 0%, #f7eee7 100%);
  padding: clamp(82px, 9vw, 126px) 0 clamp(68px, 8vw, 110px);
}

.portal-workspace-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 34px;
}

.portal-workspace-head h1 {
  margin: 0;
  max-width: 10ch;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(3.8rem, 7vw, 7.8rem);
  line-height: 0.86;
}

.portal-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.portal-subnav a,
.portal-subnav button {
  min-height: 44px;
  border: 1px solid rgba(20, 9, 9, 0.12);
  border-radius: 999px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
}

.portal-subnav .active,
.portal-subnav a:hover,
.portal-subnav button:hover {
  background: var(--ink);
  color: var(--white);
}

.portal-tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 22px;
  align-items: start;
}

.portal-tool-layout.wide-left {
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
}

.portal-tool-card {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(20, 9, 9, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 20px 64px rgba(20, 9, 9, 0.09);
}

.portal-card-heading {
  margin-bottom: 20px;
}

.portal-card-heading h2,
.portal-records-head h2 {
  margin: 4px 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 3.6vw, 3.6rem);
  line-height: 0.95;
}

.portal-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.portal-form-grid label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 850;
}

.portal-field-hidden {
  display: none !important;
}

.portal-form-grid .full {
  grid-column: 1 / -1;
}

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

.component-score-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.72fr) minmax(86px, 0.42fr);
  gap: 14px;
}

.component-score-grid label,
.questions-left {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 850;
}

.questions-left {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

.questions-left input {
  min-height: 46px;
  padding-inline: 12px;
  font-size: 0.92rem;
}

.portal-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
}

.whatsapp-send-icon {
  width: 54px;
  min-width: 54px;
  height: 54px;
  padding: 0 !important;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
}

.whatsapp-send-icon svg {
  width: 31px;
  height: 31px;
  display: block;
  filter: drop-shadow(0 8px 14px rgba(20, 9, 9, 0.18));
}

.mock-score-sections {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.mock-score-section {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(20, 9, 9, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(224, 24, 33, 0.055), rgba(255, 255, 255, 0.82)),
    rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.mock-score-section legend {
  padding: 0 10px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mock-live-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.mock-live-summary div {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(224, 24, 33, 0.14);
  border-radius: 8px;
  background: rgba(255, 250, 246, 0.86);
}

.mock-live-summary span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mock-live-summary strong {
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.7rem, 2.5vw, 2.5rem);
  line-height: 0.95;
}

.mock-live-summary small {
  color: var(--red);
  font-size: 1rem;
  font-weight: 950;
}

.fee-summary {
  display: grid;
  gap: 12px;
  margin: 0;
}

.fee-summary div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(20, 9, 9, 0.09);
}

.fee-summary dt {
  color: var(--muted);
  font-weight: 800;
}

.fee-summary dd {
  margin: 0;
  color: var(--ink);
  font-weight: 950;
}

.amount-to-pay {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding: 18px;
  border: 2px solid rgba(224, 24, 33, 0.22);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(224, 24, 33, 0.1), rgba(255, 255, 255, 0.82));
}

.amount-to-pay span {
  color: var(--muted);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.amount-to-pay strong {
  color: var(--red);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 0.92;
}

.portal-message-label {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  color: var(--ink);
  font-weight: 900;
}

.portal-message-label textarea {
  min-height: 210px;
  background: rgba(255, 255, 255, 0.74);
  line-height: 1.5;
}

.portal-records {
  margin-top: 24px;
}

.portal-records-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 20px;
}

.table-scroll {
  overflow-x: auto;
}

.portal-table {
  width: 100%;
  min-width: 1320px;
  border-collapse: collapse;
  color: var(--ink);
}

.mock-record-table {
  min-width: 0;
  table-layout: fixed;
}

.portal-table th,
.portal-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(20, 9, 9, 0.1);
  text-align: left;
  vertical-align: top;
}

.portal-table th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mock-record-table th,
.mock-record-table td {
  padding: 12px 9px;
}

.mock-record-table th:nth-child(1),
.mock-record-table td:nth-child(1) {
  width: 78px;
}

.mock-record-table th:nth-child(2),
.mock-record-table td:nth-child(2) {
  width: 112px;
}

.mock-record-table th:nth-child(6),
.mock-record-table td:nth-child(6) {
  width: 132px;
}

.mock-student-cell {
  display: grid;
  gap: 8px;
  align-items: start;
}

.mock-share-btn {
  justify-self: start;
  min-height: 26px;
  padding: 4px 9px;
  font-size: 0.7rem;
}

.portal-table tr[data-record-index] {
  cursor: pointer;
}

.portal-table tr[data-record-index]:hover {
  background: rgba(224, 24, 33, 0.06);
}

.payment-status,
.mini-action-btn {
  display: inline-grid;
  place-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 950;
  white-space: nowrap;
}

.payment-status.paid {
  background: rgba(27, 166, 75, 0.13);
  color: #159345;
}

.payment-status.unpaid {
  background: rgba(224, 24, 33, 0.1);
  color: var(--red);
}

.payment-detail-list,
.fee-action-stack {
  display: grid;
  gap: 6px;
}

.payment-detail-list {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.payment-detail-list strong {
  color: var(--ink);
}

.fee-action-stack {
  justify-items: start;
}

.fee-more-actions {
  position: relative;
}

.fee-more-actions summary {
  display: inline-grid;
  place-items: center;
  width: 34px;
  min-height: 30px;
  border: 1px solid rgba(20, 9, 9, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 950;
  list-style: none;
}

.fee-more-actions summary::-webkit-details-marker {
  display: none;
}

.fee-more-actions[open] summary {
  border-color: rgba(224, 24, 33, 0.32);
  color: var(--red);
}

.fee-more-actions .mini-action-btn {
  margin-top: 6px;
  background: var(--white);
  color: var(--ink);
}

.mini-action-btn {
  border: 1px solid rgba(20, 9, 9, 0.16);
  background: var(--ink);
  color: var(--white);
  cursor: pointer;
}

.mini-action-btn:hover {
  background: var(--red);
  border-color: var(--red);
}

.empty-row {
  color: var(--muted);
  font-weight: 750;
}

.mock-chart {
  width: 100%;
  height: auto;
  min-height: 260px;
  border: 1px solid rgba(20, 9, 9, 0.1);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #fff8f3);
}

.mock-insight-panel {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(224, 24, 33, 0.14);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(224, 24, 33, 0.07), rgba(255, 255, 255, 0.9));
}

.mock-strength-grid h3 {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mock-component-circles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mock-score-circle {
  --score: 0%;
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, #fffaf6 0 58%, transparent 59%),
    conic-gradient(var(--red) var(--score), #eaded7 0);
  box-shadow: inset 0 0 0 1px rgba(20, 9, 9, 0.08);
  min-width: 0;
}

.mock-score-circle span {
  position: absolute;
  top: 34%;
  left: 50%;
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.22rem, 1.9vw, 1.85rem);
  font-weight: 950;
  line-height: 0.9;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.mock-score-circle em {
  position: absolute;
  top: 52%;
  left: 50%;
  color: var(--muted);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.mock-score-circle small {
  position: absolute;
  top: 68%;
  left: 50%;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.035em;
  line-height: 1;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.mock-strength-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mock-strength-grid > div {
  padding: 14px;
  border: 1px solid rgba(20, 9, 9, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.mock-strength-grid ul {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
}

.mock-comparison-chart {
  margin-bottom: 20px;
}

.left-badge {
  display: inline-grid;
  place-items: center;
  min-height: 24px;
  margin-left: 6px;
  padding: 3px 8px;
  border: 1px solid rgba(224, 24, 33, 0.16);
  border-radius: 5px;
  background: rgba(224, 24, 33, 0.1);
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.left-badge.muted {
  border-color: rgba(20, 9, 9, 0.08);
  background: rgba(20, 9, 9, 0.055);
  color: var(--muted);
}

.mock-major-score {
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.38rem;
  font-weight: 950;
  line-height: 1;
}

.mock-subscore-list {
  display: grid;
  gap: 5px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.mock-subscore-list span {
  display: block;
}

.mock-total-percent {
  margin-top: 5px;
  font-size: 1rem;
  font-weight: 950;
}

.mock-major-score.is-passing,
.mock-total-percent.is-passing {
  color: #1ba64b;
}

.mock-major-score.is-under,
.mock-total-percent.is-under {
  color: var(--red);
}

.score-total {
  color: #1ba64b;
  font-weight: 950;
}

.pass-criteria-panel {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid rgba(20, 9, 9, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 246, 0.82);
}

.pass-criteria-panel summary {
  color: var(--ink);
  cursor: pointer;
  font-weight: 950;
}

.pass-criteria-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.pass-criteria-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pass-criteria-grid input {
  min-height: 44px;
  padding-inline: 12px;
  font-size: 0.94rem;
}

.pass-criteria-note {
  margin: 14px 0 0;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.55;
}

.mock-compare-panel {
  width: min(100%, 620px);
  margin-top: 24px;
  margin-left: auto;
}

.mock-compare-list {
  display: grid;
  gap: 10px;
  max-height: 340px;
  overflow: auto;
  padding-right: 6px;
}

.mock-compare-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(20, 9, 9, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 246, 0.82);
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.mock-compare-option:hover {
  border-color: rgba(224, 24, 33, 0.28);
  box-shadow: 0 12px 28px rgba(20, 9, 9, 0.08);
  transform: translateY(-1px);
}

.mock-compare-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
}

.mock-compare-option span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.mock-compare-option strong,
.mock-compare-option small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-compare-option small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.mock-compare-option em {
  color: var(--red);
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.mock-compare-empty {
  padding: 14px;
  border: 1px dashed rgba(20, 9, 9, 0.18);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
}

.mock-compare-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
}

.mock-compare-actions span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 950;
}

.scheduler-layout {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
}

.scheduler-ai-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 242, 0.9)),
    radial-gradient(circle at 92% 8%, rgba(224, 24, 33, 0.16), transparent 32%);
}

.scheduler-ai-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 38%, rgba(224, 24, 33, 0.08) 48%, transparent 58% 100%);
  transform: translateX(-18%);
  animation: scheduler-ai-sheen 6s ease-in-out infinite;
}

.scheduler-ai-card > * {
  position: relative;
  z-index: 1;
}

.scheduler-ai-badge {
  display: inline-grid;
  min-height: 34px;
  place-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(20, 9, 9, 0.92);
  color: var(--white);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scheduler-ai-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 18px;
  margin-top: 18px;
}

.scheduler-ai-prompt {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}

.scheduler-ai-prompt textarea {
  width: 100%;
  min-height: 170px;
  resize: vertical;
  border: 1px solid rgba(20, 9, 9, 0.12);
  border-radius: 8px;
  padding: 15px 16px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  line-height: 1.5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.scheduler-ai-prompt textarea:focus {
  border-color: rgba(224, 24, 33, 0.5);
  outline: 3px solid rgba(224, 24, 33, 0.12);
}

.scheduler-ai-response {
  position: relative;
  display: grid;
  gap: 8px;
  margin-top: 14px;
  border: 1px solid rgba(224, 24, 33, 0.14);
  border-radius: 8px;
  padding: 15px 16px 15px 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 242, 0.9));
  box-shadow: 0 14px 32px rgba(20, 9, 9, 0.07);
}

.scheduler-ai-response::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 999px;
  background: var(--red);
}

.scheduler-ai-response span {
  color: var(--red);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.scheduler-ai-response p {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.45;
}

.scheduler-ai-panel {
  display: grid;
  gap: 14px;
}

.scheduler-ai-plan-card,
.scheduler-ai-complete {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(20, 9, 9, 0.1);
  border-radius: 8px;
  padding: 16px;
  background: rgba(20, 9, 9, 0.94);
  color: var(--white);
  box-shadow: 0 18px 36px rgba(20, 9, 9, 0.16);
}

.scheduler-ai-plan-card span,
.scheduler-ai-complete span,
.ai-suggestion-meta span {
  color: var(--red);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scheduler-ai-plan-card strong,
.scheduler-ai-complete strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  line-height: 0.98;
}

.scheduler-ai-plan-card p,
.scheduler-ai-complete p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
  line-height: 1.45;
}

.scheduler-ai-suggestions {
  display: grid;
  gap: 12px;
}

.scheduler-ai-option-group {
  display: grid;
  gap: 12px;
}

.scheduler-ai-option-group h3 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 950;
}

.scheduler-ai-options-list {
  display: grid;
  gap: 12px;
}

.ai-suggestion {
  animation: scheduler-suggestion-rise 0.5s ease both;
}

.ai-suggestion-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-suggestion-meta span {
  display: inline-grid;
  min-height: 25px;
  place-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(20, 9, 9, 0.07);
  color: var(--ink);
}

.ai-next-button {
  justify-self: start;
}

.scheduler-rule-builder {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 18px;
}

.scheduler-rule-builder > div,
.scheduler-suggestion-card,
.scheduler-tutor-rule-card {
  border: 1px solid rgba(20, 9, 9, 0.1);
  border-radius: 8px;
  background: rgba(255, 250, 246, 0.82);
}

.scheduler-rule-builder > div {
  padding: 16px;
}

.scheduler-rule-builder h3,
.scheduler-tutor-rule-card h3,
.scheduler-day-column h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scheduler-mini-form {
  display: grid;
  grid-template-columns: 1fr 0.78fr 0.78fr auto;
  gap: 8px;
}

.scheduler-preference-form {
  grid-template-columns: 1fr 1fr 0.72fr 0.72fr auto;
}

.scheduler-preference-form[data-avoid-mode="day"] {
  grid-template-columns: 1fr 1fr auto;
}

.scheduler-preference-form[data-avoid-mode="before"],
.scheduler-preference-form[data-avoid-mode="after"] {
  grid-template-columns: 1fr 1fr 0.72fr auto;
}

.scheduler-mini-form select,
.scheduler-mini-form input {
  min-height: 42px;
  padding: 8px 10px;
  font-size: 0.9rem;
}

.scheduler-helper-text {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.45;
}

.scheduler-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.scheduler-chip,
.scheduler-muted-chip {
  min-height: 30px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.76rem;
  font-weight: 900;
}

.scheduler-chip {
  border: 1px solid rgba(224, 24, 33, 0.16);
  background: rgba(224, 24, 33, 0.09);
  color: var(--red);
  cursor: pointer;
}

.scheduler-chip span {
  margin-left: 4px;
  color: var(--ink);
}

.scheduler-muted-chip {
  display: inline-grid;
  place-items: center;
  background: rgba(20, 9, 9, 0.055);
  color: var(--muted);
}

.scheduler-suggestions {
  display: grid;
  gap: 12px;
}

.scheduler-suggestion-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  box-shadow: 0 14px 30px rgba(20, 9, 9, 0.07);
}

.scheduler-suggestion-card.is-warning {
  border-color: rgba(224, 24, 33, 0.34);
  background:
    linear-gradient(135deg, rgba(224, 24, 33, 0.12), rgba(255, 250, 246, 0.92));
}

.scheduler-suggestion-card > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
}

.scheduler-suggestion-card span {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scheduler-suggestion-card strong {
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.55rem;
  line-height: 1;
}

.scheduler-suggestion-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.45;
}

.scheduler-suggestion-card.is-warning p {
  color: #8a1015;
}

.scheduler-warning-label {
  justify-self: start;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scheduler-suggestion-actions {
  display: flex;
  gap: 9px;
  align-items: center;
}

.mini-action-btn.ghost {
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
}

.empty-suggestion {
  padding: 18px;
  border: 1px dashed rgba(20, 9, 9, 0.16);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 850;
  line-height: 1.45;
}

.scheduler-rules-card,
.scheduler-calendar-card,
.scheduler-batch-card {
  margin-top: 24px;
}

.scheduler-batch-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
  align-items: end;
}

.scheduler-batch-form input[type="color"] {
  min-height: 52px;
  padding: 6px;
}

.scheduler-batch-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.scheduler-batch-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(20, 9, 9, 0.1);
  border-left: 7px solid var(--batch-colour, var(--red));
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 250, 246, 0.82));
  box-shadow: 0 14px 30px rgba(20, 9, 9, 0.07);
}

.scheduler-batch-item > div {
  display: grid;
  gap: 4px;
}

.scheduler-batch-item span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--batch-colour, var(--red));
  box-shadow: 0 0 0 5px rgba(224, 24, 33, 0.1);
}

.scheduler-batch-item strong {
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1;
}

.scheduler-batch-item small {
  color: var(--muted);
  font-weight: 850;
}

.scheduler-rules-card summary {
  cursor: pointer;
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 900;
  line-height: 1;
}

.scheduler-rules-form {
  margin-top: 22px;
}

.scheduler-rule-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.scheduler-rule-summary label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 850;
}

.scheduler-tutor-rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.scheduler-tutor-rule-card {
  padding: 16px;
}

.scheduler-day-rule-head,
.scheduler-day-rule {
  display: grid;
  grid-template-columns: 52px 58px 1fr 1fr;
  gap: 8px;
  align-items: center;
}

.scheduler-day-rule-head {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scheduler-day-rule {
  margin-top: 8px;
}

.scheduler-day-rule > span {
  color: var(--ink);
  font-weight: 950;
}

.scheduler-day-rule input[type="time"] {
  min-height: 40px;
  padding-inline: 8px;
  font-size: 0.86rem;
}

.scheduler-day-rule input[type="checkbox"] {
  min-height: 22px;
  width: 22px;
  accent-color: var(--red);
}

.scheduler-window-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(20, 9, 9, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.scheduler-calendar-frame {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  gap: 16px;
  margin-top: 10px;
}

.scheduler-batch-key {
  position: sticky;
  top: 96px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border: 1px solid rgba(20, 9, 9, 0.1);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 30px rgba(20, 9, 9, 0.07);
}

.scheduler-batch-key-title {
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scheduler-batch-key-empty,
.scheduler-batch-key-one,
.scheduler-batch-key-item {
  display: grid;
  gap: 2px;
  min-height: 34px;
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1.2;
}

.scheduler-batch-key-empty {
  color: var(--muted);
  font-weight: 850;
}

.scheduler-batch-key-one {
  border-left: 7px solid var(--ink);
  background: rgba(20, 9, 9, 0.07);
}

.scheduler-batch-key-item {
  border-left: 7px solid var(--batch-colour, var(--red));
  background: color-mix(in srgb, var(--batch-colour, var(--red)) 10%, white);
}

.scheduler-batch-key-item small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
}

.calendar-year-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 48px;
  height: 84px;
  place-items: center;
  border: 1px solid rgba(20, 9, 9, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 18px 36px rgba(20, 9, 9, 0.14);
  cursor: pointer;
  transform: translateY(-50%);
}

.calendar-year-arrow[hidden] {
  display: none;
}

.calendar-year-arrow-left {
  left: -24px;
}

.calendar-year-arrow-right {
  right: -24px;
}

.calendar-year-arrow:hover {
  background: var(--red);
  color: var(--white);
}

.calendar-year-arrow.is-disabled,
.calendar-year-arrow:disabled {
  opacity: 0.32;
  cursor: not-allowed;
  pointer-events: none;
}

.scheduler-calendar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  overflow: visible;
  padding-bottom: 8px;
}

.scheduler-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid rgba(20, 9, 9, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.scheduler-filter-label select {
  min-height: 34px;
  border: 0;
  padding: 0 28px 0 4px;
  background-color: transparent;
  font-size: 0.9rem;
  text-transform: none;
}

.scheduler-month {
  padding: 16px;
  border: 1px solid rgba(20, 9, 9, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 250, 246, 0.76));
}

.scheduler-month h3 {
  margin: 0 0 14px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  line-height: 1;
}

.scheduler-month-weekdays,
.scheduler-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.scheduler-month-weekdays {
  margin-bottom: 8px;
}

.scheduler-month-weekdays span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scheduler-date-cell {
  min-height: 128px;
  padding: 10px;
  border: 1px solid rgba(20, 9, 9, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.scheduler-date-cell.is-empty {
  border-color: transparent;
  background: transparent;
}

.scheduler-date-cell.is-today {
  border-color: rgba(224, 24, 33, 0.42);
  box-shadow: inset 0 0 0 1px rgba(224, 24, 33, 0.18), 0 12px 28px rgba(224, 24, 33, 0.08);
}

.scheduler-date-number {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1;
}

.scheduler-calendar-lesson {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 11px;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--ink), #3b1414);
  box-shadow: 0 12px 24px rgba(20, 9, 9, 0.12);
}

.scheduler-calendar-lesson.has-batch {
  background: linear-gradient(135deg, var(--batch-colour, var(--red)), #180808);
  box-shadow:
    inset 5px 0 0 var(--batch-colour, var(--red)),
    0 12px 24px rgba(20, 9, 9, 0.12);
}

.scheduler-calendar-lesson.tutor-mehul {
  background: linear-gradient(135deg, var(--ink), #3b1414);
}

.scheduler-calendar-lesson.tutor-mehul.has-batch {
  background: linear-gradient(135deg, var(--batch-colour, var(--red)), #180808);
}

.scheduler-calendar-lesson strong {
  font-size: 0.85rem;
  font-weight: 950;
}

.scheduler-calendar-lesson span {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1;
}

.scheduler-calendar-lesson small {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
}

.scheduler-record-table {
  min-width: 980px;
}

.scheduler-batch-chip {
  display: inline-grid;
  min-height: 26px;
  place-items: center;
  justify-self: start;
  border: 1px solid rgba(20, 9, 9, 0.08);
  border-left: 6px solid var(--batch-colour, var(--red));
  border-radius: 999px;
  padding: 4px 10px 4px 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 950;
}

.scheduler-suggestion-card .scheduler-batch-chip {
  color: var(--ink);
  font-size: 0.76rem;
  letter-spacing: 0;
  text-transform: none;
}

.scheduler-record-table small {
  color: var(--muted);
  font-weight: 800;
}

.portal-status.visible {
  display: block;
  margin-top: 12px;
  color: var(--red);
  font-weight: 850;
}

@keyframes portal-lines {
  0% { transform: translateX(-2%) translateY(0); }
  100% { transform: translateX(2%) translateY(-2%); }
}

@keyframes scheduler-ai-sheen {
  0%, 45% { transform: translateX(-26%); opacity: 0.28; }
  70% { transform: translateX(24%); opacity: 0.55; }
  100% { transform: translateX(28%); opacity: 0; }
}

@keyframes scheduler-suggestion-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .review-title,
  .modal-title-row {
    display: grid;
    align-items: start;
  }

  .google-all-grid {
    grid-template-columns: 1fr;
  }

  .portal-section {
    background:
      radial-gradient(circle at 84% 12%, rgba(224, 24, 33, 0.22), transparent 30%),
      linear-gradient(180deg, #080707 0%, #170506 48%, #fffaf6 48.2%, #fffaf6 100%);
  }

  .portal-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .portal-story h1 {
    max-width: 9ch;
  }

  .portal-workspace-head,
  .portal-records-head {
    display: grid;
    align-items: start;
  }

  .portal-subnav {
    justify-content: flex-start;
  }

  .portal-tool-layout,
  .portal-tool-layout.wide-left,
  .scheduler-layout,
  .scheduler-ai-grid,
  .scheduler-batch-form,
  .scheduler-batch-list {
    grid-template-columns: 1fr;
  }

  .scheduler-calendar-frame {
    grid-template-columns: 1fr;
  }

  .scheduler-batch-key {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .mock-compare-panel {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .portal-form-grid,
  .portal-form-grid.compact,
  .component-score-grid,
  .pass-criteria-grid,
  .scheduler-rule-builder,
  .scheduler-rule-summary,
  .scheduler-tutor-rules,
  .mock-live-summary {
    grid-template-columns: 1fr;
  }

  .scheduler-mini-form {
    grid-template-columns: 1fr 1fr;
  }

  .mock-compare-actions {
    display: grid;
    justify-items: start;
  }

  .scheduler-calendar {
    overflow-x: auto;
  }

  .calendar-year-arrow {
    width: 40px;
    height: 64px;
    font-size: 2rem;
  }

  .calendar-year-arrow-left {
    left: -10px;
  }

  .calendar-year-arrow-right {
    right: -10px;
  }

  .scheduler-month {
    min-width: 760px;
  }

  .portal-workspace-head h1 {
    max-width: 9ch;
  }
}
