:root {
  --font-sora: "Sora", sans-serif;
  --font-head: "Sora", sans-serif;
  --font-sans: "DM Sans", "Inter", -apple-system, sans-serif;
  --font-body: "DM Sans", "Inter", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Space Mono", monospace;
  --font-btn: "JetBrains Mono", "DM Sans", monospace, sans-serif;
  --bg: #120F0F;
  --bg-hero: #150F0F;
  --primary: #FFCE1B;
  --secondary: #FB1650;
  --card-bg: rgba(52, 32, 31, 0.40);
  --border: rgba(255, 255, 255, 0.10);
  --border-mid: rgba(255, 255, 255, 0.20);
  --border-half: rgba(255, 255, 255, 0.50);
  --text-white: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.60);
  --text-dimmer: rgba(255, 255, 255, 0.40);
  --text-nav: rgba(255, 255, 255, 0.70);
  --max-w: 1376px;
  --px: 64px;
  --radius-card: 12px;
}

/* ==========================================
   0. MOBILE OVERFLOW & CONTAINER RESET
   ========================================== */
*,
*::before,
*::after {
  box-sizing: border-box !important;
}

html, body {
  font-family: var(--font-sans);
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sora);
  font-weight: 300;
}

img, svg, video, iframe {
  max-width: 100% !important;
  height: auto;
}

/* Navbar styling is unified sitewide via navbar-unified.css */

/* ==========================================
   2. TOKENS & DESIGN SYSTEM
   ========================================== */
:root {
  --bg: #120F0F;
  --bg-elevated: rgba(52, 32, 31, 0.40);
  --border: rgba(255, 255, 255, 0.10);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.60);
  --accent-yellow: #FFCE1B;
  --accent-red: #FB1650;
  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: 'DM Sans', sans-serif;
  --font-head: 'Sora', sans-serif;
  --container-max: 1376px;
  --gutter: clamp(24px, 4vw, 48px);
  --radius: 12px;
  --radius-btn: 4px;
}

/* ==========================================
   3. LAYOUT & CONTAINERS
   ========================================== */
.phil-section {
  padding: clamp(60px, 8vw, 100px) 0;
  position: relative;
  border-bottom: 1px solid var(--border);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.phil-container {
  max-width: var(--container-max);
  width: min(100%, var(--container-max));
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

.phil-divider-top {
  display: none;
}

.phil-section-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  z-index: 1;
}

.phil-section-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-yellow);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.phil-section-title {
  font-family: var(--font-sora);
  font-size: clamp(26px, 4vw, 48px);
  font-weight: 300;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-top: 0;
  margin-bottom: clamp(32px, 5vw, 50px);
  color: var(--text-primary);
  word-break: break-word;
}

.phil-section-title span {
  color: var(--accent-yellow);
}

/* ==========================================
   4. HERO SECTION
   ========================================== */
.phil-hero-section {
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  background: linear-gradient(rgba(18, 15, 15, 0.05), rgba(18, 15, 15, 0.20)), url('../../public/assets/philosophy/mainmainphoto.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  margin-top: 80px;
  min-height: clamp(600px, 85vh, 900px);
  padding-top: clamp(140px, 16vw, 240px);
  padding-bottom: clamp(24px, 3.5vw, 48px);
  border-bottom: 1px solid var(--border);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.phil-hero-section .phil-container {
  padding-top: 0;
  padding-bottom: 0;
}

.phil-hero-bg-glow {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.phil-glow-orb-1 {
  position: absolute;
  top: 10%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(20, 160, 180, 0.15) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  filter: blur(80px);
}

.phil-glow-orb-2 {
  position: absolute;
  bottom: -10%; left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(140, 40, 200, 0.12) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  filter: blur(80px);
}

.phil-hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: end;
  width: 100%;
  box-sizing: border-box;
}

.phil-hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
}

.phil-event-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: clamp(16px, 2.5vw, 24px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent !important;
  letter-spacing: 0.5px;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
}

.chip-dot-red {
  display: inline-block;
  width: 6px; height: 6px;
  min-width: 6px;
  background-color: var(--accent-red);
  border-radius: 50%;
}

.phil-hero-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: clamp(0px, 2vw, 40px);
  max-width: 100%;
}

.phil-hero-desc {
  font-size: clamp(14px, 1.3vw, 18px);
  color: var(--text-primary) !important;
  line-height: 1.6;
  margin-bottom: clamp(24px, 3vw, 40px);
  word-break: break-word;
}

.phil-btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.phil-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 clamp(16px, 2.5vw, 28px);
  font-family: var(--font-btn);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: var(--radius-btn);
  transition: all 0.25s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
}

.phil-btn-primary {
  background-color: var(--accent-yellow);
  color: #000;
}

.phil-btn-primary:hover {
  background-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(245, 197, 24, 0.3);
}

.phil-btn-secondary {
  border: 1px solid var(--border);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}

.phil-btn-secondary:hover {
  border-color: var(--accent-yellow);
  background: rgba(245, 197, 24, 0.04);
  transform: translateY(-2px);
}

/* ==========================================
   5. THE PHILOSOPHY (3-Card Grid)
   ========================================== */
.phil-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: 100%;
  box-sizing: border-box;
}

.phil-card {
  background: transparent;
  border: none;
  padding: 0 clamp(16px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.phil-card:not(:last-child) {
  border-right: 1px solid var(--border);
}

.phil-card:first-child {
  padding-left: 0;
}

.phil-card:last-child {
  padding-right: 0;
}

.phil-card:hover {
  transform: translateY(-4px);
}

.phil-card-icon-wrap {
  color: var(--accent-yellow);
  margin-bottom: clamp(20px, 3vw, 30px);
  display: flex;
  align-items: center;
}

.phil-card-title {
  font-family: var(--font-sora);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 400;
  margin-bottom: 16px;
  color: var(--text-primary);
  word-break: break-word;
}

.phil-card-text {
  font-size: clamp(13px, 1.2vw, 15px);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
  flex-grow: 1;
  word-break: break-word;
}

.phil-card-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-red);
  letter-spacing: 1px;
  margin-top: auto;
}

/* ==========================================
   6. NEXT EVENT ("Building Perception" & Logistics)
   ========================================== */
#next-event {
  padding-bottom: clamp(40px, 5vw, 56px) !important;
  position: relative;
}

.phil-next-event-glow {
  position: absolute;
  top: -80px;
  left: -80px;
  width: 650px;
  max-width: 70vw;
  height: auto;
  opacity: 0.65;
  pointer-events: none;
  z-index: 1;
}

#protocol {
  padding-top: clamp(40px, 5vw, 56px) !important;
}

.phil-highlight-glow {
  position: absolute;
  top: -80px;
  left: -80px;
  width: 550px;
  max-width: 65%;
  height: auto;
  opacity: 0.70 !important;
  filter: brightness(1.25) contrast(1.1) !important;
  pointer-events: none;
  z-index: 1;
}

.phil-event-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: stretch;
  width: 100%;
  box-sizing: border-box;
  background: rgba(22, 16, 15, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px;
  padding: clamp(24px, 3.5vw, 44px);
}

.phil-event-card-left {
  background: transparent;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0 clamp(20px, 3vw, 40px) 0 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.phil-event-card-right {
  background: transparent;
  border: none;
  padding: 0 0 0 clamp(10px, 1.5vw, 20px);
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.phil-event-h2 {
  font-family: var(--font-sora);
  font-size: clamp(24px, 3.5vw, 44px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin: clamp(16px, 2.5vw, 24px) 0 clamp(20px, 3vw, 32px) 0;
  color: var(--text-primary);
  word-break: break-word;
}

.phil-event-divider {
  border-top: 1px solid var(--border);
  margin: clamp(16px, 2.5vw, 28px) 0;
  width: 100%;
}

.phil-speaker-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 16px;
  width: 100%;
  box-sizing: border-box;
}

.phil-avatar-placeholder {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.phil-speaker-info {
  display: flex;
  flex-direction: column;
}

.phil-speaker-name {
  font-family: var(--font-head);
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 4px;
  word-break: break-word;
}

.phil-speaker-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #ffffff;
  letter-spacing: 1px;
}

.phil-speaker-bullets {
  list-style: disc inside;
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.phil-usecase-block {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.phil-usecase-title {
  font-weight: 600;
  color: var(--text-primary);
}

/* Right logistics column */
.phil-logistics-col {
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.phil-logistics-col {
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.phil-logistics-title {
  font-family: var(--font-sora);
  font-size: clamp(24px, 2.5vw, 28px);
  font-weight: 300;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
}

.phil-logistics-card {
  background: #1E1717 !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: auto;
  width: 100%;
  box-sizing: border-box;
}

.phil-logistics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 24px;
  width: 100%;
  box-sizing: border-box;
}

.phil-logistics-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.phil-logistics-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.phil-logistics-value {
  font-family: 'JetBrains Mono', var(--font-mono, monospace);
  font-size: clamp(14px, 1.2vw, 15px);
  font-weight: 400;
  color: #FFFFFF;
  letter-spacing: 0.3px;
  word-break: break-word;
}

.phil-logistics-quote {
  font-family: var(--font-sans);
  font-size: 14px;
  font-style: normal;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
  text-align: center;
  margin: 36px auto 36px auto;
  max-width: 440px;
  width: 100%;
  box-sizing: border-box;
  word-break: break-word;
}

.phil-logistics-btns {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  width: 100%;
  box-sizing: border-box;
}

.phil-logistics-btns .phil-btn-primary {
  background-color: var(--accent-yellow) !important;
  color: #000000 !important;
  font-family: var(--font-btn);
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.8px !important;
  border-radius: 6px !important;
  height: 56px !important;
  min-height: 56px !important;
  padding: 0 20px !important;
  border: none;
  flex: 1;
  white-space: nowrap;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.phil-logistics-btns .phil-btn-secondary {
  background: rgba(18, 15, 15, 0.6) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
  color: #FFFFFF !important;
  font-family: var(--font-btn);
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.8px !important;
  border-radius: 6px !important;
  height: 56px !important;
  min-height: 56px !important;
  padding: 0 20px !important;
  flex: 1.05;
  white-space: nowrap;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================
   7. THE PROTOCOL TIMELINE (Dot & Line Recentered)
   ========================================== */
.phil-timeline-card {
  position: relative;
  overflow: hidden;
  background: #1B1414 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 16px !important;
  padding: 40px !important;
  max-width: 860px !important;
  margin: 0 auto !important;
  width: 100% !important;
  box-sizing: border-box;
}

.phil-protocol-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  max-width: 90%;
  height: auto;
  opacity: 0.95 !important;
  filter: brightness(1.4) contrast(1.15) !important;
  pointer-events: none;
  z-index: 1;
}

.phil-timeline {
  position: relative;
  z-index: 2;
  padding-left: 28px;
  width: 100%;
  box-sizing: border-box;
}

.phil-timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 5px;
  width: 2px;
  border-left: 2px dotted rgba(255, 255, 255, 0.25);
  z-index: 1;
}

.phil-timeline-item {
  position: relative;
  margin-bottom: clamp(28px, 4vw, 48px);
  width: 100%;
  box-sizing: border-box;
}

.phil-timeline-item:last-child {
  margin-bottom: 0;
}

.phil-timeline-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--bg);
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-sizing: border-box;
  z-index: 2;
}

.phil-timeline-item.phil-timeline-active::before {
  border-color: var(--accent-yellow);
  background-color: var(--accent-yellow);
  box-shadow: 0 0 10px rgba(255, 206, 27, 0.6);
}

.phil-timeline-time {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.phil-timeline-title {
  font-family: var(--font-sora);
  font-size: clamp(16px, 1.6vw, 18px);
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 8px;
  word-break: break-word;
}

.phil-timeline-body {
  font-size: clamp(13px, 1.2vw, 14px);
  color: var(--text-secondary);
  line-height: 1.6;
  word-break: break-word;
}

.phil-timeline-bullets {
  list-style: disc inside;
  margin-top: 8px;
}

/* ==========================================
   8. MISSION CONTROL FORM
   ========================================== */
/* ==========================================
   8. MISSION CONTROL FORM
   ========================================== */
.phil-form-wrap {
  background: transparent;
  border: none;
  padding: 0;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .phil-form-wrap {
    padding-left: clamp(20px, 4vw, 48px);
  }
}

#mission-control-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: 100%;
}

#mission-control-container .phil-event-badge {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 4px;
  background: rgba(22, 16, 15, 0.4);
  margin-bottom: 16px;
  width: auto;
  max-width: fit-content;
  align-self: flex-start;
  text-align: left;
}

#mission-control-container h2 {
  font-family: var(--font-sora);
  font-size: clamp(32px, 4vw, 40px);
  font-weight: 300;
  color: var(--text-primary);
  margin: 0 0 36px 0;
  letter-spacing: -0.5px;
  line-height: 1.1;
  text-align: left;
  width: 100%;
  border-bottom: none;
  padding-bottom: 0;
}

.phil-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  margin-bottom: 24px;
  width: 100%;
  box-sizing: border-box;
}

.phil-form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
}

.phil-form-group-full {
  grid-column: span 2;
}

.phil-form-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.phil-form-input {
  width: 100%;
  max-width: 100%;
  height: 52px;
  background-color: rgba(52, 32, 31, 0.40);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  padding: 0 16px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.phil-form-input:focus {
  outline: none;
  border-color: var(--accent-yellow);
  box-shadow: 0 0 10px rgba(255, 206, 27, 0.15);
}

textarea.phil-form-input {
  height: 140px;
  padding: 16px;
  resize: vertical;
}

.phil-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}

.phil-checkbox-input {
  appearance: none;
  -webkit-appearance: none;
  margin-top: 2px;
  width: 16px;
  height: 16px;
  min-width: 16px;
  background-color: rgba(52, 32, 31, 0.40);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}

.phil-checkbox-input:checked {
  border-color: var(--accent-yellow);
  background-color: var(--accent-yellow);
}

.phil-checkbox-input:checked::after {
  content: "✓";
  position: absolute;
  top: -2px;
  left: 2px;
  font-size: 12px;
  color: #000;
  font-weight: bold;
}

.phil-checkbox-text {
  font-size: 14px;
  color: #ffffff;
  line-height: 1.4;
  word-break: break-word;
  font-family: var(--font-sans);
}

.phil-checkbox-text span {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 4px;
}

.phil-event-badge-rect {
  border-radius: 4px !important;
}

.phil-form-footer {
  border-top: none;
  padding-top: 0;
  margin-top: 36px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.phil-system-status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 4px;
}

.phil-status-ready {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 1px;
  text-align: left;
  text-transform: uppercase;
}

.phil-status-contact {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  text-align: left;
}

.phil-status-contact a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
}



.phil-event-badge-rect {
  border-radius: 2px !important;
}

.phil-form-footer {
  border-top: none;
  padding-top: 0;
  margin-top: 36px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
}

.phil-system-status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 4px;
}

.phil-status-ready {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 1px;
  text-align: left;
}

.phil-status-contact {
  font-size: 12px;
  color: var(--text-secondary);
  text-align: left;
}

.phil-status-contact a {
  color: var(--accent-yellow);
}

/* ==========================================
   9. RESPONSIVE MEDIA QUERIES
   ========================================== */

/* Tablet Viewport Only (768px - 1024px) — Strictly Scoped to Tablet */
@media (min-width: 768px) and (max-width: 1024px) {

  /* 1. Outer Container & Continuous Border Frame (Fixes Bug 1) */
  .page-margins {
    display: none !important;
  }

  .phil-mobile-page-wrapper {
    display: block !important;
    width: calc(100% - 48px) !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
    border-left: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-sizing: border-box !important;
    position: relative !important;
    overflow: hidden !important;
  }

  main {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .phil-hero-section,
  .phil-section {
    width: 100% !important;
    max-width: 100% !important;
    padding-top: 48px !important;
    padding-bottom: 48px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  .phil-container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box !important;
  }



  /* 3. Hero Section — Centered Alignment over Hero Image (Tablet Only) */
  .phil-hero-section {
    min-height: 640px !important;
    padding-top: 130px !important;
    padding-bottom: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .phil-hero-layout {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0 !important;
    width: 100% !important;
    max-width: 680px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  .phil-hero-left,
  .phil-hero-right {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .phil-event-badge {
    align-self: center !important;
    margin: 0 auto 20px auto !important;
    display: inline-flex !important;
  }

  .phil-section-title {
    text-align: center !important;
    font-size: clamp(34px, 5vw, 44px) !important;
    line-height: 1.25 !important;
    width: 100% !important;
    margin: 0 auto 20px auto !important;
  }

  .phil-hero-desc {
    text-align: center !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #FFFFFF !important;
    max-width: 560px !important;
    margin: 0 auto 32px auto !important;
  }

  .phil-btn-group {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    width: 100% !important;
    margin: 0 auto !important;
  }

  .phil-btn-group .phil-btn {
    height: 48px !important;
    padding: 0 22px !important;
    font-size: 12px !important;
  }

  /* 4. The Philosophy 3-Card Grid */
  .phil-grid-3 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .phil-card {
    padding: 24px 16px !important;
    border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-bottom: none !important;
    box-sizing: border-box !important;
  }

  .phil-card:last-child {
    border-right: none !important;
  }

  /* 5. Building Perception / Logistics Block & Buttons */
  #next-event .phil-event-badge {
    align-self: flex-start !important;
    margin: 0 0 16px 0 !important;
    display: inline-flex !important;
  }

  #next-event .phil-event-h2 {
    text-align: left !important;
    font-size: clamp(32px, 4vw, 40px) !important;
    margin: 0 0 32px 0 !important;
  }

  .phil-event-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
    padding: 32px 28px !important;
    box-sizing: border-box !important;
    margin-bottom: 0 !important;
    background: rgba(22, 16, 15, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px !important;
  }

  .phil-event-card-left {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    padding: 0 0 32px 0 !important;
    margin-bottom: 32px !important;
    width: 100% !important;
  }

  .phil-logistics-col {
    padding: 0 !important;
    width: 100% !important;
  }

  .phil-logistics-card {
    background: #1E1717 !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 12px !important;
    padding: 24px 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .phil-logistics-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px 24px !important;
  }

  .phil-logistics-quote {
    margin: 24px auto !important;
    text-align: center !important;
  }

  .phil-logistics-btns {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 14px !important;
    margin-top: 28px !important;
    margin-bottom: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .phil-logistics-btns .phil-btn-primary,
  .phil-logistics-btns .phil-btn-secondary {
    flex: 1 !important;
    height: 52px !important;
    min-height: 52px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 0 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  /* 6. The Protocol Timeline Section */
  #protocol.phil-section {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }

  .phil-timeline-card {
    padding: 32px 24px !important;
    background: #1B1414 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-left: none !important;
    border-right: none !important;
    border-radius: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  .phil-timeline {
    width: 100% !important;
    padding-left: 28px !important;
    box-sizing: border-box !important;
  }

  /* 7. Mission_Control Form Section */
  .phil-form-card {
    padding: 32px 24px !important;
    background: #181212 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .phil-form-grid-2 {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
    width: 100% !important;
  }

  .phil-form-footer {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    width: 100% !important;
  }

  /* 8. Footer Section */
  

  
}

/* Desktop default pass-through for phil-mobile-page-wrapper */
.phil-mobile-page-wrapper {
  display: contents;
}

/* Mobile Viewport (< 768px) — Unified Outer Page Frame & Strict Containment
   Matches reference design Group 1686552917 (3) / Group_1686552917__4_.png 1-to-1 */
@media (max-width: 767px) {
  /* Disable fixed overlay frame on mobile in favor of outer continuous wrapper */
  .page-margins {
    display: none !important;
  }

  /* Single unified outer mobile content wrapper with continuous left/right borders */
  .phil-mobile-page-wrapper {
    display: block !important;
    width: calc(100% - 32px) !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    border-left: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-sizing: border-box !important;
    position: relative !important;
    overflow: hidden !important;
  }

  main {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Section containers fill 100% width of the wrapper */
  .phil-hero-section,
  .phil-section {
    width: 100% !important;
    max-width: 100% !important;
    padding-top: 36px !important;
    padding-bottom: 36px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  /* Shared container inside wrapper providing consistent 16px side inset */
  .phil-container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
  }

  /* -------------------------------------------------------------------------
     1. HERO SECTION
     ------------------------------------------------------------------------- */
  .phil-hero-section {
    min-height: auto !important;
    padding-top: 100px !important;
    padding-bottom: 24px !important;
  }

  .phil-hero-layout {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .phil-hero-left,
  .phil-hero-right {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  .phil-event-badge {
    align-self: center !important;
    margin: 0 0 16px 0 !important;
    display: inline-flex !important;
  }

  .phil-section-title {
    text-align: center !important;
    font-size: clamp(24px, 6.5vw, 32px) !important;
    line-height: 1.25 !important;
    width: 100% !important;
    margin-bottom: 12px !important;
  }

  .phil-hero-desc {
    text-align: center !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    max-width: 100% !important;
    margin: 0 0 24px 0 !important;
    color: #FFFFFF !important;
  }

  .phil-btn-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    gap: 12px !important;
    box-sizing: border-box !important;
  }

  .phil-btn-group .phil-btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 13px !important;
    border-radius: 4px !important;
  }

  /* -------------------------------------------------------------------------
     2. THE PHILOSOPHY CARDS
     ------------------------------------------------------------------------- */
  .phil-grid-3 {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .phil-card {
    padding: 24px 0 !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    text-align: left !important;
  }

  .phil-card:last-child {
    border-bottom: none !important;
  }

  .phil-card-icon-wrap {
    justify-content: flex-start !important;
    margin-bottom: 16px !important;
  }

  /* -------------------------------------------------------------------------
     3. NEXT EVENT & LOGISTICS
     ------------------------------------------------------------------------- */
  .phil-next-event-glow {
    top: -40px !important;
    left: -40px !important;
    width: 320px !important;
    max-width: 80vw !important;
    opacity: 0.55 !important;
  }

  .phil-event-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
    padding: 24px 20px !important;
    background: rgba(22, 16, 15, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .phil-event-card-left {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    padding: 0 0 28px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }

  .phil-event-card-left .phil-event-badge {
    align-self: center !important;
  }

  .phil-event-h2 {
    text-align: center !important;
    width: 100% !important;
  }

  .phil-speaker-row,
  .phil-speaker-bullets,
  .phil-usecase-block {
    align-self: stretch !important;
    width: 100% !important;
    text-align: left !important;
    box-sizing: border-box !important;
  }

  .phil-logistics-col {
    padding: 0 !important;
    border: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .phil-logistics-card {
    padding: 20px 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: #1E1717 !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 12px !important;
  }

  .phil-logistics-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .phil-logistics-quote br {
    display: none !important;
  }

  .phil-logistics-btns {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .phil-logistics-btns .phil-btn-primary,
  .phil-logistics-btns .phil-btn-secondary {
    width: 100% !important;
    height: 54px !important;
    min-height: 54px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    padding: 0 16px !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    border-radius: 6px !important;
  }

  /* -------------------------------------------------------------------------
     4. THE PROTOCOL TIMELINE
     ------------------------------------------------------------------------- */
  .phil-protocol-glow {
    top: 50% !important;
    left: 50% !important;
    right: auto !important;
    transform: translate(-50%, -50%) !important;
    width: 380px !important;
    max-width: 100% !important;
    opacity: 0.95 !important;
    filter: brightness(1.4) contrast(1.15) !important;
  }

  .phil-timeline-card {
    padding: 24px 16px !important;
    background: #1B1414 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-left: none !important;
    border-right: none !important;
    border-radius: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  .phil-timeline {
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 28px !important;
    position: relative !important;
  }

  .phil-timeline::before {
    left: 5px !important;
    top: 6px !important;
    bottom: 6px !important;
  }

  .phil-timeline-item {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .phil-timeline-item::before {
    left: -28px !important;
    top: 2px !important;
  }

  /* -------------------------------------------------------------------------
     5. MISSION CONTROL FORM
     ------------------------------------------------------------------------- */
  #mission-control-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  #mission-control-container .phil-event-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 16px auto !important;
  }

  #mission-control-container h2 {
    text-align: center !important;
    width: 100% !important;
  }

  #mission-control-form {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    text-align: left !important;
  }

  .phil-form-wrap {
    padding: 0 !important;
    border: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .phil-form-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .phil-form-group,
  .phil-form-group-full {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .phil-form-input,
  textarea.phil-form-input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .phil-checkbox-row {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .phil-checkbox-input {
    flex-shrink: 0 !important;
    margin-top: 3px !important;
  }

  .phil-checkbox-text {
    font-size: 12px !important;
    line-height: 1.4 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    box-sizing: border-box !important;
  }

  .phil-form-footer {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }

  .phil-system-status {
    width: 100% !important;
    text-align: center !important;
  }

  .phil-form-footer .phil-btn {
    width: 100% !important;
    max-width: 100% !important;
    height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }

  }

/* -------------------------------------------------------------------------
   6. FOOTER INSET ALIGNMENT
   ------------------------------------------------------------------------- */
  

  

  

/* ==========================================================================
   MIGRATED SHARED BASE & COMPONENT STYLES (Self-contained from technical-report.css)
   ========================================================================== */

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

html, body {
  background-color: var(--bg, #120F0F);
  color: var(--text-white, #ffffff);
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

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

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

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

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



/* 4. Primary CTA Button (.btn-primary & .nav-cta) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary, #FFCE1B);
  color: #000000;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.1s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background-color: #e5b810;
}

.btn-primary:active {
  transform: scale(0.98);
}

/* 5. Complete Footer Component */


















































/* 6. Utility & Shared Component Badges */
.chip-dot-red {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FB1650;
  display: inline-block;
}

.desktop-tablet-cta {
  display: inline-flex;
}

.mobile-only-cta {
  display: none;
}

/* 7. Shared Responsive Media Queries from technical-report.css */
@media (max-width: 1100px) {
  

  

  

  
}

@media (max-width: 767px) {
  

  

  

  

  

  

  

  


}


/* ─────────────────────────────────────────────────────────────
   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: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 32px 20px !important;
    box-sizing: border-box !important;
    border-left: none !important;
    border-right: none !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;
  }
}


