:root {
  --navy: #063f62;
  --brand: #075f91;
  --cyan: #2aa9e0;
  --sky: #6ccef3;
  --ink: #10232f;
  --muted: #62727d;
  --surface: #f4f8fa;
  --white: #ffffff;
  --line: rgba(16,35,47,.12);
  --shadow: 0 24px 70px rgba(4,49,77,.14);
  --radius: 26px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
::selection { background: var(--cyan); color: #fff; }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 112px 0; }

.skip-link {
  position: fixed; left: 18px; top: -60px; z-index: 9999;
  background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 10px;
  box-shadow: var(--shadow); transition: top .2s ease;
}
.skip-link:focus { top: 18px; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(5,46,71,.07);
}
.nav-wrap { height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; min-width: 0; }
.brand-mark {
  display: flex; align-items: center; justify-content: center;
  width: 154px; height: 76px; padding: 5px 8px; overflow: visible; flex: 0 0 auto;
  background: #fff; border-radius: 8px;
  box-shadow: 0 4px 18px rgba(5,46,71,.10);
}
.brand-mark img {
  display: block; width: 100%; height: 100%; max-width: 100%;
  object-fit: contain; object-position: center;
}
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav > a { color: rgba(255,255,255,.84); font-size: .91rem; font-weight: 650; transition: color .2s ease; }
.site-nav > a:hover, .site-nav > a:focus-visible { color: #fff; }
.site-header.scrolled .site-nav > a { color: #324b5a; }
.site-header.scrolled .site-nav > a:hover { color: var(--brand); }
.site-nav .nav-cta {
  color: #fff !important; background: var(--cyan); padding: 12px 18px; border-radius: 999px;
  box-shadow: 0 9px 24px rgba(42,169,224,.22); transition: transform .2s ease, background .2s ease;
}
.site-nav .nav-cta:hover { transform: translateY(-2px); background: #1699d4; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); padding: 12px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; margin: 4px 0; background: #fff; transition: transform .2s ease, opacity .2s ease; }
.scrolled .nav-toggle { background: var(--surface); }
.scrolled .nav-toggle span { background: var(--brand); }

.hero {
  position: relative; min-height: 810px; height: 100svh; overflow: hidden; isolation: isolate; display: flex; align-items: center;
  background: var(--navy);
}
.hero-media { position: absolute; inset: 0; z-index: -3; background: url('../images/optimized/slider_img.webp') center 50% / cover no-repeat; transform: scale(1.02); }
.hero-overlay {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(90deg, rgba(3,36,57,.92) 0%, rgba(3,54,83,.73) 47%, rgba(3,45,69,.30) 78%, rgba(3,45,69,.18) 100%),
    linear-gradient(0deg, rgba(2,28,44,.45), transparent 45%);
}
.hero-content { padding-top: 72px; }
.eyebrow, .section-kicker {
  display: flex; align-items: center; gap: 11px; margin: 0 0 22px; color: var(--cyan);
  font-size: .76rem; font-weight: 800; letter-spacing: .19em; text-transform: uppercase;
}
.eyebrow span { width: 30px; height: 2px; background: var(--cyan); }
.hero h1 {
  max-width: 900px; margin: 0; color: #fff; font-size: clamp(3.25rem, 7.1vw, 6.8rem); line-height: .96;
  letter-spacing: -.055em; font-weight: 760;
}
.hero h1 em { color: var(--sky); font-style: normal; }
.hero-lead { max-width: 680px; margin: 28px 0 0; color: rgba(255,255,255,.78); font-size: clamp(1.04rem, 1.5vw, 1.24rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 38px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 999px; font-size: .91rem; font-weight: 800; transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: var(--cyan); box-shadow: 0 14px 34px rgba(42,169,224,.25); }
.btn-primary:hover { background: #169bd5; }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.38); background: rgba(255,255,255,.04); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.65); }
.btn-light { color: var(--brand); background: #fff; }
.scroll-cue {
  position: absolute; left: max(20px, calc((100vw - var(--container))/2)); bottom: 34px; color: rgba(255,255,255,.65);
  display: flex; align-items: center; gap: 14px; font-size: .72rem; text-transform: uppercase; letter-spacing: .15em; font-weight: 800;
}
.scroll-cue i { width: 45px; height: 1px; background: rgba(255,255,255,.45); position: relative; }
.scroll-cue i::after { content:""; position:absolute; right:0; top:-3px; width:7px; height:7px; border-right:1px solid #fff; border-bottom:1px solid #fff; transform: rotate(-45deg); }

.intro-strip { background: #fff; border-bottom: 1px solid var(--line); }
.intro-grid { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.intro-grid > p { margin: 0; color: var(--muted); font-weight: 680; }
.expertise-tags { display: flex; flex-wrap: wrap; gap: 9px; justify-content: flex-end; }
.expertise-tags span { color: var(--brand); background: #edf7fb; padding: 8px 14px; border-radius: 999px; font-size: .76rem; font-weight: 780; text-transform: uppercase; letter-spacing: .08em; }

.split-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 85px; align-items: center; }
.section-kicker { margin-bottom: 14px; }
.section h2, .cta-section h2 {
  margin: 0; max-width: 760px; color: var(--ink); font-size: clamp(2.35rem, 4.2vw, 4.25rem); line-height: 1.03; letter-spacing: -.045em;
}
.section-copy .lead { margin: 27px 0 18px; color: #314956; font-size: 1.17rem; line-height: 1.72; }
.section-copy > p:not(.section-kicker):not(.lead) { color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--brand); font-weight: 800; }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }
.about-visual { position: relative; padding: 28px 0 42px 32px; }
.image-frame { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 1.15 / 1; }
.image-frame img { width: 100%; height: 100%; object-fit: cover; }
.about-visual::before { content:""; position:absolute; left:0; top:0; width:68%; height:70%; border-radius: var(--radius); background: #dff2fa; z-index:-1; }
.floating-note {
  position:absolute; left:0; bottom:0; width:min(330px, 76%); padding:22px 24px; border-radius:18px; color:#fff;
  background: rgba(6,63,98,.96); box-shadow: 0 18px 46px rgba(6,63,98,.24);
}
.floating-note strong { display:block; margin-bottom:5px; font-size:1rem; }
.floating-note span { display:block; color:rgba(255,255,255,.7); font-size:.86rem; line-height:1.55; }

.services { background: var(--surface); }
.section-heading { display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items: end; margin-bottom: 52px; }
.section-heading > p { margin: 0 0 4px; color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card { background: #fff; border: 1px solid rgba(7,95,145,.08); border-radius: 23px; overflow: hidden; box-shadow: 0 15px 45px rgba(5,65,99,.06); transition: transform .25s ease, box-shadow .25s ease; }
.service-card:hover { transform: translateY(-7px); box-shadow: 0 26px 60px rgba(5,65,99,.12); }
.service-image { position: relative; aspect-ratio: 1.38 / 1; overflow: hidden; }
.service-image::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg, transparent 40%, rgba(1,40,63,.28)); }
.service-image img { width:100%; height:100%; object-fit:cover; transition:transform .45s ease; }
.service-card:hover .service-image img { transform: scale(1.045); }
.service-number { position:absolute; z-index:2; right:17px; bottom:15px; display:grid; place-items:center; width:42px; height:42px; border-radius:50%; background:#fff; color:var(--brand); font-size:.75rem; font-weight:850; }
.service-body { padding: 27px 27px 31px; }
.service-body h3 { margin:0 0 12px; color:var(--ink); font-size:1.25rem; letter-spacing:-.02em; }
.service-body p { margin:0; color:var(--muted); font-size:.93rem; }

.why { background: var(--navy); color:#fff; position:relative; overflow:hidden; }
.why::before { content:""; position:absolute; width:520px; height:520px; border-radius:50%; right:-190px; top:-210px; border:1px solid rgba(108,206,243,.15); box-shadow:0 0 0 80px rgba(108,206,243,.025),0 0 0 160px rgba(108,206,243,.02); }
.why-grid { display:grid; grid-template-columns:.88fr 1.12fr; gap:90px; position:relative; }
.section-kicker-light { color:var(--sky); }
.why h2 { color:#fff; }
.why-list { border-top:1px solid rgba(255,255,255,.15); }
.why-item { display:grid; grid-template-columns:70px 1fr; gap:22px; padding:29px 0; border-bottom:1px solid rgba(255,255,255,.15); }
.why-icon { display:grid; place-items:center; width:50px; height:50px; border:1px solid rgba(108,206,243,.35); border-radius:50%; color:var(--sky); font-size:.73rem; font-weight:850; }
.why-item h3 { margin:0 0 7px; color:#fff; font-size:1.08rem; }
.why-item p { margin:0; color:rgba(255,255,255,.62); font-size:.92rem; }

.projects { background:#fff; }
.project-grid { display:grid; grid-template-columns:repeat(12,1fr); grid-auto-rows:230px; gap:18px; }
.project-card { position:relative; overflow:hidden; border-radius:20px; grid-column:span 4; }
.project-card-large { grid-column:span 8; grid-row:span 2; }
.project-card:nth-child(4) { grid-column:span 7; }
.project-card:nth-child(5) { grid-column:span 5; }
.project-card img { width:100%; height:100%; object-fit:cover; transition:transform .5s ease, filter .4s ease; }
.project-card::after { content:""; position:absolute; inset:0; background:linear-gradient(0deg, rgba(2,35,54,.78), rgba(2,35,54,.06) 66%); transition:background .3s ease; }
.project-card:hover img { transform:scale(1.045); }
.project-card:hover::after { background:linear-gradient(0deg, rgba(2,35,54,.86), rgba(2,35,54,.12) 70%); }
.project-overlay { position:absolute; left:22px; right:22px; bottom:20px; z-index:2; color:#fff; }
.project-overlay strong { display:block; font-size:1.06rem; }
.project-overlay small { color:rgba(255,255,255,.65); }

.cta-section { padding: 0 0 112px; background:#fff; }
.cta-card { min-height:340px; display:flex; align-items:flex-end; justify-content:space-between; gap:50px; padding:60px; color:#fff; border-radius:30px; background:linear-gradient(120deg, var(--brand), #064b72 62%, #063b5b); position:relative; overflow:hidden; }
.cta-card::after { content:""; position:absolute; right:-80px; top:-130px; width:410px; height:410px; border:1px solid rgba(255,255,255,.14); border-radius:50%; box-shadow:0 0 0 65px rgba(255,255,255,.03),0 0 0 130px rgba(255,255,255,.02); }
.cta-card > * { position:relative; z-index:1; }
.cta-card h2 { color:#fff; max-width:760px; font-size:clamp(2.25rem,4vw,4rem); }
.cta-card .btn { flex:0 0 auto; }

.site-footer { background:#082e45; color:rgba(255,255,255,.66); padding:70px 0 28px; }
.footer-grid { display:grid; grid-template-columns:1.45fr .5fr 1fr; gap:75px; padding-bottom:58px; }
.footer-brand > p { max-width:460px; margin:22px 0 18px; }
.social-link { color:var(--sky); font-weight:750; }
.footer-col { display:flex; flex-direction:column; align-items:flex-start; gap:9px; }
.footer-col h3 { margin:4px 0 14px; color:#fff; font-size:.88rem; letter-spacing:.12em; text-transform:uppercase; }
.footer-col a { transition:color .2s ease; }
.footer-col a:hover { color:#fff; }
.footer-contact p { margin:0 0 7px; }
.footer-contact span { display:block; }
.footer-bottom { display:flex; justify-content:space-between; gap:20px; border-top:1px solid rgba(255,255,255,.11); padding-top:25px; font-size:.82rem; }
.footer-bottom p { margin:0; }
.footer-bottom a { color:rgba(255,255,255,.82); }

.reveal { opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity:1; transform:none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
  .reveal { opacity:1; transform:none; }
}

@media (max-width: 980px) {
  .nav-toggle { display:block; position:relative; z-index:1002; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform:translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity:0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform:translateY(-6px) rotate(-45deg); }
  .site-nav {
    position:fixed; inset:0; z-index:1001; display:flex; flex-direction:column; justify-content:center; align-items:flex-start;
    gap:24px; padding:100px 10vw; background:#072f48; transform:translateX(100%); transition:transform .3s ease;
  }
  .site-nav.open { transform:none; }
  .site-nav > a, .site-header.scrolled .site-nav > a { color:#fff; font-size:1.45rem; }
  .site-nav .nav-cta { margin-top:10px; font-size:.95rem; }
  .split-grid, .why-grid { grid-template-columns:1fr; gap:56px; }
  .section-heading { grid-template-columns:1fr; gap:24px; }
  .service-grid { grid-template-columns:repeat(2,1fr); }
  .service-card:last-child { grid-column:1 / -1; max-width:calc(50% - 11px); }
  .project-grid { grid-auto-rows:210px; }
  .project-card { grid-column:span 6; }
  .project-card-large { grid-column:span 12; }
  .project-card:nth-child(4), .project-card:nth-child(5) { grid-column:span 6; }
  .cta-card { align-items:flex-start; flex-direction:column; }
  .footer-grid { grid-template-columns:1.2fr .7fr 1fr; gap:38px; }
}

@media (max-width: 700px) {
  .container { width:min(calc(100% - 28px), var(--container)); }
  .section { padding:82px 0; }
  .nav-wrap { height:72px; }
  .brand { min-width:0; }
  .brand-mark { width:128px; height:63px; padding:4px 7px; border-radius:7px; }
  .hero { min-height:680px; height:92svh; }
  .hero-content { padding-top:46px; }
  .hero h1 { font-size:clamp(3rem,14vw,4.75rem); }
  .hero-lead { margin-top:23px; font-size:1rem; }
  .hero-actions { flex-direction:column; align-items:stretch; max-width:330px; }
  .btn { width:100%; }
  .scroll-cue { display:none; }
  .intro-grid { min-height:0; padding:24px 0; flex-direction:column; align-items:flex-start; }
  .expertise-tags { justify-content:flex-start; }
  .section h2, .cta-section h2 { font-size:clamp(2.25rem,11vw,3.3rem); }
  .about-visual { padding:18px 0 50px 16px; }
  .floating-note { width:86%; padding:18px 19px; }
  .service-grid { grid-template-columns:1fr; }
  .service-card:last-child { grid-column:auto; max-width:none; }
  .project-heading { margin-bottom:36px; }
  .project-grid { display:flex; overflow-x:auto; gap:14px; scroll-snap-type:x mandatory; padding-bottom:8px; scrollbar-width:none; }
  .project-grid::-webkit-scrollbar { display:none; }
  .project-card, .project-card-large, .project-card:nth-child(4), .project-card:nth-child(5) { flex:0 0 84%; height:330px; grid-column:auto; grid-row:auto; scroll-snap-align:start; }
  .why-item { grid-template-columns:54px 1fr; }
  .cta-section { padding-bottom:82px; }
  .cta-card { min-height:390px; padding:38px 26px; border-radius:24px; justify-content:space-between; }
  .footer-grid { grid-template-columns:1fr; gap:42px; }
  .footer-bottom { flex-direction:column; }
}

@media (max-width: 420px) {
  .hero h1 { font-size:clamp(2.8rem,14.5vw,4rem); }
  .project-card, .project-card-large, .project-card:nth-child(4), .project-card:nth-child(5) { flex-basis:91%; height:300px; }
}
