:root {
    color-scheme: light;
    --ink: #202c40;
    --muted: #68758a;
    --blue: #167eaa;
    --blue-deep: #0d4d73;
    --sky: #d9f2fb;
    --line: #dce5ec;
    --paper: #ffffff;
    --wash: #f3f8fb;
    --heading: 'Montserrat', sans-serif;
    --body: 'Open Sans', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--body); font-size: 16px; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.section-inner, .header-inner, .footer-inner, .hero-inner { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }

.site-header { position: sticky; z-index: 10; top: 0; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(26,66,89,.08); backdrop-filter: blur(12px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; }
.brand img { width: 176px; height: 58px; object-fit: contain; }
.site-navigation { display: flex; align-items: center; gap: 38px; }
.site-navigation a { color: #34445a; font-size: 13px; font-weight: 700; text-transform: uppercase; transition: color .2s ease; }
.site-navigation a:hover, .site-navigation a:focus-visible { color: var(--blue); }
.menu-toggle { display: none; }

.hero { position: relative; overflow: hidden; min-height: 620px; background: #f3f8ff url('../images/cloudeflux/intro-bg.jpg') center / cover no-repeat; }
.hero::before { position: absolute; inset: 0; content: ''; background: linear-gradient(90deg, rgba(246,250,255,.97) 0%, rgba(246,250,255,.90) 40%, rgba(246,250,255,.18) 100%); }
.hero-inner { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; min-height: 620px; padding-block: 54px; }
.hero-copy { position: relative; z-index: 1; max-width: 560px; padding-block: 28px; animation: rise-in .7s ease both; }
.eyebrow { margin: 0 0 12px; color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.hero h1 { max-width: 560px; margin: 0; color: #26354c; font-family: var(--heading); font-size: clamp(38px, 4.4vw, 58px); line-height: 1.17; }
.hero h1 span { color: var(--blue); }
.hero-copy > p:not(.eyebrow) { max-width: 455px; margin: 22px 0 30px; color: #617087; font-size: 17px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 48px; padding: 0 24px; border: 0; border-radius: 3px; font: 700 13px var(--body); cursor: pointer; transition: background .2s ease, transform .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: white; background: var(--blue); }
.button-primary:hover { color: white; background: var(--blue-deep); }
.button:disabled { cursor: wait; opacity: .65; }
.hero-art { justify-self: end; width: min(100%, 600px); animation: fade-in .9s .12s ease both; }
.hero-art img { width: 100%; max-height: 510px; object-fit: contain; }
.scroll-cue { position: absolute; z-index: 2; bottom: 22px; left: 50%; display: grid; width: 25px; height: 39px; place-items: start center; border: 1px solid #98adbd; border-radius: 15px; }
.scroll-cue span { width: 3px; height: 7px; margin-top: 7px; border-radius: 4px; background: var(--blue); animation: scroll-down 1.4s infinite; }

.section { padding-block: 108px; }
.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 80px; }
.about-art { position: relative; padding: 0 0 34px 34px; }
.about-art::before { position: absolute; z-index: -1; top: -22px; left: 0; width: 68%; height: 76%; background: var(--sky); content: ''; }
.about-art img { width: 100%; min-height: 390px; object-fit: cover; }
.image-caption { position: absolute; right: 0; bottom: 0; padding: 13px 18px; color: white; background: var(--blue-deep); font-size: 12px; font-weight: 600; }
.about-copy h2, .section-heading h2, .contact-copy h2 { margin: 0 0 18px; font-family: var(--heading); font-size: 36px; line-height: 1.25; }
.about-copy > p:not(.eyebrow) { color: var(--muted); }
.about-copy .lead { color: #35485e !important; font-size: 18px; font-weight: 600; line-height: 1.65; }
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 32px; }
.value-item { padding-top: 16px; border-top: 2px solid var(--blue); }
.value-number, .service-index { color: var(--blue); font-family: var(--heading); font-size: 12px; font-weight: 700; }
.value-item h3 { margin: 8px 0; font-family: var(--heading); font-size: 16px; }
.value-item p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

.services-section { background: var(--wash); }
.section-heading { margin-bottom: 48px; text-align: center; }
.section-heading h2 { margin-bottom: 10px; }
.section-heading > p:last-child { margin: 0; color: var(--muted); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-item { min-height: 218px; padding: 28px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.68); transition: background .2s ease, box-shadow .2s ease; }
.service-item:hover { position: relative; z-index: 1; background: white; box-shadow: 0 12px 32px rgba(25,69,96,.09); }
.service-item h3 { margin: 15px 0 9px; font-family: var(--heading); font-size: 17px; line-height: 1.4; }
.service-item p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.contact-section { padding-block: 96px; color: white; background: #123a54; }
.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; align-items: start; gap: 90px; }
.contact-copy .eyebrow { color: #89d9f3; }
.contact-copy h2 { max-width: 420px; font-size: 38px; }
.contact-copy > p:not(.eyebrow) { max-width: 390px; color: #c3d4de; }
.contact-detail { margin-top: 30px; }
.detail-label { display: block; margin-bottom: 5px; color: #89d9f3; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.contact-detail address, .contact-detail a { color: white; font-size: 15px; font-style: normal; }
.contact-form { padding: 36px; color: var(--ink); background: white; }
.contact-form h3 { margin: 0 0 22px; font-family: var(--heading); font-size: 21px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: block; margin-bottom: 16px; color: #506075; font-size: 12px; font-weight: 700; }
.contact-form input, .contact-form textarea { display: block; width: 100%; margin-top: 7px; padding: 11px 12px; border: 1px solid #d5e0e7; border-radius: 2px; color: var(--ink); background: #fcfdfe; font: 14px var(--body); outline: none; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22,126,170,.12); }
.contact-form textarea { resize: vertical; }
.form-submit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-status { margin: 0; color: #526579; font-size: 12px; }
.form-status[data-state="success"] { color: #14804a; }
.form-status[data-state="error"] { color: #b42318; }

.site-footer { padding-block: 38px; color: #ccdae2; background: #0b2b40; }
.footer-inner { display: grid; grid-template-columns: 170px 1fr auto; align-items: center; gap: 16px 30px; }
.footer-brand img { width: 150px; height: 48px; object-fit: contain; }
.footer-inner > p { margin: 0; font-size: 12px; }
.footer-inner nav { display: flex; gap: 20px; }
.footer-inner nav a { font-size: 11px; }
.footer-inner nav a:hover { color: white; }
.copyright { grid-column: 1 / -1; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.12); font-size: 11px; }

.subpage-hero { padding-block: 72px; background: var(--wash); }
.subpage-hero-inner { display: grid; grid-template-columns: 1fr .8fr; align-items: center; gap: 64px; }
.subpage-hero-no-image { grid-template-columns: minmax(0, 1fr); }
.subpage-hero-no-image > div { max-width: 820px; }
.subpage-hero h1 { margin: 0; color: #26354c; font-family: var(--heading); font-size: 44px; line-height: 1.2; }
.subpage-hero-inner > div > p:not(.eyebrow) { max-width: 560px; color: var(--muted); font-size: 17px; }
.subpage-hero-image { justify-self: end; width: 100%; max-height: 330px; object-fit: contain; }
.subpage-content { padding-block: 72px; }
.subpage-body { max-width: 850px; margin: 0 auto 42px; color: var(--muted); font-size: 17px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature-item { min-height: 180px; padding: 25px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-item-image { display: block; width: 100%; aspect-ratio: 3 / 2; margin-bottom: 16px; object-fit: cover; }
.feature-item h2 { margin: 12px 0 8px; font-family: var(--heading); font-size: 17px; line-height: 1.4; }
.feature-item h2 a:hover { color: var(--blue); }
.feature-item p { margin: 0; color: var(--muted); font-size: 14px; }
.technology-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 30px; border: 1px solid var(--line); background: var(--line); }
.technology-item { display: grid; min-height: 150px; place-items: center; align-content: center; gap: 12px; margin: 0; padding: 16px; background: white; }
.technology-item img { width: 76px; height: 76px; object-fit: contain; }
.technology-item figcaption { color: var(--muted); font-size: 12px; font-weight: 700; }
.subpage-cta { padding-block: 48px; background: var(--wash); }
.subpage-cta .section-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.subpage-cta h2 { margin: 0; font-family: var(--heading); font-size: 25px; }
.photo-credit { margin: 28px 0 0; color: var(--muted); font-size: 12px; text-align: right; }
.photo-credit a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 2px; }
.feature-item-image { border-radius: 2px; }
.client-links-section { padding: 52px 0; background: #f3f8fb; }
.client-links-heading { margin-bottom: 26px; text-align: center; }
.client-links-heading h2 { margin: 0; color: var(--ink); font-family: var(--heading); font-size: 25px; }
.client-links-heading p { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.client-links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 920px; margin: 0 auto; }
.client-link { display: grid; min-height: 112px; place-items: center; padding: 20px 28px; border: 1px solid var(--line); background: white; transition: border-color .2s ease, transform .2s ease; }
.client-link:hover, .client-link:focus-visible { transform: translateY(-2px); border-color: var(--blue); }
.client-link img { width: auto; max-width: 100%; height: 62px; object-fit: contain; }
.client-mark-note { margin: 18px 0 0; color: var(--muted); font-size: 11px; text-align: center; }

@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes scroll-down { 0%, 100% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(9px); opacity: .2; } }

@media (max-width: 900px) {
    .site-navigation { gap: 22px; }
    .hero, .hero-inner { min-height: 550px; }
    .hero-inner { grid-template-columns: 1fr 1fr; }
    .hero h1 { font-size: 44px; }
    .about-grid { gap: 42px; }
    .contact-grid { gap: 42px; }
    .subpage-hero-inner { gap: 32px; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 150px 1fr; }
    .footer-inner nav { grid-column: 1 / -1; grid-row: 2; }
    .copyright { grid-row: 3; }
}

@media (max-width: 680px) {
    html { scroll-padding-top: 68px; }
    .section-inner, .header-inner, .footer-inner, .hero-inner { width: min(100% - 36px, 520px); }
    .header-inner { min-height: 68px; }
    .brand img { width: 148px; height: 50px; }
    .menu-toggle { display: flex; width: 42px; height: 42px; flex-direction: column; justify-content: center; gap: 5px; padding: 9px; border: 1px solid #dce5ec; border-radius: 3px; background: white; }
    .menu-toggle span { width: 100%; height: 2px; background: var(--blue-deep); }
    .site-navigation { position: absolute; top: 68px; right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 8px 18px 15px; border-bottom: 1px solid var(--line); background: white; }
    .site-navigation.is-open { display: flex; flex-direction: column; }
    .site-navigation a { padding: 11px 4px; border-bottom: 1px solid #edf1f4; }
    .hero, .hero-inner { min-height: auto; }
    .hero::before { background: linear-gradient(180deg, rgba(246,250,255,.97), rgba(246,250,255,.78)); }
    .hero-inner { grid-template-columns: 1fr; padding-block: 68px 50px; }
    .hero-copy { padding: 0; }
    .hero h1 { max-width: 460px; font-size: 40px; }
    .hero-copy > p:not(.eyebrow) { font-size: 15px; }
    .hero-art { width: min(100%, 420px); justify-self: center; margin-top: 24px; }
    .hero-art img { max-height: 310px; }
    .subpage-hero { padding-block: 52px; }
    .subpage-hero-inner { grid-template-columns: 1fr; gap: 20px; }
    .subpage-hero h1 { font-size: 36px; }
    .subpage-hero-image { justify-self: center; max-height: 250px; }
    .feature-grid { grid-template-columns: 1fr; }
    .technology-grid { grid-template-columns: repeat(2, 1fr); }
    .client-links-grid { grid-template-columns: 1fr; gap: 12px; max-width: 360px; }
    .client-links-section { padding: 42px 0; }
    .subpage-cta .section-inner { align-items: flex-start; flex-direction: column; }
    .scroll-cue { display: none; }
    .section { padding-block: 72px; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 38px; }
    .about-art { max-width: 480px; padding-left: 18px; }
    .about-art img { min-height: 280px; }
    .about-copy h2, .section-heading h2 { font-size: 31px; }
    .values-grid { gap: 18px; }
    .service-grid { grid-template-columns: 1fr; }
    .service-item { min-height: 0; padding: 23px; }
    .section-heading { margin-bottom: 32px; }
    .contact-section { padding-block: 72px; }
    .contact-copy h2 { font-size: 32px; }
    .contact-form { padding: 25px 20px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .footer-inner { grid-template-columns: 1fr; gap: 12px; }
    .footer-inner nav { grid-column: auto; grid-row: auto; flex-wrap: wrap; gap: 10px 18px; }
    .copyright { grid-row: auto; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}