/* Layout: one 1200px column; header, bands that span the width, inner wrappers carry the gutter.
   Concept: Afri-Tec as a stack of protection layers (people, identities, transactions, systems). */
:root {
  --bg: #08131f;
  --surface: #0d1c2c;
  --surface-2: #122538;
  --line: #1e3449;
  --fg: #e5edf2;
  --muted: #8ea2b3;
  --accent: #2ec4b6;
  --accent-2: #4a9be0;
  --on-accent: #04201d;
  --alert: #f2a33a;
  --ok: #3ccf8e;
  --violet: #b48cf2;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --radius: 10px;
  --max: 1200px;
  color-scheme: dark;
  --bg: #f1f5f9;
  --ink: #0f1f2e;
  --muted: #53667a;
  --line: #dbe3ec;
  --accent: #0f766e;
  --header-h: 76px;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f2f6f8; 
    --surface: #fff; 
    --surface-2: #e8eff3; 
    --line: #d3dee6;
    --fg: #0a1a29; 
    --muted: #4c6173; 
    --accent: #0b8178; 
    --accent-2: #1d69b0;
    --on-accent: #ffffff; 
    --alert: #a85f00; 
    --ok: #137a4c; 
    --violet: #6c3fc0; 
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f2f6f8; 
  --surface: #ffffff; 
  --surface-2: #e8eff3; 
  --line: #d3dee6;
  --fg: #0a1a29; 
  --muted: #4c6173; 
  --accent: #0b8178; 
  --accent-2: #1d69b0;
  --on-accent: #ffffff; 
  --alert: #a85f00; 
  --ok: #137a4c; 
  --violet: #6c3fc0; 
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before { 
  content: ""; 
  position: fixed; 
  inset: 0 0 auto; 
  height: env(safe-area-inset-top, 0px); 
  z-index: 60; background: var(--bg); 
}

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

a { 
  color: inherit; 
}

:focus-visible { 
  outline: 2px solid var(--accent); 
  outline-offset: 3px; 
  border-radius: 4px; 
}

.wrap {
  max-width: var(--max); 
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.band { 
  padding-block: clamp(64px, 9vw, 112px); 
}

.band + .band { 
  border-top: 1px solid var(--line); 
}

.band.alt { 
  background: var(--surface); 
}

h1, h2, h3, h4 { 
  font-family: var(--display); 
  font-stretch: 112%; 
  line-height: 1.08; 
  margin: 0; 
  text-wrap: balance; 
  letter-spacing: -0.01em; 
}

h1 { 
  font-size: clamp(2.4rem, 5.6vw, 4.3rem); 
  font-weight: 760; 
}

h2 { 
  font-size: clamp(1.8rem, 3.4vw, 2.7rem); 
  font-weight: 720; 
}

h3 { 
  font-size: 1.3rem; 
  font-weight: 680; 
  font-stretch: 105%; 
}

h4 { 
  font-size: 1.02rem; 
  font-weight: 650; 
  font-stretch: 100%; 
}

p { 
  margin: 0; 
}

.lede { 
  font-size: clamp(1.08rem, 1.5vw, 1.25rem); 
  color: var(--muted); max-width: 60ch; 
  font-size:1rem;
}

.eyebrow {
  font-family: var(--mono); 
  font-size: .78rem; 
  letter-spacing: .14em; 
  text-transform: uppercase;
  color: var(--accent); 
  display: inline-flex; 
  align-items: center; 
  gap: .6em;
}
.eyebrow::before { 
  content: ""; 
  width: 18px; 
  height: 1px; 
  background: currentColor; 
}

.stack { 
  display: flex; 
  flex-direction: column; 
  gap: 18px; 
}


/* Buttons */
.btn {
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  gap: .5em;
  font: 600 .95rem/1 var(--body); 
  padding: 14px 20px; 
  border-radius: 8px;
  text-decoration: none; 
  border: 1px solid transparent; 
  cursor: pointer; 
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { 
  background: var(--accent); 
  color: var(--on-accent); 
}

.btn-primary:hover { 
  filter: brightness(1.08); 
}

.btn-ghost { 
  border-color: var(--line); 
  color: var(--fg); 
  background: transparent; 
}

.btn-ghost:hover { 
  border-color: var(--accent); 
  color: var(--accent); 
}

.btn-row { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 12px; 
}

/* Emergency strip + header */
.sos-strip { 
  background: var(--surface-2); 
  border-bottom: 1px solid var(--line); 
  font-size: .82rem; 
  color: var(--muted); 
}

.sos-strip .wrap { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 6px 18px; 
  justify-content: space-between; 
  padding-block: 8px; 
}

.sos-strip strong { 
  color: var(--fg); 
  font-weight: 600; 
}


.brand { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  text-decoration: none; 
  margin-right: auto; 
}

.brand-mark {
   width: 38px; 
   height: 38px; 
   border-radius: 8px; 
   background: #fff; 
   display: grid; 
   place-items: center; 
   padding: 5px; 
   flex: none; 
  }

.brand-mark img { 
  width: 100%; 
  height: 100%; 
  object-fit: contain; 
}

.brand-name { 
  font-family: var(--display); 
  font-stretch: 118%; 
  font-weight: 760; 
  font-size: 1.15rem; 
  letter-spacing: -0.01em; 
}

.brand-name small { 
  display: block; 
  font-family: var(--mono);
  font-stretch: 100%; 
  font-size: .62rem; 
  font-weight: 500; 
  letter-spacing: .16em; 
  text-transform: uppercase;
  color: var(--muted); 
  margin-top: 2px; 
}

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

.nav a { 
  text-decoration: none; 
  padding: 8px 12px; 
  border-radius: 6px; 
  font-size: .95rem; 
  color: var(--muted);
}

.nav a:hover, 
.nav a[aria-current="page"] { 
  color: var(--fg); 
}

.menu-btn { 
  display: none; 
  background: none; 
  border: 1px solid var(--line); 
  color: var(--fg);
  border-radius: 8px; 
  padding: 9px 12px; 
  font: 600 .9rem var(--body); 
  cursor: pointer; 
}

@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; }
  .site-header.open .wrap { flex-wrap: wrap; }
  .site-header.open .nav { display: flex; flex-direction: column; align-items: stretch; width: 100%; order: 3; padding-top: 8px; }
  .site-header.open .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .site-header.open  { box-shadow: none; color: var(--accent); }
  .site-header.open  { display: flex; width: 100%; order: 4; padding-bottom: 8px; }
  .site-header.open  .btn { flex: 1; }
}

/* Hero */
.hero { 
  padding-block: clamp(56px, 8vw, 104px) clamp(56px, 8vw, 96px); 
  position: relative; 
  overflow: hidden; 
}

.hero::after {
  content: ""; 
  position: absolute; 
  inset: 0; 
  pointer-events: none; 
  z-index: 0;
  background-image: repeating-linear-gradient(135deg, color-mix(in srgb, var(--accent) 7%, transparent) 0 2px, transparent 2px 22px);
  mask-image: radial-gradient(ellipse 60% 70% at 85% 30%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 85% 30%, #000 0%, transparent 70%);
}

.hero .wrap { 
  position: relative; 
  z-index: 1; 
  display: grid; 
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); 
  gap: clamp(32px, 5vw, 72px); 
  align-items: center; 
}

.hero-copy { 
  display: flex; 
  flex-direction: column; 
  gap: 26px; 
  min-width: 0; 
}

.hero-copy h1 em { 
  font-style: normal; 
  color: var(--accent); 
}

.hero-points { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 8px 20px; 
  list-style: none; 
  padding: 0; 
  margin: 0; 
  font-size: .9rem; 
  color: var(--muted); 
}

.hero-points li::before { 
  content: "■"; 
  color: var(--accent); 
  font-size: .6em; 
  margin-right: .7em; 
  vertical-align: .2em; 
}

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

/* Layer stack */
.layers { 
  background: var(--surface); 
  border: 1px solid var(--line); 
  border-radius: 14px; 
  overflow: hidden; 
  min-width: 0; 
}

.layers-head { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  gap: 12px; 
  padding: 14px 18px;
  border-bottom: 1px solid var(--line); 
  font-family: var(--mono); 
  font-size: .74rem; 
  letter-spacing: .1em; 
  text-transform: uppercase; 
  color: var(--muted); 
}

.layers-head .live { 
  display: inline-flex; 
  align-items: center; 
  gap: 8px; 
  color: var(--ok); 
}

.layers-head 
.live::before { 
  content: ""; 
  width: 7px; 
  height: 7px; 
  border-radius: 50%; 
  background: currentColor; 
  animation: pulse 2s infinite; 
}

@keyframes pulse { 
  50% { 
    opacity: .3; 
  } 
}

.layer { 
  display: grid; 
  grid-template-columns: 44px minmax(0, 1fr) auto; 
  gap: 14px; 
  align-items: center; 
  padding: 16px 18px; 
  border-bottom: 1px solid var(--line);
  text-decoration: none; 
  transition: background .15s; 
  position: relative; 
}

.layer:hover { 
  background: var(--surface-2); 
}

.layer::before { 
  content: ""; 
  position: absolute; 
  left: 0; 
  top: 0; 
  bottom: 0;
  width: 3px; 
  background: var(--c, var(--accent)); 
  opacity: .9; 
}

@media (max-width: 520px) {
  .layer { 
    grid-template-columns: 34px minmax(0, 1fr); 
  }

  .layer 
  .pill { 
    grid-column: 2; 
    justify-self: start; 
  }

  .feed-line 
  .k { 
    width: 6.4em; 
  }
}
.layer-id { 
  font-family: var(--mono); 
  font-size: .78rem; 
  color: var(--muted); 
}

.layer-name { 
  font-family: var(--display);
  font-stretch: 110%; 
  font-weight: 680; 
  font-size: 1.05rem; 
}

.layer-sub { 
  font-size: .85rem; 
  color: var(--muted); 
}

.pill { 
  font-family: var(--mono); 
  font-size: .68rem; 
  letter-spacing: .06em; 
  text-transform: uppercase; 
  padding: 5px 9px; 
  border-radius: 999px; 
  border: 1px solid currentColor; 
  white-space: nowrap; 
}

.pill.now { 
  color: var(--ok); 
}

.pill.eng {
  color: var(--accent-2); 
}

.feed { 
  padding: 14px 18px 16px; 
  font-family: var(--mono); 
  font-size: .76rem; 
  line-height: 1.75; 
  color: var(--muted); 
  min-height: 9.6em; 
}

.feed-label { 
  display: block; 
  font-size: .66rem; 
  letter-spacing: .12em; 
  text-transform: uppercase; 
  opacity: .75; 
  margin-bottom: 6px; 
}

.feed-line { 
  display: flex; 
  gap: 10px; 
  white-space: nowrap; 
  overflow: hidden; 
  text-overflow: ellipsis; 
}

.feed-line .t { 
  opacity: .6; 
  flex: none; 
}

.feed-line .k { 
  flex: none; 
  width: 7.2em; 
}

.feed-line .m { 
  overflow: hidden;
  text-overflow: ellipsis; 
  color: var(--fg); 
  opacity: .85; 
}

.feed-line.in { 
  animation: feedIn .5s ease-out; 
}

@keyframes feedIn { 
  from { 
    opacity: 0; 
    transform: translateY(6px); 
  } 
}
.k-people { 
  color: var(--alert); 
} 

.k-identity { 
  color: var(--accent-2); 
} 

.k-transact { 
  color: var(--accent); 
} 

.k-systems { 
  color: var(--violet); 
}

/* Grids and cards */
.grid { 
  display: grid; 
  gap: 20px; 
}
.grid-4 { 
  grid-template-columns: repeat(4, minmax(0, 1fr)); 
}

.grid-3 { 
  grid-template-columns: repeat(3, minmax(0, 1fr)); 
}

.grid-2 { 
  grid-template-columns: repeat(2, minmax(0, 1fr)); 
}

@media (max-width: 1040px) { 
  .grid-4 { 
    grid-template-columns: repeat(2, minmax(0, 1fr)); 
  } 
}

@media (max-width: 820px) { 
  .grid-3 {
    grid-template-columns: 1fr; 
  } 
}
@media (max-width: 640px) { 
  .grid-4, 
  .grid-2 { 
    grid-template-columns: 1fr; 
  } 
}

.pillar { 
  display: flex; 
  flex-direction: column; 
  gap: 14px; 
  padding: 26px 24px; 
  border: 1px solid var(--line); 
  border-radius: var(--radius); 
  background: var(--bg); 
  text-decoration: none; 
  min-width: 0; 
  transition: border-color .15s, transform .15s; 
}

.band.alt .pillar { 
  background: var(--bg); 
}

.pillar:hover { 
  border-color: var(--c, var(--accent)); 
  transform: translateY(-2px); 
}

.pillar-top {
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
  gap: 10px; 
}

.pillar-tag { 
  font-family: var(--mono); 
  font-size: .72rem; 
  letter-spacing: .12em; 
  text-transform: uppercase; 
  color: var(--c, var(--accent)); 
}

.pillar p { 
  color: var(--muted); 
  font-size: .95rem; 
}

.pillar .more { 
  margin-top: auto; 
  font-size: .9rem; 
  font-weight: 600; 
  color: var(--c, var(--accent)); 
}

.why { 
  display: grid; 
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); 
  gap: clamp(32px, 6vw, 80px); 
  align-items: start; 
}

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

.why-list { 
  display: flex; 
  flex-direction: column; 
}

.why-item { 
  display: grid; 
  grid-template-columns: 9rem minmax(0, 1fr); 
  gap: 20px; 
  padding-block: 22px; 
  border-top: 1px solid var(--line); 
}

.why-item:last-child { 
  border-bottom: 1px solid var(--line); 
}

.why-item .from { 
  font-family: var(--mono); 
  font-size: .78rem; 
  color: var(--muted); 
  text-transform: uppercase; 
  letter-spacing: .08em; 
  padding-top: 4px; 
}

.why-item p { 
  color: var(--muted); 
  margin-top: 6px; 
}

@media (max-width: 520px) { 
  .why-item {
    grid-template-columns: 1fr; 
    gap: 6px; 
  } 
}

.sector { 
  padding: 22px; 
  border-left: 2px solid var(--line); 
  display: flex; 
  flex-direction: column; 
  gap: 8px; 
}

.sector p { 
  color: var(--muted); 
  font-size: .93rem; 
}

.sector .needs { 
  font-family: var(--mono); 
  font-size: .72rem; 
  color: var(--accent); 
  letter-spacing: .06em; 
  text-transform: uppercase; 
  margin-top: 4px; 
}

.steps { 
  list-style: none; 
  padding: 0; 
  margin: 0; 
  counter-reset: s; 
  display: grid; 
  grid-template-columns: repeat(4, minmax(0, 1fr)); 
  gap: 0; 
  border-top: 1px solid var(--line); 
}

.steps li { 
  counter-increment: s; 
  padding: 24px 22px 6px 0; 
  display: flex; 
  flex-direction: column; 
  gap: 8px; 
  min-width: 0; 
}

.steps li::before { 
  content: "0" counter(s); 
  font-family: var(--mono); 
  font-size: .8rem; 
  color: var(--accent); 
}

.steps p {
  color: var(--muted); 
  font-size: .93rem; 
}

@media (max-width: 900px) { 
  .steps { 
    grid-template-columns: repeat(2, minmax(0, 1fr)); 
  } 
}

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

/* Consumer band */
.consumer { 
  display: grid; 
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); 
  gap: clamp(32px, 5vw, 64px); 
  align-items: center; 
}

.consumer-media { 
  display: flex; 
  justify-content: center; 
}

.consumer-media img { 
  width: min(300px, 70vw); 
  height: 100%;
  filter: drop-shadow(0 20px 40px #00000059); 
}

.store-row { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 12px; 
}

.checks { 
  list-style: none; 
  padding: 0; 
  margin: 0; 
  display: grid; 
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px; 
}

.checks li { 
  padding-left: 22px; 
  position: relative; 
  color: var(--muted); 
  font-size: .95rem; 
}

.checks li::before { 
  content: ""; 
  position: absolute; 
  left: 0; 
  top: .55em; 
  width: 10px;
  height: 6px; 
  border-left: 2px solid var(--accent); 
  border-bottom: 2px solid var(--accent); 
  transform: rotate(-45deg); 
}

@media (max-width: 820px) { 
  .consumer { 
    grid-template-columns: 1fr; 
  } 
  
  .checks { 
    grid-template-columns: 1fr; 
  } 
}

/* Trust */
.trust { 
  display: grid; 
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0; 
  border: 1px solid var(--line); 
  border-radius: var(--radius); 
  overflow: hidden; 
}

.trust > div { 
  padding: 22px; 
  border-right: 1px solid var(--line); 
  display: flex; 
  flex-direction: column; 
  gap: 6px; 
}

.trust > div:last-child { 
  border-right: 0; 
}

.trust .code { 
  font-family: var(--mono); 
  font-size: .8rem; 
  color: var(--accent); 
  letter-spacing: .08em; 
}

.trust p { 
  font-size: .9rem; 
  color: var(--muted); 
}

@media (max-width: 900px) { 
  .trust { 
    grid-template-columns: repeat(2, minmax(0, 1fr)); 
  } 
  
  .trust > div { 
    border-bottom: 1px solid var(--line); 
  } 
}

@media (max-width: 520px) { 
  .trust { 
    grid-template-columns: 1fr; 
  } 
  
  .trust > div { 
    border-right: 0; 
  } 
}

/* CTA band */
.cta-band { 
  background: linear-gradient(120deg, color-mix(in srgb, var(--accent-2) 22%, var(--surface)), color-mix(in srgb, var(--accent) 18%, var(--surface))); 
}

.cta-inner { 
  display: flex; 
  flex-wrap: wrap; 
  align-items: center; 
  justify-content: space-between; 
  gap: 28px; 
}

.cta-inner .stack { 
  max-width: 640px; 
}

/* Page header (inner pages) */
.page-head { 
  padding-block: clamp(56px, 7vw, 88px) clamp(40px, 5vw, 64px); 
  border-bottom: 1px solid var(--line); 
}

.page-head .wrap { 
  display: flex; 
  flex-direction: column; 
  gap: 20px; 
}

/* Solutions */
.jump { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 10px; 
  margin-top: 8px; 
}

.jump a { 
  text-decoration: none; 
  font-size: .9rem; 
  padding: 8px 14px; 
  border: 1px solid var(--line); 
  border-radius: 999px; 
  color: var(--muted); 
}

.jump a:hover { 
  color: var(--fg); 
  border-color: var(--accent); 
}

.sol { 
  display: grid; 
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px); 
  scroll-margin-top: 90px; 
}

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

.sol-side { 
  display: flex; 
  flex-direction: column; 
  gap: 18px; 
  min-width: 0; 
}

.sol-side .layer-no { 
  font-family: var(--mono); 
  font-size: .8rem; 
  color: var(--c, var(--accent)); 
  letter-spacing: .1em; 
  text-transform: uppercase; 
}

.sol-side .problem {
  color: var(--muted); 
}
.sol-body { 
  display: flex; 
  flex-direction: column; 
  gap: 28px; 
  min-width: 0;
}

.deliver { 
  display: grid; 
  grid-template-columns: repeat(2, minmax(0, 1fr)); 
  gap: 0; 
  border-top: 1px solid var(--line); 
}

.deliver > div { 
  padding: 18px 18px 18px 0;
  border-bottom: 1px solid var(--line); 
  display: flex; 
  flex-direction: column;
  gap: 6px; 
}

.deliver > div:nth-child(odd) { 
  padding-right: 24px; 
}

.deliver p { 
  color: var(--muted); 
  font-size: .93rem; 
}

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

.meta-row { 
  display: flex; 
  flex-wrap: wrap;
  gap: 10px 28px; 
  font-size: .9rem; 
}

.meta-row dt { 
  font-family: var(--mono); 
  font-size: .7rem; 
  letter-spacing: .1em; 
  text-transform: uppercase; 
  color: var(--muted); 
}

.meta-row dd { 
  margin: 2px 0 0; 
}


.note { 
  font-size: .88rem; 
  color: var(--muted); 
  border-left: 2px solid var(--c, var(--accent)); 
  padding-left: 14px; 
}

.devices { 
  display: grid; 
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px; 
}

.device { 
  padding: 16px; 
  border: 1px solid var(--line); 
  border-radius: var(--radius); 
  display: flex; 
  flex-direction: column; 
  gap: 6px; 
}

.device ul { 
  margin: 0; 
  padding-left: 18px; 
  color: var(--muted); 
  font-size: .86rem; 
}

@media (max-width: 700px) { 
  .devices { 
    grid-template-columns: 1fr;
   } 
  }
.photo { 
  border-radius: 12px; 
  overflow: hidden; 
  border: 1px solid var(--line); 
  background: #000; 
}

.photo img { 
  width: 100%; 
  height: 100%;
  aspect-ratio: 3 / 2; 
  object-fit: cover; 
}

/* About */
.prose { 
  display: flex; 
  flex-direction: column; 
  gap: 18px; 
  max-width: 68ch; 
}

.prose p { 
  color: var(--muted);
 }

.prose p strong { 
  color: var(--fg); 
  font-weight: 600; 
}

.split { 
  display: grid; 
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); 
  gap: clamp(32px, 6vw, 80px); 
  align-items: start; 
}

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

.compose { 
  border: 1px solid var(--line); 
  border-radius: 14px; 
  overflow: hidden; 
  background: var(--bg); 
}

.compose-row { 
  display: grid; 
  grid-template-columns: 8.5rem minmax(0, 1fr); 
  gap: 16px; 
  padding: 16px 18px;
  border-bottom: 1px solid var(--line); 
}

.compose-row:last-child { 
  border-bottom: 0;
}

.compose-row .lbl { 
  font-family: var(--mono); 
  font-size: .72rem; 
  letter-spacing: .1em; 
  text-transform: uppercase; 
  color: var(--muted); padding-top: 3px; 
}

.compose-row.top { 
  background: color-mix(in srgb, var(--accent) 12%, var(--bg)); 
}

.compose-row.top .lbl { 
  color: var(--accent); 
}

.compose-row p { 
  font-size: .92rem; 
  color: var(--muted); 
}

.compose-row b { 
  color: var(--fg); 
  font-weight: 600; 
}

@media (max-width: 480px) { 
  .compose-row { 
    grid-template-columns: 1fr; 
    gap: 4px; 
  } 
}

/* Contact */
.contact { 
  display: grid; 
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); 
  gap: clamp(32px, 5vw, 64px); 
  align-items: start; 
}

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

form.enquiry { 
  display: grid; 
  grid-template-columns: repeat(2, minmax(0, 1fr)); 
  gap: 18px;
  padding: 28px; 
  border: 1px solid var(--line); 
  border-radius: 14px; 
  background: var(--surface); 
}

@media (max-width: 560px) { 
  form.enquiry { 
    grid-template-columns: 1fr; 
    padding: 20px; 
  } 
}

.field { 
  display: flex; 
  flex-direction: column; 
  gap: 6px; 
  min-width: 0; 
}

.field.full { 
  grid-column: 1 / -1; 
}

.field label { 
  font-size: .85rem; 
  font-weight: 600; 
}

.field input, 
.field select, 
.field textarea {
  font: inherit; font-size: .95rem; 
  color: var(--fg); 
  background: var(--bg);
  border: 1px solid var(--line); 
  border-radius: 8px; 
  padding: 12px 14px; 
  width: 100%;
}
.field textarea { 
  min-height: 130px; 
  resize: vertical; 
}

.field input:focus, 
.field select:focus, 
.field textarea:focus { 
  outline: none; 
  border-color: var(--accent); 
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); 
}

.consent { 
  grid-column: 1 / -1; 
  display: flex; 
  gap: 10px; 
  align-items: flex-start; 
  font-size: .85rem; 
  color: var(--muted); 
}

.consent input { 
  margin-top: 4px; 
  accent-color: var(--accent);
 }

.form-status { 
  grid-column: 1 / -1; 
  font-size: .9rem; 
  padding: 12px 14px; 
  border-radius: 8px; 
  background: var(--surface-2); 
  border-left: 3px solid var(--accent); 
}

.details { 
  display: flex; 
  flex-direction: column; 
  gap: 0; 
  border-top: 1px solid var(--line); 
}

.details > div { 
  padding-block: 16px; 
  border-bottom: 1px solid var(--line); 
  display: flex; 
  flex-direction: column; 
  gap: 4px; 
}

.details .lbl { 
  font-family: var(--mono); 
  font-size: .7rem; 
  letter-spacing: .12em; 
  text-transform: uppercase; 
  color: var(--muted); 
}

.details .val { 
  font-variant-numeric: tabular-nums; 
  user-select: all; 
}

.emergency { 
  padding: 18px; 
  border-radius: var(--radius); 
  border: 1px solid color-mix(in srgb, var(--alert) 50%, var(--line)); 
  background: color-mix(in srgb, var(--alert) 9%, var(--surface)); 
  font-size: .92rem;
   display: flex; 
  flex-direction: column; 
  gap: 6px; 
  margin-top: 22px; 
}

.emergency strong { 
  color: var(--alert); 
  font-family: var(--mono); 
  font-size: .74rem; 
  letter-spacing: .12em; 
  text-transform: uppercase; 
}

/* Privacy */
.legal { max-width: 72ch; display: flex; flex-direction: column; gap: 28px; }
.legal section { 
  display: flex; 
  flex-direction: column; 
  gap: 10px; 
}

.legal p, .legal li { 
  color: var(--muted); 
}

.legal ul { 
  margin: 0; 
  padding-left: 20px; 
  display: flex; 
  flex-direction: column; 
  gap: 6px; 
}

.legal .updated { 
  font-family: var(--mono); 
  font-size: .78rem; 
  color: var(--muted); 
}

/* Footer */
.site-footer { 
  border-top: 1px solid var(--line); 
  background: var(--surface); 
  font-size: .9rem; 
}

.footer-grid { 
  display: grid; 
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); 
  gap: 32px; 
  padding-block: 56px 36px; 
}

@media (max-width: 860px) { 
  .footer-grid { 
    grid-template-columns: repeat(2, minmax(0, 1fr)); 
  } 
}

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

.footer-grid h4 { 
  font-family: var(--mono);
  font-stretch: 100%; 
  font-size: .72rem; 
  letter-spacing: .14em; 
  text-transform: uppercase; 
  color: var(--muted); 
  font-weight: 500; 
  margin-bottom: 14px; 
}

.footer-grid ul { 
  list-style: none; 
  margin: 0; 
  padding: 0; 
  display: flex; 
  flex-direction: column; 
  gap: 8px; 
}

.footer-grid a { 
  text-decoration: none; 
  color: var(--fg); 
  opacity: .85; 
}

.footer-grid a:hover { 
  color: var(--accent); 
  opacity: 1; 
}

.footer-grid address { 
  font-style: normal; 
  color: var(--muted); 
}

.footer-about { 
  display: flex; 
  flex-direction: column; 
  gap: 14px; 
  color: var(--muted); 
  max-width: 34ch; 
}

.footer-base { 
  border-top: 1px solid var(--line); 
}

.footer-base .wrap { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 8px 24px; 
  justify-content: space-between; 
  padding-block: 18px; 
  color: var(--muted); font-size: .82rem; 
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { 
    animation: none !important; 
    transition: none !important; 
  }

  html { 
    scroll-behavior: auto; 
  }
}

/* ===== Header: separate desktop (.hd) and mobile (.hm) =====*/

.hd, .hm { display: none; }
@media (min-width: 992px)   { 
  .hd { 
    display: block; 
  } 
}

@media (max-width: 991.98px) { 
  .hm { display: block; 
  } 
}

/* ---------- Desktop ---------- */
.hd-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 76px;
  padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px));
  display: grid;
  grid-template-columns: 1fr auto 1fr;   /* brand | nav | cta -> nav truly centered */
  align-items: center;
}
.hd .brand { 
  justify-self: start; 
  margin-right: 0; 
}

.hd-nav { 
  display: flex; 
  align-items: center; 
  gap: 4px; 
}

.hd-nav a {
  position: relative;
  padding: 8px 14px;
  font-size: .95rem;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}
.hd-nav a:hover,
.hd-nav a[aria-current="page"] { 
  color: var(--fg); 
}

.hd-nav a[aria-current="page"]::after {
  content: "";
  position: absolute; 
  left: 14px; 
  right: 14px; 
  bottom: -14px;
  height: 2px; 
  background: var(--accent); 
  border-radius: 2px;
}

.hd-cta { justify-self: end; }
.hd-cta .btn { 
  padding: .65rem 1.1rem; 
  border-radius: 10px; 
  font-size: .9rem; 
  font-weight: 700; 
}

.hd-cta .btn.show { 
  border-color: var(--accent); 
  color: var(--accent); 
  background: transparent; 
}

.hd-cta .dropdown-menu {
  --bs-dropdown-bg: var(--surface);
  --bs-dropdown-color: var(--fg);
  --bs-dropdown-border-color: var(--line);
  --bs-dropdown-link-color: var(--fg);
  --bs-dropdown-link-hover-color: var(--fg);
  --bs-dropdown-link-hover-bg: var(--surface-2);
  border-radius: 12px; padding: .4rem; min-width: 11rem;
}
.hd-cta .dropdown-item { 
  border-radius: 8px; 
  padding: .55rem .8rem; 
  font-size: .9rem; 
}

/* ---------- Mobile ---------- */
.hm-bar {
  height: 64px;
  display: flex; 
  align-items: center; 
  gap: 12px;
  padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px));
}
.hm .brand { 
  margin-right: auto; 
}

.hm-toggle {
  width: 42px; 
  height: 42px; 
  padding: 0; 
  flex: none;
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  background: transparent; 
  border: 1px solid var(--line); 
  border-radius: 10px;
  cursor: pointer;
}

.hm-toggle span, .hm-toggle span::before, .hm-toggle span::after {
  display: block; 
  width: 18px; 
  height: 2px; 
  background: var(--fg); 
  border-radius: 2px;
  transition: transform .2s, background .2s;
}
.hm-toggle span { position: relative; }
.hm-toggle span::before, .hm-toggle span::after { 
  content: ""; 
  position: absolute; 
  left: 0; 
}

.hm-toggle span::before { 
  top: -6px; 
}

.hm-toggle span::after  { 
  top: 6px; 
}

.hm-toggle[aria-expanded="true"] span { 
  background: transparent; 
}

.hm-toggle[aria-expanded="true"] span::before {   
  transform: translateY(6px) rotate(45deg); 
}

.hm-toggle[aria-expanded="true"] span::after  { 
  transform: translateY(-6px) rotate(-45deg); 
}

.hm-panel {
  position: absolute; top: 100%; left: 0; right: 0;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: .25rem max(20px, env(safe-area-inset-right, 0px)) 1.25rem max(20px, env(safe-area-inset-left, 0px));
}
.hm-nav { display: flex; flex-direction: column; }
.hm-nav a {
  padding: 1rem .25rem;
  font-size: 1.05rem;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.hm-nav a[aria-current="page"] { 
  color: var(--accent); 
  font-weight: 700; 
}

.hm-app { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 10px; padding-top: 1.25rem; 
}

.hm-app p { 
  grid-column: 1 / -1; 
  margin: 0; 
  font-size: .85rem; 
  font-weight: 600; 
  color: var(--muted); 
}

.hm-app .btn { 
  justify-content: center; 
  padding: .85rem 1rem; 
  font-size: .9rem; 
  font-weight: 700; 
  border-radius: 10px; 
}

@media (max-width: 360px) { 
  .hm-app { 
    grid-template-columns: 1fr; 
  } 
}

/* --- Mobile Header & Dropdown Panel Fix --- */

/* Hide mobile header on large screens */
.site-header.hm {
  display: none;
}

@media (max-width: 991px) {
  /* Show mobile header below 992px, hide desktop header */
  .site-header.hd {
    display: none;
  }
  .site-header.hm {
    display: block;
    position: relative;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }

  .hm-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
  }

  /* Hamburger toggle button styling & "X" transformation */
  .hm-toggle {
    background: none;
    border: 1px solid var(--line);
    color: var(--fg);
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hm-toggle span,
  .hm-toggle span::before,
  .hm-toggle span::after {
    content: "";
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    position: relative;
    transition: background 0.2s ease;
  }

  .hm-toggle span::before {
    position: absolute;
    top: -6px;
  }

  .hm-toggle span::after {
    position: absolute;
    top: 6px;
  }

  /* When expanded, Bootstrap adds aria-expanded="true" to the toggle */
  .hm-toggle[aria-expanded="true"] span {
    background: transparent; /* Hide middle bar */
  }

  .hm-toggle[aria-expanded="true"] span::before {
    transform: rotate(45deg);
    top: 0;
  }

  .hm-toggle[aria-expanded="true"] span::after {
    transform: rotate(-45deg);
    top: 0;
  }

  /* Mobile Dropdown Panel Layout */
  .hm-panel {
    background: var(--fg);
    border-top: 1px solid var(--line);
    padding: 20px;
  }

  .hm-panel .hm-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
  }

  .hm-panel .hm-nav a {
    padding: 10px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--muted);
    font-size: 1rem;
  }

  .hm-panel .hm-nav a:hover,
  .hm-panel .hm-nav a[aria-current="page"] {
    background: var(--surface-2);
    color: var(--fg);
  }

  .hm-app {
    border-top: 1px solid var(--line);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .hm-app p {
    font-family: var(--mono);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
  }

  .hm-app .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 991px) {
  /* Ensure the mobile header stays on top and has a solid background */
  .site-header.hm {
    display: block;
    position: relative;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    z-index: 100;
  }

  .hm-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--surface);
  }

  /* Hamburger toggle button styling & "X" transformation */
  .hm-toggle {
    background: none;
    border: 1px solid var(--line);
    color: var(--fg);
    border-radius: 8px;
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hm-toggle span,
  .hm-toggle span::before,
  .hm-toggle span::after {
    content: "";
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    position: relative;
    transition: background 0.2s ease;
  }

  .hm-toggle span::before {
    position: absolute;
    top: -6px;
  }

  .hm-toggle span::after {
    position: absolute;
    top: 6px;
  }

  .hm-toggle[aria-expanded="true"] span {
    background: transparent; 
  }

  .hm-toggle[aria-expanded="true"] span::before {
    transform: rotate(45deg);
    top: 0;
  }

  .hm-toggle[aria-expanded="true"] span::after {
    transform: rotate(-45deg);
    top: 0;
  }

  /* Solid background and correct stacking for the dropdown panel */
  .hm-panel {
    background: var(--surface);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 20px;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    box-shadow: 0 10px 25px #0000004d;
    z-index: 99;
  }

  .hm-panel .hm-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
  }

  .hm-panel .hm-nav a {
    padding: 10px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--muted);
    font-size: 1rem;
  }

  .hm-panel .hm-nav a:hover,
  .hm-panel .hm-nav a[aria-current="page"] {
    background: var(--surface-2);
    color: var(--fg);
  }

  .hm-app {
    border-top: 1px solid var(--line);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .hm-app p {
    font-family: var(--mono);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--muted);
  }

  .hm-app .btn {
    width: 100%;
    justify-content: center;
  }
}

/* --- Sticky Header Fix --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface); 
  box-shadow: 0 4px 20px #00000014; 
}

/* Ensure the desktop header stays sticky */
.site-header.hd {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

/* Ensure the mobile header stays sticky */
@media (max-width: 991px) {
  .site-header.hm {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }
}

.sol1, .four, .p1 {
  --c: var(--alert)
}
.sol2, .one, .p2 {
  --c: var(--accent-2);
}
.sol3, .two, .p3 {
  --c: var(--accent);
}
.sol4, .three, .p4 {
  --c: var(--violet);
}

.opt {
  font-weight:400;
  color:var(--muted)
}