/* Company colours */
:root {
    --navy: #10345a;
    --ink: #18324b;
    --teal: #0052ad;
    --mint: #68c7ff;
    --muted: #626b75;
    --soft: #f3f6fa;
    --line: #dce4ed;
}

/* Base styles */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    line-height: 1.65;
}

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

button {
    font: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.12;
    letter-spacing: -0.045em;
}

h1 {
    font-size: clamp(44px, 5.7vw, 78px);
    font-weight: 700;
    margin-bottom: 26px;
}

h2 {
    font-size: clamp(32px, 3.6vw, 48px);
    margin-bottom: 26px;
}

h3 {
    font-size: 24px;
    letter-spacing: -0.025em;
}

em {
    font-style: normal;
    color: var(--teal);
}

p {
    color: var(--muted);
}

.container {
    width: min(1180px, calc(100% - 64px));
    margin-inline: auto;
}

/* Header */
.header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid var(--line);
}

.nav-wrap {
    min-height: 98px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-block: 9px;
}

.header .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

/* Company image logo */
.header .company-logo {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

/* Original text logo, if used */
.brand-mark {
    font-size: 29px;
    font-weight: 900;
    letter-spacing: -3px;
    border-right: 1px solid var(--line);
    padding-right: 16px;
}

.brand-mark span {
    color: var(--teal);
}

.brand-name {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.3px;
    line-height: 1.7;
}

.brand-name small {
    display: block;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.2px;
    color: var(--muted);
}

/* Navigation */
#navigation {
    display: flex;
    gap: 28px;
    align-items: center;
    flex-shrink: 0;
}

#navigation a {
    font-size: 14px;
    font-weight: 600;
    padding: 10px 0;
    white-space: nowrap;
}

#navigation a[aria-current="page"],
#navigation a:hover {
    color: var(--teal);
}

#navigation a:last-child {
    border: 1px solid var(--line);
    padding: 11px 19px;
    border-radius: 4px;
}

.menu-toggle {
    display: none;
}

/* Shared headings */
.eyebrow {
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--teal);
    margin-bottom: 22px;
}

/* Home page hero */
.hero {
    background: linear-gradient(115deg, #f0f5fc, #fff);
    padding: 76px 0 65px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 55px;
}

.hero-copy {
    font-size: 18px;
    line-height: 1.8;
}

.actions {
    display: flex;
    align-items: center;
    gap: 26px;
    margin: 32px 0;
}

/* Buttons and links */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 16px 24px;
    background: var(--navy);
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.button:hover {
    background: var(--teal);
}

.text-link {
    font-size: 14px;
    color: var(--ink);
    font-weight: 600;
    display: inline-block;
}

.text-link:hover {
    color: var(--teal);
}

.hero-note {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
}

.hero-note span,
.status-dot {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    background: var(--teal);
    border-radius: 50%;
    display: inline-block;
}

.hero-visual {
    position: relative;
}

.hero-visual img {
    display: block;
    width: 100%;
}

.visual-caption {
    background: #fff;
    position: absolute;
    bottom: 26px;
    right: 26px;
    box-shadow: 0 8px 24px rgb(16 52 90 / 10%);
    padding: 13px 18px;
    border-radius: 6px;
    font-size: 9px;
    letter-spacing: 1.4px;
    display: flex;
    gap: 9px;
    align-items: center;
}

/* Expertise banner */
.expertise {
    background: var(--navy);
    color: #fff;
    padding: 22px 0;
}

.expertise-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
}

.expertise-row span:first-child {
    font-size: 10px;
    color: var(--mint);
    letter-spacing: 1.6px;
}

/* Shared sections */
.section {
    padding: 90px 0;
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 80px;
}

.lead {
    font-size: 21px;
    color: var(--ink);
    line-height: 1.5;
}

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

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 50px;
    margin-bottom: 35px;
}

.section-heading > p {
    max-width: 360px;
}

/* Service cards */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.service-card {
    border: 1px solid var(--line);
    background: #fff;
    padding: 28px;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    transition: transform 0.2s, border-color 0.2s;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--teal);
}

.card-top {
    display: flex;
    justify-content: space-between;
    color: var(--teal);
    font-size: 13px;
    margin-bottom: 34px;
}

.service-card h3 {
    max-width: 250px;
}

.service-card p {
    font-size: 14px;
}

.card-link {
    font-size: 12px;
    font-weight: 700;
    margin-top: auto;
    padding-top: 15px;
}

/* Working process */
.process {
    background: var(--navy);
    color: #fff;
}

.process em,
.process .eyebrow {
    color: var(--mint);
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 38px;
    margin-top: 50px;
}

.steps article {
    border-top: 1px solid #59748f;
    padding-top: 24px;
}

.steps span {
    color: var(--mint);
    font-size: 11px;
    letter-spacing: 1.5px;
}

.steps h3 {
    margin: 22px 0 15px;
}

.steps p {
    color: #c8d5e3;
    font-size: 15px;
}

/* Call to action */
.cta {
    background: #eaf2fc;
    border-radius: 8px;
    margin-top: 70px;
    margin-bottom: 70px;
    padding: 48px 52px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 0;
}

.cta .eyebrow {
    margin-bottom: 15px;
}

.light {
    background: var(--navy);
    white-space: nowrap;
}

/* Footer */
footer {
    background: var(--soft);
    padding-top: 55px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr));
    gap: 50px;
    padding-bottom: 40px;
}

.footer-logo {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.4px;
}

.footer-logo span {
    color: var(--teal);
}

footer p {
    font-size: 13px;
    margin-top: 15px;
}

footer h2 {
    font-size: 13px;
    letter-spacing: 0;
    margin-bottom: 16px;
}

footer a:not(.footer-logo) {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 8px;
    overflow-wrap: anywhere;
}

footer a:hover {
    color: var(--teal);
}

.footer-bottom {
    border-top: 1px solid var(--line);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
    font-size: 11px;
}

/* Inner page introductions */
.page-hero {
    padding: 80px 0;
    background: var(--soft);
    border-bottom: 1px solid var(--line);
}

.page-hero h1 {
    font-size: clamp(40px, 5vw, 64px);
}

.page-hero p:last-child {
    font-size: 18px;
    max-width: 640px;
    margin-bottom: 0;
}

/* About page */
.principles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
    margin-top: 45px;
}

.principles article {
    border-top: 1px solid var(--line);
    padding-top: 24px;
}

.principles span {
    color: var(--teal);
    font-size: 13px;
}

.principles h3 {
    margin: 16px 0;
}

/* Services page */
.service-detail {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 40px;
    padding: 45px 0;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 100px;
}

.service-detail:first-child {
    padding-top: 0;
}

.service-detail h2 {
    font-size: 32px;
    margin-bottom: 18px;
}

.service-detail p {
    max-width: 770px;
}

.detail-number {
    font-size: 48px;
    line-height: 1.1;
    color: #a9bfd6;
}

.tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0 0;
    padding: 0;
}

.tags li {
    font-size: 12px;
    border: 1px solid var(--line);
    border-radius: 3px;
    padding: 6px 12px;
}

/* Technologies page */
.technology-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 45px;
}

.technology-grid article {
    background: var(--soft);
    padding: 35px;
}

.tech-icon {
    font-size: 28px;
    color: var(--teal);
    display: block;
    margin-bottom: 20px;
}

/* Contact page */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 80px;
}

.contact-panel {
    background: var(--soft);
    border: 1px solid var(--line);
    padding: 38px;
    border-radius: 8px;
}

.contact-panel h3 {
    font-size: 25px;
    margin-bottom: 18px;
}

.contact-panel a {
    color: var(--teal);
    overflow-wrap: anywhere;
}

.contact-panel > div + div {
    margin-top: 28px;
}

.coming-label {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--teal);
    display: block;
    margin-bottom: 26px;
}

.domain-label {
    border-top: 1px solid var(--line);
    padding-top: 20px;
    color: var(--muted);
    font-size: 13px;
    overflow-wrap: anywhere;
}

/* Accessibility */
.skip {
    position: fixed;
    top: -100px;
    left: 15px;
    padding: 12px;
    background: var(--navy);
    color: #fff;
    z-index: 100;
}

.skip:focus {
    top: 10px;
}

:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 5px;
}

/* Smaller laptops */
@media (max-width: 1050px) {
    #navigation {
        gap: 17px;
    }

    .hero-grid {
        gap: 25px;
    }

    .brand-name {
        font-size: 9px;
    }

    .container {
        width: calc(100% - 48px);
    }
}

/* Tablets and mobile navigation */
@media (max-width: 850px) {
    .nav-wrap {
        min-height: 80px;
    }

    .menu-toggle {
        display: flex;
        gap: 10px;
        align-items: center;
        background: #fff;
        border: 1px solid var(--line);
        padding: 8px 12px;
        border-radius: 4px;
        font-size: 13px;
        color: var(--ink);
        cursor: pointer;
    }

    #navigation {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: #fff;
        border-bottom: 1px solid var(--line);
        padding: 15px 24px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    #navigation.open {
        display: flex;
    }

    #navigation a {
        padding: 12px;
    }

    #navigation a:last-child {
        margin-top: 8px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .hero {
        padding: 50px 0;
    }

    .hero-visual {
        max-width: 560px;
        margin-inline: auto;
        width: 100%;
    }

    .intro-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0;
    }

    .section-heading > p {
        max-width: 600px;
    }

    .section {
        padding: 60px 0;
    }

    .steps {
        gap: 24px;
    }

    .steps h3 {
        font-size: 21px;
    }

    .cta {
        padding: 35px;
    }

    .footer-grid {
        gap: 24px;
    }

    .expertise-row {
        justify-content: flex-start;
    }

    .expertise-row span:first-child {
        width: 100%;
    }
}

/* Phones */
@media (max-width: 560px) {
    .container {
        width: calc(100% - 36px);
    }

    h1 {
        font-size: clamp(36px, 10vw, 46px);
    }

    h2 {
        font-size: 34px;
    }

    .header .company-logo {
        width: 140px;
        max-height: 65px;
    }

    .brand-mark {
        font-size: 25px;
        padding-right: 10px;
    }

    .header .brand {
        gap: 8px;
    }

    .brand-name {
        font-size: 8px;
        letter-spacing: 0.7px;
    }

    .brand-name small {
        font-size: 8px;
    }

    .hero-copy {
        font-size: 16px;
    }

    .actions {
        gap: 20px;
        flex-wrap: wrap;
    }

    .hero-note {
        font-size: 11px;
    }

    .visual-caption {
        bottom: 17px;
        right: 17px;
        padding: 10px;
        font-size: 8px;
    }

    .service-grid,
    .steps,
    .principles,
    .technology-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 245px;
    }

    .steps {
        gap: 20px;
    }

    .cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 24px;
        margin-block: 45px;
    }

    .cta h2 {
        font-size: 29px;
    }

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

    .footer-grid > div:first-child {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 5px;
    }

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

    .page-hero h1 {
        font-size: clamp(34px, 9vw, 40px);
    }

    .service-detail {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 35px 0;
    }

    .detail-number {
        font-size: 30px;
    }

    .service-detail h2 {
        font-size: 29px;
    }

    .contact-panel {
        padding: 25px;
    }

    .technology-grid article {
        padding: 28px;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}

/* Scroll reveal effects */
.reveal {
    opacity: 1;
    transform: none;
}

.reveal.reveal-pending {
    opacity: 0;
    transform: translateY(24px);
}

.reveal.reveal-ready {
    transition:
        opacity 0.65s ease,
        transform 0.65s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Card hover effects */
.service-card,
.technology-grid article,
.principles article {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
    .service-card:hover,
    .technology-grid article:hover {
        transform: translateY(-6px);
        box-shadow: 0 14px 30px rgb(16 52 90 / 12%);
    }

    .principles article:hover {
        transform: translateY(-3px);
        border-color: var(--teal);
    }
}

/* Button effects */
.button {
    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .button:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 18px rgb(16 52 90 / 18%);
    }
}

.button:active {
    transform: translateY(0);
}

/* Navigation underline */
#navigation a {
    position: relative;
}

#navigation a:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 100%;
    height: 2px;
    background: var(--teal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

#navigation a:hover::after,
#navigation a:focus-visible::after,
#navigation a[aria-current="page"]::after {
    transform: scaleX(1);
}

/* Floating hero illustration: stops after three cycles */
.hero-visual img {
    animation: hero-float 1.6s ease-in-out 3;
}

@keyframes hero-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* Respect visitors who prefer less motion */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal.reveal-pending,
    .reveal.is-visible {
        opacity: 1;
        transform: none;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* Match the banner text colour */
.expertise-row span:first-child {
    color: #ffffff;
}