/* ============ FONTS ============ */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@600;700;800&family=Fraunces:ital,wght@0,600;1,400;1,600;1,700&family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&family=Instrument+Serif:ital@0;1&display=swap");

/* ============ RESET ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family:
    "Manrope",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  background-color: #ffffff;
  color: #141414;
  line-height: 1.5;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}
::selection {
  background: #f97316;
  color: #fff;
}

/* ============ UTILITIES ============ */
.font-serif-italic {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 400;
  color: #f97316
}
.font-mono {
  font-family: "JetBrains Mono", monospace;
}
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 768px) {
  .container {
    padding: 0 3rem;
  }
}
.section-pad {
  padding: 6rem 0;
}
@media (min-width: 768px) {
  .section-pad {
    padding: 5rem 0;
  }
}

.grid-bg {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.highlight-box {
  background-color: #f97316;
  color: #fff;
  padding: 0.05em 0.25em;
  display: inline-block;
  line-height: 0.85;
}
.section-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 22px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #f97316;
  margin-bottom: 2rem;
}

.meta-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #000000;
}
.big-number {
  font-family: "JetBrains Mono", monospace;
  font-size: 16px;
  color: #f97316;
  font-weight: 500;
  letter-spacing: 0.1em;
}
.orange-dot {
  background: radial-gradient(
    circle,
    rgba(249, 115, 22, 0.4) 0%,
    transparent 70%
  );
}
.gradient-dot {
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.3) 0%,
    transparent 70%
  );
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s;
}
.btn-primary {
  background: #f97316;
  color: #fff;
}
.btn-primary:hover {
  background: #ea580c;
}
.btn-dark {
  background: #0f172a;
  color: #fff;
}
.btn-dark:hover {
  background: #000;
}
.btn-outline {
  background: transparent;
  border: 1px solid rgba(15, 23, 42, 0.3);
  color: #0f172a;
}
.btn-outline:hover {
  border-color: #0f172a;
}
.btn .arrow {
  transition: transform 0.2s;
}
.btn:hover .arrow {
  transform: translate(2px, -2px);
}

/* Link underline animation */
.link-underline {
  position: relative;
  display: inline-block;
}
.link-underline::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: #fff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.link-underline:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
  position: relative;
}
.nav-logo img {
  height: 2.5rem;
}
@media (min-width: 768px) {
  .nav-logo img {
    height: 2.75rem;
  }
}
.nav-links {
  display: none;
  gap: 2.5rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}
.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: #0f172a;
}
.nav-cta {
  display: none;
}
@media (min-width: 768px) {
  .nav-cta {
    display: inline-flex;
  }
}
.mobile-toggle {
  display: block;
  padding: 0.5rem;
}
@media (min-width: 768px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #fff;
  padding-top: 6rem;
  overflow-y: auto;
}
.mobile-menu.open {
  display: block;
}
.mobile-menu-links {
  display: flex;
  flex-direction: column;
}
.mobile-menu-links a {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  /* min-height: 100vh; */
  background: #fff;
  padding-top: 8rem;
  padding-bottom: 4rem;
  overflow: hidden;
}
.hero-bg-orange {
  position: absolute;
  top: 5rem;
  right: 5rem;
  width: 12rem;
  height: 12rem;
  border-radius: 999px;
  filter: blur(48px);
  opacity: 0.5;
}
.hero-bg-violet {
  position: absolute;
  top: 33%;
  right: 2.5rem;
  width: 6rem;
  height: 6rem;
  border-radius: 999px;
  filter: blur(16px);
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
}
.hero-meta .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #f97316;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: end;
}
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
  }
}
.hero-title {
  font-size: clamp(3.5rem, 8vw, 8.5rem);
  /* line-height: 0.9; */
  letter-spacing: -0.04em;
  color: #0f172a;
  margin-bottom: 2rem;
}
.hero-emblem {
  display: flex;
  justify-content: flex-start;
}
@media (min-width: 1024px) {
  .hero-emblem {
    justify-content: flex-end;
  }
}
.emblem-circle {
  position: relative;
  width: 13rem;
  height: 13rem;
  border-radius: 999px;
  background: #f97316;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 3rem;
  font-weight: 700;
}
.emblem-ring {
  position: absolute;
  inset: 0;
  animation: slow-spin 30s linear infinite;
}
@keyframes slow-spin {
  to {
    transform: rotate(360deg);
  }
}
.hero-bottom {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}
@media (min-width: 1024px) {
  .hero-bottom {
    grid-template-columns: 7fr 5fr;
    gap: 4rem;
  }
}
.hero-desc {
  font-size: 1.125rem;
  color: #334155;
  max-width: 42rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}
@media (min-width: 768px) {
  .hero-desc {
    font-size: 1.25rem;
  }
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
@media (min-width: 1024px) {
  .stats {
    margin-top: 0;
    gap: 2rem;
  }
}
.stat {
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  padding-top: 1rem;
}
.stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}
@media (min-width: 768px) {
  .stat-num {
    font-size: 2.25rem;
  }
}
.stat-label {
  font-size: 0.75rem;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}
@media (min-width: 768px) {
  .stat-label {
    font-size: 0.875rem;
  }
}

/* ============ MARQUEE ============ */
.marquee {
  background: linear-gradient(to bottom right, #f5f3ff, #ede9fe);
  padding: 2rem 0;
  overflow: hidden;
  border-top: 1px solid #e9d5ff;
  border-bottom: 1px solid #e9d5ff;
}
@media (min-width: 768px) {
  .marquee {
    padding: 2.5rem 0;
  }
}
.marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  margin: 0 2rem;
}
.marquee-item span {
  font-size: 1.5rem;
  font-weight: 700;
  color: #4c1d95;
  letter-spacing: -0.02em;
}
@media (min-width: 768px) {
  .marquee-item span {
    font-size: 1.875rem;
  }
}
.marquee-star {
  color: #f97316;
}

/* ============ ABOUT ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: 5fr 7fr;
    gap: 4rem;
  }
}
.about-title {
  font-size: 2.25rem;
  color: #0f172a;
  margin-bottom: 2rem;
  line-height: 0.95;
}
@media (min-width: 768px) {
  .about-title {
    font-size: 3rem;
  }
}
@media (min-width: 1024px) {
  .about-title {
    font-size: 3.75rem;
  }
}
.about-desc {
  font-size: 1rem;
  color: #334155;
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 28rem;
}
@media (min-width: 768px) {
  .about-desc {
    font-size: 1.125rem;
  }
}
.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}
.pillar {
  background: #f8fafc;
  padding: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  transition: border-color 0.3s;
}
@media (min-width: 768px) {
  .pillar {
    padding: 2rem;
  }
}
.pillar:hover {
  border-top-color: #f97316;
}
.pillar-num {
  margin-bottom: 2rem;
}
.pillar h3 {
  font-size: 1.25rem;
  color: #0f172a;
  margin-bottom: 1rem;
}
@media (min-width: 768px) {
  .pillar h3 {
    font-size: 1.5rem;
  }
}
.pillar p {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
}
@media (min-width: 768px) {
  .pillar p {
    font-size: 1rem;
  }
}

/* ============ SERVICES / FEATURES GRID ============ */
.services-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}
@media (min-width: 1024px) {
  .services-head {
    grid-template-columns: 8fr 4fr;
    margin-bottom: 6rem;
  }
}
.services-title {
  font-size: 2.25rem;
  color: #0f172a;
  line-height: 0.95;
}
@media (min-width: 768px) {
  .services-title {
    font-size: 3rem;
  }
}
@media (min-width: 1024px) {
  .services-title {
    font-size: 3.75rem;
  }
}
.services-sub {
  color: #64748b;
  font-size: 1.125rem;
  align-self: end;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.service-card {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
@media (min-width: 768px) {
  .service-card:nth-child(odd) {
    border-right: 1px solid rgba(0, 0, 0, 0.1);
  }
}
.service-inner {
  display: block;
  padding: 2rem;
  transition: background 0.2s;
}
@media (min-width: 768px) {
  .service-inner {
    padding: 3rem;
  }
}
.service-inner:hover {
  background: #f8fafc;
}
.service-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}
.service-icon-circle {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid #f97316;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f97316;
  transition: all 0.2s;
}
.service-inner:hover .service-icon-circle {
  background: #f97316;
  color: #fff;
}
.service-title {
  font-size: 1.5rem;
  color: #0f172a;
  margin-bottom: 1rem;
  line-height: 1.1;
  transition: color 0.2s;
}
@media (min-width: 768px) {
  .service-title {
    font-size: 1.875rem;
  }
}
.service-inner:hover .service-title {
  color: #ea580c;
}
.service-desc {
  color: #64748b;
  margin-bottom: 1.5rem;
  max-width: 32rem;
}

/* Feature grid used on capability pages (3-col) */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.feature {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
@media (min-width: 768px) {
  .feature {
    padding: 2rem;
  }
  .feature:nth-child(odd) {
    border-right: 1px solid rgba(0, 0, 0, 0.1);
  }
}
@media (min-width: 1024px) {
  .feature:nth-child(odd) {
    border-right: none;
  }
  .feature:not(:nth-child(3n)) {
    border-right: 1px solid rgba(0, 0, 0, 0.1);
  }
}
.feature-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.feature-icon {
  width: 1rem;
  height: 1rem;
  color: #f97316;
}
.feature h3 {
  font-size: 1.125rem;
  color: #0f172a;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
@media (min-width: 768px) {
  .feature h3 {
    font-size: 1.25rem;
  }
}
.feature p {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
}

/* Process grid (4-col) */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
@media (min-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.step {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
}
@media (min-width: 768px) {
  .step {
    padding: 2rem;
  }
  .step:nth-child(odd) {
    border-right: 1px solid rgba(0, 0, 0, 0.1);
  }
}
@media (min-width: 1024px) {
  .step:nth-child(odd) {
    border-right: none;
  }
  .step:not(:last-child) {
    border-right: 1px solid rgba(0, 0, 0, 0.1);
  }
}
.step-num {
  margin-bottom: 1.5rem;
}
.step h3 {
  font-size: 1.25rem;
  color: #0f172a;
  margin-bottom: 0.75rem;
}
.step p {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
}

/* ============ CONTACT ============ */
.contact-section {
  background: #fff;
}
.contact-headline {
  font-size: clamp(3rem, 7vw, 6rem);
  color: #0f172a;
  line-height: 0.9;
  letter-spacing: -0.03em;
  max-width: 80rem;
  margin-bottom: 4rem;
}
@media (min-width: 768px) {
  .contact-headline {
    margin-bottom: 6rem;
  }
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 5fr 7fr;
    gap: 4rem;
  }
}
.contact-info-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}
.contact-info-item .value {
  font-size: 1.125rem;
  color: #0f172a;
  font-weight: 500;
}
.contact-form {
  background: #f8fafc;
  padding: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
}
@media (min-width: 768px) {
  .contact-form {
    padding: 2.5rem;
  }
}
.contact-form h3 {
  font-size: 1.5rem;
  color: #0f172a;
  margin-bottom: 1.5rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 768px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #cbd5e1;
  background: transparent;
  padding: 0.5rem 0;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: #f97316;
}
.form-group textarea {
  resize: none;
}
.form-status {
  min-height: 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}
.form-status[data-kind="success"] {
  color: #059669;
}
.form-status[data-kind="error"] {
  color: #dc2626;
}

/* ============ FOOTER ============ */
.footer {
  background: #0f0f0fba;
  color: #4c1d95;
  padding: 4rem 0 0;
}
@media (min-width: 768px) {
  .footer {
    padding: 6rem 0 0;
  }
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}
@media (min-width: 1024px) {
  .footer-top {
    grid-template-columns: 6fr 6fr;
    gap: 4rem;
  }
}
.footer-headline {
  font-size: 2.25rem;
  line-height: 0.95;
  margin-bottom: 2rem;
  color: #ffffff;
}
@media (min-width: 768px) {
  .footer-headline {
    font-size: 3rem;
  }
}
@media (min-width: 1024px) {
  .footer-headline {
    font-size: 3.75rem;
  }
}
.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
@media (min-width: 640px) {
  .footer-links-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.footer-links-grid .col-title {
  color: #f97316;
  margin-bottom: 1.5rem;
}
.footer-links-grid ul {
  list-style: none;
}
.footer-links-grid li {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  color: #ffffff;
}
.footer-links-grid a {
  color: #eeeeee;
}
.footer-links-grid a:hover {
  color: #ffffff;
}
.footer-brand {
  border-top: 1px solid rgba(76, 29, 149, 0.2);
  padding-top: 2rem;
}
.footer-brand-text {
  font-size: 15vw;
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: #eeeeee;
  user-select: none;
}
@media (min-width: 768px) {
  .footer-brand-text {
    font-size: 12vw;
  }
}
.footer-bar {
  border-top: 1px solid rgba(76, 29, 149, 0.2);
  padding: 1.5rem 0;
  margin-top: 2rem;
}
.footer-bar-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 768px) {
  .footer-bar-inner {
    flex-direction: row;
  }
}
.back-to-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
}

/* ============ CAPABILITY PAGE ============ */
.page-hero {
  background: #fff;
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) {
  .page-hero {
    padding: 10rem 0 6rem;
  }
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  color: #475569;
  font-size: 0.875rem;
}
.back-link:hover {
  color: #0f172a;
}
.back-link .meta-label {
  color: inherit;
}
.page-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: flex-start;
}
@media (min-width: 1024px) {
  .page-hero-grid {
    grid-template-columns: 8fr 4fr;
    gap: 4rem;
  }
}
.page-hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.page-hero-meta .divider {
  height: 1px;
  flex: 1;
  max-width: 6rem;
  background: rgba(0, 0, 0, 0.1);
}
.page-hero-title {
  font-size: clamp(3rem, 7vw, 8rem);
  color: #0f172a;
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}
.page-hero-desc {
  font-size: 1.125rem;
  color: #334155;
  max-width: 42rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .page-hero-desc {
    font-size: 1.25rem;
  }
}
.page-hero-emblem {
  width: 10rem;
  height: 10rem;
  border-radius: 999px;
  background: #f97316;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}
@media (min-width: 768px) {
  .page-hero-emblem {
    width: 13rem;
    height: 13rem;
  }
}
.page-hero-emblem svg {
  width: 5rem;
  height: 5rem;
}
@media (min-width: 768px) {
  .page-hero-emblem svg {
    width: 6rem;
    height: 6rem;
  }
}

.page-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
@media (min-width: 768px) {
  .page-metrics {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 6rem;
  }
}
.page-metric-num {
  font-size: 2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}
@media (min-width: 768px) {
  .page-metric-num {
    font-size: 2.25rem;
  }
}
.page-metric-label {
  font-size: 0.75rem;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* CTA section on capability pages */
.cta-section {
  background: linear-gradient(to bottom right, #f5f3ff, #ede9fe);
}
.cta-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin-bottom: 2rem;
  max-width: 60rem;
}
.cta-desc {
  font-size: 1.125rem;
  color: #334155;
  max-width: 42rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}
.cta-italic {
  color: #ea580c;
}

/* Related capabilities */
.related-section {
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.related-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}
@media (min-width: 1024px) {
  .related-head {
    grid-template-columns: 6fr 5fr;
    gap: 4rem;
  }
}
.related-title {
  font-size: 2rem;
  color: #0f172a;
  line-height: 0.95;
}
@media (min-width: 768px) {
  .related-title {
    font-size: 2.5rem;
  }
}
@media (min-width: 1024px) {
  .related-title {
    font-size: 3rem;
  }
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
@media (min-width: 768px) {
  .related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.related-card {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
@media (min-width: 768px) {
  .related-card:not(:last-child) {
    border-right: 1px solid rgba(0, 0, 0, 0.1);
  }
}
.related-inner {
  display: block;
  padding: 2rem;
  transition: background 0.2s;
}
.related-inner:hover {
  background: #f8fafc;
}

/* ============ ABOUT SECTION (adapted from React SPA) ============ */
.font-display {
  font-family: "Outfit", sans-serif;
  letter-spacing: -0.025em;
}
.font-italic-serif {
  font-family: "Instrument Serif", serif;
  color: #f97316;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.font-mono-ui {
  font-family: "JetBrains Mono", monospace;
}

/* Section header style */
.section-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.section-header .overline {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #f97316;
}
.section-header .title {
  font-family: "Outfit", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: #0f172a;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.section-header .description {
  color: #64748b;
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 42rem;
}

/* Pillars grid (3 columns) - Dark theme */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (min-width: 768px) {
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.pillar-card {
  background: #1a1a1a;
  border: 1px solid #383838;
  border-top: 3px solid transparent;
  padding: 1.5rem;
  transition:
    border-color 0.3s,
    transform 0.2s;
}
.pillar-card:hover {
  border-top-color: #f97316;
  transform: translateY(-2px);
}
.pillar-check {
  color: #f97316;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.pillar-title {
  font-family: "Outfit", sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #f7f3fa;
  margin-bottom: 0.5rem;
}
.pillar-desc {
  font-size: 0.875rem;
  color: #c7c7c7;
  line-height: 1.6;
}

/* Standards grid (3 cards) */
.standards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
@media (min-width: 768px) {
  .standards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.standard-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 2rem;
  min-height: 240px;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.standard-card:hover {
  border-color: #0f172a;
  transform: translateY(-2px);
}
.standard-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #f97316;
  margin-bottom: 1rem;
  font-weight: 900
}
.standard-title {
  font-family: "Outfit", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.standard-desc {
  color: #64748b;
  line-height: 1.6;
  font-size: 0.9375rem;
}

/* CTA section */
.about-cta {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: end;
}
@media (min-width: 1024px) {
  .about-cta {
    grid-template-columns: 8fr 4fr;
  }
}
.about-cta-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.about-cta-action {
  width: 100%;
  justify-content: center;
}
@media (min-width: 768px) {
  .about-cta-content {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }
  .about-cta-content .about-cta-title {
    flex: 1;
  }
  .about-cta-action {
    flex-shrink: 0;
    width: auto;
  }
}
.about-cta-title {
  font-family: "Outfit", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #0f172a;
  line-height: 1.1;
}
.about-cta-btn {
  justify-self: end;
}

/* ============ ABOUT SECTION - EXTENDED UTILITIES (match React SPA) ============ */

/* Animations */
@keyframes yel-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.rise-in {
  animation: yel-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.delay-1 {
  animation-delay: 0.08s;
}
.delay-2 {
  animation-delay: 0.16s;
}
.delay-3 {
  animation-delay: 0.24s;
}

/* Hero background & border */
.radial-lime {
  background:
    radial-gradient(
      1200px 500px at 85% -20%,
      rgba(249, 115, 22, 0.2),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at -10% 110%,
      rgba(139, 92, 246, 0.12),
      transparent 60%
    );
}
.border-yel-line {
  border-color: rgba(0, 0, 0, 0.1);
}
.border-yel-ink {
  border-color: #0f172a;
}

/* Text color tokens */
.text-yel-ink-2 {
  color: #525252;
}
.text-yel-inv-ink-2 {
  color: #c7c7c7;
}
.text-yel-accent-2 {
  color: #f97316;
}

/* Hero title - match React 92px max */
.title-hero {
  font-family: "Outfit", sans-serif;
  font-size: clamp(3.5rem, 8vw, 5.75rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 0.96;
  color: #0f172a;
}
@media (min-width: 1024px) {
  .title-hero {
    font-size: clamp(4.5rem, 10vw, 5.75rem);
  }
}

/* 12-column grid for Mission & IP Protection */
.about-grid-12 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .about-grid-12 {
    grid-template-columns: repeat(12, 1fr);
  }
}
.about-grid-12 > .col-left {
  grid-column: span 12;
}
.about-grid-12 > .col-right {
  grid-column: span 12;
}
@media (min-width: 1024px) {
  .about-grid-12 > .col-left {
    grid-column: span 5;
  }
  .about-grid-12 > .col-right {
    grid-column: span 7;
  }
}

/* Sharp card (Standards) */
.sharp-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 2rem;
  min-height: 240px;
  transition:
    border-color 220ms ease,
    transform 220ms ease;
}
.sharp-card:hover {
  border-color: #0f172a;
  transform: translateY(-2px);
}

/* Pill button (CTA) */
.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.005em;
  transition:
    background-color 220ms ease,
    color 220ms ease,
    transform 220ms ease;
}
.pill-btn:hover {
  transform: translateY(-1px);
}
.pill-primary {
  background: #0f172a;
  color: #fff;
}
.pill-primary:hover {
  background: #f97316;
  color: #fff;
}

/* IP Protection dark section adjustments */
.ip-section {
  background: #0f0f0fba;
}
.ip-section .section-header .overline {
  color: #f97316;
}
.ip-section .section-header .title {
  color: #fff;
}
.ip-section .pillars-grid {
  margin-top: 2.5rem;
}
.ip-section .pillar-card {
  background: #1a1a1a;
  border: 1px solid #383838;
}
.ip-section .pillar-title {
  color: #f7f3fa;
}
.ip-section .pillar-desc {
  color: #c7c7c7;
}
.ip-section .pillar-check {
  color: #f97316;
}

/* CTA 12-column grid at desktop */
@media (min-width: 1024px) {
  .about-cta .container > div[style*="grid-template-columns"] {
    grid-template-columns: repeat(12, 1fr);
  }
  .about-cta
    .container
    > div[style*="grid-template-columns"]
    > div:first-child {
    grid-column: span 8;
  }
  .about-cta .container > div[style*="grid-template-columns"] > div:last-child {
    grid-column: span 4;
  }
}

/* Border utilities */
.border-t-yel-ink {
  border-top: 1px solid #0f172a;
}
.border-t-yel-line {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* ============ CONTACT SECTION (from React Contact.jsx) ============ */

/* Contact form input styles */
.contact-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #0f172a;
  padding: 0.75rem 0;
  outline: none;
  color: #0f172a;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 200ms;
}
.contact-input:focus {
  border-color: #f97316;
}
.contact-select {
  width: 100%;
  background: #ffffff;
  border: none;
  border-bottom: 1px solid #0f172a;
  padding: 0.75rem 0;
  outline: none;
  color: #0f172a;
  /* font-family: inherit;  */
  font-size: 1rem;
  cursor: pointer;
  transition: border-color 200ms;
}
.contact-select:focus {
  border-color: #f97316;
}
.contact-textarea {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 1rem;
  outline: none;
  color: #0f172a;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  min-height: 120px;
}
.contact-textarea:focus {
  border-color: #0f172a;
}

/* Field label */
.field-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.625rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #525252;
  margin-bottom: 0.5rem;
  display: block;
}

/* Inline SVG icons (22px) */
.contact-icon {
  width: 22px;
  height: 22px;
  color: #f97316;
  flex-shrink: 0;
}

/* Text color tokens */
.text-yel-ink {
  color: #0f172a;
}
.text-yel-ink-2 {
  color: #525252;
}
.text-yel-accent-2 {
  color: #f97316;
}
.bg-yel-bg {
  background: #f2edf5;
}

/* Contact form grid - simple 2-col at tablet+ (md breakpoint) like React */
@media (min-width: 768px) {
  .contact-form-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  /* Name + Email = 1 col each */
  .contact-form-grid > label:nth-child(1),
  .contact-form-grid > label:nth-child(2) {
    grid-column: span 1;
  }
  /* Organization + Message = 2 cols each */
  .contact-form-grid > label:nth-child(3),
  .contact-form-grid > label:nth-child(6) {
    grid-column: span 2;
  }
  /* Service + Budget = 1 col each */
  .contact-form-grid > label:nth-child(4),
  .contact-form-grid > label:nth-child(5) {
    grid-column: span 1;
  }
  /* Submit button = 2 cols, right aligned */
  .contact-form-grid > div:last-child {
    grid-column: span 2;
    display: flex;
    justify-content: flex-end;
  }
}

/* Contact hero responsive padding */
.contact-hero {
  padding: 5rem 0;
}
@media (min-width: 768px) {
  .contact-hero {
    padding: 7rem 0;
  }
}

/* Contact hero container responsive horizontal padding */
.contact-hero .container {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
@media (min-width: 768px) {
  .contact-hero .container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

/* Contact hero description responsive font */
.contact-hero .text-yel-ink-2 {
  font-size: 1.125rem; /* text-lg */
}
@media (min-width: 768px) {
  .contact-hero .text-yel-ink-2 {
    font-size: 1.25rem; /* text-xl */
  }
}

/* Sidebar grid gap */
.contact-sidebar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

/* Sidebar grid at tablet+ (md breakpoint) */
@media (min-width: 768px) {
  .contact-sidebar-grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .contact-sidebar-grid > .col-left {
    grid-column: span 4;
  }
  .contact-sidebar-grid > .col-right {
    grid-column: span 8;
  }
}

/* Sidebar card content margins to match React */
.contact-sidebar .sharp-card:nth-child(2) .text-yel-ink {
  margin-top: 0.5rem; /* mt-2 */
  font-size: 0.9375rem; /* text-[15px] */
}
.contact-sidebar .sharp-card:nth-child(3) .text-yel-ink {
  margin-top: 0.75rem; /* mt-3 */
}

/* Ensure sidebar cards have consistent height */
.contact-sidebar .sharp-card {
  display: flex;
  flex-direction: column;
  min-height: 0%;
}

/* Link underline for phone - matches React's pb-1 */
.link-underline-phone {
  border-bottom: 1px solid #0f172a;
  padding-bottom: 0.25rem; /* pb-1 */
  transition:
    border-color 200ms,
    color 200ms;
}
.link-underline-phone:hover {
  border-color: #f97316;
  color: #f97316;
}

/* Field label - when wrapping input, ensure block display */
.field-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.625rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #525252;
  margin-bottom: 0.5rem;
  display: block;
}
.field-label > input,
.field-label > select,
.field-label > textarea {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
}

.fs {
  font-size: 22px !important;
}
.fs2 {
  font-size: 16px !important;
}

/* ============ RESPONSIVE WIDTH SAFEGUARDS ============ */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

section,
nav,
footer,
.container {
  width: 100%;
  max-width: 100%;
}

.container,
.hero-grid,
.hero-bottom,
.about-grid-12,
.services-head,
.services-grid,
.contact-sidebar-grid,
.footer-top,
.footer-links-grid {
  min-width: 0;
}

.hero-grid > *,
.hero-bottom > *,
.about-grid-12 > *,
.services-head > *,
.services-grid > *,
.contact-sidebar-grid > *,
.footer-top > *,
.footer-links-grid > * {
  min-width: 0;
}

img,
svg,
input,
select,
textarea,
button {
  max-width: 100%;
}

input,
select,
textarea {
  min-width: 0;
}

@media (max-width: 767px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-title,
  .title-hero {
    overflow-wrap: anywhere;
  }

  .hero-ctas {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-ctas .btn,
  .about-cta-title + .pill-btn,
  .contact-form-grid > div:last-child .pill-btn {
    justify-content: center;
    width: 100%;
  }

  .stats {
    gap: 1rem;
  }

  .stat-label,
  .footer-links-grid li,
  .contact-sidebar a {
    overflow-wrap: anywhere;
  }

  .about-cta-title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }
}

/* Mission section mobile typography */
@media (max-width: 767px) {
  .mission-section .section-header .overline {
    font-size: 0.75rem !important;
    letter-spacing: 0.12em;
  }

  .mission-section .section-header .title {
    font-size: clamp(2rem, 9vw, 2.5rem);
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .mission-section .col-right {
    overflow-wrap: anywhere;
  }
}

/* Keep the complete Mission section inside narrow viewports. */
.mission-section,
.mission-section .container,
.mission-section .about-grid-12,
.mission-section .col-left,
.mission-section .col-right,
.mission-section .section-header {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

@media (min-width: 321px) and (max-width: 460px) {
    .mission-section,
    .ip-section {
        overflow-x: hidden;
        padding: 4rem 0;
    }
    .mission-section .col-right .mission-paragraph,
    .ip-section .col-right p {
        white-space: normal;
        word-wrap: break-word;
        hyphens: auto;
        overflow-wrap: anywhere;
        word-break: break-word;
        margin-bottom: 1rem;
    }
    .mission-section .col-right {
        margin-bottom: 2rem;
    }
    .mission-section .section-header .overline {
        font-size: clamp(0.7rem, 3.5vw, 0.875rem);
        letter-spacing: 0.08em;
        line-height: 1.4;
    }
    .mission-section .title {
        font-size: clamp(2rem, 9vw, 2.5rem);
        line-height: 1.08;
        margin-bottom: 1.5rem;
    }
}

/* ============ TABLET VIEWPORT FIXES (481px - 1023px) ============ */
/* Fixes text wrapping and scaling for intermediate tablet sizes */

@media (min-width: 481px) and (max-width: 1023px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .mission-section,
  .ip-section {
    padding: 4rem 0 !important;
  }

  .mission-section .about-grid-12,
  .ip-section .about-grid-12 {
    gap: 2rem;
  }

  .fs {
    font-size: clamp(1rem, 2.5vw, 1.125rem) !important;
    letter-spacing: 0.1em !important;
  }

  .fs2 {
    font-size: clamp(0.875rem, 2.2vw, 1rem) !important;
  }

  .mission-section .section-header .overline.fs,
  .ip-section .section-header .overline.fs {
    font-size: clamp(0.75rem, 2vw, 0.875rem) !important;
    letter-spacing: 0.1em !important;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .mission-section .section-header .title,
  .ip-section .section-header .title {
    font-size: clamp(2rem, 5vw, 3rem) !important;
    line-height: 1.05;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
  }

  .mission-section .col-right,
  .ip-section .col-right {
    font-size: clamp(1rem, 2.2vw, 1.0625rem) !important;
    line-height: 1.7;
  }

  .mission-section .col-right p,
  .ip-section .col-right p {
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
  }

  .ip-section .pillars-grid {
    gap: 1.25rem;
  }

  .ip-section .pillar-card {
    padding: 1.25rem;
  }

  .ip-section .pillar-title {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .ip-section .pillar-desc {
    font-size: clamp(0.875rem, 2vw, 0.9375rem);
    line-height: 1.6;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .mission-section *,
  .ip-section * {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .overline {
    font-size: clamp(0.75rem, 2vw, 0.875rem) !important;
    letter-spacing: 0.1em !important;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .section-label {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    letter-spacing: 0.12em;
  }

  .section-header .title {
    font-size: clamp(2.5rem, 5vw, 3.5rem) !important;
  }

  .description {
    font-size: clamp(1rem, 2.2vw, 1.125rem);
    line-height: 1.6;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* ============ NARROW VIEWPORT FIXES (≤480px) ============ */
/* Bridges the gap between ultra-narrow and tablet breakpoints */

@media (max-width: 480px) {
  /* Override .fs class for narrow screens */
  .fs {
    font-size: clamp(0.75rem, 3.5vw, 1rem) !important;
    letter-spacing: 0.08em !important;
  }

  .fs2 {
    font-size: clamp(0.7rem, 3.2vw, 0.875rem) !important;
  }

  /* Mission and IP section overlines */
  .mission-section .section-header .overline.fs,
  .ip-section .section-header .overline.fs {
    font-size: clamp(0.7rem, 3.2vw, 0.875rem) !important;
    letter-spacing: 0.08em !important;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  /* Mission and IP section titles */
  .mission-section .section-header .title,
  .ip-section .section-header .title {
    /* font-size: clamp(1.75rem, 8vw, 2.5rem) !important; */
    line-height: 1.1;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
  }

  /* Body text scaling */
  .mission-section .col-right,
  .ip-section .col-right {
    font-size: clamp(0.9375rem, 4.5vw, 1.0625rem) !important;
    line-height: 1.65;
  }

  .mission-section .col-right p,
  .ip-section .col-right p {
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
  }

  /* Pillar cards */
  .ip-section .pillar-title {
    font-size: clamp(1rem, 4.8vw, 1.125rem);
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .ip-section .pillar-desc {
    font-size: clamp(0.8125rem, 4vw, 0.875rem);
    line-height: 1.6;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* General text wrapping for all elements */
  .mission-section *,
  .ip-section * {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* Overline general fix */
  .overline {
    font-size: clamp(0.7rem, 3.2vw, 0.875rem) !important;
    letter-spacing: 0.08em !important;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* Section label */
  .section-label {
    font-size: clamp(0.75rem, 3.5vw, 1rem);
    letter-spacing: 0.1em;
  }
}

/* ============ SMALL PHONE MISSION & IP FIXES (321px–460px) ============ */
@media (min-width: 321px) and (max-width: 460px) {
  .mission-section,
  .ip-section {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding: 3rem 0 !important;
  }

  .mission-section .container,
  .ip-section .container,
  .mission-section .about-grid-12,
  .ip-section .about-grid-12 {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .mission-section .about-grid-12,
  .ip-section .about-grid-12 {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .mission-section .about-grid-12 > .col-left,
  .mission-section .about-grid-12 > .col-right,
  .ip-section .about-grid-12 > .col-left,
  .ip-section .about-grid-12 > .col-right {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .mission-section .section-header,
  .ip-section .section-header,
  .mission-section .section-header .overline,
  .ip-section .section-header .overline,
  .mission-section .section-header .title,
  .ip-section .section-header .title,
  .mission-section .col-right,
  .ip-section .col-right,
  .mission-section .col-right p,
  .ip-section .col-right p,
  .ip-section .pillar-card,
  .ip-section .pillar-title,
  .ip-section .pillar-desc {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .ip-section .section-header .title br {
    display: none;
  }
}

/* ============ ULTRA-NARROW VIEWPORT FIXES (≤320px) ============ */
/* Specifically targets devices like 227×818 and similar narrow screens */

@media (max-width: 320px) {
  /* Reduce container padding to maximize content space */
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  /* Reduce section padding for narrow screens */
  .mission-section,
  .ip-section {
    padding: 3rem 0 !important;
  }

  /* Override .fs class for ultra-narrow screens */
  .fs {
    font-size: clamp(0.65rem, 3.2vw, 0.875rem) !important;
    letter-spacing: 0.06em !important;
  }

  .fs2 {
    font-size: clamp(0.625rem, 3vw, 0.75rem) !important;
  }

  /* Mission section overline - scale down significantly */
  .mission-section .section-header .overline.fs,
  .ip-section .section-header .overline.fs {
    font-size: clamp(0.6rem, 2.8vw, 0.75rem) !important;
    letter-spacing: 0.05em !important;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  /* Mission and IP section titles - reduce minimum size */
  .mission-section .section-header .title,
  .ip-section .section-header .title {
    font-size: clamp(1.5rem, 7vw, 2rem) !important;
    line-height: 1.1;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
  }

  /* Body text in mission and IP sections */
  .mission-section .col-right,
  .ip-section .col-right {
    font-size: clamp(0.875rem, 4vw, 1rem) !important;
    line-height: 1.6;
  }

  .mission-section .col-right p,
  .ip-section .col-right p {
    margin-bottom: 1rem !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
  }

  /* Pillar cards in IP section */
  .ip-section .pillars-grid {
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .ip-section .pillar-card {
    padding: 1rem;
    min-height: auto;
  }

  .ip-section .pillar-title {
    font-size: clamp(0.9rem, 4.5vw, 1rem);
    line-height: 1.3;
    margin-bottom: 0.4rem;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
  }

  .ip-section .pillar-desc {
    font-size: clamp(0.8rem, 3.8vw, 0.875rem);
    line-height: 1.5;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
  }

  .ip-section .pillar-check {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }

  /* Grid gap reduction */
  .about-grid-12 {
    gap: 1.5rem;
  }

  /* Ensure all text elements wrap properly */
  .mission-section *,
  .ip-section * {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* Force wrapping on headings */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
  }

  /* Section label reduction */
  .section-label {
    font-size: clamp(0.65rem, 3vw, 0.875rem);
    letter-spacing: 0.08em;
  }

  /* Overline class general fix */
  .overline {
    font-size: clamp(0.6rem, 2.8vw, 0.75rem) !important;
    letter-spacing: 0.05em !important;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* Meta label fix */
  .meta-label {
    font-size: clamp(0.625rem, 2.8vw, 0.7rem);
    letter-spacing: 0.08em;
  }

  /* Description text */
  .description {
    font-size: clamp(0.875rem, 4vw, 1rem);
    line-height: 1.6;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* Additional fixes for extremely narrow screens (≤240px) */
@media (max-width: 240px) {
  .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .mission-section,
  .ip-section {
    padding: 2rem 0 !important;
  }

  .fs {
    font-size: 0.625rem !important;
    letter-spacing: 0.04em !important;
  }

  .mission-section .section-header .overline.fs,
  .ip-section .section-header .overline.fs {
    font-size: 0.575rem !important;
    letter-spacing: 0.04em !important;
  }

  .mission-section .section-header .title,
  .ip-section .section-header .title {
    font-size: 1.25rem !important;
    line-height: 1.15;
  }

  .mission-section .col-right,
  .ip-section .col-right {
    font-size: 0.8125rem !important;
  }

  .ip-section .pillar-card {
    padding: 0.75rem;
  }

  .ip-section .pillar-title {
    font-size: 0.875rem;
  }

  .ip-section .pillar-desc {
    font-size: 0.75rem;
  }
}
/* Pillar icon box (from AI Academy reference, re-themed) */
    .pillar-icon {
      width: 3.125rem;
      height: 3.125rem;
      border-radius: 0.875rem;
      display: grid;
      place-items: center;
      background: #fff7ed;
      color: #f97316;
      font-size: 1.375rem;
      font-weight: 700;
      margin-bottom: 1.25rem;
    }

    .check-list {
      list-style: none;
      margin-top: 2rem;
      display: grid;
      gap: 1rem;
    }

    .check-list li {
      display: flex;
      align-items: flex-start;
      gap: 0.75rem;
      font-size: 1rem;
      color: #334155;
      line-height: 1.5;
    }

    .check {
      flex: 0 0 auto;
      width: 1.5rem;
      height: 1.5rem;
      border-radius: 999px;
      display: grid;
      place-items: center;
      background: #fff7ed;
      color: #f97316;
      font-size: 0.8125rem;
      font-weight: 700;
      margin-top: 0.1rem;
    }

    .acad-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 3rem;
      align-items: center;
    }

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

    .feature-panel {
      background: #1a1a1a;
      border: 1px solid #383838;
      border-top: 3px solid #f97316;
      padding: 2.5rem;
      position: relative;
      overflow: hidden;
    }

    .feature-panel:after {
      content: "";
      position: absolute;
      width: 16rem;
      height: 16rem;
      border-radius: 999px;
      right: -7rem;
      bottom: -8rem;
      background: radial-gradient(circle, rgba(249, 115, 22, 0.25) 0%, transparent 70%);
      pointer-events: none;
    }

    .feature-panel h3 {
      font-family: "Outfit", sans-serif;
      font-size: clamp(1.5rem, 3vw, 2rem);
      font-weight: 600;
      line-height: 1.2;
      letter-spacing: -0.02em;
      color: #f7f3fa;
      margin-bottom: 1rem;
      position: relative;
      z-index: 1;
    }

    .feature-panel p {
      color: #c7c7c7;
      font-size: 0.9375rem;
      line-height: 1.7;
      position: relative;
      z-index: 1;
    }

    .feature-stat {
      display: flex;
      gap: 2.5rem;
      margin-top: 2rem;
      padding-top: 1.5rem;
      border-top: 1px solid #383838;
      position: relative;
      z-index: 1;
    }

    .feature-stat strong {
      display: block;
      font-family: "JetBrains Mono", monospace;
      font-size: 1.5rem;
      font-weight: 500;
      color: #f97316;
      margin-bottom: 0.25rem;
    }

    .feature-stat span {
      font-family: "JetBrains Mono", monospace;
      font-size: 0.6875rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: #a3a3a3;
    }

    .biz-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 3rem;
      align-items: center;
    }

    @media (min-width: 1024px) {
      .biz-grid {
        grid-template-columns: 0.9fr 1.1fr;
        gap: 4rem;
      }
    }

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

    @media (min-width: 640px) {
      .solution-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    .solution {
      background: #fff;
      border: 1px solid rgba(0, 0, 0, 0.1);
      padding: 1.25rem;
      transition: border-color 0.2s, transform 0.2s;
    }

    .solution:hover {
      border-color: #0f172a;
      transform: translateY(-2px);
    }

    .solution strong {
      display: block;
      font-family: "Outfit", sans-serif;
      font-weight: 600;
      font-size: 0.9375rem;
      color: #0f172a;
      margin-bottom: 0.35rem;
    }

    .solution span {
      font-size: 0.8125rem;
      color: #64748b;
      line-height: 1.5;
    }

    .lab-grid {
      display: grid;
      grid-template-columns: 1fr;
      border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    .lab-step {
      padding: 1.5rem;
      border-bottom: 1px solid rgba(0, 0, 0, 0.1);
      background: #fff;
    }

    .lab-step .step-num {
      margin-bottom: 1.5rem;
    }

    .lab-step h3 {
      font-size: 1.25rem;
      color: #0f172a;
      margin-bottom: 0.75rem;
    }

    .lab-step p {
      font-size: 0.875rem;
      color: #64748b;
      line-height: 1.6;
    }

    @media (min-width: 768px) {
      .lab-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .lab-step {
        padding: 2rem;
        border-right: 1px solid rgba(0, 0, 0, 0.1);
      }

      .lab-step:nth-child(2n) {
        border-right: none;
      }
    }

    @media (min-width: 1024px) {
      .lab-grid {
        grid-template-columns: repeat(3, 1fr);
      }

      .lab-step:nth-child(2n) {
        border-right: 1px solid rgba(0, 0, 0, 0.1);
      }

      .lab-step:nth-child(3n) {
        border-right: none;
      }
    }

    /* Hero visual (from AI Academy reference, re-themed to Yelagiri palette) */
    .hero-visual {
      position: relative;
      width: min(440px, 100%);
      min-height: 440px;
      margin-left: auto;
      margin-right: auto;
      display: grid;
      place-items: center;
    }

    .hero-visual .orb {
      width: 300px;
      height: 300px;
      border-radius: 50%;
      background:
        radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.05) 24%),
        radial-gradient(circle at 50% 50%, #fb923c 0%, #ea580c 42%, #f97316 74%, #0f172a 100%);
      box-shadow:
        inset -24px -24px 60px rgba(0, 0, 0, 0.25),
        0 30px 70px rgba(249, 115, 22, 0.22);
      position: relative;
    }

    .hero-visual .orb:before,
    .hero-visual .orb:after {
      content: "";
      position: absolute;
      border: 1px solid rgba(255, 255, 255, 0.32);
      border-radius: 50%;
      inset: 26px;
      transform: rotate(30deg) scaleX(1.55);
    }

    .hero-visual .orb:after {
      inset: 52px;
      transform: rotate(-35deg) scaleX(1.45);
    }

    .hero-visual .orbit {
      position: absolute;
      border: 1px solid rgba(249, 115, 22, 0.4);
      border-radius: 50%;
      width: 400px;
      height: 165px;
      transform: rotate(-24deg);
    }

    .hero-visual .orbit.two {
      transform: rotate(58deg);
      width: 370px;
      height: 150px;
    }

    .hero-visual .node {
      position: absolute;
      width: 52px;
      height: 52px;
      border-radius: 16px;
      display: grid;
      place-items: center;
      background: #fff;
      border: 1px solid rgba(0, 0, 0, 0.08);
      box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
      color: #f97316;
      font-family: "JetBrains Mono", monospace;
      font-size: 18px;
      font-weight: 500;
    }

    .hero-visual .node.n1 {
      top: 24px;
      right: 8px;
    }

    .hero-visual .node.n2 {
      bottom: 44px;
      left: 0;
    }

    .hero-visual .node.n3 {
      bottom: 8px;
      right: 64px;
    }

    @media (max-width: 1023px) {
      .hero-visual {
        min-height: 370px;
        transform: scale(0.9);
      }
    }

    @media (max-width: 720px) {
      .hero-visual {
        min-height: 310px;
        transform: scale(0.72);
      }
    }