/* =========================================================
   HUMANS & MACHINES — CORPORATE WEBSITE
   Typography:
   - Manrope: headings + body
   - Space Grotesk: navigation + labels + metadata
   ========================================================= */

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap");

@font-face {
    font-family: "TT Chocolates";
    src: url("../fonts/TTChocolates-Regular.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
/* =========================================================
   ROOT
   ========================================================= */

:root {
    --navy: #08243e;
    --navy2: #0e365d;
    --ink: #142235;

    --orange: #ff9554;
    --orange2: #ffb27d;

    --cream: #fff8f3;
    --muted: #6a7583;

    --line: #dce3ea;
    --white: #fff;
    --bg: #f6f8fb;

    --success: #15936d;

    --shadow: 0 18px 50px rgba(8, 36, 62, 0.1);

    --radius: 24px;
    --radius-sm: 14px;

    --max: 1180px;

    --font-heading: "Manrope", sans-serif;
    --font-body: "Manrope", sans-serif;
    --font-label: "Space Grotesk", sans-serif;
}

/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;

    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;

    font-family: var(--font-body);

    font-size: 16px;
    font-weight: 400;

    line-height: 1.65;

    letter-spacing: -0.01em;

    color: var(--ink);

    background: var(--white);

    overflow-x: hidden;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

/* =========================================================
   LAYOUT
   ========================================================= */

.container {
    width: min(var(--max), calc(100% - 40px));

    margin: auto;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);

    line-height: 1.08;

    margin: 0 0 18px;

    letter-spacing: -0.04em;
}

h1 {
    font-size: clamp(2.75rem, 6vw, 5.5rem);

    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);

    font-weight: 800;
}

h3 {
    font-size: 1.28rem;

    font-weight: 700;

    line-height: 1.25;

    letter-spacing: -0.025em;
}

h4 {
    font-weight: 700;

    letter-spacing: -0.02em;
}

p {
    margin: 0 0 18px;

    font-family: var(--font-body);

    font-size: 1rem;

    font-weight: 400;

    line-height: 1.7;

    letter-spacing: -0.012em;
}

li {
    font-family: var(--font-body);

    font-size: 0.96rem;

    line-height: 1.65;
}

/* =========================================================
   LEAD TEXT
   ========================================================= */

.lead {
    max-width: 760px;

    font-size: clamp(1.05rem, 1.7vw, 1.25rem);

    font-weight: 400;

    line-height: 1.65;

    letter-spacing: -0.018em;

    color: #526174;
}

.section-dark .lead {
    color: #ced9e4;
}

/* =========================================================
   EYEBROWS / SMALL LABELS
   ========================================================= */

.eyebrow {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    font-family: var(--font-label);

    font-size: 0.72rem;

    font-weight: 600;

    line-height: 1.4;

    letter-spacing: 0.12em;

    text-transform: uppercase;

    color: #d56e31;
}

.eyebrow::before {
    content: "";

    width: 28px;
    height: 2px;

    background: var(--orange);

    border-radius: 10px;
}

/* =========================================================
   SECTIONS
   ========================================================= */

.section {
    padding: 92px 0;
}

.section-sm {
    padding: 64px 0;
}

.section-dark {
    background: linear-gradient(135deg, var(--navy), #061726);

    color: #fff;
}

.section-soft {
    background: var(--bg);
}

.section-cream {
    background: var(--cream);
}

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    border: 1px solid transparent;

    padding: 13px 19px;

    border-radius: 999px;

    font-family: var(--font-body);

    font-size: 0.9rem;

    font-weight: 700;

    line-height: 1.2;

    letter-spacing: -0.012em;

    transition:
        background-color 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        transform 0.22s ease;

    cursor: pointer;
}

.btn-primary {
    background: var(--orange);

    color: #17120f;

    box-shadow: 0 8px 25px rgba(255, 149, 84, 0.26);
}

.btn-primary:hover {
    transform: translateY(-2px);

    background: #ffa16a;
}

.btn-outline {
    border-color: #cbd5df;

    background: #fff;
}

.btn-outline:hover {
    border-color: var(--navy);

    transform: translateY(-2px);
}

.btn-dark {
    background: var(--navy);

    color: #fff;
}

.btn-white {
    background: #fff;

    color: var(--navy);
}

.btn svg {
    width: 18px;
    height: 18px;
}

.actions {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 28px;
}

/* =========================================================
   HEADER
   DEFAULT WHITE STATE
   ========================================================= */

.site-header {
    position: sticky;

    top: 0;

    z-index: 1000;

    width: 100%;

    background: rgba(255, 255, 255, 0.97);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border-bottom: 1px solid rgba(8, 36, 62, 0.08);

    box-shadow: none;

    transition:
        background 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease,
        backdrop-filter 0.35s ease;
}

/* =========================================================
   HOMEPAGE HEADER OVER HERO
   ========================================================= */

.site-header.hero-overlay {
    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    /*
       Dark fade behind the nav.
       This suppresses bright orange lights in the hero image.
    */

    background: linear-gradient(
        180deg,
        rgba(3, 16, 28, 0.68) 0%,
        rgba(3, 16, 28, 0.42) 55%,
        rgba(3, 16, 28, 0.16) 82%,
        rgba(3, 16, 28, 0) 100%
    );

    border-bottom-color: transparent;

    box-shadow: none;

    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* =========================================================
   HEADER AFTER SCROLLING OUT OF HERO
   ========================================================= */

.site-header.hero-overlay.scrolled {
    background: rgba(255, 255, 255, 0.97);

    border-bottom-color: rgba(8, 36, 62, 0.08);

    box-shadow: 0 8px 30px rgba(8, 36, 62, 0.07);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

/* =========================================================
   NAV
   ========================================================= */

.nav {
    height: 78px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 24px;
}

/* =========================================================
   BRAND
   ========================================================= */

.brand {
    display: flex;

    align-items: center;

    gap: 11px;

    font-family: var(--font-heading);

    font-weight: 800;

    letter-spacing: -0.03em;

    color: var(--navy);

    transition: color 0.3s ease;
}

/* =========================================================
   BRAND MARK
   ========================================================= */

.brand-mark {
    width: 38px;
    height: 38px;

    border-radius: 12px;

    background: linear-gradient(145deg, var(--navy), #134f7c);

    color: #fff;

    display: grid;

    place-items: center;

    position: relative;

    overflow: hidden;

    box-shadow: 0 8px 20px rgba(8, 36, 62, 0.16);

    transition:
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.brand-mark::after {
    content: "";

    position: absolute;

    width: 18px;
    height: 6px;

    background: var(--orange);

    right: -3px;
    bottom: 7px;

    transform: rotate(-28deg);

    border-radius: 10px;
}

.brand-text {
    font-family: "TT Chocolates", sans-serif;
    font-weight: 500;
    font-size: 1.5rem;
    letter-spacing: 0.015em;
    text-transform: uppercase;
}

.brand-text small {
    display: block;

    margin-top: -2px;

    font-family: var(--font-label);

    font-size: 0.54rem;

    font-weight: 500;

    line-height: 1.4;

    letter-spacing: 0.13em;

    text-transform: uppercase;

    color: #6a7583;

    transition: color 0.3s ease;
}

/* =========================================================
   NAVIGATION LINKS
   ========================================================= */

.nav-links {
    display: flex;

    align-items: center;

    gap: 22px;
}

.nav-links a {
    position: relative;

    font-family: var(--font-label);

    font-size: 0.78rem;

    font-weight: 500;

    line-height: 1.4;

    letter-spacing: 0.055em;

    color: #384658;

    transition:
        color 0.3s ease,
        opacity 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--navy);
}

.nav-links a.active {
    font-weight: 600;
}

.nav-links a.active::after {
    content: "";

    position: absolute;

    height: 2px;

    left: 0;
    right: 0;

    bottom: -10px;

    border-radius: 8px;

    background: var(--orange);
}

/* =========================================================
   NAVIGATION WHILE OVER HERO
   ========================================================= */

.site-header.hero-overlay:not(.scrolled) .brand {
    color: #fff;
}

.site-header.hero-overlay:not(.scrolled) .brand-text small {
    color: rgba(255, 255, 255, 0.72);
}

.site-header.hero-overlay:not(.scrolled) .brand-mark {
    background: rgba(255, 255, 255, 0.11);

    border: 1px solid rgba(255, 255, 255, 0.26);

    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.site-header.hero-overlay:not(.scrolled) .nav-links > a:not(.nav-cta) {
    color: rgba(255, 255, 255, 0.9);

    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.site-header.hero-overlay:not(.scrolled) .nav-links > a:not(.nav-cta):hover,
.site-header.hero-overlay:not(.scrolled) .nav-links > a:not(.nav-cta).active {
    color: #fff;
}

/* =========================================================
   NAV CTA
   ========================================================= */

.nav-cta {
    margin-left: 5px;
}

.nav-links .nav-cta {
    color: #17120f;
}

.site-header.hero-overlay:not(.scrolled) .nav-links .nav-cta {
    color: #17120f;
}

/* =========================================================
   MENU BUTTON
   ========================================================= */

.menu-btn {
    display: none;

    width: 44px;
    height: 44px;

    border: 1px solid var(--line);

    background: #fff;

    color: var(--navy);

    border-radius: 12px;

    font-size: 1.2rem;

    cursor: pointer;

    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease;
}

.site-header.hero-overlay:not(.scrolled) .menu-btn {
    color: #fff;

    border-color: rgba(255, 255, 255, 0.3);

    background: rgba(255, 255, 255, 0.1);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;

    min-height: 700px;

    display: grid;

    align-items: end;

    /*
       Layer 1:
       Vertical fade that darkens the top/navbar region.

       Layer 2:
       Horizontal dark gradient for hero text readability.

       Layer 3:
       Actual hero image.
    */

    background: #061a2b;
    /* linear-gradient(
            180deg,
            rgba(4, 19, 32, 0.82) 0%,
            rgba(4, 19, 32, 0.58) 14%,
            rgba(4, 19, 32, 0.32) 28%,
            rgba(4, 19, 32, 0.12) 42%,
            rgba(4, 19, 32, 0) 56%
        ),

        linear-gradient(
            90deg,
            rgba(4, 19, 32, 0.94) 0%,
            rgba(4, 19, 32, 0.82) 42%,
            rgba(4, 19, 32, 0.40) 68%,
            rgba(4, 19, 32, 0.12) 88%,
            rgba(4, 19, 32, 0.04) 100%
        ),

        url("../img/hero-human-machine.jpg")
        center 30% / cover no-repeat; */

    color: #fff;

    overflow: hidden;
}

/* =========================================================
   HERO BOTTOM FADE
   ========================================================= */

.hero::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 180px;

    background: linear-gradient(
        to bottom,
        rgba(4, 19, 32, 0),
        rgba(4, 19, 32, 0.72)
    );

    pointer-events: none;
}

/* =========================================================
   HERO CONTENT
   ========================================================= */

.hero-content {
    position: relative;
    z-index: 2;
    padding: 130px 0 96px;
}

.hero .eyebrow {
    color: #ffc6a3;
}

.hero h1 {
    line-height: 0.97;

    letter-spacing: -0.055em;
}

.hero h1 span {
    color: var(--orange);
}

.hero p {
    max-width: 700px;

    font-size: 1.14rem;

    font-weight: 400;

    line-height: 1.65;

    letter-spacing: -0.018em;

    color: #d7e0e9;
}

/* =========================================================
   HERO BADGES
   ========================================================= */

.hero-badges {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 26px;
}

.hero-badges span {
    padding: 8px 12px;

    border: 1px solid rgba(255, 255, 255, 0.22);

    background: rgba(255, 255, 255, 0.07);

    border-radius: 999px;

    font-family: var(--font-label);

    font-size: 0.73rem;

    font-weight: 500;

    line-height: 1.4;

    letter-spacing: 0.035em;

    color: #edf3f8;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* =========================================================
   GRID
   ========================================================= */

.grid {
    display: grid;

    gap: 24px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* =========================================================
   CARDS
   ========================================================= */

.card {
    background: #fff;

    border: 1px solid #e6ebf0;

    border-radius: var(--radius);

    padding: 28px;

    box-shadow: 0 8px 35px rgba(8, 36, 62, 0.045);

    transition:
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.card:hover {
    box-shadow: var(--shadow);

    transform: translateY(-2px);
}

.card h3 {
    margin-bottom: 12px;

    font-family: var(--font-heading);

    font-size: 1.18rem;

    font-weight: 700;

    line-height: 1.3;

    letter-spacing: -0.025em;
}

.card p {
    margin-bottom: 16px;

    font-size: 0.93rem;

    font-weight: 400;

    line-height: 1.7;

    letter-spacing: -0.01em;

    color: #647284;
}

.card li {
    font-size: 0.9rem;

    line-height: 1.65;
}

/* =========================================================
   ICON BOX
   ========================================================= */

.icon-box {
    width: 48px;
    height: 48px;

    border-radius: 15px;

    display: grid;

    place-items: center;

    background: #fff1e7;

    color: #d66e31;

    margin-bottom: 18px;
}

.icon-box svg {
    width: 24px;
    height: 24px;
}

/* =========================================================
   STATS
   ========================================================= */

.stat-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}

.stat {
    padding: 26px 20px;

    border-left: 1px solid #e7ebef;
}

.stat:first-child {
    border-left: 0;
}

.stat strong {
    display: block;

    font-family: var(--font-heading);

    font-size: 2rem;

    font-weight: 800;

    line-height: 1;

    letter-spacing: -0.05em;

    color: var(--navy);
}

.stat span {
    display: block;

    margin-top: 9px;

    font-family: var(--font-label);

    font-size: 0.77rem;

    font-weight: 500;

    line-height: 1.5;

    letter-spacing: 0.025em;

    color: #697888;
}

.section-dark .stat strong {
    color: #fff;
}

.section-dark .stat span {
    color: #b8c7d4;
}

.section-dark .stat {
    border-color: rgba(255, 255, 255, 0.15);
}

/* =========================================================
   SPLIT
   ========================================================= */

.split {
    display: grid;

    grid-template-columns: 1.05fr 0.95fr;

    gap: 60px;

    align-items: center;
}

/* =========================================================
   VISUAL CARD
   ========================================================= */

.visual-card {
    position: relative;

    border-radius: 32px;

    overflow: hidden;

    min-height: 420px;

    box-shadow: var(--shadow);
}

.visual-card img {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.visual-card::after {
    content: "";

    position: absolute;

    inset: 0;

    background: linear-gradient(180deg, transparent 30%, rgba(8, 36, 62, 0.65));
}

.floating-note {
    position: absolute;

    z-index: 2;

    left: 24px;
    right: 24px;
    bottom: 24px;

    padding: 22px;

    background: rgba(255, 255, 255, 0.92);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-radius: 18px;

    color: var(--ink);
}

.floating-note p {
    font-size: 0.92rem;

    line-height: 1.65;
}

/* =========================================================
   CHECK LIST
   ========================================================= */

.check-list {
    display: grid;

    gap: 12px;

    margin: 24px 0;
}

.check {
    display: flex;

    gap: 11px;

    align-items: flex-start;

    font-size: 0.94rem;

    line-height: 1.65;
}

.check b {
    width: 24px;
    height: 24px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: #e7f7f1;

    color: var(--success);

    font-size: 0.75rem;

    flex: 0 0 24px;
}

/* =========================================================
   TAGS
   ========================================================= */

.tag {
    display: inline-flex;

    padding: 6px 10px;

    border-radius: 999px;

    background: #eef3f7;

    color: #445469;

    font-family: var(--font-label);

    font-size: 0.7rem;

    font-weight: 500;

    line-height: 1.4;

    letter-spacing: 0.035em;

    margin: 4px 5px 4px 0;
}

.pill-row {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;
}

/* =========================================================
   SERVICES
   ========================================================= */

.service-card {
    position: relative;

    overflow: hidden;
}

.service-card::before {
    content: "";

    position: absolute;

    right: -35px;

    top: -35px;

    width: 110px;
    height: 110px;

    border-radius: 50%;

    background: radial-gradient(circle, var(--orange2), transparent 68%);

    opacity: 0.3;
}

.service-card h3 {
    position: relative;

    font-size: 1.16rem;

    font-weight: 700;

    line-height: 1.3;
}

.service-card ul {
    position: relative;

    padding-left: 18px;

    color: #657486;
}

.service-card li {
    margin: 7px 0;

    font-size: 0.9rem;

    line-height: 1.65;

    letter-spacing: -0.01em;
}

/* =========================================================
   INNER PAGE HERO
   ========================================================= */

.page-hero {
    padding: 110px 0 70px;

    background:
        radial-gradient(
            circle at 85% 0%,
            rgba(255, 149, 84, 0.22),
            transparent 28%
        ),
        linear-gradient(180deg, #f8fbfd, #fff);

    border-bottom: 1px solid #edf0f3;
}

.page-hero h1 {
    max-width: 900px;

    font-size: clamp(2.5rem, 5vw, 4.5rem);

    letter-spacing: -0.05em;
}

.breadcrumb {
    margin-bottom: 18px;

    font-family: var(--font-label);

    font-size: 0.75rem;

    font-weight: 500;

    line-height: 1.5;

    letter-spacing: 0.035em;

    color: #788594;
}

.breadcrumb a {
    color: var(--navy);

    font-weight: 600;
}

/* =========================================================
   PROJECTS
   ========================================================= */

.project {
    display: grid;

    grid-template-columns: 160px 1fr auto;

    gap: 26px;

    align-items: center;

    padding: 27px 0;

    border-bottom: 1px solid var(--line);
}

.project:last-child {
    border-bottom: 0;
}

.project-year {
    font-family: var(--font-label);

    font-size: 0.68rem;

    font-weight: 500;

    text-transform: uppercase;

    letter-spacing: 0.14em;

    color: #8a96a4;
}

.project h3 {
    margin: 0 0 6px;

    font-size: 1.12rem;

    font-weight: 700;
}

.project p {
    margin: 0;

    font-size: 0.91rem;

    line-height: 1.65;

    color: #657486;
}

.project-badge {
    white-space: nowrap;
}

/* =========================================================
   CASE STUDIES
   ========================================================= */

.case-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 22px;
}

.case-card {
    min-height: 280px;

    border-radius: 24px;

    padding: 26px;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    color: white;

    background: linear-gradient(160deg, #0a2c4b, #081b2d);

    position: relative;

    overflow: hidden;
}

.case-card:nth-child(2) {
    background: linear-gradient(160deg, #9d4c22, #ff9554);
}

.case-card:nth-child(3) {
    background: linear-gradient(160deg, #183a34, #225f53);
}

.case-card .num {
    position: absolute;

    right: 20px;

    top: 10px;

    font-family: var(--font-heading);

    font-size: 5rem;

    font-weight: 800;

    letter-spacing: -0.06em;

    opacity: 0.08;
}

.case-card p {
    font-size: 0.9rem;

    line-height: 1.65;

    color: rgba(255, 255, 255, 0.8);
}

/* =========================================================
   CLIENTS
   ========================================================= */

.logo-board {
    border: 1px solid var(--line);

    border-radius: 28px;

    padding: 18px;

    background: white;

    box-shadow: var(--shadow);
}

.logo-board img {
    border-radius: 18px;
}

.client-list {
    columns: 3;

    column-gap: 28px;
}

.client-list div {
    break-inside: avoid;

    padding: 10px 0;

    border-bottom: 1px solid #edf0f3;

    font-size: 0.91rem;

    line-height: 1.55;

    color: #4f5d6c;
}

.client-list div::before {
    content: "•";

    color: var(--orange);

    margin-right: 8px;

    font-weight: 800;
}

/* =========================================================
   TEAM
   ========================================================= */

.person {
    padding: 0;

    overflow: hidden;
}

.person-top {
    height: 180px;

    background: linear-gradient(145deg, #0b2e4e, #174d77);

    position: relative;

    display: flex;

    align-items: flex-end;

    padding: 22px;
}

.person-top::after {
    content: "";

    position: absolute;

    width: 120px;

    height: 120px;

    border-radius: 50%;

    background: rgba(255, 149, 84, 0.17);

    right: -25px;

    top: -20px;
}

.avatar {
    width: 86px;
    height: 86px;

    border-radius: 24px;

    background: #fff;

    color: var(--navy);

    display: grid;

    place-items: center;

    font-family: var(--font-heading);

    font-size: 1.4rem;

    font-weight: 800;

    letter-spacing: -0.04em;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);

    position: relative;

    z-index: 2;
}

.person-body {
    padding: 24px;
}

.person-body h3 {
    margin-bottom: 7px;

    font-size: 1.18rem;
}

.role {
    font-family: var(--font-label);

    color: #d66e31;

    font-size: 0.7rem;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.1em;
}

.person-body p {
    margin-top: 12px;

    font-size: 0.9rem;

    line-height: 1.68;

    color: #647284;
}

/* =========================================================
   COMPLIANCE
   ========================================================= */

.license {
    display: flex;

    gap: 18px;

    align-items: flex-start;
}

.license .seal {
    width: 54px;
    height: 54px;

    flex: 0 0 54px;

    border-radius: 18px;

    background: var(--navy);

    color: white;

    display: grid;

    place-items: center;

    font-family: var(--font-heading);

    font-weight: 800;
}

.timeline {
    position: relative;

    padding-left: 32px;
}

.timeline::before {
    content: "";

    position: absolute;

    left: 10px;

    top: 8px;

    bottom: 8px;

    width: 2px;

    background: #e6eaf0;
}

.timeline-item {
    position: relative;

    padding: 0 0 30px 20px;
}

.timeline-item::before {
    content: "";

    position: absolute;

    left: -28px;

    top: 6px;

    width: 10px;
    height: 10px;

    background: var(--orange);

    border: 4px solid #fff;

    border-radius: 50%;

    box-shadow: 0 0 0 1px #e2e7ec;
}

.timeline-item h3 {
    font-size: 1.03rem;

    margin-bottom: 6px;
}

.timeline-item p {
    color: #687584;

    font-size: 0.9rem;

    line-height: 1.65;
}

/* =========================================================
   FORMS
   ========================================================= */

.form-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 16px;
}

.field {
    display: grid;

    gap: 7px;
}

.field.full {
    grid-column: 1 / -1;
}

.field label {
    font-family: var(--font-label);

    font-size: 0.72rem;

    font-weight: 600;

    letter-spacing: 0.035em;

    color: #465466;
}

.field input,
.field select,
.field textarea {
    width: 100%;

    border: 1px solid #dbe2e9;

    background: #fff;

    border-radius: 13px;

    padding: 13px 14px;

    font-family: var(--font-body);

    font-size: 0.92rem;

    font-weight: 400;

    line-height: 1.5;

    letter-spacing: -0.01em;

    color: var(--ink);

    outline: none;

    transition: 0.2s;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #9aa5b1;
}

.field textarea {
    min-height: 150px;

    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--orange);

    box-shadow: 0 0 0 4px rgba(255, 149, 84, 0.15);
}

/* =========================================================
   CONTACT
   ========================================================= */

.contact-card {
    background: var(--navy);

    color: #fff;

    border-radius: 30px;

    padding: 34px;
}

.contact-card p,
.contact-card a {
    color: #d4dfe8;

    font-size: 0.91rem;

    line-height: 1.65;
}

.contact-card a:hover {
    color: #fff;
}

.contact-item {
    padding: 18px 0;

    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-item:last-child {
    border-bottom: 0;
}

.contact-item strong {
    display: block;

    margin-bottom: 4px;

    font-family: var(--font-label);

    font-size: 0.76rem;

    font-weight: 600;

    letter-spacing: 0.035em;

    color: #fff;
}

.notice {
    margin-top: 16px;

    padding: 12px 14px;

    border-radius: 12px;

    background: #eef8f4;

    color: #166d52;

    font-size: 0.84rem;

    line-height: 1.55;

    display: none;
}

/* =========================================================
   CTA BAND
   ========================================================= */

.cta-band {
    position: relative;

    overflow: hidden;

    border-radius: 32px;

    background: linear-gradient(135deg, var(--navy), #0e456f);

    color: #fff;

    padding: 48px;
}

.cta-band::after {
    content: "";

    position: absolute;

    width: 280px;

    height: 280px;

    border: 55px solid rgba(255, 149, 84, 0.18);

    border-radius: 50%;

    right: -70px;

    top: -90px;
}

.cta-band > * {
    position: relative;

    z-index: 2;
}

.cta-band p {
    color: #d6e1ea;
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    background: #061a2b;

    color: #c4d0db;

    padding: 70px 0 28px;
}

.footer-grid {
    display: grid;

    grid-template-columns:
        1.45fr
        1fr
        1fr
        1fr
        1fr;

    gap: 32px;
}

.footer h4 {
    color: #fff;

    font-family: var(--font-label);

    font-size: 0.76rem;

    font-weight: 600;

    line-height: 1.4;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}

.footer p {
    font-size: 0.87rem;

    line-height: 1.68;

    color: #aebdca;
}

.footer a {
    display: block;

    color: #c4d0db;

    margin: 8px 0;

    font-size: 0.85rem;

    line-height: 1.55;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.footer a:hover {
    color: #fff;

    transform: translateX(2px);
}

.footer .brand {
    color: #fff;

    margin-bottom: 16px;
}

.footer .brand-text small {
    color: #8295a6;
}

/* =========================================================
   COPYRIGHT
   ========================================================= */

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);

    padding-top: 22px;

    margin-top: 42px;

    display: flex;

    justify-content: space-between;

    gap: 20px;

    font-family: var(--font-label);

    font-size: 0.7rem;

    font-weight: 400;

    line-height: 1.55;

    letter-spacing: 0.06em;

    color: #8295a6;
}

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */

.reveal {
    opacity: 0;

    transform: translateY(16px);

    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;

    transform: none;
}

/* =========================================================
   SHARED COMPONENTS / ANCHOR NAVIGATION
   ========================================================= */

html {
    scroll-padding-top: 96px;
}

section[id] {
    scroll-margin-top: 96px;
}

.subnav-wrap {
    position: relative;
    z-index: 20;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.subnav {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 24px;
    overflow-x: auto;
    scrollbar-width: none;
}

.subnav::-webkit-scrollbar {
    display: none;
}

.subnav a {
    position: relative;
    flex: 0 0 auto;
    padding: 17px 0;
    font-family: var(--font-label);
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #687584;
}

.subnav a:hover,
.subnav a.active {
    color: var(--navy);
}

.subnav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--orange);
}

.service-pillar {
    position: relative;
}

.service-pillar + .service-pillar {
    border-top: 1px solid var(--line);
}

.pillar-heading {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 50px;
    align-items: end;
    margin-bottom: 36px;
}

.pillar-heading h2 {
    margin-bottom: 0;
}

.pillar-heading .lead {
    margin: 0;
}

.capability-link {
    margin-top: 16px;
}

@media (max-width: 1000px) {
    .pillar-heading {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 680px) {
    .subnav {
        gap: 18px;
    }

    .subnav a {
        font-size: 0.68rem;
        padding: 15px 0;
    }
}

/* =========================================================
   TABLET / MOBILE NAV
   ========================================================= */

@media (max-width: 1000px) {
    .nav-links {
        position: fixed;

        left: 20px;
        right: 20px;

        top: 88px;

        background: rgba(255, 255, 255, 0.98);

        border: 1px solid var(--line);

        box-shadow: var(--shadow);

        border-radius: 18px;

        padding: 18px;

        display: none;

        flex-direction: column;

        align-items: stretch;

        gap: 6px;

        backdrop-filter: blur(22px);
        -webkit-backdrop-filter: blur(22px);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 11px 8px;

        font-size: 0.8rem;

        letter-spacing: 0.06em;
    }

    .nav-links a.active::after {
        display: none;
    }

    /*
       Mobile drawer stays white even while
       homepage header is transparent.
    */

    .site-header.hero-overlay:not(.scrolled) .nav-links.open > a:not(.nav-cta) {
        color: #384658;

        text-shadow: none;
    }

    .site-header.hero-overlay:not(.scrolled)
        .nav-links.open
        > a:not(.nav-cta):hover,
    .site-header.hero-overlay:not(.scrolled)
        .nav-links.open
        > a:not(.nav-cta).active {
        color: var(--navy);
    }

    .nav-cta {
        margin: 8px 0 0;
    }

    .menu-btn {
        display: block;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3,
    .case-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .split {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero {
        min-height: 620px;
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat:nth-child(3) {
        border-left: 0;
    }

    .client-list {
        columns: 2;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 680px) {
    body {
        font-size: 16px;
    }

    .container {
        width: min(var(--max), calc(100% - 28px));
    }

    .section {
        padding: 70px 0;
    }

    .section-sm {
        padding: 52px 0;
    }

    .page-hero {
        padding: 86px 0 55px;
    }

    .hero {
        min-height: 620px;

        background: #061a2b;
        /* linear-gradient(
                180deg,
                rgba(4, 19, 32, 0.88) 0%,
                rgba(4, 19, 32, 0.62) 16%,
                rgba(4, 19, 32, 0.32) 32%,
                rgba(4, 19, 32, 0.08) 48%,
                rgba(4, 19, 32, 0) 60%
            ),

            linear-gradient(
                90deg,
                rgba(4, 19, 32, 0.91) 0%,
                rgba(4, 19, 32, 0.74) 56%,
                rgba(4, 19, 32, 0.30) 100%
            ),

            url("../img/hero-human-machine.jpg")
            57% 30% / cover no-repeat; */
    }

    .hero-content {
        padding: 135px 0 66px;
    }

    .hero h1 {
        line-height: 1;

        letter-spacing: -0.05em;
    }

    .hero p {
        font-size: 1rem;

        line-height: 1.65;
    }

    p {
        font-size: 0.95rem;

        line-height: 1.68;
    }

    .lead {
        font-size: 1rem;

        line-height: 1.65;
    }

    .card p,
    .service-card p,
    .project p,
    .person-body p {
        font-size: 0.9rem;

        line-height: 1.65;
    }

    .service-card li {
        font-size: 0.89rem;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .case-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .stat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat {
        padding: 20px 12px;
    }

    .project {
        grid-template-columns: 1fr;

        gap: 8px;
    }

    .project-badge {
        justify-self: start;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .copyright {
        flex-direction: column;
    }

    .client-list {
        columns: 1;
    }

    .cta-band {
        padding: 32px 24px;
    }

    .visual-card {
        min-height: 340px;
    }

    .eyebrow {
        font-size: 0.68rem;

        letter-spacing: 0.1em;
    }

    .hero-badges span {
        font-size: 0.7rem;
    }

    .footer a {
        font-size: 0.86rem;
    }
}

/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {
    .container {
        width: calc(100% - 24px);
    }

    .card {
        padding: 23px;
    }

    .hero-content {
        padding: 125px 0 58px;
    }

    .stat strong {
        font-size: 1.7rem;
    }

    .stat span {
        font-size: 0.72rem;
    }

    .cta-band {
        padding: 28px 20px;
    }
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;

        transition: none !important;
    }

    .reveal {
        opacity: 1;

        transform: none;
    }
}
/* =========================================================
   COMPANY DROPDOWN
   ========================================================= */

.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #384658;
    font-family: var(--font-label);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.055em;
    cursor: pointer;
    transition: color 0.3s ease;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active,
.nav-dropdown.open .nav-dropdown-toggle {
    color: var(--navy);
}

.nav-dropdown-toggle.active {
    font-weight: 600;
}

.nav-dropdown-toggle.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 2px;
    border-radius: 8px;
    background: var(--orange);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 18px);
    right: 0;
    min-width: 220px;
    padding: 10px;
    border: 1px solid rgba(8, 36, 62, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 50px rgba(8, 36, 62, 0.16);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    pointer-events: none;
    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        visibility 0.18s ease;
}

.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-dropdown-menu a {
    display: block;
    padding: 11px 12px;
    border-radius: 10px;
    color: #384658 !important;
    font-size: 0.76rem;
    letter-spacing: 0.035em;
    text-shadow: none !important;
}

.nav-dropdown-menu a:hover {
    background: #f5f7fa;
    color: var(--navy) !important;
}

.site-header.hero-overlay:not(.scrolled) .nav-dropdown-toggle {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.site-header.hero-overlay:not(.scrolled) .nav-dropdown-toggle:hover,
.site-header.hero-overlay:not(.scrolled) .nav-dropdown-toggle.active,
.site-header.hero-overlay:not(.scrolled)
    .nav-dropdown.open
    .nav-dropdown-toggle {
    color: #fff;
}

/* =========================================================
   SERVICE PAGES
   ========================================================= */

.service-intro-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: start;
}

.service-outcome-card {
    background: var(--navy);
    color: #fff;
    border-radius: 28px;
    padding: 30px;
}

.service-outcome-card h3 {
    color: #fff;
}

.service-outcome-card p,
.service-outcome-card li {
    color: #d2dde7;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
}

.process-step {
    position: relative;
    padding: 26px;
    border: 1px solid #e5eaf0;
    border-radius: 22px;
    background: #fff;
}

.process-step .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: #fff1e7;
    color: #c85f22;
    font-family: var(--font-label);
    font-size: 0.76rem;
    font-weight: 700;
}

.process-step h3 {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.process-step p {
    margin: 0;
    font-size: 0.9rem;
    color: #657486;
}

.service-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.service-cta .actions {
    flex: 0 0 auto;
    margin-top: 0;
}

@media (max-width: 1000px) {
    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-toggle {
        width: 100%;
        justify-content: flex-start;
        padding: 11px 8px;
        color: #384658 !important;
        text-shadow: none !important;
        font-size: 0.8rem;
        letter-spacing: 0.06em;
    }

    .nav-dropdown-toggle.active::after {
        display: none;
    }

    .nav-dropdown-menu {
        position: static;
        display: none;
        min-width: 0;
        margin: 4px 0 4px 8px;
        padding: 4px 0 4px 12px;
        border: 0;
        border-left: 2px solid #eef1f4;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }

    .nav-dropdown-menu a {
        padding: 9px 8px;
    }

    .service-intro-grid {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .process-grid {
        grid-template-columns: 1fr;
    }

    .service-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================================
   POLICY PAGES
   ========================================================= */

.policy-page {
    background: #fff;
}

.policy-layout {
    display: grid;

    grid-template-columns: minmax(0, 1fr) 280px;

    gap: 70px;

    align-items: start;
}

.policy-content {
    max-width: 820px;
}

.policy-content section {
    padding: 0 0 38px;

    margin-bottom: 38px;

    border-bottom: 1px solid var(--line);
}

.policy-content section:last-child {
    border-bottom: 0;

    margin-bottom: 0;
}

.policy-content h2 {
    margin-bottom: 16px;

    font-size: clamp(1.5rem, 2.5vw, 2.1rem);

    letter-spacing: -0.035em;
}

.policy-content h3 {
    margin-top: 26px;

    margin-bottom: 10px;

    font-size: 1.05rem;
}

.policy-content p,
.policy-content li {
    color: #526174;
}

.policy-content ul,
.policy-content ol {
    padding-left: 22px;

    margin: 14px 0 20px;
}

.policy-content li {
    margin-bottom: 9px;
}

.policy-meta {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 24px;
}

.policy-meta span {
    display: inline-flex;

    padding: 7px 11px;

    border-radius: 999px;

    background: #eef3f7;

    font-family: var(--font-label);

    font-size: 0.7rem;

    font-weight: 500;

    color: #526174;
}

.policy-sidebar {
    position: sticky;

    top: 110px;

    padding: 24px;

    border: 1px solid var(--line);

    border-radius: 20px;

    background: #f8fafc;
}

.policy-sidebar h4 {
    margin-bottom: 14px;
}

.policy-sidebar a {
    display: block;

    padding: 8px 0;

    border-bottom: 1px solid #e7ebef;

    font-family: var(--font-label);

    font-size: 0.78rem;

    color: #536174;
}

.policy-sidebar a:last-child {
    border-bottom: 0;
}

.policy-sidebar a:hover {
    color: var(--navy);
}

.policy-contact {
    padding: 26px;

    border-radius: 20px;

    background: var(--navy);

    color: #fff;
}

.policy-contact p {
    color: #d4dfe8;
}

.policy-contact a {
    color: var(--orange2);

    font-weight: 700;
}

@media (max-width: 900px) {
    .policy-layout {
        grid-template-columns: 1fr;
    }

    .policy-sidebar {
        position: static;
    }
}
