* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #000;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: #000;
  text-decoration: none;
}

.contact-btn {
  padding: 12px 24px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
}


/* Sections */
.section {
  min-height: 100vh;
  padding: 120px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.6s ease;
}

/* Progressive grayscale gradient backgrounds */
.hero {
  background-color: #FFFFFF !important;
  /*  */
  color: #000;
}

.core {
  background: #F0F0F0 !important;
  /*   */
  color: #000;
}

.rhythm {
  background: #E0E0E0 !important;
  /*    */
  color: #000;
}

.structure {
  background: #C8C8C8 !important;
  /*    */
  color: #1a1a1a;
}

.algorithm {
  background: #A0A0A0 !important;
  /*    */
  color: #1a1a1a;
}

.ai {
  background: #787878 !important;
  /*   */
  color: #ffffff;
}

.flow {
  background: #585858 !important;
  /*     */
  color: #ffffff;
}

.business {
  background: #383838 !important;
  /*    */
  color: #ffffff;
}

.network {
  background: #282828 !important;
  /* Network   */
  color: #ffffff;
}

.contact {
  background: #1a1a1a !important;
  /*   ( ) */
  color: #ffffff;
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* Hero */
.hero {
  background-image: url('hero-bg-final.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 80px;
}

.hero h1 {
  font-size: 96px;
  font-weight: 700;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(50px);
  animation: heroFadeUp 1s ease-out 0.3s forwards;
}

.hero .subtitle {
  font-size: 30px;
  font-weight: 300;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(50px);
  animation: heroFadeUp 1s ease-out 0.6s forwards;
}

.hero .slogan {
  font-size: 50px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 30px;
}

.hero .slogan-line {
  opacity: 0;
  transform: translateY(50px);
  display: block;
  margin: 10px 0;
}

.hero .slogan-line:nth-child(1) {
  animation: heroFadeUp 1s ease-out 0.8s forwards;
}

.hero .slogan-line:nth-child(2) {
  animation: heroFadeUp 1s ease-out 0.95s forwards;
}

.hero .slogan-line:nth-child(3) {
  animation: heroFadeUp 1s ease-out 1.1s forwards;
}

.hero .description {
  font-size: 19px;
  font-weight: 300;
  opacity: 0;
  animation: fadeIn 1s ease-out 1.5s forwards;
}

@keyframes heroFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Two Column Layout */
.two-column {
  display: flex;
  align-items: center;
  gap: 50px;
}

.text-block {
  flex: 1;
}

.text-block h2 {
  font-size: 60px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 28px;
}

.text-block p {
  font-size: 20px;
  line-height: 1.7;
}

.section-subtitle {
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 20px;
  opacity: 0.8;
  margin-top: -15px;
}

.image-block {
  flex: 1;
}

.image-block img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Image blocks - transparent backgrounds */
.image-block img {
  background-color: transparent;
  padding: 0;
}

/* Core Section */
.core .text-block {
  flex: 0 0 50%;
}

.core .image-block {
  flex: 0 0 50%;
  position: relative;
}

/* Core Image Dynamic Effect */
.core .image-block img {
  transition: transform 0.3s ease;
  background-color: transparent;
  padding: 0;
  border-radius: 0;
}

@media (hover: hover) {
  .core .image-block:hover img {
    transform: scale(1.05);
  }
}

.core .image-block::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: corePulse 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes corePulse {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }

  50% {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
  }
}

/* Rhythm Section */
.rhythm .image-block {
  flex: 0 0 50%;
  order: -1;
  position: relative;
}

.rhythm .text-block {
  flex: 0 0 50%;
}

/* Rhythm Image Dynamic Effect */
.rhythm .image-block img {
  transition: transform 0.3s ease;
}

@media (hover: hover) {
  .rhythm .image-block:hover img {
    transform: scale(1.03);
  }
}

/* Structure Section */
.structure .text-block,
.structure .image-block {
  flex: 0 0 50%;
}

.structure .image-block {
  position: relative;
}

/* Structure Image Dynamic Effect */
.structure .image-block img {
  transition: transform 0.3s ease;
}

@media (hover: hover) {
  .structure .image-block:hover img {
    transform: scale(1.04);
  }
}

/* Algorithm Section */
.algorithm .image-block {
  flex: 0 0 50%;
  order: -1;
  position: relative;
}

.algorithm .text-block {
  flex: 0 0 50%;
}

/* Algorithm Image Dynamic Effect */
.algorithm .image-block img {
  transition: transform 0.3s ease;
}

@media (hover: hover) {
  .algorithm .image-block:hover img {
    transform: scale(1.05);
  }
}

/* AI Section */
.ai .text-block {
  flex: 0 0 50%;
}

.ai .image-block {
  flex: 0 0 50%;
}

/* AI Image Dynamic Effect */
.ai .image-block img {
  transition: transform 0.3s ease;
}

@media (hover: hover) {
  .ai .image-block:hover img {
    transform: scale(1.05);
  }
}

/* Flow Section */
.flow .image-block {
  flex: 0 0 50%;
  order: -1;
}

.flow .text-block {
  flex: 0 0 50%;
}

/* Flow Image Dynamic Effect */
.flow .image-block img {
  transition: transform 0.3s ease;
}

@media (hover: hover) {
  .flow .image-block:hover img {
    transform: scale(1.05);
  }
}

/* Business Divisions */
.business {
  text-align: center;
  flex-direction: column;
}

.business h2 {
  font-size: 52px;
  font-weight: 700;
  margin-bottom: 20px;
}

.business .subtitle {
  font-size: 22px;
  font-weight: 300;
  margin-bottom: 60px;
}

.business-visual {
  margin-bottom: 60px;
}

.business-description {
  text-align: center;
  margin-bottom: 80px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.business-description .main-line {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #fff;
}

.business-description .sub-lines p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
  line-height: 1.6;
}

.business-visual img {
  max-width: 900px;
  /* 1200px 75% */
  width: 75%;
  /* 25%  */
  height: auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transition: transform 0.3s ease;
}

@media (hover: hover) {
  .business-visual:hover img {
    transform: scale(1.03);
  }
}

.divisions {
  display: flex;
  flex-direction: column;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
}

.division {
  text-align: left;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.division h3 {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 12px;
}

.division .division-subtitle {
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 20px;
  opacity: 0.8;
}

.division p {
  font-size: 17px;
  line-height: 1.6;
}

/* Network Section */
.network {
  text-align: center;
  flex-direction: column;
  align-items: center;
  min-height: auto;
  padding: 100px 0;
}

.network h2 {
  font-size: 52px;
  font-weight: 700;
  margin-bottom: 20px;
}

.network .subtitle {
  font-size: 22px;
  font-weight: 300;
  margin-bottom: 60px;
  max-width: 900px;
  line-height: 1.5;
  margin-left: auto;
  margin-right: auto;
}

.network-categories {
  display: flex;
  flex-direction: column;
  gap: 50px;
  max-width: 1000px;
  margin: 0 auto;
}

.network-category {
  text-align: center;
}

.network-category h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 25px;
  color: #fff;
}

.tool-list {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  transition: color 0.3s ease;
}

.tool-list:hover {
  color: #fff;
}

/* Contact */
.contact {
  text-align: center;
  flex-direction: column;
}

.contact h2 {
  font-size: 52px;
  font-weight: 700;
  margin-bottom: 20px;
}

.contact .subtitle {
  font-size: 22px;
  margin-bottom: 60px;
}

.contact-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  margin: 0 auto;
}

.contact-form {
  max-width: 700px;
  width: 100%;
}

.form-group {
  margin-bottom: 24px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 15px;
}

.form-group textarea {
  height: 180px;
  resize: vertical;
  white-space: pre-wrap;
}

.submit-btn {
  display: block;
  margin-left: auto;
  padding: 12px 24px;
  background: #fff;
  color: #000;
  text-decoration: none;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.submit-btn:hover {
  opacity: 0.8;
}

.contact-info {
  max-width: 900px;
  width: 100%;
  text-align: center;
  margin: 60px auto 0;
}

.contact-info h3 {
  font-size: 28px;
  margin-bottom: 30px;
}

.info-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 15px;
  text-align: center;
  align-items: center;
}

.info-item {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.info-item:not(:last-child)::after {
  content: '|';
  margin-left: 20px;
  color: rgba(255, 255, 255, 0.3);
}

.info-item strong {
  font-weight: 600;
  margin-right: 8px;
  color: #fff;
}

.info-address {
  text-align: center;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0;
}

.info-address strong {
  font-weight: 600;
  margin-right: 8px;
  color: #fff;
}

/* Mobile adjustment for contact info */
@media (max-width: 768px) {
  .info-grid {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .info-item {
    justify-content: center;
  }

  .info-item:not(:last-child)::after {
    display: none;
  }

  .info-address {
    padding: 0 20px;
  }
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.animate-left {
  transform: translateX(-50px);
}

.animate-on-scroll.animate-right {
  transform: translateX(50px);
}

.animate-on-scroll.animate-scale {
  transform: scale(0.9);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

/* Responsive */
@media (max-width: 768px) {
  .section {
    padding: 60px 20px;
  }

  /* Mobile: Image on top, text below for all sections */
  .two-column .image-block {
    order: -1 !important;
  }

  .hero h1 {
    font-size: 42px;
    /* Reduced from 48px to prevent overflow */
    word-break: keep-all;
    /* Prevent awkward breaks if possible */
  }

  .hero .subtitle {
    font-size: 20px;
  }

  .hero .slogan {
    font-size: 28px;
  }

  .hero .description {
    font-size: 16px;
  }

  /* Mobile Hero Background Adjustment */
  .hero {
    background-attachment: scroll;
    background-size: cover;
    background-position: center center;
    min-height: 100vh;
  }

  .two-column {
    flex-direction: column;
    gap: 40px;
  }

  .text-block h2 {
    font-size: 36px;
  }

  .algorithm h2 {
    font-size: 40px;
  }

  .algorithm .content {
    padding: 40px 30px;
  }

  .business h2,
  .network h2,
  .contact h2 {
    font-size: 36px;
  }

  .contact-content {
    gap: 40px;
  }

  .business-visual img {
    width: 100%;
    max-width: 100%;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .header {
    padding: 12px 20px;
  }

  .logo {
    font-size: 20px;
  }

  /* Footer */
  .footer {
    background: #000;
    color: rgba(255, 255, 255, 0.6);
    padding: 40px 20px;
    text-align: center;
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
  }

  .footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .footer-links a:hover {
    color: #fff;
  }

  .copyright {
    font-weight: 300;
  }

  .contact-btn {
    padding: 8px 16px;
    font-size: 14px;
  }
}

/* Footer */
.footer {
  background-color: #0a0a0a;
  padding: 40px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 20px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: #fff;
}

.copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  text-align: center;
}

/* Team Section - Architects of Structure */
.team {
  position: relative;
  /* Ensure section is large enough */
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 100px 0;
}



/* Foreground Content */
.team-content {
  position: relative;
  z-index: 2;
  /* On top of image */
  text-align: center;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  /* Center the container */
}

.team-header h2 {
  font-family: 'Inter', sans-serif;
  font-size: 52px;
  /* Large title */
  font-weight: 700;
  margin-bottom: 30px;
  letter-spacing: -1px;
}

.team-header .description {
  font-size: 22px;
  /* Increased to match Network section */
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 35px;
  /* Reduced from 60px as requested ("Reduce gap between body and image") */
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}


/* Middle Visual Image */
.team-visual-middle {
  margin: 0 auto 0;
  /* REMOVED bottom margin to pull text closer */
  width: 100%;
  max-width: 750px;
  /* Reduced from 850px */
  display: flex;
  justify-content: center;
}

/* Team Roles - Distributed to match the 3 characters in the image */
.team-roles {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  width: 100%;
  max-width: 750px;
  /* Visual Alignment Correction:
     The characters in the image sit slightly to the right optically.
     We shift the text grid to match them.
     margin: -10px auto 0; -> becomes margin-left/right adjustments or transform.
  */
  margin: -10px auto 0;
  padding: 0;
  transform: translateX(15px);
  /* Shift reduced to 15px */
}

/* ... (role-item styles remain similar) ... */

@keyframes energy-pulse {
  0% {
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.2));
    opacity: 0.9;
  }

  50% {
    filter: drop-shadow(0 0 7px rgba(255, 255, 255, 0.7));
    /* Visible Glow */
    opacity: 1;
  }

  100% {
    filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.2));
    opacity: 0.9;
  }
}

.team-img-final {
  width: 100%;
  height: auto;
  display: block;
  /* Apply the "Energy Pulse" animation */
  animation: energy-pulse 4s infinite ease-in-out;
}

/* Team Roles - Distributed to match the 3 characters in the image */
.team-roles {
  position: relative;
  /* z-index removed as no overlay exists */
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  width: 100%;
  max-width: 750px;
  /* Matched to 750px to tighten spacing */
  /* Visual Alignment Correction:
     Shift reduced to 15px.
     Vertical Gap: Reset to 0px (User requested "Wider gap").
  */
  margin: -5px auto 0;
  padding: 0;
  transform: translateX(15px);
}

/* Role Item Specifics */
.role-item {
  /* Align self center is default in grid but being explicit helps */
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  /* For pseudo-elements */
  padding-top: 50px;
  /* Space for the longer connecting line */
}

/* Continuous "Drop" Animation for the Line */
@keyframes line-drop {
  0% {
    background-position: 0 -30px;
    /* Start above */
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }

  100% {
    background-position: 0 30px;
    /* End below */
    opacity: 0.5;
  }
}

/* Synchronized "Sparkle/Hit" Animation for the Dot */
@keyframes dot-hit {
  0% {
    transform: translateX(-50%) scale(1);
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }

  70% {
    /* Wait for line to reach bottom */
    transform: translateX(-50%) scale(1);
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }

  85% {
    /* Hit! */
    transform: translateX(-50%) scale(1.6);
    /* Grow */
    box-shadow: 0 0 8px rgba(255, 255, 255, 1);
    /* Sparkle */
    background-color: #ffffff;
  }

  100% {
    transform: translateX(-50%) scale(1);
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* Initial States for Animation */
.role-item::before {
  content: '';
  position: absolute;
  top: 15px;
  /* Cut top 1/3 */
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 0;
  /* Starts 0 for entrance, grows to 30px */

  /* Gradient for the "Falling" effect */
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 1) 50%,
      rgba(255, 255, 255, 0) 100%);
  background-size: 100% 200%;
  /* Double height for scrolling */
  opacity: 0.8;

  transition: height 0.8s ease-out;
}

/* Triggered State */
.team-roles.visible .role-item::before {
  height: 30px;
  /* Run the loop ONLY after entrance */
  animation: line-drop 2s infinite linear;
}

.role-item::after {
  content: '';
  position: absolute;
  top: 45px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  width: 4px;
  height: 4px;
  background-color: #FFFFFF;
  border-radius: 50%;
  /* Start hidden for pop entrance */
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transition-delay: 0.6s;
}

.team-roles.visible .role-item::after {
  transform: translateX(-50%) scale(1);
  /* Add the loop animation, delayed to start after entrance */
  animation: dot-hit 2s infinite ease-in-out;
  animation-delay: 0.6s;
  /* Sync with line start? Or purely cycle based. */
}

.role-title {
  display: block;
  font-family: 'Roboto Mono', monospace;
  /* Ensure Monospace is prioritized */
  font-size: 13px;
  /* Slightly smaller */
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  /* 70% Opacity as requested */
  margin-top: 8px;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.role-name {
  display: block;
  font-family: 'Roboto Mono', monospace;
  font-size: 26px;
  /* Increased from 20px -> 26px */
  font-weight: 700;
  /* Bold */
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 2px;
  /* Wider spacing for impact */
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .team {
    min-height: auto;
    /* Remove fixed height constraint */
    padding: 60px 0;
  }

  .team-visual-middle {
    max-width: 100%;
    /* Allow full width */
    padding: 0 10px;
    /* Slight padding */
  }

  .team-img-final {
    /* Ensure image fits */
    width: 100%;
    height: auto;
  }

  /* Override the legacy .team-drawing-img styles if they conflict, 
     but mostly we focus on .team-roles */

  .team-roles {
    /* Restore Grid for proper alignment with image */
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;

    /* Remove the massive 250px margin */
    margin-top: -5px;
    /* Keep it tight like desktop */
    margin-left: auto;
    margin-right: auto;

    gap: 0;
    /* Let grid handle it */
    transform: translateX(5px);
    /* Slightly less shift on mobile */
  }

  .role-item {
    /* Fix for Overlap:
       Desktop Dot is at top: 45px.
       Mobile padding was 30px, causing text to start at 30px and be covered by the dot.
       Solution: Increase padding to 55px to clear the dot.
    */
    padding-top: 55px;
  }

  .role-title {
    font-size: 11px;
  }

  .role-name {
    font-size: 18px;
  }

  /* Smaller font for mobile */
}