/* The existing navy, petrol and mint palette remains the visual foundation. */
:root { --clarity-copy: #c5d3df; }
body { font-size: 16px; }
.site-header { max-width: 1440px; padding: 15px 24px; top: 12px; }
.site-header nav { gap: 26px; }
.site-header nav a { font-size: 14px; }
.site-header .language { min-height: 36px; display: inline-flex; align-items: center; }
main { max-width: 1360px; }
body[data-page="home"] .section { padding-block: 80px; }
body[data-page="home"] .section-heading h2 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.17; letter-spacing: -1.5px; max-width: 800px; }
body[data-page="home"] .section-heading p { font-size: 17px; line-height: 1.75; max-width: 740px; color: var(--clarity-copy); }
.eyebrow { font-size: 11px; letter-spacing: 1.7px; }
.button { min-height: 48px; font-size: 14px; }
.text-link { font-size: 14px; text-underline-offset: 5px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--mint); outline-offset: 6px; }
body[data-page="home"] .hero.clarity-hero { grid-template-columns: 1fr 1.03fr; padding: 68px 0 62px; gap: 24px; overflow: visible; min-height: 0; }
.clarity-hero .hero-copy { z-index: 3; }
.clarity-hero h1 { font-size: clamp(38px, 4vw, 61px); line-height: 1.12; letter-spacing: -2.2px; white-space: normal; margin-bottom: 26px; }
.clarity-hero h1 em { display: block; font-style: normal; margin-top: 8px; color: var(--mint); }
.clarity-hero .hero-tag { font-size: 10px; letter-spacing: 1.5px; margin-bottom: 26px; }
.clarity-hero .lead { font-size: 18px; line-height: 1.75; max-width: 540px; padding: 0; color: var(--clarity-copy); }
.clarity-hero .actions { margin-top: 30px; gap: 24px; align-items: center; }
.clarity-hero .clarity-person { font-size: 12px; color: #a9bdc9; margin: 24px 0 0; max-width: 440px; }
.clarity-visual { min-width: 0; align-self: center; }
.clarity-visual .hero-art { width: 113%; max-width: 113%; margin: 0 -6%; transform: none; }
.clarity-film-caption { display: flex; flex-direction: column; gap: 5px; border-left: 1px solid #568986; padding-left: 16px; margin: 0 0 0 12%; font-size: 11px; color: #a9bdc9; }
.clarity-film-caption strong { font-size: 13px; color: #def3ec; font-weight: 500; }
.clarity-services { border-top: 1px solid var(--line); }
.clarity-service { display: grid; grid-template-columns: 190px 1fr 190px; gap: 32px; padding: 30px 0; border-top: 1px solid var(--line); align-items: center; }
.clarity-service-name { color: var(--mint); font-size: 18px; display: flex; gap: 20px; align-items: center; }
.clarity-service-name > span { font-size: 11px; color: #a0b7c3; }
.clarity-service h3 { font-size: 24px; font-weight: 500; letter-spacing: -.65px; margin: 0 0 8px; }
.clarity-service p { font-size: 15px; line-height: 1.75; max-width: 640px; margin: 0; color: var(--clarity-copy); }
.clarity-service > a { justify-self: end; font-size: 13px; padding-block: 12px; }
.clarity-services-footer { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; }
.clarity-services-footer p { margin: 0; }
.clarity-services-footer > a { align-self: center; }
.current-featured .portfolio-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.current-featured .portfolio-feature { border-radius: 20px; background: #0d1a28; border: 1px solid var(--line); overflow: hidden; }
.current-featured .portfolio-feature:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1.65fr 1fr; align-items: center; }
.current-featured .portfolio-feature-image { aspect-ratio: 16 / 10; border: 0; border-radius: 0; display: block; }
.current-featured .portfolio-feature:first-child .portfolio-feature-image { aspect-ratio: 16 / 10; }
.current-featured .portfolio-feature-image img { height: 100%; object-fit: cover; object-position: top; }
.current-featured .portfolio-feature-copy { display: block; padding: 30px; }
.current-featured .portfolio-feature-copy h3 { font-size: 30px; letter-spacing: -.8px; margin: 10px 0 14px; }
.current-featured .portfolio-feature-copy p { font-size: 15px; line-height: 1.8; color: var(--clarity-copy); }
.current-featured .portfolio-feature-copy .text-link { display: inline-block; margin-top: 16px; }
.clarity-project-footer { margin-top: 28px; text-align: right; }
.clarity-software { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; border-top: 1px solid var(--line); }
.clarity-software .section-heading { position: sticky; top: 130px; align-self: start; }
.clarity-software-list details { padding: 22px 0; }
.clarity-software-list summary { font-size: 18px; font-weight: 500; line-height: 1.5; min-height: 40px; }
.clarity-software-list details p { margin: 18px 0; font-size: 15px; line-height: 1.8; color: var(--clarity-copy); }
.clarity-software-list .text-link { display: inline-block; margin-bottom: 10px; }
.clarity-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin: 36px 0 0; padding: 0; list-style: none; }
.clarity-steps li { border-top: 1px solid #46716f; padding-top: 24px; }
.clarity-steps h3 { font-size: 23px; margin: 18px 0 12px; letter-spacing: -.5px; }
.clarity-steps p { font-size: 15px; line-height: 1.75; color: var(--clarity-copy); }
.bv-bottom-info { margin-block: 30px; }
.clarity-care-prices { font-size: 15px !important; color: var(--mint) !important; }
.care-grid .price-card li, .care-grid .smallprint { font-size: 14px; line-height: 1.75; }
.care-grid .price-card h3 { min-height: 0; }
.care-grid .price-card .price { font-size: 40px; }
body[data-page="home"] .clarity-faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.clarity-faq summary { font-size: 17px; min-height: 44px; }
.clarity-faq details p { font-size: 15px; line-height: 1.8; color: var(--clarity-copy); }
.contact-band p { color: var(--clarity-copy); font-size: 16px; line-height: 1.8; }
.form-grid label { font-size: 14px; }
.site-footer a:not(.brand), .site-footer p { font-size: 14px; }
/* Keep essential copy visible immediately; decoration must never delay it. */
.hero-copy, .hero-copy > *, .clarity-service, .portfolio-feature { opacity: 1 !important; }
.clarity-hero .hero-copy > * { animation: none !important; transform: none !important; }
@media (max-width: 1100px) {
  .site-header nav { gap: 16px; }
  .site-header nav a { font-size: 12px; }
  .clarity-service { grid-template-columns: 145px 1fr; gap: 24px; }
  .clarity-service > a { grid-column: 2; justify-self: start; padding: 0; }
  .clarity-software { gap: 36px; }
  .clarity-steps { gap: 20px; }
}
@media (max-width: 800px) {
  body[data-page="home"] .hero.clarity-hero { display: flex; flex-direction: column; padding: 44px 0 48px; gap: 32px; }
  .clarity-hero h1 { font-size: clamp(38px, 6.8vw, 56px); max-width: 620px; }
  .clarity-hero .lead { max-width: 650px; font-size: 17px; }
  .clarity-visual { width: 100%; max-width: 620px; }
  .clarity-visual .hero-art { width: 100%; max-width: 100%; margin: 0; }
  .clarity-film-caption { margin-left: 10%; }
  body[data-page="home"] .section { padding-block: 52px; }
  .current-featured .portfolio-feature:first-child { display: block; }
  .clarity-software { grid-template-columns: 1fr; gap: 16px; }
  .clarity-software .section-heading { position: static; }
  .clarity-steps { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  body[data-page="home"] .clarity-faq { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 650px) {
  .site-header { top: 8px; padding: 13px 14px; }
  .site-header .languages { width: auto; border: 0; padding: 0; margin-left: auto; }
  .site-header .language { padding: 8px; min-height: 36px; }
  .site-header .menu-toggle { margin-left: auto; min-height: 44px; }
  .site-header .brand small { font-size: 6px; }
  .site-header nav a { font-size: 16px; min-height: 46px; display: flex; align-items: center; }
  .site-header nav { flex-basis: 100%; }
  .clarity-hero h1 { font-size: 39px; letter-spacing: -1.5px; line-height: 1.15; }
  .clarity-hero .hero-tag { font-size: 9px; line-height: 1.6; letter-spacing: 1px; }
  .clarity-hero .actions { gap: 16px 22px; flex-wrap: wrap; }
  .clarity-hero .button { font-size: 14px; padding: 14px 20px; }
  .clarity-hero .clarity-person { font-size: 12px; line-height: 1.7; }
  body[data-page="home"] .section-heading h2 { font-size: 31px; letter-spacing: -1px; }
  body[data-page="home"] .section-heading p { font-size: 16px; }
  .clarity-service { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-block: 26px; }
  .clarity-service-name { font-size: 15px; gap: 12px; }
  .clarity-service h3 { font-size: 24px; line-height: 1.3; }
  .clarity-service > a { min-height: 44px; display: inline-flex; align-items: center; }
  .clarity-services-footer { gap: 16px; }
  .clarity-services-footer .offer-industry-links { font-size: 13px; }
  .current-featured .portfolio-feature-grid { grid-template-columns: 1fr; gap: 24px; }
  .current-featured .portfolio-feature:first-child { grid-column: auto; }
  .current-featured .portfolio-feature-copy { padding: 24px; }
  .current-featured .portfolio-feature-copy h3 { font-size: 27px; }
  .current-featured .portfolio-feature-image { aspect-ratio: 16 / 10; }
  .clarity-steps { grid-template-columns: 1fr; gap: 12px; }
  .clarity-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 0 15px; padding-top: 20px; }
  .clarity-steps .eyebrow { margin-top: 6px; }
  .clarity-steps h3 { margin: 0 0 10px; }
  .clarity-steps p { grid-column: 2; }
  .clarity-software-list summary { font-size: 17px; }
  .clarity-care-prices { line-height: 1.9 !important; }
  .contact-band { padding: 26px; }
  .contact-band h2 { font-size: 31px; }
  /* The contact path is already visible in the header and at the page end. */
  .mobile-contact-bar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .clarity-hero *, .clarity-hero *::before, .clarity-hero *::after { animation: none !important; transition: none !important; }
}

/* Compact glass browsers: project colour comes from actual screenshots. */
body[data-page="home"] .glass-gallery { max-width: 1120px; margin-inline: auto; padding-block: 56px 68px; }
.glass-gallery-heading { margin-bottom: 44px; text-align: center; }
body[data-page="home"] .glass-gallery h2 { font-size: clamp(28px, 3.1vw, 42px); line-height: 1.2; letter-spacing: -1.3px; margin: 12px 0; }
.glass-gallery-heading > p { max-width: 650px; margin: 16px auto 0; color: #c5d3df; line-height: 1.65; }
.glass-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; }
.glass-project { min-width: 0; }
.glass-project-link { display: block; color: inherit; text-decoration: none; border-radius: 15px; }
.glass-project-stage { display: block; position: relative; padding-bottom: 46px; }
.glass-project-browser { display: block; position: relative; border: 1px solid #9de5d3; padding: 5px; border-radius: 14px; background: linear-gradient(140deg, #173e45, #081923 65%); box-shadow: 0 0 3px #c4fff5, 0 0 22px #69d9c124, inset 0 1px 4px #c4fff54a; transition: transform .25s ease, box-shadow .25s ease; }
.glass-project-toolbar { display: flex; align-items: center; height: 20px; gap: 5px; padding: 0 6px 5px; }
.glass-project-toolbar i { width: 6px; height: 6px; border-radius: 50%; background: #ff7063; }
.glass-project-toolbar i:nth-child(2) { background: #f5cc4d; }
.glass-project-toolbar i:nth-child(3) { background: #83d5a6; }
.glass-project-toolbar b { margin-left: 16px; width: 40%; height: 7px; border-radius: 6px; background: #b8f0e512; }
.glass-project-screen { display: block; width: 100%; height: auto; aspect-ratio: 1.42; object-fit: cover; object-position: top; border-radius: 4px 4px 8px 8px; }
.glass-project-phone { display: block; position: absolute; width: 64px; right: 12px; bottom: 7px; padding: 4px; border: 1px solid #83bdb7; border-radius: 13px; background: #07131e; box-shadow: 0 6px 16px #0008; transform: rotate(6deg); }
.glass-project-phone img { display: block; width: 100%; height: 119px; object-fit: cover; object-position: top; border-radius: 9px; }
.glass-project-caption { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-left: 15px; border-left: 2px solid #9de5d3; }
.glass-project-caption h3 { margin: 0 0 7px; font-size: 22px; line-height: 1.25; letter-spacing: -.6px; }
.glass-project-description { display: block; color: #c5d3df; font-size: 14px; line-height: 1.6; }
.glass-project-action { display: inline-block; font-size: 13px; color: #9de5d3; margin-top: 12px; text-decoration: underline; text-underline-offset: 4px; }
.glass-project-arrow { color: #9de5d3; font-size: 25px; }
.glass-project-link:hover .glass-project-browser { transform: translateY(-5px); box-shadow: 0 0 4px #c4fff5, 0 0 28px #69d9c13d; }
.glass-project-link:focus-visible { outline: 3px solid #b5ffee; outline-offset: 9px; }
.glass-gallery-footer { margin-top: 42px; text-align: center; }
@media (max-width: 1050px) and (min-width: 701px) { .glass-gallery-grid { gap: 22px; } .glass-project-caption h3 { font-size: 20px; } }
@media (max-width: 700px) { body[data-page="home"] .glass-gallery { padding-block: 40px; } .glass-gallery-grid { grid-template-columns: 1fr; max-width: 430px; margin-inline: auto; gap: 42px; } .glass-gallery-heading { text-align: left; margin-bottom: 30px; } .glass-gallery-heading > p { font-size: 15px; } .glass-project-stage { padding-bottom: 32px; } .glass-project-caption h3 { font-size: 24px; } .glass-project-description { font-size: 16px; } .glass-project-action { font-size: 14px; min-height: 28px; } .glass-project-phone { width: 74px; bottom: 0; } .glass-project-phone img { height: 139px; } }
@media (prefers-reduced-motion: reduce) { .glass-project-browser { transition: none; } .glass-project-link:hover .glass-project-browser { transform: none; } }

/* Selected composition: one featured browser above two supporting projects. */
body[data-page="home"] .glass-gallery { max-width: 980px; scroll-margin-top: 110px; }
.glass-gallery-heading { margin-bottom: 36px; }
.glass-gallery-heading > .eyebrow, .glass-gallery-heading > p { display: none; }
.glass-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px 36px; }
.glass-project:first-child { grid-column: 1 / -1; }
.glass-project:first-child .glass-project-link { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 52px; align-items: center; padding-inline: 64px 20px; }
.glass-project:first-child .glass-project-stage { padding-bottom: 22px; }
.glass-project:first-child .glass-project-screen { aspect-ratio: 1.6; }
.glass-project:first-child .glass-project-caption h3 { font-size: 28px; }
.glass-project:first-child .glass-project-description { font-size: 16px; }
.glass-project:first-child .glass-project-action { font-size: 15px; margin-top: 22px; }
.glass-project:first-child .glass-project-arrow { display: none; }
.glass-project:first-child .glass-project-phone { width: 72px; right: -18px; bottom: 0; }
.glass-project:first-child .glass-project-phone img { height: 134px; }
.glass-project:not(:first-child) .glass-project-stage { padding-bottom: 24px; }
.glass-project:not(:first-child) .glass-project-screen { aspect-ratio: 1.65; }
.glass-project:not(:first-child) .glass-project-action { display: none; }
.glass-gallery-footer { margin-top: 34px; }
@media (max-width: 1050px) and (min-width: 701px) {
  .glass-project:first-child .glass-project-link { padding-inline: 24px 0; gap: 36px; }
  .glass-project:first-child .glass-project-caption h3 { font-size: 25px; }
}
@media (max-width: 700px) {
  body[data-page="home"] .glass-gallery { scroll-margin-top: 105px; }
  .glass-gallery-grid { grid-template-columns: 1fr; gap: 36px; }
  .glass-project:first-child { grid-column: auto; }
  .glass-project:first-child .glass-project-link { display: block; padding: 0; }
  .glass-project:first-child .glass-project-stage { padding-bottom: 34px; margin-right: 12px; }
  .glass-project:first-child .glass-project-caption h3 { font-size: 24px; }
  .glass-project:first-child .glass-project-phone { right: -10px; }
  .glass-project:first-child .glass-project-action { margin-top: 12px; }
  .glass-project:first-child .glass-project-arrow { display: block; }
  .glass-gallery-heading { text-align: left; }
}
