/* ==========================================================================
   Baraka-AI — shared stylesheet (v2)
   Revision: opaque single-colour tiles (no glass-morphism), no inner shadows,
   Claude-toned palette on the warm surface, denser type, smooth footer marquee.
   ========================================================================== */

:root{
  /* palette — teal surface */
  --teal-900:#0b3f3c;
  --teal-800:#0f4d49;
  --teal-700:#166b64;
  --teal-600:#1f8a80;
  --teal-bg-1:#c9ece5;
  --teal-bg-2:#eefaf7;

  /* palette — warm surface, tuned to Claude's cream + clay accent */
  --beige-bg:#F4F1EA;        /* Claude cream */
  --terracotta-900:#6d3822;  /* body copy on cream — dark, readable */
  --terracotta-700:#D97757;  /* Claude accent — headings, buttons, icons */

  --panel:#ffffff;           /* opaque single-colour tile fill, everywhere */

  --shadow-soft: 0 10px 28px -10px rgba(11,63,60,.22);
  --shadow-soft-terra: 0 10px 28px -10px rgba(109,56,34,.20);

  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 13px;
  --radius-pill: 999px;

  --font-display:'Cambria','Georgia','Times New Roman',serif;

  --ease: cubic-bezier(.22,.9,.32,1);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-display);
  font-size:17px;
  color:var(--teal-900);
  background:var(--teal-bg-2);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,p{ margin:0; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
  .marquee-track{ animation-duration:70s !important; animation-iteration-count:infinite !important; }
}

:focus-visible{ outline:2px solid var(--teal-700); outline-offset:3px; border-radius:8px; }

/* ---------- background surfaces ---------- */

.bg-1{
  position:relative;
  background: radial-gradient(120% 90% at 50% 0%, var(--teal-bg-1) 0%, var(--teal-bg-2) 62%);
  color:var(--teal-900);
  isolation:isolate;
}
.bg-1::before{ /* notebook grid */
  content:"";
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(11,63,60,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,63,60,.10) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 40%, transparent 92%);
  pointer-events:none;
  z-index:0;
}
.bg-1::after{ /* monochrome noise, 2-3% */
  content:"";
  position:absolute; inset:0;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity:.035;
  mix-blend-mode:multiply;
  pointer-events:none;
  z-index:0;
}
.bg-1 > *{ position:relative; z-index:1; }

.bg-2{
  position:relative;
  background: var(--beige-bg);
  color:var(--terracotta-900);
  isolation:isolate;
}
.bg-2::after{
  content:"";
  position:absolute; inset:0;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity:.03;
  mix-blend-mode:multiply;
  pointer-events:none;
  z-index:0;
}
.bg-2 > *{ position:relative; z-index:1; }

/* headings & labels on the warm surface — solid near-black, no accent tint */
.bg-2 .eyebrow,
.bg-2 h2.h-title,
.bg-2 .tile h3,
.bg-2 .case-card h3,
.bg-2 h3 { color: rgba(0,0,0,.85); }

/* ---------- opaque single-colour tiles (no glass, no inner shadow) ---------- */

.glass{
  position:relative;
  border:none;
  border-radius:var(--radius-lg);
  background:var(--panel);
  box-shadow: var(--shadow-soft);
  overflow:hidden;
}
.bg-2 .glass{ box-shadow: var(--shadow-soft-terra); }

/* ---------- layout helpers ---------- */

.wrap{ max-width:1180px; margin:0 auto; padding:0 24px; }
.section{ padding:64px 0; }
@media (max-width:720px){ .section{ padding:44px 0; } }

.eyebrow{
  display:inline-block;
  font-size:14px;
  letter-spacing:.13em;
  text-transform:uppercase;
  opacity:.75;
  margin-bottom:10px;
}
h2.h-title{ font-size:clamp(30px,4.4vw,46px); font-weight:400; line-height:1.14; margin-bottom:14px; }
.lede{ font-size:19px; line-height:1.6; max-width:640px; opacity:.9; }

/* ---------- floating header ---------- */

.site-header{
  position:fixed; top:16px; left:0; right:0; z-index:60;
  display:flex; justify-content:space-between; align-items:center;
  padding:0 20px;
  pointer-events:none;
}
.site-header .glass{ pointer-events:auto; }
.brand-pill{
  display:flex; align-items:center; gap:10px;
  padding:10px 18px;
  border-radius:var(--radius-pill);
  font-size:16px;
}
.brand-pill .dot{ width:9px; height:9px; border-radius:50%; background:var(--teal-700); }
.nav-pill{
  display:flex; align-items:center; gap:6px;
  padding:6px; border-radius:var(--radius-pill);
}
.nav-pill a, .nav-pill button{
  border:none; background:transparent; cursor:pointer;
  color:var(--teal-900); font-family:inherit; font-size:15px;
  padding:9px 16px; border-radius:var(--radius-pill);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.nav-pill a.is-active, .nav-pill button.is-active{
  background:var(--teal-800); color:#eefaf7;
}
.nav-pill a:hover, .nav-pill button:hover{ background:rgba(11,63,60,.1); }
.nav-pill .lang-sep{ width:1px; height:18px; background:rgba(11,63,60,.18); margin:0 2px; }

@media (max-width:640px){
  .site-header{ flex-direction:column; gap:10px; align-items:stretch; }
  .brand-pill{ justify-content:center; }
  .nav-pill{ justify-content:center; }
}

/* ---------- hero ---------- */

.hero{ padding:150px 0 64px; text-align:center; }
.hero h1{
  font-size:clamp(40px,7.4vw,76px);
  font-weight:400;
  line-height:1.05;
  letter-spacing:-.01em;
  margin:0 auto 20px;
  max-width:900px;
}
.hero .lede{ margin:0 auto 30px; text-align:center; font-size:20px; }
.hero-cta-wrap{ display:flex; justify-content:center; }

/* ---------- buttons ---------- */

.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding:16px 30px;
  border-radius:var(--radius-pill);
  border:none; cursor:pointer;
  font-family:inherit; font-size:17px;
  background:var(--teal-800); color:#eefaf7;
  box-shadow: var(--shadow-soft);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn:hover{ transform:translateY(-2px); box-shadow:0 16px 34px -8px rgba(11,63,60,.32); }
.btn.btn-terracotta{ background:var(--terracotta-700); color:#fff8f1; box-shadow:var(--shadow-soft-terra); }
.btn.btn-terracotta:hover{ box-shadow:0 16px 34px -8px rgba(109,56,34,.32); }
.btn.btn-ghost{
  background:var(--panel);
  color:inherit;
  box-shadow: var(--shadow-soft);
}
.btn svg{ width:18px; height:18px; }

/* ---------- services grid (9 tiles) ---------- */

.tiles{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin-top:36px;
}
@media (max-width:900px){ .tiles{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .tiles{ grid-template-columns:1fr; } }

.tile{
  padding:26px 24px;
  min-height:172px;
  display:flex; flex-direction:column; justify-content:space-between;
  transition: transform .35s var(--ease);
}
.tile:hover{ transform:translateY(-5px); }
.tile .tile-icon{
  width:46px; height:46px;
  border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  background:rgba(11,63,60,.08);
  margin-bottom:18px;
}
.bg-2 .tile .tile-icon{ background:rgba(109,56,34,.09); }
.tile .tile-icon svg{ width:24px; height:24px; stroke:var(--teal-800); }
.bg-2 .tile .tile-icon svg{ stroke:var(--terracotta-700); }
.tile h3{ font-size:21px; font-weight:400; margin-bottom:5px; }
.tile .tile-sub{ font-size:15px; opacity:.78; line-height:1.45; }

/* ---------- cases slider ---------- */

.cases-slider{ position:relative; margin-top:36px; }
.cases-track{
  display:flex; gap:18px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  padding-bottom:10px;
  scrollbar-width:none;
}
.cases-track::-webkit-scrollbar{ display:none; }
.case-card{
  scroll-snap-align:start;
  flex:0 0 min(340px,82vw);
  padding:24px;
  display:flex; flex-direction:column; gap:12px;
  cursor:pointer;
}
.case-card .case-num{ font-size:13px; letter-spacing:.1em; text-transform:uppercase; opacity:.62; }
.case-card h3{ font-size:23px; font-weight:400; }
.case-card p{ font-size:15px; line-height:1.5; opacity:.8; }
.case-card .case-arrow{
  margin-top:auto; display:flex; align-items:center; gap:8px; font-size:15px;
  color:var(--teal-800);
}
.bg-2 .case-card .case-arrow{ color:var(--terracotta-700); }
.case-card .case-arrow svg{ width:16px; height:16px; transition:transform .3s var(--ease); }
.case-card:hover .case-arrow svg{ transform:translateX(5px); }

.slider-dots{ display:flex; gap:8px; justify-content:center; margin-top:18px; }
.slider-dots button{
  width:8px; height:8px; border-radius:50%; border:none; padding:0;
  background:rgba(11,63,60,.25); cursor:pointer;
}
.slider-dots button.is-active{ background:var(--teal-800); width:22px; border-radius:5px; transition:all .3s var(--ease); }

/* ---------- about stats ---------- */

.stats-row{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-top:32px; }
@media (max-width:800px){ .stats-row{ grid-template-columns:repeat(2,1fr); } }
.stat{ padding:22px 20px; text-align:left; }
.stat .stat-num{ font-size:clamp(32px,4.2vw,42px); line-height:1; margin-bottom:6px; color:var(--terracotta-700); }
.stat .stat-label{ font-size:14px; opacity:.8; line-height:1.4; }

/* ---------- roadmap: zigzag flow of gradient shapes, dashed edges ---------- */

.roadmap-flow{ margin-top:40px; display:flex; flex-direction:column; gap:6px; }

.roadmap-row{ display:flex; align-items:center; width:100%; }

.roadmap-shape{
  position:relative;
  flex:0 0 auto;
  width:clamp(155px,19vw,208px);
  min-height:168px;
  padding:20px 18px;
  border-radius:26px;
  display:flex; flex-direction:column; gap:8px;
  background:linear-gradient(135deg, var(--teal-700), var(--teal-900));
  color:#eafaf7;
  box-shadow:var(--shadow-soft);
  filter:brightness(.85);
  overflow:hidden;
  transition:filter 1s ease, color 1s ease, transform 1s ease, box-shadow 1s ease;
}
.roadmap-shape::before{ /* crossfades in to turn the shape white when lit */
  content:"";
  position:absolute; inset:0;
  background:#ffffff;
  opacity:0;
  transition:opacity 1s ease;
  z-index:0;
}
.roadmap-shape > *{ position:relative; z-index:1; }
.roadmap-shape.is-lit{
  filter:brightness(1);
  color:rgba(0,0,0,.75);
  transform:translateY(-4px);
  box-shadow:0 18px 38px -10px rgba(11,63,60,.28);
}
.roadmap-shape.is-lit::before{ opacity:1; }

.shape-badge{
  width:36px; height:36px; border-radius:50%;
  background:rgba(255,255,255,.22);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:2px;
  transition:background-color 1s ease;
}
.roadmap-shape.is-lit .shape-badge{ background:rgba(0,0,0,.07); }
.shape-badge svg{ width:19px; height:19px; stroke-width:2.3; }
/* polychrome icon colours — stay constant whether the shape is lit or not */
.shape-badge.c1 svg{ stroke:#FF6B6B; }
.shape-badge.c2 svg{ stroke:#22B8A6; }
.shape-badge.c3 svg{ stroke:#F5B301; }
.shape-badge.c4 svg{ stroke:#7C6CF0; }
.shape-badge.c5 svg{ stroke:#FF9F43; }
.shape-badge.c6 svg{ stroke:#F0468C; }
.shape-badge.c7 svg{ stroke:#2ED573; }

.shape-title{ font-size:18px; font-weight:700; margin:0; }
.shape-desc{ font-size:13px; line-height:1.42; opacity:.9; margin:0; }


.roadmap-edge{
  flex:1 1 auto; min-width:20px; height:2px;
  border-top:2px dashed rgba(11,63,60,.42);
  position:relative;
  align-self:center;
}
.roadmap-edge.edge-right::after{
  content:""; position:absolute; right:0; top:50%; transform:translateY(-50%);
  border:5px solid transparent; border-left-color:rgba(11,63,60,.55);
}
.roadmap-edge.edge-left::after{
  content:""; position:absolute; left:0; top:50%; transform:translateY(-50%);
  border:5px solid transparent; border-right-color:rgba(11,63,60,.55);
}

.roadmap-vertical-wrap{ display:flex; justify-content:flex-end; padding-right:calc(clamp(155px,19vw,208px) / 2 - 1px); }
.roadmap-vertical{ width:2px; height:34px; border-left:2px dashed rgba(11,63,60,.42); position:relative; }
.roadmap-vertical::after{
  content:""; position:absolute; left:-5px; bottom:-2px;
  border:5px solid transparent; border-top-color:rgba(11,63,60,.55);
}

@media (max-width:780px){
  .roadmap-row{ flex-direction:column; gap:16px; }
  .roadmap-edge, .roadmap-vertical-wrap{ display:none; }
  .roadmap-flow{ position:relative; padding-left:26px; }
  .roadmap-flow::before{
    content:"";
    position:absolute; left:0; top:0; bottom:0; width:2px;
    background:repeating-linear-gradient(to bottom, rgba(11,63,60,.35) 0 8px, transparent 8px 16px);
  }
  .roadmap-shape{ width:100%; }
}


/* ---------- contact / popup form ---------- */

.contact-block{ margin-top:32px; display:grid; grid-template-columns:1fr 1fr; gap:20px; }
@media (max-width:800px){ .contact-block{ grid-template-columns:1fr; } }
.contact-direct{ padding:30px; display:flex; flex-direction:column; gap:16px; justify-content:center; }
.contact-direct a{ display:flex; align-items:center; gap:12px; font-size:18px; }
.contact-direct a svg{ width:20px; height:20px; }
.contact-form-card{ padding:30px; }

.field{ margin-bottom:12px; }
.field label{ display:block; font-size:13px; letter-spacing:.05em; text-transform:uppercase; opacity:.65; margin-bottom:5px; }
.field input, .field textarea{
  width:100%;
  border:none;
  background:rgba(11,63,60,.06);
  border-radius:var(--radius-sm);
  padding:13px 16px;
  font-family:inherit; font-size:16px;
  color:inherit;
}
.bg-2 .field input, .bg-2 .field textarea{ background:rgba(109,56,34,.07); }
.field textarea{ resize:vertical; min-height:88px; }
.field input:focus, .field textarea:focus{ outline:2px solid var(--teal-700); outline-offset:1px; }
.form-note{ font-size:13px; opacity:.65; margin-top:8px; }
.form-status{ font-size:15px; margin-top:10px; min-height:20px; }
.form-status.ok{ color:var(--teal-700); }
.form-status.err{ color:var(--terracotta-700); }

/* ---------- modal / popup ---------- */

.modal-overlay{
  position:fixed; inset:0; z-index:100;
  background:rgba(11,63,60,.35);
  backdrop-filter: blur(4px);
  display:flex; align-items:center; justify-content:center;
  padding:24px;
  opacity:0; pointer-events:none;
  transition: opacity .3s var(--ease);
}
.modal-overlay.is-open{ opacity:1; pointer-events:auto; }
.modal-panel{
  width:100%; max-width:440px;
  padding:32px;
  position:relative;
  transform:translateY(16px) scale(.98);
  transition: transform .35s var(--ease);
  background:var(--panel);
}
.modal-overlay.is-open .modal-panel{ transform:translateY(0) scale(1); }
.modal-panel h3{ font-size:25px; font-weight:400; margin-bottom:5px; }
.modal-panel .modal-sub{ font-size:15px; opacity:.72; margin-bottom:18px; }
.modal-close{
  position:absolute; top:16px; right:16px;
  width:34px; height:34px; border-radius:50%; border:none;
  background:rgba(11,63,60,.08); cursor:pointer;
  display:flex; align-items:center; justify-content:center;
}
.modal-close svg{ width:16px; height:16px; }
.modal-panel .contact-direct{ padding:0; }

/* ---------- footer marquee: smooth continuous scroll, infinite loop ---------- */

footer.site-footer{ padding:60px 0 40px; }
.footer-top{ display:flex; justify-content:space-between; align-items:flex-end; gap:20px; flex-wrap:wrap; margin-bottom:26px; }
.footer-top .brand{ font-size:23px; }
.footer-top .footer-meta{ font-size:14px; opacity:.7; text-align:right; }

.marquee{
  overflow:hidden; position:relative;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 6%,#000 94%,transparent);
}
.marquee-track{
  display:flex; gap:18px; width:max-content;
  animation: marquee-scroll 32s linear infinite;
}
.marquee:hover .marquee-track{ animation-play-state:paused; }
@keyframes marquee-scroll{
  from{ transform:translateX(0); }
  to{ transform:translateX(-50%); }
}
.marquee-card{
  flex:0 0 250px;
  padding:20px;
  cursor:pointer;
}
.marquee-card .mc-tag{ font-size:12px; text-transform:uppercase; letter-spacing:.1em; opacity:.62; margin-bottom:7px; }
.marquee-card h4{ font-size:18px; font-weight:400; margin-bottom:5px; }
.marquee-card p{ font-size:14px; opacity:.75; line-height:1.4; }

.footer-bottom{ margin-top:28px; font-size:14px; opacity:.65; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }

/* ---------- floating contact button (hides once #contacts is in view) ---------- */

.floating-contact{
  position:fixed; right:22px; bottom:22px; z-index:55;
  display:flex; align-items:center; gap:9px;
  padding:15px 24px;
  border-radius:18px;
  border:none; cursor:pointer;
  background:var(--teal-800); color:#eefaf7;
  font-family:inherit; font-size:16px;
  box-shadow:var(--shadow-soft);
  transition:opacity .35s var(--ease), transform .35s var(--ease);
}
.floating-contact:hover{ transform:translateY(-2px); }
.floating-contact svg{ width:18px; height:18px; }
.floating-contact.is-hidden{ opacity:0; transform:translateY(18px); pointer-events:none; }
@media (max-width:640px){
  .floating-contact{ right:14px; bottom:14px; padding:13px 20px; font-size:15px; }
}


.case-hero{ padding:150px 0 48px; }
.case-hero .eyebrow{ opacity:.75; }
.case-hero h1{ font-size:clamp(34px,5.8vw,58px); font-weight:400; line-height:1.1; max-width:760px; margin-bottom:18px; }
.case-body{ font-size:19px; line-height:1.72; max-width:760px; opacity:.94; }
.case-body p{ margin-bottom:18px; }
.case-back{ display:inline-flex; align-items:center; gap:8px; font-size:15px; margin-bottom:22px; opacity:.78; }
.case-back svg{ width:15px; height:15px; }

.case-highlight{ padding:26px 28px; margin:28px 0; }
.case-highlight p{ margin:0; font-size:17px; line-height:1.55; }
