* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 22px;
    background-color: rgb(254, 254, 252);
    color: rgb(10, 10, 10);
}

/* HEADER & NAV */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /* Above .news-toast (z-index 1500) so the language-switcher
       dropdown — anchored inside the header's stacking context —
       paints on top of the toast. */
    z-index: 2000;
    background-color: transparent;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: rgba(254, 254, 252, 0.92);
    backdrop-filter: blur(10px);
    border-bottom-color: rgba(10, 10, 10, 0.08);
}

/* Dark header variant — used on pages where the top of the page sits
   over a dark hero video. Reverts to the standard light scrolled style
   once the user starts scrolling. */
.has-hero-overlay header:not(.scrolled) {
    background-color: rgba(10, 10, 10, 0.35);
    backdrop-filter: blur(10px);
    border-bottom-color: transparent;
}

.has-hero-overlay header:not(.scrolled) nav {
    padding-top: 6px;
    padding-bottom: 6px;
}

.has-hero-overlay header:not(.scrolled) .logo,
.has-hero-overlay header:not(.scrolled) nav > ul a {
    color: #ffffff;
}

.has-hero-overlay header:not(.scrolled) .cta-btn {
    background-color: #ffffff;
    color: rgb(10, 10, 10);
}

.has-hero-overlay header:not(.scrolled) .cta-btn-secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.has-hero-overlay header:not(.scrolled) .cta-btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.6);
}

.has-hero-overlay header:not(.scrolled) .menu-toggle span {
    background-color: #ffffff;
}

/* Smooth transitions between the two states */
header .logo,
header nav > ul a,
header .cta-btn,
header .cta-btn-secondary,
header .menu-toggle span {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

header.scrolled nav {
    padding-top: 6px;
    padding-bottom: 6px;
}

nav {
    max-width: 1680px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Instrument Serif', serif;
    font-size: 18px;
    font-weight: 300;
    color: rgb(10, 10, 10);
    text-decoration: none;
    line-height: 1;
}

.logo .logo-mark {
    display: block;
    height: 24px;
    width: auto;
}

.logo .logo-mark--light {
    display: none;
}

.has-hero-overlay header:not(.scrolled) .logo .logo-mark--dark {
    display: none;
}

.has-hero-overlay header:not(.scrolled) .logo .logo-mark--light {
    display: block;
}

nav > ul {
    display: flex;
    list-style: none;
    gap: 48px;
    flex: 1;
    justify-content: flex-end;
    margin-right: 48px;
}

nav > ul a {
    text-decoration: none;
    color: rgb(10, 10, 10);
    font-size: 13px;
    font-weight: 500;
    transition: opacity 0.3s;
}

nav > ul a:hover {
    opacity: 0.6;
}

.cta-btn {
    background-color: rgb(10, 10, 10);
    color: white;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.3s;
}

.cta-btn:hover {
    opacity: 0.8;
}

.cta-btn-secondary {
    color: rgb(10, 10, 10);
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(10, 10, 10, 0.2);
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    margin-right: 8px;
}

.cta-btn-secondary:hover {
    border-color: rgba(10, 10, 10, 0.5);
}

/* Language switcher — globe icon button + dropdown menu.
   Collapses to nothing while only one locale is public (build.js leaves it empty). */
.lang-switcher {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 8px;
}

.lang-switcher:empty {
    display: none;
}

.lang-switcher-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: none;
    border: none;
    border-radius: 6px;
    color: rgb(10, 10, 10);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.lang-switcher-button:hover {
    background-color: rgba(10, 10, 10, 0.06);
}

.lang-switcher-button[aria-expanded="true"] {
    background-color: rgba(10, 10, 10, 0.08);
}

.lang-switcher-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.has-hero-overlay header:not(.scrolled) .lang-switcher-button {
    color: #ffffff;
}

.has-hero-overlay header:not(.scrolled) .lang-switcher-button:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.has-hero-overlay header:not(.scrolled) .lang-switcher-button[aria-expanded="true"] {
    background-color: rgba(255, 255, 255, 0.16);
}

.lang-switcher-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background-color: rgb(254, 254, 252);
    border: 1px solid rgba(10, 10, 10, 0.08);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(10, 10, 10, 0.08), 0 2px 6px rgba(10, 10, 10, 0.04);
    z-index: 10;
}

.lang-switcher-menu[hidden] {
    display: none;
}

.lang-switcher-menu li {
    list-style: none;
}

.lang-switcher-link {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(10, 10, 10, 0.7);
    text-decoration: none;
    border-radius: 4px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.lang-switcher-link:hover {
    color: rgb(10, 10, 10);
    background-color: rgba(10, 10, 10, 0.04);
}

.lang-switcher-link.is-current {
    color: rgb(10, 10, 10);
    background-color: rgba(10, 10, 10, 0.04);
}

/* Mobile hamburger — hidden on desktop */
.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    -webkit-tap-highlight-color: transparent;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    background-color: rgb(10, 10, 10);
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.2s ease;
    transform-origin: center;
}

header.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
header.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}
header.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* LAYOUT */
.container {
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 24px;
}

/* HERO */
.hero {
    padding-top: 0;
    padding-bottom: 0;
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    padding-top: clamp(100px, 17vw, 300px);
    z-index: 2;
    pointer-events: none;
    color: #ffffff;
}

.hero-overlay .container {
    position: relative;
    pointer-events: auto;
}

.hero-overlay h1,
.hero-overlay .subtitle {
    color: #ffffff;
}

/* Delayed fade-in so H1/subtitle don't flash before the video appears */
@keyframes heroTextFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.hero-overlay h1 {
    animation: heroTextFadeIn 0.8s ease-out 0.6s both;
}

.hero-overlay .subtitle {
    animation: heroTextFadeIn 0.8s ease-out 0.8s both;
}

.hero h1 {
    font-family: 'Instrument Serif', serif;
    /* Fluid scaling — 10vw between 88px and 168px.
       Hits 168 at ≥1680px, 120 at 1200px, 88 at 880px. */
    font-size: clamp(88px, 10vw, 168px);
    font-weight: 300;
    letter-spacing: clamp(-3.36px, -0.2vw, -1.76px);
    line-height: clamp(83.6px, 9.5vw, 159.6px);
    margin-bottom: 16px;
}

.hero h1 .line2 {
    display: block;
    margin-left: clamp(100px, 18vw, 300px);
}

.hero .subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 22px;
    max-width: 460px;
    margin-left: auto;
    margin-top: 40px;
    margin-bottom: 0;
    text-align: right;
    opacity: 1;
    text-shadow: 0 2px 32px rgba(0, 0, 0, 0.55);
}

.trust-line {
    font-size: 15px;
    line-height: 22px;
    color: rgb(10, 10, 10);
    opacity: 0.8;
    margin-bottom: 48px;
}

/* Customer logo strip — 6×2 grid with hairline divisions,
   logos centered within each cell. Mirrors the .customer-logos-grid
   pattern on the customers page but at the smaller hero-strip scale. */
.trust-strip-bg {
    background-color: rgb(243, 238, 231);
    margin-top: -20px;
    padding: 12px 0 0;
    position: relative;
    z-index: 1;
}

.trust-logos {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    margin-bottom: 0;
}

.trust-logo-card {
    padding: 26px 12px;
    border-right: 1px solid rgba(10, 10, 10, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-logo-card:last-child {
    border-right: none;
}

.trust-logos img {
    height: 20px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: opacity 600ms ease;
}

.trust-logos img.trust-logo-fading {
    opacity: 0;
}

/* Per-logo optical tuning — letter weight and mark shape matter
   more than numeric height. Heavy/bold wordmarks (COWI, Brogrund)
   already carry visual weight at small sizes; light/narrow
   wordmarks (AFRY, Credentia) need to be taller to match. Stacked
   or compact marks (NRC Group) need the biggest bump. */
.trust-logos img[alt="NRC Group"] { height: 30px; }
.trust-logos img[alt="AFRY"] { height: 26px; }
.trust-logos img[alt="Credentia"] { height: 13px; }
.trust-logos img[alt="Lindesbergs Fastigheter"] { height: 17px; }
.trust-logos img[alt="Netel"] { height: 16px; }
.trust-logos img[alt="Morberg"] { height: 22px; }
.trust-logos img[alt="EnTek"] { height: 21px; }
.trust-logos img[alt="COWI"] { height: 19px; }
.trust-logos img[alt="Brogrund"] { height: 15px; }
.trust-logos img[alt="Grön Stad"] { height: 31px; }
.trust-logos img[alt="Kungsmontage"] { height: 22px; }
.trust-logos img[alt="Skeppsviken"] { height: 14px; }

.hero-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0px;
    position: relative;
    background-color: rgb(243, 238, 231);
}

/* Homepage-only: dark placeholder + fade-in, plus the overlap offset that
   eats into the header. Subpages keep the beige bg and no negative margin. */
.has-hero-overlay .hero-image,
.has-hero-overlay .hero-image-container {
    background-color: rgb(24, 28, 36);
}

.has-hero-overlay .hero-image {
    animation: heroVideoFadeIn 1.2s ease-out 0.1s both;
}

@keyframes heroVideoFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.hero-image-container {
    position: relative;
    background-color: rgb(243, 238, 231);
}

/* Homepage-only: offset the video upward so it overlaps the header area */
.has-hero-overlay .hero-image-container {
    margin-top: -50px;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(254, 254, 252, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.play-button:hover {
    background-color: rgba(254, 254, 252, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 24px solid rgb(10, 10, 10);
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    margin-left: 6px;
}

/* ACTION VERBS SECTION */
.action-verbs {
    padding: 80px 0;
}

.action-verbs-heading {
    font-family: 'Instrument Serif', serif;
    font-size: 88px;
    font-weight: 300;
    letter-spacing: -1.76px;
    line-height: 83.6px;
    margin-bottom: 32px;
}

.action-verbs-subtitle {
    font-size: 15px;
    line-height: 22px;
    max-width: 700px;
    margin-bottom: 48px;
    opacity: 0.9;
}

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

.verb-card {
    padding: 28px 24px;
    border-right: 1px solid rgba(10, 10, 10, 0.08);
    border-bottom: 1px solid rgba(10, 10, 10, 0.08);
    transition: background-color 0.3s ease;
}

.verb-card:nth-child(4n) {
    border-right: none;
}

.verb-card:nth-child(n+5) {
    border-bottom: none;
}

.verb-card:hover {
    background-color: rgba(10, 10, 10, 0.02);
}

.verb-card h3 {
    font-family: 'Instrument Serif', serif;
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 12px;
}

.verb-card p {
    font-size: 14px;
    color: rgba(10, 10, 10, 0.6);
    line-height: 20px;
}



/* SERVICES */
.services {
    padding: 0;
    scroll-margin-top: 100px;
}

/* Homepage services — label left, everything else in right column
   (matches .index-quote-layout proportions so the content column aligns
   with the quote image column further down the page) */
.services-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0;
    align-items: start;
}

.services-layout-label {
    padding-top: 20px;
}

.services-layout-content {
    min-width: 0;
}

.services-main-heading {
    font-family: 'Instrument Serif', serif;
    font-size: 60px;
    font-weight: 300;
    letter-spacing: -1.2px;
    line-height: 64px;
    color: rgb(10, 10, 10);
    margin: 0 0 32px;
    max-width: 900px;
}

.services-intro {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 0;
    color: rgb(10, 10, 10);
    opacity: 0.8;
    margin: 0 0 20px;
    max-width: 780px;
}

.services-credibility {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: rgb(10, 10, 10);
    opacity: 0.8;
    margin: 0 0 56px;
    max-width: 640px;
}

.services-offer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 64px;
    border-top: 1px solid rgba(10, 10, 10, 0.12);
    padding-top: 40px;
    margin-bottom: 96px;
}

.services-offer-icon {
    font-size: 32px;
    color: rgba(10, 10, 10, 0.45);
    display: block;
    line-height: 1;
    margin-bottom: 20px;
}

.services-offer-card h3 {
    font-family: 'Instrument Serif', serif;
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 0;
    line-height: normal;
    color: rgb(10, 10, 10);
    margin: 0 0 8px;
}

.services-offer-card p {
    font-size: 14px;
    line-height: 20px;
    color: rgb(10, 10, 10);
    opacity: 0.8;
    margin: 0;
}

/* Applied AI block — pushed below new content */
.services-applied-ai {
    padding-top: 0;
}

.services-applied-ai .statement-heading {
    margin-bottom: 64px;
    max-width: 960px;
}

.services-applied-ai .showcase-grid {
    margin-bottom: 32px;
}

.services-bg {
    background-color: rgb(243, 238, 231);
    padding: 112px 0 80px;
}

.offset-header {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 32px;
    align-items: start;
    margin-bottom: 64px;
}

.offset-header .platform-label {
    padding-top: 12px;
}

.offset-header .statement-heading + .workforce-subtitle {
    margin-top: 20px;
    margin-bottom: 0;
}

.statement-heading {
    font-family: 'Instrument Serif', serif;
    font-size: 36px;
    font-weight: 300;
    letter-spacing: -0.72px;
    line-height: 42px;
}

.offset-content {
    margin-left: calc(400px + 32px);
}

.offset-content .showcase-grid {
    margin-bottom: 32px;
}

.showcase-image--warm {
    background-color: rgba(10, 10, 10, 0.06);
}

/* Canvas animation slot inside a showcase-image container.
   Needs higher specificity than .showcase-image (defined later in the file) */
.showcase-image.showcase-image--anim {
    /* dark plate — matches animations.html default */
    background-color: #0E1522;
    display: block; /* override parent flex so child fills full height */
}

.showcase-animation {
    position: relative;
    width: 100%;
    height: 100%;
    /* Dark-plate colors pulled from animations.html */
    --line: #E8EFFA;
    --rule-inner: rgba(232, 239, 250, 0.22);
}

.showcase-animation canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

/* FEATURES SECTION */
.features {
    padding: 80px 0;
    scroll-margin-top: 100px;
}

/* Platform section headings (The Assistant, The Workforce) */
.platform-label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(10, 10, 10, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    display: block;
}

.platform-heading {
    font-family: 'Instrument Serif', serif;
    font-size: 48px;
    font-weight: 300;
    letter-spacing: -0.96px;
    line-height: 45.6px;
    margin-bottom: 24px;
}

.features-opening-statement {
    font-size: 15px;
    line-height: 22px;
    max-width: 700px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

.feature-card {
    padding: 28px 24px;
    border-right: 1px solid rgba(10, 10, 10, 0.08);
    border-bottom: 1px solid rgba(10, 10, 10, 0.08);
    border-radius: 0px;
    transition: all 0.3s;
}

.feature-card:nth-child(3n) {
    border-right: none;
}

.feature-card:nth-child(n+4) {
    border-bottom: none;
}

.feature-card h3 {
    font-family: 'Instrument Serif', serif;
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    line-height: 20px;
    opacity: 0.8;
}

/* SHOWCASE CARDS (Legora-style image + text) */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

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

.showcase-image {
    aspect-ratio: 3 / 4;
    background-color: rgb(243, 243, 241);
    margin-bottom: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase-image--product img {
    object-fit: contain;
    padding: 24px;
}

.showcase-card h3 {
    font-family: 'Instrument Serif', serif;
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 8px;
}

.showcase-card p {
    font-size: 14px;
    line-height: 20px;
    opacity: 0.8;
}

/* IMAGE CARDS SECTION */
.image-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 80px 0;
}

.image-card {
    aspect-ratio: 4 / 5;
    position: relative;
    overflow: hidden;
    border-radius: 0px;
    background-color: #e0e0e0;
}

.image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0px;
}

.image-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.8), transparent);
    padding: 32px;
    color: white;
}

.image-card-overlay h3 {
    font-family: 'Instrument Serif', serif;
    font-size: 24px;
    font-weight: 300;
}

/* WORKFORCE SECTION */
.workforce {
    padding: 80px 0;
}

.workforce-heading {
    font-family: 'Instrument Serif', serif;
    font-size: 88px;
    font-weight: 300;
    letter-spacing: -1.76px;
    line-height: 83.6px;
    margin-bottom: 32px;
}

/* Workforce heading no longer used on homepage — kept for legacy/reference */

.workforce-subtitle {
    font-size: 15px;
    line-height: 22px;
    max-width: 700px;
    margin-bottom: 48px;
    opacity: 0.9;
}

/* USE CASES SECTION */
.use-cases {
    padding: 80px 0;
    scroll-margin-top: 100px;
}

.use-cases .platform-heading {
    margin-bottom: 64px;
}

.section-heading {
    font-family: 'Instrument Serif', serif;
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 32px;
}

/* CUSTOMER QUOTE (shared) */
.customer-quote {
    background-color: rgb(243, 232, 215);
    padding: 80px 0;
}

/* Homepage instance — no beige band, quote sits on the page bg.
   Tighter top padding so it sits closer to the section above. */
#customers.customer-quote {
    background-color: transparent;
    padding-top: 32px;
}

.customer-quote .platform-label {
    margin-bottom: 32px;
}

.customer-quote .quote-mark {
    font-family: 'Instrument Serif', serif;
    font-size: 48px;
    font-weight: 300;
    line-height: 0.8;
    color: rgb(10, 10, 10);
    display: block;
    margin-bottom: 8px;
}

.quote-text {
    font-family: 'Instrument Serif', serif;
    font-size: 24px;
    font-weight: 300;
    line-height: 32px;
    color: rgb(10, 10, 10);
}

.quote-attribution {
    margin-top: 16px;
}

.quote-name {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: rgb(10, 10, 10);
}

.index-quote-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 32px;
    align-items: start;
    margin-top: 32px;
}

.index-quote-block .quote-name {
    font-weight: 400;
}

.index-quote-block .case-link {
    margin-top: 32px;
    display: inline-block;
}

.index-quote-image {
    overflow: hidden;
}

.index-quote-image img,
.index-quote-image video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 3 / 2;
}

/* CTA STRIP */
.cta-strip {
    padding: 100px 0;
    text-align: center;
}

.cta-strip .section-heading {
    margin-bottom: 16px;
}

.cta-strip-text {
    font-size: 15px;
    line-height: 22px;
    max-width: 700px;
    margin: 0 auto 32px;
    opacity: 0.8;
}

.section-divider {
    border: none;
    border-top: 1px solid rgba(10, 10, 10, 0.1);
    margin: 48px 0 0;
}

.role-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.role-pill {
    padding: 6px 16px;
    border: 1px solid rgba(10, 10, 10, 0.2);
    background-color: transparent;
    color: rgb(10, 10, 10);
    border-radius: 0px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.role-pill:hover {
    border-color: rgba(10, 10, 10, 0.4);
}

.role-pill.active {
    background-color: rgb(10, 10, 10);
    color: white;
    border-color: rgb(10, 10, 10);
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-left: 1px solid rgba(10, 10, 10, 0.08);
}

.use-case-card {
    padding: 28px 24px;
    background: none;
    border: none;
    border-right: 1px solid rgba(10, 10, 10, 0.08);
    border-bottom: 1px solid rgba(10, 10, 10, 0.08);
    border-radius: 0;
}

/* Top line only spans the cards that actually exist in the first row */
.use-case-card:nth-child(-n+4) {
    border-top: 1px solid rgba(10, 10, 10, 0.08);
}

/* Category anchor card — no background, centered content */
.use-case-card--category {
    background: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.use-case-card--category .use-case-card-category-icon {
    font-size: 28px;
    color: rgba(10, 10, 10, 0.55);
    line-height: 1;
}

.use-case-card--category h3 {
    font-family: 'Instrument Serif', serif;
    font-size: 26px;
    font-weight: 300;
    letter-spacing: -0.52px;
    line-height: 30px;
    color: rgb(10, 10, 10);
    margin: 0;
}

.use-case-card.hidden {
    display: none;
}

.use-case-card.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.use-case-card h3 {
    font-family: 'Instrument Serif', serif;
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 8px;
}

.use-case-card p {
    font-size: 14px;
    line-height: 20px;
    opacity: 0.8;
    margin-bottom: 12px;
}

.use-case-roles {
    font-size: 13px;
    color: rgba(10, 10, 10, 0.4);
}

.use-case-role-tag {
    display: inline-block;
    margin-right: 8px;
}

/* CUSTOMERS SECTION */
.customers {
    padding: 80px 0;
    scroll-margin-top: 100px;
}

.featured-case {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    margin-bottom: 48px;
    overflow: hidden;
    border-radius: 0px;
    background-color: #e0e0e0;
}

.featured-case img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0px;
}

.featured-case-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.3));
    display: flex;
    align-items: flex-end;
    padding: 40px;
}

.featured-case-text {
    color: white;
    font-family: 'Instrument Serif', serif;
    font-size: 36px;
    font-weight: 300;
    max-width: 800px;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.case-card {
    border: 1px solid rgba(10, 10, 10, 0.1);
    padding: 24px;
    border-radius: 0px;
}

.case-card h3 {
    font-family: 'Instrument Serif', serif;
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 12px;
}

.case-card p {
    font-size: 15px;
    line-height: 22px;
    margin-bottom: 20px;
}

.case-link {
    color: rgb(10, 10, 10);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: opacity 0.3s;
}

.case-link:hover {
    opacity: 0.6;
}

/* ENTERPRISE SECTION */
.enterprise {
    padding: 80px 0;
    text-align: center;
}

.enterprise-text {
    max-width: 700px;
    margin: 0 auto 48px;
}

.enterprise-text p {
    font-size: 15px;
    line-height: 22px;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.badge {
    font-size: 13px;
    font-weight: 500;
    color: rgb(10, 10, 10);
}

/* NEWS SECTION */
.news {
    padding: 80px 0;
}

.news-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(10, 10, 10, 0.1);
    align-items: start;
}

.news-tag-row {
    margin-top: 4px;
}

.news-tag {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    line-height: 1;
}

.news-tag--product {
    background-color: rgba(0, 110, 200, 0.08);
    color: rgb(20, 80, 140);
}

.news-tag--partnership {
    background-color: rgba(52, 130, 80, 0.10);
    color: rgb(38, 100, 60);
}

.news-tag--growth {
    background-color: rgba(190, 140, 0, 0.12);
    color: rgb(135, 95, 0);
}

.news-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 720px;
}

.news-body {
    font-size: 15px;
    line-height: 22px;
    color: rgba(10, 10, 10, 0.7);
    margin: 0;
}

.news-item:last-child {
    border-bottom: none;
}

.news-date {
    font-size: 13px;
    font-weight: 500;
    color: rgb(10, 10, 10);
    opacity: 0.7;
}

.news-title {
    font-size: 18px;
    font-weight: 500;
    color: rgb(10, 10, 10);
}

/* FOOTER */
footer {
    background-color: rgb(10, 10, 10);
    color: white;
    margin-top: 80px;
}

.footer-intro {
    padding: 64px 0 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-intro p {
    font-size: 15px;
    line-height: 22px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
}

.footer-nav {
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-nav-links a {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-nav-links a:hover {
    color: white;
}

.footer-dot {
    color: rgba(255, 255, 255, 0.3);
    font-size: 13px;
}

.footer-nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-link {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: white;
}

footer .cta-btn {
    background-color: white;
    color: rgb(10, 10, 10);
}

footer .cta-btn:hover {
    opacity: 0.85;
}

.footer-bottom {
    padding: 48px 0 32px;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Instrument Serif', serif;
    font-size: 18px;
    font-weight: 300;
    color: white;
    line-height: 1;
    margin-bottom: 8px;
}

.footer-logo img {
    display: block;
    height: 24px;
    width: auto;
}

.footer-tagline {
    font-size: 14px;
    line-height: 20px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-right a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom-right a:hover {
    color: white;
}

/* FLOATING AI ASSISTANT */
.ai-assistant {
    /* Hidden until the AI assistant feature is built out. Markup is kept
       in src/index.html so we can re-enable by removing this display:none. */
    display: none;
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: calc(100% - 48px);
    max-width: 600px;
}

.assistant-input-container {
    position: relative;
    background-color: #ffffff;
    border: 1px solid rgba(10, 10, 10, 0.15);
    border-radius: 0px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    height: 52px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    gap: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

@keyframes glowDrift {
    0% { transform: translateX(-50%) scale(1) rotate(0deg); opacity: 0.8; }
    33% { transform: translateX(-45%) scale(1.1) rotate(2deg); opacity: 1; }
    66% { transform: translateX(-55%) scale(0.95) rotate(-2deg); opacity: 0.7; }
    100% { transform: translateX(-50%) scale(1) rotate(0deg); opacity: 0.8; }
}

.assistant-input-container::before {
    content: '';
    position: absolute;
    bottom: -90px;
    left: 50%;
    transform: translateX(-50%);
    width: 420px;
    height: 100px;
    background: radial-gradient(ellipse at center, rgba(255, 120, 50, 0.22) 0%, rgba(200, 60, 220, 0.18) 40%, rgba(60, 130, 255, 0.14) 70%, transparent 100%);
    filter: blur(50px);
    pointer-events: none;
    z-index: -1;
    animation: glowDrift 8s ease-in-out infinite;
}

.assistant-input-container:hover {
    border-color: rgba(10, 10, 10, 0.3);
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.16);
}

.assistant-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.assistant-icon svg {
    width: 18px;
    height: 18px;
    fill: rgb(10, 10, 10);
    stroke: none;
}

.assistant-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: rgb(10, 10, 10);
    outline: none;
}

.assistant-input::placeholder {
    color: rgba(10, 10, 10, 0.4);
}

/* RESPONSIVE */
@media (max-width: 1200px) {
    .features-grid,
    .case-grid,
    .verbs-grid,
    .showcase-grid {
        grid-template-columns: 1fr;
    }

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

    /* Reset 4-col top-border rule; apply only to first row in 2-col layout */
    .use-case-card:nth-child(-n+4) {
        border-top: none;
    }
    .use-case-card:nth-child(-n+2) {
        border-top: 1px solid rgba(10, 10, 10, 0.08);
    }

    /* Trust strip stays 1 row on tablet — 6 slots, tighter padding */
    .trust-logo-card {
        padding: 20px 8px;
    }

    .feature-card {
        border-right: none;
        border-bottom: 1px solid rgba(10, 10, 10, 0.08);
    }

    .feature-card:last-child {
        border-bottom: none;
    }

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

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

    .offset-header {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .offset-content {
        margin-left: 0;
    }

    .statement-heading {
        font-size: 32px;
        line-height: 38px;
    }

    .action-verbs-heading,
    .workforce-heading {
        font-size: 64px;
        letter-spacing: -1.28px;
        line-height: 60.8px;
    }

    .platform-heading {
        font-size: 40px;
        letter-spacing: -0.8px;
        line-height: 38px;
    }

    .services-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .services-layout-label {
        padding-top: 0;
    }

    .services-main-heading {
        font-size: 48px;
        line-height: 52px;
        letter-spacing: -0.96px;
    }

    .services-offer-grid {
        gap: 32px 40px;
        margin-bottom: 72px;
    }
}

@media (max-width: 768px) {
    .index-quote-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    /* Trust strip drops to 3 columns on mobile — 6 slots = 2 rows.
       Smaller logos + tighter padding. Row 1 gets a bottom border.
       Fixed row height prevents layout shift when logos of different
       heights rotate in (tallest logo: 23px + 14px×2 padding = 51px). */
    .trust-logos {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 51px;
    }

    .trust-logo-card {
        padding: 14px 6px;
        border-right: 1px solid rgba(10, 10, 10, 0.08);
    }

    .trust-logo-card:nth-child(3n) {
        border-right: none;
    }

    .trust-logo-card:nth-child(-n+3) {
        border-bottom: 1px solid rgba(10, 10, 10, 0.08);
    }

    /* Scaled-down logo heights for mobile (roughly 75% of desktop) */
    .trust-logos img[alt="NRC Group"] { height: 22px; }
    .trust-logos img[alt="AFRY"] { height: 19px; }
    .trust-logos img[alt="Credentia"] { height: 10px; }
    .trust-logos img[alt="Lindesbergs Fastigheter"] { height: 13px; }
    .trust-logos img[alt="Netel"] { height: 12px; }
    .trust-logos img[alt="Morberg"] { height: 17px; }
    .trust-logos img[alt="EnTek"] { height: 16px; }
    .trust-logos img[alt="COWI"] { height: 14px; }
    .trust-logos img[alt="Brogrund"] { height: 11px; }
    .trust-logos img[alt="Grön Stad"] { height: 23px; }
    .trust-logos img[alt="Kungsmontage"] { height: 17px; }
    .trust-logos img[alt="Skeppsviken"] { height: 10px; }

    /* ---------- Mobile sticky header ---------- */
    /*
       Design:
       - Bar (logo + hamburger/X) stays pinned at top, never changes size.
       - Full-screen panel backdrop is a pseudo-element on the header that
         fades in/out independently of the bar.
       - Nav items + CTAs are position:fixed relative to the viewport.

       CRITICAL: header itself has NO containing-block-creating properties
       (no backdrop-filter, no transform, no filter). Those would reparent
       our position:fixed descendants to the header's tiny bar box — which
       is what caused the CTAs to show at the top and the backdrop to clip.
       The bar's blurred glass effect is on `nav` instead.
    */

    header {
        background-color: transparent;
        backdrop-filter: none;
        border-bottom-color: transparent;
    }

    /* Override desktop scrolled rule so it doesn't re-introduce
       backdrop-filter on the header when the user scrolls. */
    header.scrolled {
        background-color: transparent;
        backdrop-filter: none;
        border-bottom-color: transparent;
    }

    /* Full-screen panel backdrop — fades in on menu-open.
       z-index: -1 keeps it behind the logo/nav (positioned pseudo-elements
       would otherwise paint above non-positioned descendants).
       Close has a small delay so the content has time to fade out first. */
    header::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgb(254, 254, 252);
        opacity: 0;
        pointer-events: none;
        z-index: -1;
        transition: opacity 0.35s cubic-bezier(0.22, 0.61, 0.36, 1) 0.12s;
    }

    header.menu-open::before {
        opacity: 1;
        transition: opacity 0.35s cubic-bezier(0.22, 0.61, 0.36, 1) 0s;
    }

    /* Bar glass effect lives on nav — safe here because nav has no
       position:fixed descendants that need viewport anchoring
       (the ul and CTAs are lifted out via their own position:fixed rules,
       and the containing-block jump only matters if an ancestor creates
       one; fixed positioning looks up to the viewport past nav because
       nav itself doesn't use transform/filter/backdrop-filter... wait —
       backdrop-filter DOES create one. So we'll use a semi-opaque bg
       without blur on mobile. Still looks clean. */
    nav {
        padding: 14px 16px;
        align-items: center;
        background-color: rgba(254, 254, 252, 0);
        border-bottom: 1px solid transparent;
        transition:
            background-color 0.3s ease,
            border-bottom-color 0.3s ease;
    }

    header.scrolled nav {
        background-color: rgba(254, 254, 252, 0.96);
        border-bottom-color: rgba(10, 10, 10, 0.06);
    }

    /* When menu open, bar matches the panel (opaque white, no border) */
    header.menu-open nav,
    header.scrolled.menu-open nav {
        background-color: rgb(254, 254, 252);
        border-bottom-color: transparent;
    }

    /* Menu toggle pinned right — occupies the same spot whether menu is
       open or closed, so the X replaces the hamburger in place. */
    .menu-toggle {
        display: flex;
        margin-left: 4px;
        position: relative;
        z-index: 2;
    }

    /* Globe sits just left of the hamburger on mobile. margin-left:auto
       absorbs the space between logo and the (switcher + toggle) cluster. */
    .lang-switcher {
        margin-left: auto;
        margin-right: 0;
        position: relative;
        z-index: 2;
    }

    /* Nav ul: fixed to viewport (not header), always rendered but
       hidden via visibility + per-item opacity. */
    nav > ul {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        margin: 0;
        padding: 24px 24px 0;
        gap: 0;
        list-style: none;
        pointer-events: none;
        visibility: hidden;
        transition: visibility 0s linear 0.5s;
    }

    header.menu-open nav > ul {
        pointer-events: auto;
        visibility: visible;
        transition: visibility 0s linear 0s;
    }

    nav > ul li {
        border-bottom: 1px solid rgba(10, 10, 10, 0.08);
        opacity: 0;
        transform: translateY(16px);
        /* Exit: quick fade so items are gone before the backdrop begins fading */
        transition:
            opacity 0.22s ease,
            transform 0.22s ease;
    }

    header.menu-open nav > ul li {
        opacity: 1;
        transform: translateY(0);
    }

    header.menu-open nav > ul li:nth-child(1) {
        transition:
            opacity 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) 0.08s,
            transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) 0.08s;
    }
    header.menu-open nav > ul li:nth-child(2) {
        transition:
            opacity 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) 0.14s,
            transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) 0.14s;
    }
    header.menu-open nav > ul li:nth-child(3) {
        transition:
            opacity 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) 0.20s,
            transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) 0.20s;
    }
    header.menu-open nav > ul li:nth-child(4) {
        transition:
            opacity 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) 0.26s,
            transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) 0.26s;
    }

    nav > ul li a {
        display: block;
        padding: 22px 0;
        font-family: 'Instrument Serif', serif;
        font-size: 40px;
        font-weight: 300;
        letter-spacing: -0.8px;
        line-height: 44px;
        color: rgb(10, 10, 10);
    }

    /* CTA row — fixed to viewport, Contact + Book demo share a single row. */
    header .cta-btn-secondary,
    header .cta-btn {
        position: fixed;
        bottom: 32px;
        width: calc(50% - 20px);
        text-align: center;
        padding: 14px 16px;
        font-size: 14px;
        margin: 0;
        opacity: 0;
        transform: translateY(16px);
        pointer-events: none;
        visibility: hidden;
        /* Exit: quick fade, matches nav items */
        transition:
            opacity 0.22s ease,
            transform 0.22s ease,
            visibility 0s linear 0.5s;
    }

    header .cta-btn-secondary {
        left: 16px;
    }

    header .cta-btn {
        right: 16px;
    }

    header.menu-open .cta-btn-secondary,
    header.menu-open .cta-btn {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        visibility: visible;
        transition:
            opacity 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) 0.32s,
            transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) 0.32s,
            visibility 0s linear 0s;
    }

    /* Scroll lock when menu is open */
    body.menu-locked {
        overflow: hidden;
    }

    /* Scrolled tightening doesn't compress the mobile bar extra */
    header.scrolled nav {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    /* When menu is open while scrolled, preserve the scrolled bar height
       so the logo doesn't jump vertically when the menu opens. */
    header.scrolled.menu-open nav {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .hero {
        padding-top: 0;
        padding-bottom: 0;
        display: flex;
        flex-direction: column-reverse;
    }

    .hero-overlay {
        position: static;
        padding-top: 140px;
        padding-bottom: 96px;
        color: inherit;
    }

    .logo {
        font-size: 22px;
    }

    .hero-overlay h1,
    .hero-overlay .subtitle {
        color: inherit;
    }

    /* Mobile hero is stacked (video below text), so the dark-header variant
       isn't needed — use the standard light header at all times. */
    .has-hero-overlay header:not(.scrolled) {
        background-color: rgba(254, 254, 252, 0);
        backdrop-filter: none;
        border-bottom-color: transparent;
    }

    .has-hero-overlay header:not(.scrolled) .logo,
    .has-hero-overlay header:not(.scrolled) nav > ul a {
        color: rgb(10, 10, 10);
    }

    .has-hero-overlay header:not(.scrolled) .logo .logo-mark--dark {
        display: block;
    }

    .has-hero-overlay header:not(.scrolled) .logo .logo-mark--light {
        display: none;
    }

    .has-hero-overlay header:not(.scrolled) .cta-btn {
        background-color: rgb(10, 10, 10);
        color: white;
    }

    .has-hero-overlay header:not(.scrolled) .cta-btn-secondary {
        color: rgb(10, 10, 10);
        border-color: rgba(10, 10, 10, 0.15);
    }

    .has-hero-overlay header:not(.scrolled) .menu-toggle span {
        background-color: rgb(10, 10, 10);
    }

    /* Reset desktop negative-margin overlaps on mobile where sections
       are stacked — eliminates white gaps and weird overlaps. */
    .hero-image-container {
        margin-top: 0;
    }

    .trust-strip-bg {
        margin-top: 0;
        padding-top: 20px;
    }

    .services-bg {
        margin-top: 0;
    }

    .hero h1 {
        font-size: 56px;
        letter-spacing: -1.12px;
        line-height: 53px;
        margin-bottom: 32px;
    }

    .hero h1 .line2 {
        margin-left: 0;
    }

    .hero .subtitle {
        font-size: 14px;
        line-height: 20px;
        max-width: none;
        margin-left: 0;
        margin-top: 24px;
        text-align: left;
        text-shadow: none;
        opacity: 0.8;
    }

    /* Body copy across the page — match the hero subtitle */
    body,
    .trust-line,
    .features-opening-statement,
    .workforce-subtitle,
    .verb-line,
    .enterprise-text p,
    .cta-strip-text,
    .footer-intro p {
        font-size: 14px;
        line-height: 20px;
    }

    /* Verb strip sits at body-copy weight/opacity on mobile */
    .verb-line {
        opacity: 0.8;
        font-weight: 400;
        letter-spacing: 0;
    }

    .action-verbs-heading,
    .workforce-heading {
        font-size: 48px;
        letter-spacing: -0.96px;
        line-height: 45.6px;
    }

    .platform-heading {
        font-size: 32px;
        letter-spacing: -0.64px;
        line-height: 30.4px;
    }

    .services-main-heading {
        font-size: 34px;
        line-height: 38px;
        letter-spacing: -0.68px;
    }

    .services-credibility {
        margin-bottom: 40px;
    }

    /* Keep 2×2 on mobile per spec */
    .services-offer-grid {
        gap: 24px 16px;
        padding-top: 32px;
        margin-bottom: 56px;
    }

    .services-applied-ai {
        padding-top: 40px;
    }

    .services-applied-ai .statement-heading {
        margin-bottom: 40px;
    }

    .action-verbs-subtitle,
    .workforce-subtitle {
        font-size: 14px;
    }

    .features-grid,
    .use-case-grid,
    .case-grid,
    .image-cards,
    .verbs-grid,
    .showcase-grid {
        grid-template-columns: 1fr;
    }

    /* 4-card grid keeps 2x2 on mobile — a bit more breathing room between rows */
    .showcase-grid--4 {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 40px;
    }

    /* Tighter outer page margins on mobile */
    .container {
        padding: 0 16px;
    }

    /* 1-col: only the very first card carries a top border */
    .use-case-card:nth-child(-n+4),
    .use-case-card:nth-child(-n+2) {
        border-top: none;
    }
    .use-case-card:first-child {
        border-top: 1px solid rgba(10, 10, 10, 0.08);
    }

    .section-heading {
        font-size: 24px;
        line-height: 32px;
        margin-bottom: 32px;
    }

    .role-filters {
        justify-content: flex-start;
    }

    .news-item {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .featured-case-overlay {
        padding: 32px;
    }

    .featured-case-text {
        font-size: 24px;
    }

    .ai-assistant {
        width: calc(100% - 32px);
        max-width: none;
        left: 16px;
        transform: none;
    }

    .footer-nav .container {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .footer-bottom .container {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }

    .verb-card {
        border-right: none;
        border-bottom: 1px solid rgba(10, 10, 10, 0.08);
    }

    .verb-card:last-child {
        border-bottom: none;
    }
}

/* SUBSECTION HEADING */
.subsection-heading {
    font-family: 'Instrument Serif', serif;
    font-size: 24px;
    font-weight: 300;
    margin-top: 64px;
    margin-bottom: 32px;
}

/* VERB LINE (compact action verbs) */
.verb-line {
    font-size: 15px;
    line-height: 22px;
    color: rgb(10, 10, 10);
    opacity: 0.9;
    margin-bottom: 48px;
}

/* SCROLL FADE-IN */
.fade-section {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.fade-section.visible {
    opacity: 1;
}

/* ==========================================================================
   NEWS TOAST — Microsoft for Startups partner announcement.
   Fixed-top, centered, appears after ~2s, auto-dismisses after ~5s.
   Colored via a subtle tricolor gradient on a light base; the
   four-square Microsoft mark carries the brand colors.
   ========================================================================== */
.news-toast {
    position: fixed;
    top: 88px;
    right: 24px;
    transform: translateX(calc(100% + 40px));
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 420ms ease, transform 520ms cubic-bezier(0.2, 0.9, 0.3, 1);
}

.news-toast[hidden] {
    display: none;
}

.news-toast.is-visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.news-toast-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px 10px 20px;
    background: #ffffff;
    background-image:
        linear-gradient(90deg,
            rgba(242, 80, 34, 0.08) 0%,
            rgba(127, 186, 0, 0.08) 33%,
            rgba(0, 164, 239, 0.08) 66%,
            rgba(255, 185, 0, 0.08) 100%);
    border: 1px solid rgba(10, 10, 10, 0.08);
    border-radius: 999px;
    box-shadow: 0 6px 24px rgba(10, 10, 10, 0.12),
                0 1px 3px rgba(10, 10, 10, 0.06);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1;
    color: rgb(10, 10, 10);
    white-space: nowrap;
}

.news-toast-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    vertical-align: -2px;
    margin: 0 2px;
}

.news-toast-logo svg {
    display: block;
}

.news-toast-kicker {
    font-size: 11px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: rgba(10, 10, 10, 0.55);
    font-weight: 500;
    padding-right: 8px;
    border-right: 1px solid rgba(10, 10, 10, 0.1);
    line-height: 1;
}

.news-toast-text {
    font-size: 14px;
    color: rgb(10, 10, 10);
}

.news-toast-text strong {
    font-weight: 400;
    color: rgb(10, 10, 10);
}

.news-toast-close {
    margin-left: 4px;
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: rgba(10, 10, 10, 0.45);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    transition: color 160ms ease, background-color 160ms ease;
}

.news-toast-close:hover {
    color: rgba(10, 10, 10, 0.85);
    background-color: rgba(10, 10, 10, 0.05);
}

@media (max-width: 768px) {
    .news-toast {
        top: 72px;
        right: 12px;
        left: auto;
        transform: translateX(calc(100% + 24px));
        max-width: calc(100vw - 24px);
    }
    .news-toast.is-visible {
        transform: translateX(0);
    }
    .news-toast-inner {
        padding: 9px 14px 9px 14px;
        gap: 8px;
        white-space: normal;
    }
    .news-toast-text {
        font-size: 13px;
        line-height: 1.3;
    }
}

/* ---------- 404 ---------- */

.notfound-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: rgb(254, 254, 252);
    color: rgb(10, 10, 10);
}

.notfound-header {
    padding: 24px;
    max-width: 1680px;
    width: 100%;
    margin: 0 auto;
}

.notfound-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    max-width: 760px;
    width: 100%;
    margin: 0 auto;
    padding: 48px 24px 96px;
}

.notfound-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(10, 10, 10, 0.55);
    margin: 0 0 24px;
}

.notfound-heading {
    font-family: 'Instrument Serif', serif;
    font-size: 88px;
    font-weight: 300;
    letter-spacing: -1.76px;
    line-height: 88px;
    margin: 0 0 24px;
}

.notfound-lead {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(10, 10, 10, 0.7);
    margin: 0 0 40px;
    max-width: 520px;
}

.notfound-back {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgb(10, 10, 10);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.notfound-back:hover {
    opacity: 0.6;
}

@media (max-width: 768px) {
    .notfound-heading {
        font-size: 56px;
        line-height: 56px;
        letter-spacing: -1.12px;
    }

    .notfound-lead {
        font-size: 16px;
    }
}
