:root{
  --bg:#f5f7fa;
  --surface:#ffffff;
  --surface-alt:#eef2f5;
  --ink:#0f1722;
  --muted:#5d6a78;
  --line:#d6dde4;
  --green:#1a8f6e;
  --blue:#2c74bf;
  --deep:#0c1520;
  --shadow:0 10px 30px rgba(8,24,40,.07);
  --radius:18px;
  --max:1240px;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  color:var(--ink);
  font:16px/1.6 "Inter","Segoe UI",Arial,sans-serif;
  background:var(--surface);
}

img{
  max-width:100%;
  display:block;
}

a{
  color:inherit;
  text-decoration:none;
}

.wrap{
  width:min(var(--max), calc(100% - 48px));
  margin:0 auto;
}

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(15,23,34,.08);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  min-height:76px;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:12px;
  font-weight:700;
  letter-spacing:.08em;
}

.brand-logo{
  height:42px;
  width:auto;
  display:block;
}

.brand-mark{
  width:34px;
  height:34px;
  border-radius:10px;
  background:
    radial-gradient(circle at 28% 32%, #8ce3c3 0 10%, transparent 12%),
    linear-gradient(120deg, var(--green), var(--blue));
  position:relative;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}

.brand-mark:after{
  content:"";
  position:absolute;
  inset:7px 6px 8px 7px;
  border:2px solid rgba(255,255,255,.92);
  border-radius:14px 14px 14px 5px;
  transform:rotate(-18deg) skewX(-8deg);
  border-left-color:transparent;
  border-bottom-color:transparent;
}

.brand-text{
  font-size:15px;
}

.nav-links{
  display:flex;
  gap:28px;
  align-items:center;
}

.nav-links a{
  font-size:14px;
  color:#334155;
}

.nav-links a:hover{
  color:var(--blue);
}

.return-link{
  white-space:nowrap;
}

.nav-toggle{
  display:none;
  background:none;
  border:none;
  font-size:24px;
}

/* Existing split hero */
.hero-split{
  background:linear-gradient(90deg, #f7fafb 0%, #f7fafb 52%, #edf3f6 52%, #edf3f6 100%);
  border-bottom:1px solid var(--line);
}

.hero-grid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:52px;
  align-items:center;
  min-height:calc(100vh - 76px);
  padding:72px 0;
}

.hero-copy{
  max-width:650px;
}

/* New video homepage hero */
.video-hero{
  position:relative;
  min-height:calc(100vh - 76px);
  display:flex;
  align-items:center;
  overflow:hidden;
  background:#000;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.hero-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:0;
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(8,16,26,.76) 0%, rgba(8,16,26,.58) 42%, rgba(8,16,26,.42) 100%);
  z-index:1;
}

.hero-video-content{
  position:relative;
  z-index:2;
  width:100%;
  padding:86px 0;
}

.video-hero .hero-copy{
  max-width:760px;
  color:#fff;
}

.video-hero .eyebrow{
  color:#d5e9ff;
}

.video-hero h1{
  color:#fff;
}

.video-hero .lead{
  color:rgba(255,255,255,.88);
  max-width:720px;
}

.video-hero .hero-meta{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  margin-top:28px;
  border-top:1px solid rgba(255,255,255,.18);
  padding-top:22px;
}

.video-hero .hero-meta div{
  display:flex;
  flex-direction:column;
  gap:5px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.16);
  border-radius:18px;
  padding:18px;
  backdrop-filter:blur(6px);
}

.video-hero .hero-meta strong{
  color:#fff;
  font-size:15px;
}

.video-hero .hero-meta span{
  color:rgba(255,255,255,.82);
  font-size:14px;
}

.eyebrow{
  display:inline-block;
  margin-bottom:14px;
  color:var(--green);
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  font-weight:700;
}

h1,h2,h3,h4,p{
  margin:0;
}

h1{
  font-size:clamp(2.5rem, 4vw, 4.25rem);
  line-height:1.05;
  letter-spacing:-.03em;
}

h2{
  font-size:clamp(1.8rem, 3vw, 3rem);
  line-height:1.1;
  letter-spacing:-.03em;
}

h3{
  font-size:1.2rem;
  line-height:1.2;
}

.lead{
  font-size:1.1rem;
  color:var(--muted);
  max-width:60ch;
  margin-top:18px;
}

.hero-copy .lead{
  max-width:57ch;
}

.cta-row{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin:28px 0 32px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 18px;
  border-radius:999px;
  font-weight:600;
  border:1px solid transparent;
  transition:.2s ease;
  cursor:pointer;
}

.btn:hover{
  transform:translateY(-1px);
}

.btn-primary{
  background:linear-gradient(90deg,var(--green),var(--blue));
  color:white;
  box-shadow:var(--shadow);
}

.btn-secondary{
  background:transparent;
  border-color:#9aabbc;
  color:var(--ink);
}

.video-hero .btn-secondary{
  border-color:rgba(255,255,255,.35);
  color:#fff;
}

.hero-meta{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  border-top:1px solid var(--line);
  padding-top:22px;
}

.hero-meta div{
  display:flex;
  flex-direction:column;
  gap:5px;
}

.hero-meta strong{
  font-size:15px;
}

.hero-meta span{
  font-size:14px;
  color:var(--muted);
}

.hero-visual{
  min-height:640px;
  border-radius:28px;
  overflow:hidden;
  box-shadow:var(--shadow);
  background:#dde5eb;
  border:1px solid rgba(15,23,34,.06);
}

.hero-visual img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

.page-hero{
  padding:88px 0 30px;
  background:linear-gradient(180deg,#f7fafb, #ffffff);
  border-bottom:1px solid var(--line);
}

.page-hero.compact{
  padding-bottom:60px;
}

.page-hero-grid{
  display:grid;
  grid-template-columns:1fr .9fr;
  gap:44px;
  align-items:center;
}

.page-hero .narrow{
  max-width:820px;
}

.section{
  padding:84px 0;
}

.section.alt{
  background:var(--bg);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

.section-heading{
  max-width:920px;
  margin-bottom:34px;
}

.section-heading.narrow{
  max-width:860px;
}

.section-heading p{
  margin-top:14px;
  color:var(--muted);
}

.card-grid.four{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:22px;
}

.info-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:26px;
  box-shadow:var(--shadow);
}

.icon-card .icon-circle{
  width:46px;
  height:46px;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  color:white;
  margin-bottom:18px;
  background:linear-gradient(135deg,var(--green),var(--blue));
}

.info-card p{
  color:var(--muted);
  margin-top:12px;
}

.split-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:44px;
  align-items:center;
}

.media-frame{
  border-radius:24px;
  overflow:hidden;
  border:1px solid rgba(15,23,34,.06);
  box-shadow:var(--shadow);
  background:#dde5eb;
}

.media-frame img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.media-frame.tall{
  height:520px;
}

.feature-list{
  list-style:none;
  padding:0;
  margin:18px 0 0;
}

.feature-list li{
  padding:12px 0 12px 26px;
  position:relative;
  border-bottom:1px solid var(--line);
}

.feature-list li:before{
  content:"";
  width:10px;
  height:10px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--green),var(--blue));
  position:absolute;
  left:0;
  top:18px;
}

.text-link{
  display:inline-block;
  margin-top:22px;
  color:var(--blue);
  font-weight:600;
}

.story-grid{
  display:grid;
  grid-template-columns:1fr 1fr 1.15fr;
  gap:22px;
  align-items:stretch;
}

.story-card{
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:28px;
  background:var(--surface);
  box-shadow:var(--shadow);
}

.story-card p{
  margin-top:12px;
  color:var(--muted);
}

.story-card.media{
  padding:0;
  overflow:hidden;
}

.story-card.media img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.application-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}

.application-grid article,
.app-row{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:24px;
  min-height:170px;
}

.application-grid p,
.app-row p{
  margin-top:10px;
  color:var(--muted);
}

.app-rows{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:22px;
}

.platform-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:22px;
}

.platform-card{
  display:grid;
  grid-template-columns:220px 1fr;
  gap:24px;
  align-items:center;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:18px 20px;
  box-shadow:var(--shadow);
}

.platform-card img{
  width:100%;
  aspect-ratio:1.25/1;
  object-fit:contain;
  background:#f9fbfc;
  border-radius:16px;
  padding:12px;
}

.platform-card p{
  color:var(--muted);
  margin-top:10px;
}

.mosaic{
  display:grid;
  grid-template-columns:1.25fr 1fr 1fr;
  gap:18px;
  grid-template-areas:
    "big small1 small2"
    "big small3 small4";
}

.mosaic img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:20px;
  box-shadow:var(--shadow);
  border:1px solid rgba(15,23,34,.06);
}

.mosaic-large{
  grid-area:big;
  min-height:520px;
}

.mosaic img:nth-child(2){
  grid-area:small1;
}

.mosaic img:nth-child(3){
  grid-area:small2;
}

.mosaic img:nth-child(4){
  grid-area:small3;
}

.mosaic img:nth-child(5){
  grid-area:small4;
}

.project-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}

.project-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:22px;
  overflow:hidden;
  box-shadow:var(--shadow);
}

.project-card img{
  width:100%;
  aspect-ratio:1.35/1;
  object-fit:cover;
}

.project-card div{
  padding:22px;
}

.project-card p{
  color:var(--muted);
  margin-top:10px;
}

.timeline-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:22px;
}

.timeline-grid article{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:28px;
  box-shadow:var(--shadow);
}

.timeline-year{
  display:inline-block;
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.12em;
  color:var(--green);
  margin-bottom:12px;
}

.timeline-grid p{
  margin-top:12px;
  color:var(--muted);
}

.quote-block{
  padding:32px;
  background:linear-gradient(135deg,#112132,#16314d);
  color:white;
  border-radius:24px;
  box-shadow:var(--shadow);
}

.quote-block p{
  font-size:clamp(1.2rem,2vw,1.8rem);
  line-height:1.4;
  max-width:900px;
}

.bullet-columns{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
  margin-top:20px;
}

.bullet-columns ul{
  margin:0;
  padding-left:18px;
}

.bullet-columns li{
  margin:8px 0;
}

.solution-stack{
  display:grid;
  gap:26px;
}

.solution-row{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:28px;
  align-items:center;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:24px;
  padding:24px;
  box-shadow:var(--shadow);
}

.solution-row.reverse{
  grid-template-columns:.95fr 1.05fr;
}

.solution-row.reverse > div{
  order:2;
}

.solution-row img{
  width:100%;
  aspect-ratio:1.45/1;
  object-fit:cover;
  border-radius:18px;
}

.solution-row p{
  color:var(--muted);
  margin-top:12px;
}

.tech-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:22px;
}

.tech-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:22px;
  overflow:hidden;
  box-shadow:var(--shadow);
}

.tech-card img{
  width:100%;
  aspect-ratio:1.25/1;
  object-fit:cover;
  background:#eef2f5;
}

.tech-card h3,
.tech-card p{
  padding-inline:22px;
}

.tech-card h3{
  padding-top:18px;
}

.tech-card p{
  padding-bottom:24px;
  margin-top:10px;
  color:var(--muted);
}

.contact-panel{
  display:grid;
  gap:14px;
  margin-top:24px;
}

.contact-panel div,
.contact-copy .info-card{
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px 20px;
  background:var(--surface);
}

.contact-panel span{
  display:block;
  color:var(--muted);
  margin-top:4px;
}

.contact-form{
  display:grid;
  gap:14px;
  padding:28px;
  border-radius:24px;
  border:1px solid var(--line);
  background:var(--surface);
  box-shadow:var(--shadow);
}

.contact-form label{
  display:grid;
  gap:8px;
  font-weight:600;
}

.contact-form input,
.contact-form textarea{
  width:100%;
  border:1px solid #c7d1db;
  border-radius:14px;
  padding:14px 16px;
  font:inherit;
  resize:vertical;
}

.contact-form textarea{
  min-height:150px;
}

.form-note{
  font-size:14px;
  color:var(--muted);
}

.site-footer{
  background:#0d1520;
  color:#e5edf5;
  padding-top:56px;
  margin-top:20px;
}

.footer-grid{
  display:grid;
  grid-template-columns:1.3fr .8fr .8fr .9fr;
  gap:28px;
  padding-bottom:38px;
}

.site-footer h4{
  margin-bottom:14px;
  font-size:14px;
  text-transform:uppercase;
  letter-spacing:.1em;
  color:#8fb8ff;
}

.site-footer a{
  display:block;
  color:#c6d2df;
  margin:10px 0;
}

.site-footer p{
  color:#c6d2df;
}

.footer-brand{
  margin-bottom:16px;
}

.footer-bottom{
  border-top:1px solid rgba(255,255,255,.08);
  min-height:62px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  color:#91a0b0;
  font-size:14px;
}

@media (max-width: 1080px){
  .hero-grid,
  .page-hero-grid,
  .split-grid,
  .solution-row,
  .solution-row.reverse{
    grid-template-columns:1fr;
  }

  .solution-row.reverse > div{
    order:0;
  }

  .card-grid.four,
  .application-grid,
  .project-grid,
  .tech-grid,
  .footer-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .platform-grid,
  .story-grid,
  .app-rows,
  .timeline-grid,
  .bullet-columns{
    grid-template-columns:1fr;
  }

  .mosaic{
    grid-template-columns:1fr 1fr;
    grid-template-areas:
      "big big"
      "small1 small2"
      "small3 small4";
  }

  .hero-visual{
    min-height:520px;
  }
}

@media (max-width: 760px){
  .wrap{
    width:min(var(--max), calc(100% - 28px));
  }

  .nav-toggle{
    display:block;
  }

  .nav-links{
    display:none;
    position:absolute;
    top:76px;
    left:0;
    right:0;
    background:white;
    padding:18px 24px;
    border-bottom:1px solid var(--line);
    box-shadow:var(--shadow);
  }

  .nav-links.open{
    display:grid;
    gap:14px;
  }

  h1{
    font-size:clamp(2.1rem, 11vw, 3rem);
  }

  h2{
    font-size:clamp(1.65rem, 7vw, 2.25rem);
  }

  .hero-grid{
    min-height:auto;
    padding:48px 0;
  }

  .hero-split{
    background:linear-gradient(180deg,#f7fafb,#edf3f6);
  }

  .video-hero{
    min-height:auto;
  }

  .hero-video-content{
    padding:120px 0 70px;
  }

  .hero-meta,
  .video-hero .hero-meta,
  .card-grid.four,
  .application-grid,
  .project-grid,
  .tech-grid,
  .footer-grid{
    grid-template-columns:1fr;
  }

  .platform-card{
    grid-template-columns:1fr;
  }

  .mosaic{
    grid-template-columns:1fr;
    grid-template-areas:
      "big"
      "small1"
      "small2"
      "small3"
      "small4";
  }

  .mosaic-large{
    min-height:360px;
  }

  .footer-bottom{
    flex-direction:column;
    justify-content:center;
    text-align:center;
    padding:16px 0;
  }
}