:root{
  --bg: #FBF9F4;
  --bg-rgb: 251,249,244;
  --bg-alt: #F3EEE1;
  --ink: #2A2621;
  --ink-muted: #6B6255;
  --gold: #B4913F;
  --gold-soft: #D9C9A3;
  --line: #E4DCC8;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max: 100%;
}

:root[data-theme="dark"]{
  --bg: #1C1A17;
  --bg-rgb: 28,26,23;
  --bg-alt: #262320;
  --ink: #F2EDE3;
  --ink-muted: #B7AFA0;
  --gold: #D4B570;
  --gold-soft: #8A7550;
  --line: #3A352E;
}

*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  background:var(--bg);
  color:var(--ink);
  font-family:var(--sans);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
a{ color:inherit; text-decoration:none; }
img,svg{ display:block; max-width:100%; }
.wrap{ max-width:var(--max); margin:0 auto; padding:0 10%; box-sizing:border-box; }
section{ padding:96px 0; }
@media (max-width:860px){
  section{ padding:64px 0; }
  .wrap{ padding:0 6%; }
}
@media (max-width:480px){
  .wrap{ padding:0 20px; }
}

h1,h2,h3{ font-family:var(--serif); font-weight:500; line-height:1.15; color:var(--ink); }
h2{ font-size:clamp(28px,4vw,40px); }
h3{ font-size:20px; font-weight:600; transition:color 0.25s ease, transform 0.25s ease; }
p{ color:var(--ink-muted); }
.lede{ font-size:19px; max-width:52ch; }

/* ---------- Header ---------- */
header{
  position:sticky; top:0; z-index:40;
  background:rgba(var(--bg-rgb),0.92);
  backdrop-filter:saturate(140%) blur(6px);
  border-bottom:1px solid var(--line);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 32px; max-width:var(--max); margin:0 auto;
}
.brand{ display:flex; align-items:center; gap:6px; }
.brand img{ height:38px; width:auto; }
.brand-word{ font-family:var(--serif); font-size:19px; font-weight:600; }
.brand-word span{ color:var(--gold); }
nav.links{ display:flex; gap:36px; }
nav.links a{ font-size:14.5px; color:var(--ink); }
nav.links a:hover{ color:var(--gold); }
.nav-cta{
  padding:10px 22px; border:1px solid var(--ink); border-radius:2px;
  font-size:14px;
}
.nav-cta:hover{ background:var(--ink); color:var(--bg); }
.theme-toggle{
  background:none; border:1px solid var(--line); border-radius:2px;
  width:38px; height:38px; cursor:pointer; font-size:16px;
  display:flex; align-items:center; justify-content:center;
  margin-left:12px; transition:border-color 0.2s ease;
}
.theme-toggle:hover{ border-color:var(--gold); }
.menu-toggle{ display:none; background:none; border:none; cursor:pointer; font-size:20px; }
.mobile-menu{ display:none; flex-direction:column; padding:0 32px 20px; gap:14px; }
.mobile-menu.open{ display:flex; }
@media (max-width:860px){
  nav.links, .nav-cta{ display:none; }
  .menu-toggle{ display:block; }
}

/* ---------- Hero ---------- */
.hero{ padding:88px 0 72px; }
.hero-grid{ display:grid; grid-template-columns:1.1fr 0.9fr; gap:64px; align-items:center; }
@media (max-width:900px){ .hero-grid{ grid-template-columns:1fr; gap:40px; } }
.eyebrow{ color:var(--gold); font-size:14px; letter-spacing:0.3px; margin-bottom:18px; }
.hero h1{ font-size:clamp(32px,5.4vw,58px); margin-bottom:22px; transition:color 0.25s ease; }
.hero h1:hover{ color:var(--gold); }
.hero p.lede{ margin-bottom:34px; }
.cta-row{ display:flex; gap:16px; flex-wrap:wrap; }
.btn{
  display:inline-block; padding:14px 26px; font-size:15px; border-radius:2px;
  font-weight:500; border:none; cursor:pointer; font-family:var(--sans);
}
.btn-primary{ background:var(--ink); color:var(--bg); }
.btn-primary:hover{ background:var(--gold); }
.btn-ghost{ border:1px solid var(--ink); color:var(--ink); background:none; }
.btn-ghost:hover{ border-color:var(--gold); color:var(--gold); }
.hero-art{ position:relative; }
@media (max-width:900px){ .hero-art{ max-width:320px; margin:0 auto; } }

/* Hero pipeline animation */
.pipeline-path{ stroke-dasharray:600; stroke-dashoffset:600; animation:draw-path 1.6s ease-out forwards; }
@keyframes draw-path{ to{ stroke-dashoffset:0; } }
.node{ opacity:0; animation:node-in 0.4s ease-out forwards; }
@keyframes node-in{ from{ opacity:0; transform:scale(0.3); } to{ opacity:1; transform:scale(1); } }
.node-final{ animation:node-in 0.4s ease-out forwards, final-pulse 2s ease-in-out 1s infinite; transform-origin:360px 70px; }
@keyframes final-pulse{ 0%,100%{ transform:scale(1); } 50%{ transform:scale(1.25); } }
.flow-dot{ opacity:0; animation:dot-appear 0.3s ease-out 1.6s forwards; }
@keyframes dot-appear{ to{ opacity:1; } }

/* ---------- Trusted By ---------- */
.trusted-by{ text-align:center; padding:56px 0; border-top:1px solid var(--line); }
.trusted-by h3{ font-size:15px; color:var(--ink-muted); font-weight:500; letter-spacing:0.5px; text-transform:uppercase; margin-bottom:32px; }
.trusted-grid{ display:flex; flex-wrap:wrap; justify-content:center; gap:28px; }
.trusted-badge{
  width:96px; height:96px; border-radius:50%; border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center; background:#FFFFFF;
  padding:14px;
}
.trusted-badge img{ max-width:100%; max-height:100%; object-fit:contain; }
.trusted-badge.text-only{ font-family:var(--serif); font-size:12px; text-align:center; color:#2A2621; line-height:1.3; }

/* ---------- Services ---------- */
.services{ background:var(--bg-alt); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.section-head{ max-width:56ch; margin-bottom:52px; }
.service-row{
  display:grid; grid-template-columns:64px 1fr 1.4fr; gap:28px; align-items:start;
  padding:30px 0; border-top:1px solid var(--line); transition:transform 0.3s ease;
}
.service-row:last-child{ border-bottom:1px solid var(--line); }
.service-row:hover h3{ color:var(--gold); transform:translateX(4px); }
@media (max-width:860px){
  .service-row{ grid-template-columns:44px 1fr; }
  .service-row p{ grid-column:1 / -1; }
}
.service-icon{ width:40px; height:40px; }
.service-row h3{ padding-top:4px; }

/* ---------- Industries ---------- */
.industry-list{ display:flex; flex-wrap:wrap; gap:0; border-top:1px solid var(--line); border-left:1px solid var(--line); }
.industry-list span{
  padding:20px 26px; border-right:1px solid var(--line); border-bottom:1px solid var(--line);
  font-family:var(--serif); font-size:18px; flex:1 1 auto; min-width:180px;
}
@media (max-width:480px){ .industry-list span{ min-width:140px; padding:16px 18px; font-size:16px; } }
.industries-note{ margin-top:22px; font-size:14.5px; }
.industries-note a{ color:var(--gold); text-decoration:underline; }

/* ---------- How it works ---------- */
.steps{ display:flex; flex-direction:column; }
.step{
  display:grid; grid-template-columns:90px 1fr; gap:28px;
  padding:34px 0; border-top:1px solid var(--line); transition:transform 0.3s ease;
  cursor:pointer;
}
.steps > .step:last-child{ border-bottom:1px solid var(--line); }
.step:hover h3{ color:var(--gold); transform:translateX(4px); }
.step-num{ font-family:var(--serif); font-size:44px; color:var(--gold-soft); line-height:1; }
.step h3{ margin-bottom:8px; }
@media (max-width:480px){ .step{ grid-template-columns:56px 1fr; gap:16px; } .step-num{ font-size:32px; } }

/* ---------- Why us ---------- */
.why-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.why-cell{ background:var(--bg); padding:34px; transition:transform 0.3s ease; }
.why-cell:hover{ transform:translateY(-4px); }
.why-cell:hover h3{ color:var(--gold); transform:translateX(4px); }
@media (max-width:860px){ .why-grid{ grid-template-columns:1fr; } }
.why-cell h3{ margin-bottom:10px; }

/* ---------- Our Story teaser (home page) ---------- */
.story{ background:var(--bg-alt); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.story-grid{ display:grid; grid-template-columns:1.1fr 0.9fr; gap:64px; align-items:start; }
@media (max-width:900px){ .story-grid{ grid-template-columns:1fr; gap:40px; } }
.story p{ margin-bottom:16px; max-width:60ch; }

/* ---------- Founders (about page) ---------- */
.founders{ display:flex; flex-direction:column; gap:1px; background:var(--line); border:1px solid var(--line); }
.founder-card{ background:var(--bg); padding:26px 28px; display:flex; align-items:center; gap:14px; transition:transform 0.3s ease; }
.founder-card:hover{ transform:translateY(-4px); }
.founder-card:hover .name{ color:var(--gold); transform:translateX(4px); }
.founder-avatar{ width:48px; height:48px; border-radius:50%; object-fit:cover; object-position:top center; border:1px solid var(--gold-soft); flex-shrink:0; cursor:pointer; transition:transform 0.2s ease; }
.founder-avatar:hover{ transform:scale(1.08); }
.founder-card .name{ font-family:var(--serif); font-size:19px; color:var(--ink); margin-bottom:4px; transition:color 0.25s ease, transform 0.25s ease; }
.founder-card .role{ font-size:13.5px; color:var(--gold); }

/* ---------- Profile sections (Meet Sana / Meet Jais) ---------- */
.profile-section{ padding:28px 0; border-top:1px solid var(--line); transition:transform 0.3s ease; }
.profile-section:last-of-type{ border-bottom:1px solid var(--line); }
.profile-section:hover h3{ color:var(--gold); transform:translateX(4px); }
.profile-section h3{ margin-bottom:10px; }
.profile-links{ margin-top:20px; }
.profile-links a{ color:var(--gold); text-decoration:underline; font-size:14.5px; }

/* ---------- Mission / Vision / Goals ---------- */
.mvg-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
@media (max-width:860px){ .mvg-grid{ grid-template-columns:1fr; } }
.mvg-item{ background:var(--bg); padding:40px 34px; transition:transform 0.3s ease; }
.mvg-item:hover{ transform:translateY(-4px); }
.mvg-label{ font-family:var(--serif); font-size:22px; color:var(--gold); margin-bottom:16px; }
.mvg-text{ font-size:15.5px; }
.mvg-list{ list-style:none; padding:0; margin:0; }
.mvg-list li{ font-size:15px; color:var(--ink-muted); padding:10px 0; border-top:1px solid var(--line); }
.mvg-list li:first-child{ border-top:none; }

/* ---------- FAQ ---------- */
.faq-item{ border-top:1px solid var(--line); }
.faq-item:last-child{ border-bottom:1px solid var(--line); }
.faq-q{
  width:100%; text-align:left; background:none; border:none; cursor:pointer;
  padding:24px 0; display:flex; justify-content:space-between; align-items:center;
  font-family:var(--serif); font-size:18px; color:var(--ink); gap:16px;
}
.faq-q .mark{ font-family:var(--sans); font-size:20px; color:var(--gold); transition:transform .25s ease; flex-shrink:0; }
.faq-item.open .faq-q .mark{ transform:rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .3s ease; }
.faq-a p{ padding-bottom:24px; max-width:66ch; }
@media (max-width:480px){ .faq-q{ font-size:16px; } }

/* ---------- Contact ---------- */
.contact{ background:var(--bg-alt); border-top:1px solid var(--line); }
.contact-grid{ display:grid; grid-template-columns:0.9fr 1.1fr; gap:64px; }
@media (max-width:900px){ .contact-grid{ grid-template-columns:1fr; gap:40px; } }
.field{ margin-bottom:20px; }
.field label{ display:block; font-size:14px; margin-bottom:8px; color:var(--ink); }
.field input, .field textarea{
  width:100%; padding:13px 14px; border:1px solid var(--line); border-radius:2px;
  background:var(--bg); font-family:var(--sans); font-size:15px; color:var(--ink);
}
.field textarea{ resize:vertical; min-height:120px; }
.field input:focus, .field textarea:focus{ outline:2px solid var(--gold); outline-offset:1px; }
.form-status{ font-size:14.5px; margin-top:14px; display:none; }
.form-status.success{ color:#5C7A4F; display:block; }
.form-status.error{ color:#A44; display:block; }

/* ---------- Final CTA ---------- */
.final-cta{ text-align:left; background:#2A2621; color:#FBF9F4; }
.final-cta h2{ color:#FBF9F4; }
.final-cta p{ color:#D8D2C4; margin-bottom:32px; }
.final-cta .btn-primary{ background:#B4913F; color:#2A2621; }
.final-cta .btn-primary:hover{ background:#D9C9A3; }

/* ---------- Footer ---------- */
footer{ padding:48px 0; }
.footer-row{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px; }
.footer-row .brand-word{ font-size:16px; }
footer p{ font-size:13.5px; }

/* ---------- Lightbox ---------- */
.lightbox-overlay{
  position:fixed; inset:0; background:rgba(0,0,0,0.75);
  display:none; align-items:center; justify-content:center; z-index:100; padding:24px;
}
.lightbox-overlay.open{ display:flex; }
.lightbox-overlay img{ max-width:min(420px, 90vw); max-height:80vh; border-radius:12px; border:3px solid var(--gold); }
.lightbox-close{ position:absolute; top:24px; right:32px; background:none; border:none; color:#fff; font-size:32px; cursor:pointer; }

/* ---------- Scroll reveal animations ---------- */
.reveal{ opacity:0; transform:translateY(28px); transition:opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible{ opacity:1; transform:translateY(0); }

@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  .pipeline-path{ stroke-dashoffset:0; animation:none; }
  .node{ opacity:1; animation:none; }
  .flow-dot{ display:none; }
  .service-row:hover h3, .step:hover h3, .why-cell:hover h3,
  .founder-card:hover .name, .profile-section:hover h3{ transform:none; }
  .why-cell:hover, .founder-card:hover, .mvg-item:hover{ transform:none; }
}

.social-links{ display:flex; gap:16px; align-items:center; }
.social-links a{
  width:34px; height:34px; border-radius:50%; border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center; transition:border-color 0.2s ease, transform 0.2s ease;
}
.social-links a:hover{ border-color:var(--gold); transform:translateY(-2px); }
.social-links svg{ width:16px; height:16px; fill:var(--ink-muted); }
.social-links a:hover svg{ fill:var(--gold); }