/* ==============================================
   TAWI RESEARCH — Dark Modern Serif
   ============================================== */

:root {
  --bg: #111a14;
  --bg-alt: #0c1310;
  --bg-card: #182019;
  --surface: #1e2a22;
  --amber: #c8973e;
  --amber-light: #dbb368;
  --amber-glow: rgba(200,151,62,0.06);
  --green: #3d7a5a;
  --green-muted: #2a4d38;
  --cream: #eae5da;
  --cream-dim: #c8c2b4;
  --text: #d8d4cc;
  --text-mid: #9a9690;
  --text-dim: #605e58;
  --border: rgba(234,229,218,0.08);
  --border-mid: rgba(234,229,218,0.14);

  --heading: 'Lato', 'Calibri', 'Helvetica Neue', sans-serif;
  --body: 'Carlito', 'Calibri', 'Lato', sans-serif;

  --container: 1080px;
  --section-pad: clamp(80px, 10vw, 128px);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* Reveal */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: 0.06s; }
.d2 { transition-delay: 0.12s; }
.d3 { transition-delay: 0.18s; }

/* ==============================================
   NAV
   ============================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0;
  background: rgba(17,26,20,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto; padding: 0 32px;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: var(--heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: 0.01em;
}
.logo--footer { color: var(--text-mid); font-size: 0.95rem; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-family: var(--body);
  font-size: 0.82rem;
  color: var(--text-mid);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--cream); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav-toggle span { width: 20px; height: 1.5px; background: var(--cream); transition: all 0.3s; }

/* ==============================================
   HERO
   ============================================== */
.hero {
  padding: 180px 0 100px;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(61,122,90,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(200,151,62,0.05) 0%, transparent 50%),
    var(--bg);
}
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.hero-label {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 32px;
}
.hero h1 {
  font-family: var(--heading);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--cream);
  max-width: 780px;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}
.hero-sub {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-mid);
  max-width: 600px;
  margin-bottom: 40px;
}
.hero-link {
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--amber);
  border-bottom: 1px solid var(--amber);
  padding-bottom: 3px;
  transition: opacity 0.2s;
}
.hero-link:hover { opacity: 0.75; }

/* ==============================================
   NUMBERS
   ============================================== */
.numbers {
  padding: 48px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.number-big {
  display: block;
  font-family: var(--heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--amber);
  line-height: 1.1;
  margin-bottom: 6px;
}
.number-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ==============================================
   SHARED SECTION STYLES
   ============================================== */
.section { padding: var(--section-pad) 0; }
.section--alt { background: var(--bg-alt); }

.label {
  font-family: var(--body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 18px;
}
.label--gold { color: var(--amber-light); }

.section-title {
  font-family: var(--heading);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--cream);
  margin-bottom: 18px;
}
.section-title--light { color: var(--cream); }

.section-desc {
  font-size: 1rem;
  color: var(--text-mid);
  max-width: 580px;
  margin-bottom: 52px;
  line-height: 1.85;
}

/* ==============================================
   ABOUT
   ============================================== */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 72px;
  align-items: start;
}
.lead-text {
  font-family: var(--heading);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--cream);
}
.about-body p {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 18px;
}
.about-body p:last-child { margin-bottom: 0; }

/* ==============================================
   PULLQUOTE
   ============================================== */
.pullquote {
  padding: 72px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--amber-glow);
}
.pullquote blockquote {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.pullquote p {
  font-family: var(--heading);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 500;
  line-height: 1.6;
  color: var(--cream);
}

/* ==============================================
   PILLARS
   ============================================== */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}
.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 36px 32px;
  transition: border-color 0.3s;
}
.pillar:hover { border-color: var(--border-mid); }
.pillar-top { margin-bottom: 16px; }
.pillar-num {
  display: block;
  font-family: var(--heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--amber);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 12px;
}
.pillar h3 {
  font-family: var(--heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.35;
}
.pillar > p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 20px;
}
.pillar li {
  font-size: 0.82rem;
  color: var(--text-dim);
  padding: 4px 0 4px 18px;
  position: relative;
  line-height: 1.6;
}
.pillar li::before {
  content: '';
  position: absolute;
  left: 0; top: 12px;
  width: 8px; height: 1px;
  background: var(--amber);
  opacity: 0.5;
}

/* ==============================================
   CAPABILITIES
   ============================================== */
.caps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}
.cap {
  padding: 36px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color 0.3s;
}
.cap:hover { border-color: var(--border-mid); }
.cap h3 {
  font-family: var(--heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 10px;
  line-height: 1.35;
}
.cap p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.75;
}

.highlight-block {
  margin-top: 32px;
  padding: 36px 40px;
  border-left: 3px solid var(--amber);
  background: var(--amber-glow);
  border-radius: 0 4px 4px 0;
}
.highlight-block h3 {
  font-family: var(--heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--amber-light);
  margin-bottom: 10px;
}
.highlight-block p {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.8;
}

/* ==============================================
   TECHNOLOGY
   ============================================== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tech-card {
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: border-color 0.3s;
}
.tech-card:hover { border-color: var(--border-mid); }
.tech-badge {
  display: inline-block;
  font-family: var(--body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border-mid);
  padding: 3px 10px;
  border-radius: 3px;
  margin-bottom: 14px;
}
.tech-card h3 {
  font-family: var(--heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 8px;
}
.tech-card p {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ==============================================
   LEADERSHIP
   ============================================== */
.leaders {
  margin-top: 8px;
}
.leader {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  align-items: start;
}
.leader:last-child { border-bottom: 1px solid var(--border); }
.leader strong {
  font-family: var(--heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--cream);
}
.leader p {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.7;
}

/* ==============================================
   CONTACT
   ============================================== */
.section--contact {
  background:
    radial-gradient(ellipse at 70% 50%, rgba(200,151,62,0.04) 0%, transparent 60%),
    var(--bg-alt);
  border-top: 1px solid var(--border);
}
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-text {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.8;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 8px;
}
.contact-label {
  display: block;
  font-family: var(--body);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 4px;
}
.contact-row a,
.contact-row span {
  font-size: 1rem;
  color: var(--cream);
}
.contact-row a:hover { color: var(--amber-light); }

/* ==============================================
   FOOTER
   ============================================== */
.footer {
  padding: 32px 0 24px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 0.78rem;
  color: var(--text-dim);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-mid); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 900px) {
  .about-layout { grid-template-columns: 1fr; gap: 36px; }
  .pillars { grid-template-columns: 1fr; }
  .caps-grid { grid-template-columns: 1fr 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; gap: 48px; }
  .leader { grid-template-columns: 1fr; gap: 4px; }
  .numbers-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 640px) {
  .container, .hero-inner, .nav-inner { padding: 0 20px; }

  .nav-links {
    position: fixed; top: 0; right: -100%;
    width: 80%; max-width: 300px; height: 100vh;
    background: var(--bg);
    flex-direction: column; justify-content: center;
    padding: 40px; gap: 20px;
    transition: right 0.3s;
    border-left: 1px solid var(--border);
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1rem; }
  .nav-toggle { display: flex; }
  .nav-toggle.active span:first-child { transform: rotate(45deg) translate(3px, 3px); }
  .nav-toggle.active span:last-child { transform: rotate(-45deg) translate(3px, -3px); }

  .hero { padding: 130px 0 72px; }
  .hero h1 { font-size: 2rem; }
  .numbers-grid { grid-template-columns: 1fr; gap: 28px; }
  .highlight-block { padding: 28px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; gap: 4px; }
}
