/* ==========================================================================
   ABOUT PAGE STYLESHEET (about.css)
   Target route: /about (about.html)
   ========================================================================== */

/* --- Design Tokens --- */
:root {
  --bg:            #0B0909;
  --bg-hero:       #0F0D0D;
  --bg-card:       rgba(255, 255, 255, 0.02);
  --bg-card-hover: rgba(255, 255, 255, 0.04);
  --primary:       #FFCE1B;
  --primary-hover: #E5BE20;
  --secondary:     #FF4D4D;
  --border:        rgba(255, 255, 255, 0.1);
  --border-light:  rgba(255, 255, 255, 0.18);
  --border-yellow: rgba(255, 206, 27, 0.3);
  --text-white:    #FFFFFF;
  --text-dim:      rgba(255, 255, 255, 0.65);
  --text-dimmer:   rgba(255, 255, 255, 0.42);
  --font-head:     'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:     'JetBrains Mono', monospace;
  --font-body:     'DM Sans', sans-serif;
  --max-w:         1376px;
  --px:            64px;
}

@media (max-width: 1024px) {
  :root {
    --px: 40px;
  }
}

@media (max-width: 767px) {
  :root {
    --px: 20px;
  }
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  background: var(--bg);
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

/* --- Ambient Effects & Page Margins --- */
.global-glow {
  width: 540px;
  height: 540px;
  position: fixed;
  left: -100px;
  bottom: -100px;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(252, 213, 53, 0.08) 0%, rgba(255, 77, 77, 0.04) 50%, transparent 70%);
  filter: blur(120px);
}

.page-margins {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - calc(var(--px) * 2));
  max-width: var(--max-w);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
  z-index: 99;
  box-sizing: border-box;
}

.line-horizontal {
  width: calc(100% - calc(var(--px) * 2));
  max-width: var(--max-w);
  margin: 0 auto;
  height: 1px;
  background-color: var(--border);
  position: relative;
  z-index: 10;
}

/* --- Utilities --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: clamp(32px, 5vw, 72px);
  padding-right: clamp(32px, 5vw, 72px);
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

.text-yellow { color: var(--primary) !important; }
.text-red    { color: var(--secondary) !important; }
.text-center { text-align: center; }

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: var(--primary);
  color: #000;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* Chip Badge */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(11, 9, 9, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: #FFFFFF;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.chip-dot--red {
  background: #fb1650;
  box-shadow: 0 0 8px #fb1650;
}

/* Background Glowing Ellipses from Figma */
.section-ellipse-glow {
  width: 381px;
  height: 378px;
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  filter: blur(200px);
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, #a73c26, #1e1211);
  z-index: 0;
  pointer-events: none;
}

.team-ellipse-glow {
  width: 412px;
  height: 409px;
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  filter: blur(200px);
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, #a73c26, #1e1211);
  z-index: 0;
  pointer-events: none;
}

.offices-ellipse-glow {
  width: 412px;
  height: 409px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(200px);
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, #a73c26, #1e1211);
  z-index: 0;
  pointer-events: none;
}

/* ==========================================================================


.logo img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-nav, rgba(255, 255, 255, 0.75));
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 400;
  text-transform: uppercase;
  transition: color 0.2s ease;
  background: none;
  border: none;
  padding: 8px 0;
  cursor: pointer;
}

.nav-item:hover {
  color: var(--text-white);
}

.nav-chevron {
  transition: transform 0.2s ease;
}

.nav-dropdown-wrapper {
  position: relative;
}

.nav-dropdown-wrapper:hover .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: rgba(11, 9, 9, 0.95);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 0;
  margin-top: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 1001;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
}

.nav-dropdown-wrapper:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  transition: all 0.18s ease;
}

.nav-dropdown-menu a:hover {
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
  height: 40px;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-white);
  transition: all 0.3s ease;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero,
.hero-section {
  position: relative;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 60px;
  padding-bottom: 60px;
  overflow: hidden;
  box-sizing: border-box;
  margin: 0 !important;
}

/* Edge-to-Edge Full-Screen Hero Image Background */
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  filter: brightness(1.05) contrast(1.02);
}

/* Gradient Overlay for Readability */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(11, 9, 9, 0.55) 0%,
    rgba(11, 9, 9, 0.40) 35%,
    rgba(11, 9, 9, 0.65) 70%,
    rgba(11, 9, 9, 0.95) 100%
  );
}

.hero-content-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--text-white);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  max-width: 892px;
  margin: 0 auto;
  font-weight: 400;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95);
}

/* ==========================================================================
   RESEARCH SECTION
   ========================================================================== */
.research-section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.research-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}

.section-title {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--text-white);
}

.research-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.research-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.bullet-dot {
  width: 6px;
  height: 6px;
  background-color: #fb1650;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 10px;
}

.research-text {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 200;
}

/* ==========================================================================
   TEAM SECTION
   ========================================================================== */
.team-section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.team-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.team-desc p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 300;
  margin-bottom: 20px;
}

.team-desc p:last-child {
  margin-bottom: 0;
}

.team-image-wrapper {
  width: 100%;
  max-width: 507px;
  height: 557px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
  z-index: 1;
  margin-left: auto;
}

.team-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   OFFICES SECTION
   ========================================================================== */
.offices-section {
  padding: 100px 0 120px 0;
  position: relative;
  overflow: hidden;
}

.offices-section .section-title {
  margin-bottom: 60px;
}

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

.office-card {
  background: #150f0f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 27px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: all 0.3s ease;
}

.office-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-light);
  transform: translateY(-4px);
}

.office-image-wrapper {
  width: 100%;
  max-width: 245px;
  height: 206px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.office-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.office-name {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--text-white);
  line-height: 1.4;
}

/* ==========================================================================
   FOOTER (Matching Sitewide Standard)
   ========================================================================== */














































/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Tablet Breakpoint (max-width: 1024px) */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.5rem;
  }

  /* Tablet Navbar matching Hackathon standard */
  .nav-links,
  .nav-cta {
    display: none !important;
  }

  .hamburger {
    display: flex !important;
  }

  .nav-links.open {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 80px !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(11, 9, 9, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    padding: 24px var(--px) !important;
    gap: 12px !important;
    border-bottom: 1px solid var(--border) !important;
    z-index: 9999 !important;
    max-height: calc(100vh - 80px) !important;
    overflow-y: auto !important;
  }

  .nav-dropdown-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
  }

  .nav-item {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-dropdown-menu {
    position: static !important;
    display: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border: none !important;
    padding: 8px 0 8px 16px !important;
    margin-top: 0 !important;
    width: 100%;
  }

  .nav-dropdown-wrapper.open .nav-dropdown-menu {
    display: flex !important;
    flex-direction: column !important;
  }

  .nav-dropdown-wrapper.open .nav-chevron,
  .nav-dropdown-wrapper.open .icon-down-arrow {
    transform: rotate(180deg) !important;
  }

  .research-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* Invert Team Section on tablet (Image on left, text on right) */
  .team-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
  }

  .team-image-wrapper {
    order: 1;
    margin-left: 0;
    height: auto;
    aspect-ratio: 507 / 557;
    max-width: 100%;
  }

  .team-content {
    order: 2;
  }

  .research-section,
  .team-section,
  .offices-section {
    padding: 60px 10px;
  }

  .section-title {
    font-size: 2rem;
  }

  .offices-grid {
    gap: 24px;
  }

  .offices-section .section-title {
    text-align: left !important;
  }

  

  

  

  
}

/* Mobile Breakpoint (max-width: 767px) */
@media (max-width: 767px) {
  .navbar-inner {
    padding: 0 var(--px);
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-links.open {
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 80px !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(11, 9, 9, 0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    padding: 24px var(--px) !important;
    gap: 12px !important;
    border-bottom: 1px solid var(--border) !important;
    z-index: 9999 !important;
    max-height: calc(100vh - 80px) !important;
    overflow-y: auto !important;
  }

  .nav-dropdown-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
  }

  .nav-item {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-dropdown-menu {
    position: static !important;
    display: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border: none !important;
    padding: 8px 0 8px 16px !important;
    margin-top: 0 !important;
    width: 100%;
  }

  .nav-dropdown-wrapper.open .nav-dropdown-menu {
    display: flex !important;
    flex-direction: column !important;
  }

  .nav-dropdown-wrapper.open .nav-chevron,
  .nav-dropdown-wrapper.open .icon-down-arrow {
    transform: rotate(180deg) !important;
  }

  .hero,
  .hero-section {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 50px;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    padding: 10px;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-content {
    order: 1;
  }

  .team-image-wrapper {
    order: 2;
    height: auto;
    aspect-ratio: 507 / 557;
    max-width: 100%;
    margin: 0 auto;
  }

  .research-section,
  .team-section,
  .offices-section {
    padding: 60px 10px;
  }

  .offices-grid {
    grid-template-columns: 1fr;
  }

  .office-image-wrapper {
    height: 220px;
  }
}


/* ─────────────────────────────────────────────────────────────
   SITEWIDE STANDARD FOOTER (Verbatim Hackathon Reference)
   ───────────────────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  background: #140B0B;
  border-top: 0.1px solid rgba(255, 255, 255, 0.15);
}

.footer-inner {
  width: calc(100% - calc(var(--px) * 2));
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 40px;
  box-sizing: border-box;
}

/* Top nav row */
.footer-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 40px;
  border-bottom: 0.1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 48px;
}

.footer-nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.footer-nav-link {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 16px !important;
  font-weight: 300 !important;
  color: rgba(255, 255, 255, 0.55) !important;
  text-decoration: none;
  transition: color 0.18s;
}

.footer-nav-link:hover {
  color: #ffffff !important;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 20px;
}

.social-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 0.5px solid rgba(255, 255, 255, 0.20);
  transition: border-color 0.18s, background 0.18s;
  text-decoration: none;
}

.social-icon:hover {
  border-color: rgba(255, 255, 255, 0.60);
  background: rgba(255, 255, 255, 0.06);
}

/* Bottom row: Big K logo + addresses + ZIROHLabs */
.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.footer-big-logo {
  flex-shrink: 0;
}

.big-k-square {
  width: 120px;
  height: 120px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 56px;
  font-weight: 700;
  color: #000;
  line-height: 1;
  letter-spacing: -0.03em;
}

.footer-addresses {
  display: flex;
  gap: 60px;
  flex: 1;
  padding: 0 60px;
}

.footer-address {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-city {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: rgba(255, 255, 255, 0.80) !important;
  letter-spacing: 0.02em;
  margin: 0;
}

.footer-addr-text {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 13px !important;
  font-weight: 300 !important;
  color: rgba(255, 255, 255, 0.45) !important;
  line-height: 20px !important;
  margin: 0;
}

.footer-ziroh {
  flex-shrink: 0;
}

.ziroh-logo {
  height: 36px;
  width: auto;
  filter: none;
  transition: filter 0.18s;
}

.ziroh-logo:hover {
  filter: brightness(1.2);
}

/* Legal section */
.footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 0.1px solid rgba(255, 255, 255, 0.15);
}

.footer-legal-links {
  display: flex;
  gap: 32px;
}

.footer-legal-links a {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 12px !important;
  font-weight: 300 !important;
  color: rgba(255, 255, 255, 0.5) !important;
  text-decoration: none;
  transition: color 0.18s;
}

.footer-legal-links a:hover {
  color: #ffffff !important;
}

.footer-copyright {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 12px !important;
  font-weight: 300 !important;
  color: rgba(255, 255, 255, 0.3) !important;
  margin: 0;
}

/* ── Tablet Footer (768px - 1024px) ── */
@media (min-width: 768px) and (max-width: 1024px) {
  .footer-bottom-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr auto !important;
    row-gap: 40px !important;
    align-items: start !important;
  }

  .footer-addresses {
    grid-column: 1 / 3 !important;
    padding: 0 !important;
  }

  .footer-address {
    margin-left: 0 !important;
    flex: 1 !important;
  }

  .footer-big-logo {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }

  .footer-ziroh {
    grid-column: 3 !important;
    grid-row: 1 !important;
    align-self: center !important;
  }
}


/* ── Mobile Footer (<= 767px) ── */
@media (max-width: 767px) {
  .footer-inner {
    width: calc(100% - calc(var(--px, 24px) * 2)) !important;
    max-width: var(--max-w, 1376px) !important;
    margin: 0 auto !important;
    padding: 32px 20px !important;
    box-sizing: border-box !important;
    border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
  }

  .footer-nav-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 24px !important;
    margin-bottom: 32px !important;
    padding-bottom: 32px !important;
    width: 100% !important;
  }

  .footer-nav-links {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 16px !important;
    width: 100% !important;
    justify-content: flex-start !important;
  }

  .footer-socials {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
  }

  .footer-bottom-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 32px !important;
    width: 100% !important;
  }

  .footer-addresses {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    width: 100% !important;
    padding: 0 !important;
  }

  .footer-address:first-child {
    align-self: flex-start !important;
    text-align: left !important;
    width: auto !important;
  }

  .footer-address:last-child,
  .footer-address:nth-child(2) {
    align-self: flex-end !important;
    text-align: left !important;
    margin-left: auto !important;
    width: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .footer-ziroh {
    order: 2 !important;
    align-self: flex-end !important;
    margin-left: auto !important;
  }

  .footer-big-logo {
    order: 3 !important;
    align-self: flex-start !important;
  }

  .footer-legal {
    display: flex !important;
    flex-direction: column-reverse !important;
    align-items: flex-start !important;
    gap: 16px !important;
    padding-top: 32px !important;
    margin-top: 32px !important;
    width: 100% !important;
  }

  .footer-legal-links {
    display: flex !important;
    gap: 32px !important;
  }
}



  /* ════════════════════════════════════════════════
     UPPER LINE REMOVAL & FOOTER LOWER LINE RESTORATION (<= 1024px)
  ════════════════════════════════════════════════ */
  /* 1. Restore Footer's own Top Border (Lower Line) */
  body .footer,
  body footer.footer,
  body footer#footer,
  body footer#footer-mobile,
  .footer,
  #footer,
  #footer-mobile {
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
  }

  /* 2. Hide horizontal line dividers directly above footer */
  .line-horizontal,
  .line-horizontal:last-of-type,
  main > .line-horizontal:last-child {
    display: none !important;
    border: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* 3. Hide dummy/glow sections right above footer */
  .why-section[style*="min-height:0"],
  .get-started-section[style*="min-height:0"],
  .why-section:last-of-type,
  .get-started-section:last-of-type {
    border-top: none !important;
    border-bottom: none !important;
    display: none !important;
  }

  /* 4. Remove section bottom borders right above footer on mobile (Upper Line) */
  main > section:last-of-type,
  main > div:last-of-type,
  section:last-of-type,
  .models-section,
  .faq-accordion-list,
  .dev-section,
  .tribute-section,
  .community-section,
  .jobs-grid,
  .dynamic-jd-wrapper,
  .phil2-contact-section,
  .phil-status-contact,
  .related-videos,
  .event-detail-body,
  .gallery-large,
  .event-quote,
  .event-meta,
  .md-code-tablet,
  .session-header-row {
    border-bottom: none !important;
  }


/* ════════════════════════════════════════════════
   MOBILE FOOTER OVERRIDES (<= 1024px)
════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  body .footer,
  body footer.footer,
  body footer#footer,
  body footer#footer-mobile,
  .footer,
  #footer,
  #footer-mobile {
    position: relative !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    width: 100% !important;
    margin: 32px 0 0 0 !important;
    padding: 0 !important;
    background: #1c1414 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-sizing: border-box !important;
    display: block !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    z-index: 10 !important;
  }

  
  /* Remove section bottom border right above footer on mobile to eliminate upper line */
  main > section:last-of-type,
  main > div:last-of-type,
  section:last-of-type,
  .phil2-mobile-page-wrapper > main > section:last-of-type,
  .phil-mobile-page-wrapper > main > section:last-of-type,
  .sbox-page section:last-of-type,
  .page-section:last-of-type,
  .faq-section,
  .get-started-section,
  .community-section,
  .related-videos,
  .phil2-contact-section {
    border-bottom: none !important;
  }

  body .footer .footer-inner,
  body footer#footer-mobile .footer-inner,
  .footer-inner {
    width: calc(100% - calc(var(--px, 24px) * 2)) !important;
    max-width: var(--max-w, 1376px) !important;
    margin: 0 auto !important;
    padding: 32px 20px !important;
    box-sizing: border-box !important;
    border-left: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.15) !important;
    display: block !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    height: auto !important;
  }

  /* Top Nav Row */
  body .footer .footer-nav-row,
  body footer#footer-mobile .footer-nav-row,
  .footer-nav-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 18px !important;
    padding-bottom: 24px !important;
    margin-bottom: 24px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  body .footer .footer-nav-links,
  body footer#footer-mobile .footer-nav-links,
  .footer-nav-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  body .footer .footer-nav-link,
  body footer#footer-mobile .footer-nav-link,
  .footer-nav-link {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }

  /* Social Icons */
  body .footer .footer-socials,
  body footer#footer-mobile .footer-socials,
  .footer-socials {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 14px !important;
  }

  body .footer .social-icon,
  body footer#footer-mobile .social-icon,
  .social-icon {
    width: 32px !important;
    height: 32px !important;
    background: #ffffff !important;
    border-radius: 6px !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }

  body .footer .social-icon svg path,
  body .footer .social-icon svg circle,
  body footer#footer-mobile .social-icon svg path,
  body footer#footer-mobile .social-icon svg circle,
  .social-icon svg path,
  .social-icon svg circle {
    stroke: #000000 !important;
    fill: #000000 !important;
  }

  body .footer .social-icon svg path[fill="none"],
  body footer#footer-mobile .social-icon svg path[fill="none"],
  .social-icon svg path[fill="none"] {
    fill: none !important;
  }

  /* Middle Row: Addresses & Logos */
  body .footer .footer-bottom-row,
  body footer#footer-mobile .footer-bottom-row,
  .footer-bottom-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;
    padding-bottom: 24px !important;
    margin-bottom: 24px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    position: relative !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Addresses: Left (Bengaluru) & Right (Palo Alto) */
  body .footer .footer-addresses,
  body footer#footer-mobile .footer-addresses,
  .footer-addresses {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    width: 100% !important;
    padding: 0 !important;
    gap: 16px !important;
    margin-bottom: 24px !important;
    order: 1 !important;
    box-sizing: border-box !important;
  }

  body .footer .footer-address:first-child,
  body footer#footer-mobile .footer-address:first-child,
  .footer-address:first-child {
    flex: 1 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }

  body .footer .footer-address:last-child,
  body .footer .footer-address:nth-child(2),
  body footer#footer-mobile .footer-address:last-child,
  body footer#footer-mobile .footer-address:nth-child(2),
  .footer-address:last-child,
  .footer-address:nth-child(2) {
    flex: 1 !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
  }

  body .footer .footer-city,
  body footer#footer-mobile .footer-city,
  .footer-city {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #ffffff !important;
    margin: 0 !important;
  }

  body .footer .footer-addr-text,
  body footer#footer-mobile .footer-addr-text,
  .footer-addr-text {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 11px !important;
    font-weight: 300 !important;
    color: rgba(255, 255, 255, 0.6) !important;
    line-height: 1.5 !important;
    margin: 0 !important;
  }

  /* ZIROHLabs Logo: Below Addresses, Left Aligned */
  body .footer .footer-ziroh,
  body footer#footer-mobile .footer-ziroh,
  .footer-ziroh {
    order: 2 !important;
    align-self: flex-start !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    margin-bottom: 24px !important;
    grid-column: auto !important;
    grid-row: auto !important;
    display: block !important;
    text-align: left !important;
  }

  body .footer .ziroh-logo,
  body footer#footer-mobile .ziroh-logo,
  .ziroh-logo {
    height: 28px !important;
    width: auto !important;
    display: block !important;
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  /* Big K. Square Logo: Below ZIROHLabs Logo, Left Aligned */
  body .footer .footer-big-logo,
  body footer#footer-mobile .footer-big-logo,
  .footer-big-logo {
    order: 3 !important;
    align-self: flex-start !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    grid-column: auto !important;
    grid-row: auto !important;
    display: block !important;
  }

  body .footer .big-k-square,
  body footer#footer-mobile .big-k-square,
  .big-k-square {
    width: 72px !important;
    height: 72px !important;
    border-radius: 4px !important;
    display: block !important;
    margin-left: 0 !important;
  }

  /* Bottom Legal Section */
  body .footer .footer-legal,
  body footer#footer-mobile .footer-legal,
  .footer-legal {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding-top: 0 !important;
    margin-top: 0 !important;
    border-top: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  body .footer .footer-legal-links,
  body footer#footer-mobile .footer-legal-links,
  .footer-legal-links {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    gap: 24px !important;
    order: 1 !important;
    width: 100% !important;
  }

  body .footer .footer-legal-links a,
  body footer#footer-mobile .footer-legal-links a,
  .footer-legal-links a {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }

  body .footer .footer-copyright,
  body footer#footer-mobile .footer-copyright,
  .footer-copyright {
    font-family: 'DM Sans', sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.6) !important;
    margin: 0 !important;
    order: 2 !important;
    width: 100% !important;
    text-align: left !important;
  }
}


