:root {
    --ink: #071c2d;
    --ink-2: #0d2e47;
    --blue: #0877d1;
    --blue-dark: #045b9f;
    --amber: #ffb000;
    --paper: #ffffff;
    --mist: #f3f6f8;
    --line: #d9e2e8;
    --text: #243746;
    --muted: #607381;
    --success: #147b4b;
    --danger: #b23b2d;
    --radius: 18px;
    --shadow: 0 20px 60px rgba(7, 28, 45, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 115px; }
body {
    margin: 0;
    color: var(--text);
    background: var(--paper);
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
    position: fixed; left: 18px; top: -80px; z-index: 9999; padding: 12px 18px;
    border-radius: 10px; background: var(--amber); color: var(--ink); font-weight: 800;
}
.skip-link:focus { top: 18px; }

.site-header, .header {
    position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.96);
    border-bottom: 1px solid rgba(7,28,45,.10); backdrop-filter: blur(14px);
}
.topline { color: rgba(255,255,255,.82); background: var(--ink); font-size: .82rem; }
.topline-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topline a { color: #fff; font-weight: 700; text-decoration: none; }
.nav-row, .header-container { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand, .logo {
    display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; flex: 0 0 auto;
}
.brand img, .logo img { width: 52px; height: 52px; object-fit: contain; margin: 0; }
.brand span { display: grid; line-height: 1; letter-spacing: .12em; }
.brand strong { font-size: 1.1rem; }
.brand small { margin-top: 5px; font-size: .58rem; letter-spacing: .23em; }
.logo span { color: var(--ink); font-weight: 800; }
.site-nav, .nav { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 32px); }
.site-nav a, .nav a {
    color: var(--ink); font-size: .92rem; font-weight: 700; text-decoration: none;
}
.site-nav a:hover, .nav a:hover { color: var(--blue); }
.site-nav .nav-cta {
    padding: 10px 18px; border-radius: 999px; color: #fff; background: var(--blue);
}
.site-nav .nav-cta:hover { color: #fff; background: var(--blue-dark); }
.menu-toggle {
    display: none; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: 10px;
    background: var(--mist); color: var(--ink); cursor: pointer;
}
.menu-toggle span:not(.sr-only) { display: block; width: 22px; height: 2px; margin: 5px 0; background: currentColor; transition: .2s; }

.hero {
    position: relative; min-height: min(760px, calc(100vh - 110px)); display: grid; align-items: end;
    overflow: hidden; color: #fff; background: var(--ink);
}
.hero-media, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { object-fit: cover; object-position: center 38%; }
.hero-shade {
    background:
        linear-gradient(90deg, rgba(3,18,30,.96) 0%, rgba(3,18,30,.78) 45%, rgba(3,18,30,.22) 80%),
        linear-gradient(0deg, rgba(3,18,30,.78) 0%, transparent 58%);
}
.hero::after {
    content: ""; position: absolute; inset: 0; opacity: .09; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.28) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.28) 1px, transparent 1px);
    background-size: 80px 80px;
}
.hero-inner { position: relative; z-index: 2; padding-block: clamp(90px, 14vh, 145px) 46px; }
.eyebrow {
    margin: 0 0 18px; color: var(--amber); font-size: .76rem; font-weight: 850;
    letter-spacing: .2em; text-transform: uppercase;
}
.eyebrow-dark { color: var(--blue-dark); }
.hero h1 {
    max-width: 860px; margin: 0; color: #fff; font-size: clamp(2.7rem, 7vw, 5.9rem);
    font-weight: 850; letter-spacing: -.055em; line-height: .97;
}
.hero h1 span { color: #7fc5f5; }
.hero-copy { max-width: 680px; margin: 28px 0 0; color: rgba(255,255,255,.82); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button, .btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 22px;
    border: 1px solid transparent; border-radius: 999px; font-weight: 800; text-decoration: none; transition: .2s;
}
.button-primary, .btn-primary { color: #fff; background: var(--blue); }
.button-primary:hover, .btn-primary:hover { color: #fff; background: var(--blue-dark); transform: translateY(-2px); }
.button-ghost, .btn-light { color: #fff; border-color: rgba(255,255,255,.48); background: rgba(255,255,255,.08); }
.button-ghost:hover, .btn-light:hover { color: #fff; background: rgba(255,255,255,.18); }
.hero-facts {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 720px;
    gap: 0; margin: 62px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(255,255,255,.22);
}
.hero-facts div { padding-right: 24px; }
.hero-facts dt { color: #fff; font-size: 1.55rem; font-weight: 850; }
.hero-facts dd { margin: 2px 0 0; color: rgba(255,255,255,.65); font-size: .83rem; }

.section { padding-block: clamp(76px, 9vw, 126px); }
.section h2, .contact h2, .process h2, .references h2 {
    margin: 0; color: var(--ink); font-size: clamp(2rem, 4.2vw, 3.8rem); letter-spacing: -.045em; line-height: 1.06;
}
.split { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(42px, 8vw, 100px); }
.media-card { position: relative; margin: 0; }
.media-card img { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow); }
.media-card p {
    position: absolute; right: -18px; bottom: 22px; margin: 0; padding: 12px 16px;
    border-radius: 10px; color: #fff; background: var(--ink); font-size: .82rem; font-weight: 750;
}
.section-copy > p:not(.eyebrow) { max-width: 640px; color: var(--muted); }
.section-copy h2 { margin-bottom: 28px; }
.text-link { display: inline-flex; gap: 10px; margin-top: 14px; color: var(--blue-dark); font-weight: 850; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

.services { background: var(--mist); }
.section-heading {
    display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .65fr);
    align-items: end; gap: 50px; margin-bottom: 48px;
}
.section-heading > p { margin: 0; color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service-card {
    min-height: 255px; padding: 28px; border: 1px solid var(--line); border-radius: 16px;
    background: #fff; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.service-card:hover { transform: translateY(-4px); border-color: #9bc9e9; box-shadow: 0 16px 34px rgba(7,28,45,.08); }
.service-card > span { color: var(--blue); font-size: .78rem; font-weight: 850; letter-spacing: .15em; }
.service-card h3 { margin: 45px 0 10px; color: var(--ink); font-size: 1.25rem; }
.service-card p { margin: 0; color: var(--muted); font-size: .94rem; }

.process { color: #fff; background: var(--ink); }
.process h2 { max-width: 760px; color: #fff; }
.process-list {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0;
    margin: 64px 0 0; padding: 0; list-style: none; counter-reset: steps;
}
.process-list li { min-height: 170px; padding: 24px 22px; border-top: 1px solid rgba(255,255,255,.2); counter-increment: steps; }
.process-list li::before { content: "0" counter(steps); display: block; margin-bottom: 28px; color: var(--amber); font-size: .74rem; font-weight: 850; }
.process-list strong, .process-list span { display: block; }
.process-list strong { margin-bottom: 8px; color: #fff; }
.process-list span { color: rgba(255,255,255,.62); font-size: .88rem; line-height: 1.5; }

.projects { background: #fff; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 28px; }
.filter-button {
    display: inline-flex; align-items: center; gap: 9px; padding: 10px 14px; border: 1px solid var(--line);
    border-radius: 999px; color: var(--ink); background: #fff; font-size: .9rem; font-weight: 750; cursor: pointer;
}
.filter-button span { display: inline-grid; min-width: 25px; height: 25px; place-items: center; padding-inline: 6px; border-radius: 999px; background: var(--mist); font-size: .75rem; }
.filter-button:hover, .filter-button.active { color: #fff; border-color: var(--ink); background: var(--ink); }
.filter-button.active span { color: var(--ink); background: #fff; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.project-card {
    display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; min-width: 0; padding: 24px;
    border: 1px solid var(--line); border-radius: 16px; background: var(--paper);
}
.project-card[hidden] { display: none; }
.project-card h3 { margin: 16px 0 0; color: var(--ink); font-size: 1.05rem; line-height: 1.35; }
.status { display: inline-block; padding: 5px 9px; border-radius: 999px; font-size: .72rem; font-weight: 850; }
.status-new { color: #6d4300; background: #ffe1a0; }
.status-active { color: #064d82; background: #cceaff; }
.status-completed { color: #075f38; background: #ccebdc; }
.project-card dl { display: grid; align-content: end; gap: 10px; margin: 0; }
.project-card dl div { min-width: 0; }
.project-card dt { color: var(--muted); font-size: .7rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.project-card dd { overflow-wrap: anywhere; margin: 1px 0 0; color: var(--ink); font-size: .85rem; font-weight: 700; }
.project-empty { padding: 24px; border-radius: 14px; background: var(--mist); color: var(--muted); text-align: center; }

.notes { background: var(--mist); }
.notes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.note-card { overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 8px 30px rgba(7,28,45,.06); }
.note-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.note-card > div { padding: 22px; }
.note-card span { color: var(--blue-dark); font-size: .73rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.note-card h3 { margin: 10px 0 24px; color: var(--ink); font-size: 1.15rem; line-height: 1.4; }
.note-card a { color: var(--blue-dark); font-weight: 800; text-decoration: none; }
.note-card a:hover { text-decoration: underline; }

.references { text-align: center; }
.references h2 { max-width: 760px; margin-inline: auto; }
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 48px; }
.logo-row div { display: grid; width: 130px; height: 84px; place-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.logo-row img { max-width: 100%; max-height: 52px; filter: grayscale(1); opacity: .72; transition: .2s; }
.logo-row div:hover img { filter: none; opacity: 1; }

.contact { padding-block: clamp(76px, 9vw, 118px); color: #fff; background: var(--blue-dark); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: 80px; align-items: start; }
.contact h2 { max-width: 720px; color: #fff; }
.contact p:not(.eyebrow) { max-width: 620px; color: rgba(255,255,255,.72); }
.contact-actions { display: grid; border-top: 1px solid rgba(255,255,255,.25); }
.contact-actions a, .contact-actions address {
    display: grid; gap: 3px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.25);
    color: #fff; text-decoration: none; font-style: normal; overflow-wrap: anywhere;
}
.contact-actions a:hover strong { color: var(--amber); }
.contact-actions span { color: rgba(255,255,255,.58); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.contact-actions strong { font-size: 1rem; }

.site-footer, .footer { padding-top: 56px; color: rgba(255,255,255,.68); background: #04131f; }
.footer-row { display: flex; justify-content: space-between; gap: 50px; padding-bottom: 44px; }
.brand-footer { color: #fff; }
.footer-row p { max-width: 420px; margin: 18px 0 0; }
.footer-row nav { display: flex; flex-wrap: wrap; align-content: start; justify-content: flex-end; gap: 18px 28px; }
.footer-row nav a { color: #fff; text-decoration: none; font-weight: 700; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; }

/* Existing inner pages */
.header { padding-inline: 5%; }
.header-container { width: min(1180px, 100%); margin-inline: auto; }
.header .header-btn { margin-left: auto; }
.page-header { padding: 90px 20px; color: #fff; background: var(--ink); text-align: center; }
.page-header h1 { margin: 0; font-size: clamp(2.4rem, 6vw, 4.5rem); }
.page-header p { color: rgba(255,255,255,.72); }
#about-content { padding-block: 60px; }
#about-content .about-section { max-width: 940px; margin: 0 auto 22px; padding: clamp(28px, 5vw, 54px); border: 1px solid var(--line); border-radius: var(--radius); }
#about-content .section-bg { background: var(--mist); }
.section-title { margin-top: 0; color: var(--ink); font-size: clamp(1.8rem, 4vw, 2.8rem); text-align: center; }
#about-content p { max-width: 760px; margin-inline: auto; }
.page-header-blog {
    position: relative; min-height: 440px; display: grid; place-items: end center; overflow: hidden;
    padding: 70px 20px; background-position: center; background-size: cover; text-align: center;
}
.page-header-blog .hero-overlay { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4,19,31,.94), rgba(4,19,31,.34)); }
.blog-title-overlay { position: relative; z-index: 1; max-width: 920px; color: #fff; }
.blog-title-overlay .note-category { display: inline-block; padding: 5px 10px; border-radius: 999px; color: var(--ink); background: var(--amber); font-size: .74rem; font-weight: 850; }
.blog-title-overlay h1 { margin: 18px 0 0; font-size: clamp(2rem, 5vw, 3.7rem); line-height: 1.1; }
.blog-post-content { padding-block: clamp(60px, 8vw, 100px); }
.blog-post-content .container { width: min(760px, calc(100% - 40px)); }
.blog-post-content .lead { color: var(--ink); font-size: 1.22rem; line-height: 1.75; }
.blog-post-content h2, .blog-post-content h3 { margin-top: 42px; color: var(--ink); line-height: 1.3; }
.blog-post-content p { margin-block: 0 22px; }
.footer .footer-grid { display: grid; grid-template-columns: 1.2fr .7fr 1fr .7fr; gap: 32px; width: min(1180px, calc(100% - 40px)); margin-inline: auto; padding-bottom: 40px; }
.footer .footer-logo { color: #fff; }
.footer-title { margin: 0 0 14px; color: #fff; }
.footer-links, .footer-contact { margin: 0; padding: 0; list-style: none; }
.footer-links li, .footer-contact li { margin-bottom: 9px; }
.footer-links a, .footer-contact a { color: inherit; text-decoration: none; }
.social-links { display: flex; gap: 8px; }
.social-links a { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: rgba(255,255,255,.1); }
.footer .footer-bottom { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

@media (max-width: 900px) {
    .menu-toggle { display: block; margin-left: auto; }
    .site-nav, .header .nav {
        position: absolute; top: 100%; left: 0; right: 0; display: none; align-items: stretch;
        padding: 18px 20px 24px; border-top: 1px solid var(--line); background: #fff; box-shadow: 0 18px 30px rgba(7,28,45,.12);
    }
    .site-nav.open, .header .nav.active { display: grid; }
    .site-nav a, .header .nav a { padding: 10px; text-align: center; }
    .header .header-btn { display: none; }
    .split, .section-heading, .contact-grid { grid-template-columns: 1fr; }
    .section-heading { align-items: start; gap: 22px; }
    .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .project-grid { grid-template-columns: 1fr; }
    .notes-grid { grid-template-columns: 1fr; }
    .note-card { display: grid; grid-template-columns: 42% 1fr; }
    .note-card img { height: 100%; aspect-ratio: auto; }
    .contact-grid { gap: 42px; }
    .footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .container { width: min(100% - 28px, 1180px); }
    .topline-inner { justify-content: center; }
    .topline-inner span { display: none; }
    .nav-row, .header-container { min-height: 68px; }
    .brand img, .logo img { width: 45px; height: 45px; }
    .brand strong { font-size: .96rem; }
    .hero { min-height: 690px; }
    .hero-media { object-position: 58% center; }
    .hero-shade { background: linear-gradient(0deg, rgba(3,18,30,.97) 0%, rgba(3,18,30,.7) 72%, rgba(3,18,30,.32)); }
    .hero-inner { padding-block: 80px 30px; }
    .hero h1 br { display: none; }
    .hero-actions { display: grid; }
    .hero-facts { grid-template-columns: 1fr; gap: 12px; margin-top: 42px; }
    .hero-facts div { display: grid; grid-template-columns: 55px 1fr; align-items: center; padding: 0; }
    .hero-facts dt { font-size: 1.2rem; }
    .media-card p { right: 10px; bottom: 10px; }
    .service-grid, .process-list { grid-template-columns: 1fr; }
    .service-card { min-height: 220px; }
    .project-card { grid-template-columns: 1fr; gap: 20px; }
    .project-card dl { grid-template-columns: 1fr 1fr; }
    .note-card { display: block; }
    .note-card img { aspect-ratio: 4 / 3; }
    .footer-row, .footer-bottom { flex-direction: column; }
    .footer-row nav { justify-content: flex-start; }
    .footer .footer-grid { grid-template-columns: 1fr; }
    .logo span { font-size: .95rem; }
}

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

