/* ═══════════════════════════════════════════════════════════════
   about-layout.css — Teh Tarik Digital · About Us Page Layout
   ═══════════════════════════════════════════════════════════════ */

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  position:       relative;
  z-index:        1;
  padding:        0;
  max-width:      100%;
  margin:         0;
  overflow:       hidden;
  min-height:     420px;
  display:        flex;
  align-items:    stretch;
}

/* Left text column ~40% */
.hero-text {
  position:       relative;
  z-index:        2;
  width:          62%;
  min-width:      280px;
  max-width:      calc(var(--page-width) - 56px);
  padding:        80px 24px 48px 0;
  margin-left:    max(28px, calc((100% - var(--page-width)) / 2 + 28px));
  flex-shrink:    0;
}

/* World map canvas — covers full hero; JS draws at correct aspect ratio */
#world-map {
  position:       absolute;
  top:            0;
  left:           0;
  right:          0;
  bottom:         0;
  width:          100%;
  height:         100%;
  z-index:        0;
  display:        block;
  /* Fade left edge into nothing so text sits cleanly */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.15) 8%, rgba(0,0,0,0.85) 22%, black 40%);
  mask-image:         linear-gradient(to right, transparent 0%, rgba(0,0,0,0.15) 8%, rgba(0,0,0,0.85) 22%, black 40%);
}

.page-tag {
  font-size:      12px;
  letter-spacing: 3px;
  color:          var(--text-tag);
  text-transform: uppercase;
  margin-bottom:  20px;
}

.page-tag span { color: var(--brand-blue); }

h1 {
  font-family:    var(--font-display);
  font-size:      clamp(28px, 5vw, 52px);
  font-weight:    900;
  letter-spacing: 2px;
  line-height:    1.1;
  text-transform: uppercase;
  margin-bottom:  24px;
}

.hero-sub {
  font-size:  16px;
  line-height: 1.8;
  color:       var(--text-muted);
  max-width:   560px;
}

/* ── HERO WORD ROTATOR ─────────────────────────────────────── */
.hero-rotator {
  display:                block;
  width:                  100%;
  white-space:            nowrap;
  overflow:               hidden;
  min-height:             1.1em;
  font-variant-ligatures: none;
}

/* Active only during the brief decode/scramble window, not a
   persistent state — applied/removed by hero-rotator.js.
   Plain white flicker, no color tint. */
.hero-rotator.decoding {
  animation: hero-rotator-flicker 0.08s steps(2) infinite;
}

@keyframes hero-rotator-flicker {
  0%   { opacity: 1;    }
  50%  { opacity: 0.82; }
  100% { opacity: 1;    }
}

@media (prefers-reduced-motion: reduce) {
  .hero-rotator.decoding {
    animation: none;
  }
}

/* ── SECTION ────────────────────────────────────────────────── */
.section {
  position:   relative;
  z-index:    1;
  max-width:  var(--page-width);
  margin:     0 auto;
  padding:    32px 28px;
}

.section-tag {
  font-size:      12px;
  letter-spacing: 3px;
  color:          var(--brand-blue);
  text-transform: uppercase;
  margin-bottom:  32px;
  display:        flex;
  align-items:    center;
  gap:            12px;
}

.section-tag::after {
  content:    '';
  flex:       1;
  height:     1px;
  background: rgba(41, 121, 255, 0.20);
}

/* ── ORIGIN STORY ───────────────────────────────────────────── */
.story-body {
  display:               grid;
  grid-template-columns: repeat(2, 1fr);
  gap:                   0 48px;
}

.story-body p {
  font-size:     14px;
  line-height:   1.9;
  color:         var(--text-muted);
  margin-bottom: 20px;
}

.story-body p:last-child { margin-bottom: 0; }

.story-body .highlight { color: var(--brand-orange); }


/* ── CULTURE GRID ───────────────────────────────────────────── */
.culture-grid {
  display:               grid;
  grid-template-columns: repeat(4, 1fr);
  gap:                   16px;
}

.culture-card {
  padding:    24px 20px;
  border:     1px solid var(--border-medium);
  background: var(--card-bg);
  position:   relative;
  overflow:   hidden; /* clip braille overlay */
  transition: border-color 0.2s, background 0.2s;
}

.culture-card::before {
  content:    '';
  position:   absolute;
  top:        0;
  left:       0;
  right:      0;
  height:     2px;
  background: var(--brand-blue);
}

.culture-card:hover {
  border-color: var(--border-strong);
  background:   rgba(41, 121, 255, 0.06);
}

.culture-icon {
  font-size:     20px;
  color:         var(--brand-blue);
  margin-bottom: 14px;
}

.culture-label {
  font-family:    var(--font-display);
  font-size:      8px;
  font-weight:    700;
  letter-spacing: 2px;
  color:          var(--text-faint);
  text-transform: uppercase;
  margin-bottom:  8px;
}

.culture-title {
  font-size:     14px;
  letter-spacing: 1px;
  color:         var(--text-primary);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.culture-desc {
  font-size:   13px;
  line-height: 1.7;
  color:       var(--text-dim);
}


/* ── FADE-IN ─────────────────────────────────────────────────── */
.fade-in {
  opacity:    0;
  transform:  translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity:   1;
  transform: translateY(0);
}

