/* ============================================================
   Thiqa Intelligence — Corporate Website
   Palette: deep green / near-black, corporate green, muted green
   ============================================================ */

:root{
  --deep: #041B2D;
  --corporate: #0B4F8A;
  --muted: #4472A0;
  --teal-accent: #4EA1D8;
  --grad-brand: linear-gradient(135deg, #0B4F8A 0%, #1878C2 55%, #4EA1D8 100%);
  --grad-dark: linear-gradient(160deg, #041B2D 0%, #0A3763 55%, #0B4F8A 100%);
  --grad-glow: radial-gradient(60% 60% at 50% 0%, rgba(78,161,216,0.16), transparent 70%);
  --off-white: #F6F4EE;
  --paper: #FBFAF6;
  --grey-50: #F1F0EC;
  --grey-200: #DEDCD3;
  --grey-400: #A6ADB4;
  --grey-600: #6E6D64;
  --ink: #0B1614;
  --line: rgba(11,79,138,0.12);
  --line-strong: rgba(11,79,138,0.22);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(2,14,26,0.04), 0 1px 1px rgba(2,14,26,0.03);
  --shadow-md: 0 8px 30px rgba(2,14,26,0.07);
  --shadow-lg: 0 20px 60px rgba(2,14,26,0.12);
  --ease: cubic-bezier(.22,1,.36,1);
  --container: 1240px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body{
  margin: 0;
  font-family: "Inter", "Suisse Intl", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01" on, "cv01" on;
}

img, svg{ display:block; max-width:100%; }

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

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

@media (max-width: 720px){
  .container{ padding: 0 20px; }
}

/* ---------- Typography ---------- */

h1,h2,h3,h4{
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--deep);
}

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}

.eyebrow::before{
  content: "";
  width: 14px;
  height: 1px;
  background: var(--muted);
}

.section-head{
  max-width: 720px;
  margin-bottom: 56px;
}

.section-head h2{
  font-size: clamp(28px, 3.6vw, 42px);
  margin-top: 14px;
}

.section-head p{
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--grey-600);
  max-width: 620px;
}

.section-head.center{
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head.center p{ margin-left:auto; margin-right:auto; }
.section-head.center .eyebrow::before{ display:none; }

section{
  padding: 120px 0;
  position: relative;
}

@media (max-width: 900px){
  section{ padding: 84px 0; }
}

.section-alt{
  background: var(--off-white);
}

.section-dark{
  background: var(--grad-dark);
  color: var(--off-white);
}
.section-dark h2, .section-dark h3, .section-dark h4{ color: #fff; }
.section-dark .eyebrow{ color: var(--teal-accent); }
.section-dark .eyebrow::before{ background: var(--teal-accent); }
.section-dark .section-head p{ color: rgba(246,244,238,0.68); }

/* ---------- Buttons ---------- */

.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .35s var(--ease);
  white-space: nowrap;
}

.btn-primary{
  background: var(--grad-brand);
  color: #fff;
  background-size: 160% 160%;
  background-position: 0% 50%;
}
.btn-primary:hover{
  background-position: 100% 50%;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(78,161,216,0.15);
}

.btn-ghost{
  background: transparent;
  border-color: var(--line-strong);
  color: var(--deep);
}
.btn-ghost:hover{
  border-color: var(--deep);
  background: rgba(11,79,138,0.04);
}

.section-dark .btn-ghost{
  border-color: rgba(246,244,238,0.28);
  color: #fff;
}
.section-dark .btn-ghost:hover{
  border-color: #fff;
  background: rgba(255,255,255,0.06);
}

.btn-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--corporate);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: all .3s var(--ease);
}
.btn-link:hover{ border-color: currentColor; gap: 12px; }
.btn-link svg{ transition: transform .3s var(--ease); }

/* ============================================================
   Navigation
   ============================================================ */

.nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .4s var(--ease), border-color .4s var(--ease), padding .4s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.scrolled{
  background: rgba(251,250,246,0.86);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.nav-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--deep);
}

.logo .mark{
  width: 26px; height: 26px;
  position: relative;
}

.logo-word{ display:flex; align-items:baseline; gap: 6px; }
.logo-word .thin{ font-weight: 400; color: var(--muted); }

.nav-links{
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0; padding: 0;
}

.nav-links > li{ position: relative; }

.nav-links a.nav-item{
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--corporate);
  border-radius: 999px;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.nav-links a.nav-item:hover{ background: rgba(11,79,138,0.06); }

.nav-links .chev{ transition: transform .25s var(--ease); }
.has-dropdown:hover .chev{ transform: rotate(180deg); }

.dropdown{
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 320px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
}

.has-dropdown:hover .dropdown{
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown a{
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 10px;
  transition: background .2s;
}
.dropdown a:hover{ background: var(--off-white); }
.dropdown a .dd-title{ font-size: 14px; font-weight: 600; color: var(--deep); }
.dropdown a .dd-sub{ font-size: 12.5px; color: var(--grey-600); }

.nav-right{ display:flex; align-items:center; gap: 18px; }

.nav-cta{ padding: 10px 20px; font-size: 13.5px; }

.nav-toggle{
  display:none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: transparent;
  align-items:center; justify-content:center;
  cursor:pointer;
}

@media (max-width: 980px){
  .nav-links{ display:none; }
  .nav-cta{ display:none; }
  .nav-toggle{ display:flex; }
}

/* ============================================================
   Hero
   ============================================================ */

.hero{
  position: relative;
  padding: 200px 0 140px;
  overflow: hidden;
  background: var(--paper);
}
.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-glow);
  z-index: 0;
  pointer-events: none;
}

.hero-canvas-wrap{
  position: absolute;
  inset: 0;
  z-index: 0;
}
#hero-canvas{ width: 100%; height: 100%; display:block; }

.hero-fade{
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 30%, transparent 0%, var(--paper) 78%);
  z-index: 1;
  pointer-events: none;
}

.hero-inner{
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

.hero-inner .eyebrow{ justify-content: center; }
.hero-inner .eyebrow::before{ display:none; }

.hero h1{
  margin-top: 26px;
  font-size: clamp(38px, 6vw, 74px);
  letter-spacing: -0.03em;
  line-height: 1.04;
}

.hero p.lede{
  margin: 26px auto 0;
  max-width: 640px;
  font-size: 18.5px;
  line-height: 1.65;
  color: var(--grey-600);
}

.hero-actions{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 14px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-stats{
  display:flex;
  justify-content:center;
  gap: 56px;
  margin-top: 96px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.hero-stat{ text-align:center; }
.hero-stat .num{
  font-size: 30px;
  font-weight: 600;
  color: var(--deep);
  letter-spacing: -0.02em;
}
.hero-stat .lbl{
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-600);
  font-weight: 600;
}

/* ============================================================
   Trust Infrastructure — Identity / Data / Intelligence
   ============================================================ */

.layers{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 20px;
}

@media (max-width: 900px){
  .layers{ grid-template-columns: 1fr; }
}

.layer-card{
  position: relative;
  padding: 36px 30px 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.layer-card::before{
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.layer-card:hover::before{ opacity: 1; }
.layer-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.layer-index{
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--teal-accent);
}

.layer-icon{
  width: 46px; height: 46px;
  margin: 20px 0 22px;
}

.layer-card h3{
  font-size: 21px;
  margin-bottom: 4px;
}
.layer-card .layer-product{
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 14px;
}
.layer-card p{
  font-size: 15px;
  line-height: 1.6;
  color: var(--grey-600);
}

.layer-connector{
  display:flex;
  align-items:center;
  justify-content:center;
  color: var(--grey-400);
}
.layer-connector svg{ width: 100%; height: 28px; }

.layers-flow{
  display: none;
}
@media (max-width: 900px){
  .layers-flow{
    display:flex;
    justify-content:center;
    padding: 4px 0;
  }
}

/* Desktop connector row between cards */
.layers-desktop-connectors{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: -12px;
  margin-bottom: -12px;
}

.architecture-visual{
  margin-top: 80px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(60% 80% at 15% 20%, rgba(11,79,138,0.08), transparent 60%),
    radial-gradient(50% 70% at 85% 80%, rgba(78,161,216,0.08), transparent 60%),
    #fff;
  padding: 56px 40px;
  overflow: hidden;
  position: relative;
}

#arch-canvas{ width:100%; height: 320px; }

@media (max-width: 720px){
  #arch-canvas{ height: 420px; }
}

/* ============================================================
   Platform Ecosystem Cards
   ============================================================ */

.platform-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}

@media (max-width: 980px){
  .platform-grid{ grid-template-columns: 1fr; }
}

.platform-card{
  position: relative;
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: #fff;
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  min-height: 420px;
  display: flex;
  flex-direction: column;
}
.platform-card::before{
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity .45s var(--ease);
  z-index: 2;
}

.platform-card:hover::before{ opacity: 1; }
.platform-card:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.platform-card .card-canvas{
  position: absolute;
  inset: 0;
  opacity: 0.9;
  z-index: 0;
}

.platform-card .card-content{
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.platform-card .card-top{
  display:flex;
  align-items:center;
  justify-content: space-between;
}

.platform-tag{
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--off-white);
  color: var(--corporate);
  border: 1px solid var(--line);
}

.platform-num{ font-size: 12px; color: var(--grey-400); font-weight: 600; }

.platform-card h3{
  margin-top: auto;
  font-size: 26px;
}
.platform-card .platform-sub{
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 6px;
  text-transform: uppercase;
}
.platform-card p{
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--grey-600);
  max-width: 340px;
}

.platform-card .platform-caps{
  margin-top: 18px;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--grey-400);
  font-weight: 700;
  text-transform: uppercase;
}

.platform-card .card-cta{
  margin-top: 24px;
}

/* ============================================================
   Why section (4 principles)
   ============================================================ */

.principles{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

@media (max-width: 980px){
  .principles{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px){
  .principles{ grid-template-columns: 1fr; }
}

.principle{
  background: #fff;
  padding: 40px 28px;
  transition: background .3s var(--ease);
}
.principle:hover{ background: var(--off-white); }

.principle .p-num{
  font-size: 13px;
  font-weight: 700;
  color: var(--teal-accent);
  letter-spacing: 0.06em;
}
.principle h3{
  font-size: 18px;
  margin-top: 16px;
  line-height: 1.3;
}
.principle p{
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--grey-600);
}

/* ============================================================
   How it Works — Flow Diagram
   ============================================================ */

.flow-wrap{
  position: relative;
  margin-top: 40px;
}

#flow-canvas{
  width: 100%;
  height: 640px;
}
@media (max-width: 720px){
  #flow-canvas{ height: 900px; }
}

/* ============================================================
   Use Cases Grid
   ============================================================ */

.usecase-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 980px){
  .usecase-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .usecase-grid{ grid-template-columns: 1fr; }
}

.usecase-card{
  padding: 30px 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--paper);
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.usecase-card:hover{
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: #fff;
}

.usecase-icon{
  width: 38px; height: 38px;
  margin-bottom: 18px;
  color: var(--corporate);
}

.usecase-card h3{ font-size: 17px; }
.usecase-card p{
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--grey-600);
}

/* ============================================================
   Infrastructure Network Section (dark)
   ============================================================ */

.network-visual{
  margin-top: 60px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(246,244,238,0.12);
  background: rgba(255,255,255,0.02);
  overflow: hidden;
  position: relative;
}
#network-canvas{ width: 100%; height: 460px; }
@media (max-width: 720px){
  #network-canvas{ height: 380px; }
}

.principle-tags{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.ptag{
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid rgba(246,244,238,0.18);
  color: rgba(246,244,238,0.85);
  background: rgba(255,255,255,0.03);
}

/* ============================================================
   Government Section
   ============================================================ */

.gov-section{
  background: linear-gradient(135deg, #0A3763 0%, #0B4F8A 55%, #1878C2 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 72px 56px;
  margin: 0 32px;
  max-width: calc(var(--container) - 0px);
  margin-left: auto;
  margin-right: auto;
  position: relative;
  overflow: hidden;
}

@media (max-width: 720px){
  .gov-section{ padding: 48px 28px; margin: 0 16px; }
}

.gov-inner{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  position: relative;
  z-index: 1;
}
@media (max-width: 900px){
  .gov-inner{ grid-template-columns: 1fr; gap: 40px; }
}

.gov-section .eyebrow{ color: var(--teal-accent); }
.gov-section .eyebrow::before{ background: var(--teal-accent); }
.gov-section h2{
  color: #fff;
  font-size: clamp(26px, 3.2vw, 38px);
  margin-top: 16px;
}
.gov-section p.lede{
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255,255,255,0.75);
}

.gov-list{
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 12px;
}
.gov-list li{
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: rgba(255,255,255,0.9);
  padding: 14px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
}
.gov-list li svg{ flex: none; color: var(--teal-accent); }

/* ============================================================
   Technology Section
   ============================================================ */

.tech-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 20px;
}
@media (max-width: 900px){
  .tech-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px){
  .tech-grid{ grid-template-columns: 1fr; }
}

.tech-item{
  background: #fff;
  padding: 34px 28px;
  transition: background .3s var(--ease);
}
.tech-item:hover{ background: var(--off-white); }

.tech-icon{
  width: 36px; height: 36px;
  color: var(--corporate);
  margin-bottom: 18px;
}
.tech-item h3{ font-size: 16.5px; }
.tech-item p{
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--grey-600);
}

/* ============================================================
   Vision — Editorial
   ============================================================ */

.vision{
  padding: 160px 0;
  background: var(--paper);
}

.vision-inner{
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.vision h2{
  font-size: clamp(30px, 4.5vw, 52px);
  line-height: 1.15;
}

.vision-lines{
  margin-top: 48px;
  display: grid;
  gap: 10px;
}
.vision-lines p{
  font-size: 19px;
  color: var(--grey-600);
  line-height: 1.5;
}
.vision-lines p.strong{
  color: var(--deep);
  font-weight: 500;
}

.vision-closing{
  margin-top: 36px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--grey-600);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   Final CTA
   ============================================================ */

.final-cta{
  position: relative;
  background: var(--grad-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  margin: 0 32px 0;
  padding: 100px 40px;
  text-align: center;
  overflow: hidden;
}
@media (max-width: 720px){
  .final-cta{ margin: 0 16px; padding: 64px 24px; }
}

.final-cta-canvas{
  position: absolute;
  inset: 0;
  opacity: 0.5;
}

.final-cta-inner{ position: relative; z-index: 1; }

.final-cta h2{
  color: #fff;
  font-size: clamp(30px, 4.6vw, 50px);
}
.final-cta p{
  margin: 20px auto 0;
  max-width: 560px;
  font-size: 16.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.72);
}

.final-cta-actions{
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.final-cta .btn-primary{ background: #fff; color: var(--deep); }
.final-cta .btn-primary:hover{ background: var(--off-white); }
.final-cta .btn-ghost{ border-color: rgba(255,255,255,0.28); color: #fff; }
.final-cta .btn-ghost:hover{ border-color: #fff; background: rgba(255,255,255,0.08); }

.contact-strip{
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.contact-item{
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: color .25s var(--ease);
}
a.contact-item:hover{ color: #fff; }
.contact-item svg{ flex: none; color: var(--teal-accent); }

.contact-note{
  margin-top: 16px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
  text-align: center;
}

@media (max-width: 640px){
  .contact-strip{ gap: 16px 24px; }
}

/* ============================================================
   Footer
   ============================================================ */

footer{
  background: var(--deep);
  color: rgba(246,244,238,0.62);
  padding: 72px 0 32px;
}

.footer-top{
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 900px){
  .footer-top{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px){
  .footer-top{ grid-template-columns: 1fr; }
}

.footer-brand .logo{ color: #fff; }
.footer-brand .logo .thin{ color: var(--teal-accent); }
.footer-brand p{
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
  max-width: 280px;
  color: rgba(246,244,238,0.5);
}

.footer-contact{
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer-contact li{
  font-size: 13.5px;
  color: rgba(246,244,238,0.6);
}
.footer-contact a{
  color: rgba(246,244,238,0.6);
  transition: color .2s;
}
.footer-contact a:hover{ color: #fff; }

.footer-col h4{
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(246,244,238,0.4);
  font-weight: 600;
}
.footer-col ul{
  list-style: none; margin: 18px 0 0; padding: 0;
  display: grid; gap: 12px;
}
.footer-col a{
  font-size: 14px;
  color: rgba(246,244,238,0.72);
  transition: color .2s;
}
.footer-col a:hover{ color: #fff; }

.footer-bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 12.5px;
  color: rgba(246,244,238,0.4);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom .flinks{ display:flex; gap: 20px; }
.footer-bottom a:hover{ color: #fff; }

/* ============================================================
   Reveal-on-scroll utility
   ============================================================ */

.reveal{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in{
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > *{ transition-delay: calc(var(--i, 0) * 90ms); }

/* Mobile nav drawer */
.mobile-drawer{
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--paper);
  transform: translateX(100%);
  transition: transform .4s var(--ease);
  padding: 24px;
  overflow-y: auto;
}
.mobile-drawer.open{ transform: translateX(0); }
.mobile-drawer-head{
  display:flex; align-items:center; justify-content:space-between;
}
.mobile-drawer nav{
  margin-top: 40px;
  display: grid;
  gap: 4px;
}
.mobile-drawer a{
  font-size: 20px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--deep);
  font-weight: 500;
}
.mobile-drawer .btn{ margin-top: 28px; width: 100%; justify-content: center; }
.close-drawer{
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: transparent;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
}
