/* Disable fade-in for mobile and tablets */
@media (max-width: 900px) {
  .fade-section {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
/* Fade-in on scroll for major sections */
.fade-section {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1.1s cubic-bezier(0.4,0,0.2,1), transform 1.1s cubic-bezier(0.4,0,0.2,1);
}
.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Evronos — minimal, quiet, confident */
:root{
  --bg: #0b0d10;
  --panel: rgba(255,255,255,0.06);
  --panel2: rgba(255,255,255,0.08);
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.62);
  --line: rgba(255,255,255,0.12);
  --glow: rgba(255,255,255,0.18);
  --max: 1040px;
  --radius: 18px;

}

*{ box-sizing: border-box; }
html,body{ height:100%; background: var(--bg) }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 700px at 20% 10%, rgba(255,255,255,0.12), transparent 60%),
              radial-gradient(900px 600px at 80% 30%, rgba(255,255,255,0.08), transparent 55%),
              var(--bg);
  min-height: 100vh;
  letter-spacing: -0.01em;
  isolation: isolate;
}

.bg-noise{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  /* remove compositor weirdness */
  mix-blend-mode: normal;

  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

#hexagon-bg{
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

a{ color: var(--text); text-decoration: none; }
a:hover{ opacity: 0.9; }

.topbar{
  position: relative;
  z-index: auto;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  width: 100%;
  margin: 0;
  padding: 22px clamp(20px, 4vw, 60px) 8px;
}

.brand{ 
  display:flex; 
  align-items:center; 
  gap:12px;
  z-index: auto;
}
.logo{
  width: 60px; height:60px;
  border-radius: 10px;
  padding: 6px;
  border: 1px solid rgba(255,255,255,0.10);
}
.wordmark{ height: 24px; width: auto; font-weight: 600; font-size: 20px; letter-spacing: 0.06em; text-transform: uppercase; }

.nav{ 
  display:flex; 
  gap: 18px;
  position: fixed;
  top: 26px;
  right: 26px;
  z-index: 20;
  background: rgba(11,13,16,0.60);
  backdrop-filter: blur(10px);
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
}
.nav a{
  font-size: 13px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.nav a:hover{
  color: var(--text);
  border-color: rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
}

@media (min-width: 641px){
  .topbar{
    position: relative !important;
    top: auto;
    left: auto;
    right: auto;
  }
  .brand{
    position: relative !important;
  }
}

/* hamburger menu button */
.menu-toggle{
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 21;
}

.menu-toggle span{
  width: 24px;
  height: 2px;
  background: rgba(255,255,255,0.80);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1){
  transform: rotate(45deg) translate(10px, 10px);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2){
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3){
  transform: rotate(-45deg) translate(7px, -7px);
}

.shell{
  width: min(var(--max), calc(100% - 48px));
  margin: 26px auto;
  padding: 56px 0 40px;
  position: relative;
  z-index: 1;
}

/* the glass */
.shell::before{
  display: none;
}

.shell::after{
  display: none;
}

.hero{ padding: 72px 0 30px; }
.kicker{
  display:inline-block;
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.03);
  font-size: 14px;
}
h1{
  margin: 18px 0 10px;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.hero p{
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

/* CTA row styles */
/* CTA row styles */
.cta-row{
  display:flex;
  align-items:center;
  gap: 16px;
  margin-top: 18px;
  margin-bottom: 44px; /* Slight bottom margin below CTA */
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05) inset;
  font-size: 14px;
  font-weight: 500;
}
.btn:hover{ background: rgba(255,255,255,0.08); }
.hint{ color: rgba(255,255,255,0.45); font-size: 13px; }

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.card{
  grid-column: span 4;
  padding: 18px 18px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.10);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  box-shadow: 0 18px 60px rgba(0,0,0,0.35);
}
.card h2{
  margin: 0 0 8px;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.80);
}
.card p{
  margin:0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.flow{
  white-space: nowrap;
}

/* consistent section headings for cards, principles, and contact */
.shell h2{
  margin: 0 0 8px;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.80);
}

/* Increased vertical spacing for all major sections */
/* Increased and asymmetric vertical spacing for major sections */
.wide{ margin-top: 100px; margin-bottom: 96px; }

/* Extra top margin for Mission section for subtle asymmetry */
#mission.wide {
  margin-top: 104px;
}
.split{
  display:grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}
.split > div{
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
}

/* mission paragraph inside the split column */
.split > div > p{
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.list{
  list-style:none;
  padding: 0;
  margin: 12px 0 0;
  display:flex;
  flex-direction: column;
  gap: 10px;
}
.list li{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  color: rgba(255,255,255,0.80);
}
.list li span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 32px;
  height: 28px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.58);
  font-size: 12px;
}

/* circle styling for principles */
.principles-list li span{
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(255,255,255,0.50);
  border: 1px solid rgba(255,255,255,0.60);
  color: transparent;
  font-size: 0;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
}

.quote{
  position: relative;
  overflow:hidden;
}
.quote-inner{
  height: auto;                 /* important */
  justify-content: flex-start;  /* important */
}
.quote p{
  margin:0;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255,255,255,0.86);
  font-style: italic;
}
.quote-meta{
  color: rgba(255,255,255,0.50);
  font-size: 13px;
}
.quote:before{
  content:"";
  position:absolute;
  inset:-60px;
  background: radial-gradient(closest-side at 30% 30%, rgba(255,255,255,0.10), transparent 60%);
  transform: rotate(10deg);
  opacity: 0.7;
  pointer-events:none;
}
.principles-list li {
  display: flex;
  gap: 12px;
}

.principle-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.principle-text strong {
  font-weight: 500;
}

.principle-text p {
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.7;
  margin: 0;
}

#principles .split{
  grid-template-columns: 1fr;
}



.footer{ margin-top: 96px; }
.footer-bar{
  width: 100%;
}

.footer-bar-inner{
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255,255,255,0.45);
  font-size: 12px;
}
.footer-card{
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
}
.footer-card h2{
  margin: 0 0 8px;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.80);
}
.footer-card p{ margin:0; color: var(--muted); line-height:1.6; }

.contact{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items:center;
  margin-top: 12px;
}
.contact-link{
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  font-size: 14px;
}
.sep{ color: rgba(255,255,255,0.30); }
.meta{ color: rgba(255,255,255,0.50); font-size: 13px; }

.bottom{
  display:flex;
  justify-content: space-between;
  align-items:center;
  gap: 12px;
  padding: 14px 4px 0;
  color: rgba(255,255,255,0.45);
  font-size: 12px;
}
.small{ color: rgba(255,255,255,0.35); }

@media (max-width: 640px){
  .topbar{
    position: relative;
    padding: calc(env(safe-area-inset-top, 0px) + 10px) 18px 10px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: none;
    backdrop-filter: none;
    width: 100%;
    margin: 0;
    z-index: 50;
  }

  /* Pin only on real mobile/touch devices (prevents narrow desktop windows from becoming fixed). */
  @media (hover: none) and (pointer: coarse){
    .topbar{
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
    }
  }
  
  .menu-toggle{
    display: flex;
  }

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

  .nav{
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(11,13,16,0.95);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    z-index: 20;
  }

  .nav.active{
    display: flex;
  }

  .nav a{
    padding: 12px 20px;
    border-radius: 0;
    border: none;
    font-size: 14px;
  }

  .nav a:hover{
    background: rgba(255,255,255,0.05);
    border: none;
  }

  .logo{
    width: 44px;
    height: 44px;
    padding: 5px;
  }

  .wordmark{
    height: 18px;
    font-size: 16px;
    letter-spacing: 0.08em;
  }
  h1{
    font-size: 34px;
    line-height: 1.08;
    letter-spacing: -0.03em;
  }

  .hero{
    padding: 22px 0 18px;
  }

  .hero p{
    font-size: 15px;
    line-height: 1.55;
  }
  .cta-row{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
  }

  .cta-row .btn{
    width: auto;
    align-self: flex-start;
  }

  .hint{
    display: none;
  }
  .grid{
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .card{
    padding: 16px;
    border-radius: 16px;
    grid-column: 1 / -1;
  }

  .card h2{
    font-size: 13px;
  }

  .card p{
    font-size: 14px;
  }
  .list{
    gap: 8px;
  }

  .list li{
    padding: 9px 10px;
    font-size: 14px;
  }

  .list li span{
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    line-height: 28px;
    font-size: 11px;
  }

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

  .wide{
    margin-top: 40px;
    margin-bottom: 40px;
  }

  .split > div{
    padding: 18px;
    border-radius: var(--radius);
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.03);
  }

  #principles{
    margin: 40px -12px;
    padding: 0 12px;
  }

  #principles .split > div{
    padding: 18px;
    margin: 0;
  }

  /* Ensure order: Principles first, Mission second on mobile */
  .split > div:first-child { order: 1; }
  .split > div:last-child { order: 2; }
  .quote p{
    font-size: 16px;
    line-height: 1.45;
  }

  .quote-meta{
    font-size: 12px;
  }
  .shell{
    width: calc(100% - 24px);
    padding: 120px 0 28px;
  }

  .shell::before,
  .shell::after{
    inset: -10px;
    border-radius: 22px;
  }
  
}

.focus-container{
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
}

.focus-container h2{
  margin: 0 0 16px;
}

.focus-container .grid{
  margin-top: 0;
  margin-bottom: 0;
}

/* Desktop override (placed last so it wins the cascade): topbar must scroll with the page. */
@media (min-width: 641px){
  .topbar{
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
  }
}