/* Fonts (self-hosted) */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/barlow-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-semi-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/barlow-semi-condensed-latin-800-normal.woff2") format("woff2"); }

/* Tokens */

:root {
  --page: #e4e5e0;
  --surface: #f8f7f3;
  --ink: #09111a;
  --text: #1c2833;
  --muted: #4c5961;
  --navy: #071826;
  --navy-deep: #04121d;
  --cyan: #6dcad4;
  --cyan-hover: #83d8df;
  --link: #137580;
  --link-hover: #0d5a63;
  --border: #d8dad7;

  /* Home page (matches the approved mockup) */
  --home-header: #f5f4ef;
  --home-bg: #faf9f6;
  --home-ink: #0b1826;
  --home-contact: #0d1b28;
  --home-link: #3cc4ce;

  --shell: 1188px;
  --content: 936px;
  --header-height: 70px;

  /* Type system: Barlow for text and UI, Barlow Semi Condensed for headings and figures */
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --display: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;
  --number: var(--display);
  --ui: var(--body);

  --tracking-display: -.012em;
  --tracking-caps: .09em;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 1px 2px rgb(7 24 38 / 4%), 0 12px 32px -12px rgb(7 24 38 / 14%);
  --shadow-card-hover: 0 2px 4px rgb(7 24 38 / 5%), 0 24px 48px -16px rgb(7 24 38 / 22%);
  --icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 12'%3E%3Cpath d='M0 4.5h11V0l6 6-6 6V7.5H0z'/%3E%3C/svg%3E");
}

/* Base */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--page); }
body { min-width: 300px; margin: 0; color: var(--text); background: var(--page); font: 400 17px/1.6 var(--body); font-kerning: normal; font-variant-ligatures: common-ligatures; font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button, input, textarea { font: inherit; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; }
p, li { text-wrap: pretty; }
strong, b { font-weight: 600; }
:focus-visible { outline: 3px solid rgb(102 203 212 / 70%); outline-offset: 3px; }
::selection { color: var(--navy); background: var(--cyan); }

.site-shell { display: flex; min-height: 100vh; min-height: 100dvh; flex-direction: column; width: min(100%, var(--shell)); margin-inline: auto; overflow: clip; background: var(--surface); box-shadow: 0 20px 60px rgb(7 24 38 / 7%); }
.site-shell > main { flex: 1 0 auto; }
.nowrap { white-space: nowrap; }
.content { width: min(calc(100% - 48px), var(--content)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 10px 15px; color: white; background: var(--navy); transform: translateY(-170%); transition: transform 180ms var(--ease); }
.skip-link:focus { transform: translateY(0); }

/* Header */

.site-header { position: sticky; z-index: 100; top: 0; height: var(--header-height); border-bottom: 1px solid #e3e2df; background: rgb(245 244 239 / 96%); backdrop-filter: blur(14px); transition: box-shadow 240ms var(--ease); }
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgb(7 24 38 / 28%); }

/* Scroll reveal (classes are added by site.js only when motion is allowed) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 720ms var(--ease-out), transform 720ms var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }
.header-inner { display: flex; width: min(calc(100% - 48px), var(--content)); height: 100%; align-items: stretch; justify-content: space-between; margin-inline: auto; }
.header-actions { display: flex; align-items: stretch; gap: 29px; margin-right: -7px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; }
.header-logo { width: 158px; height: auto; }
.desktop-nav { display: flex; align-items: stretch; gap: 29px; }
.desktop-nav > a, .nav-dropdown-toggle { position: relative; display: inline-flex; align-items: center; color: var(--ink); font: 500 16px/1 var(--ui); letter-spacing: .01em; white-space: nowrap; }
.desktop-nav > a:not(.nav-cta)::after, .nav-dropdown-toggle::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 7px; background: var(--cyan); content: ""; opacity: 0; transform: scaleX(.35); transition: opacity 160ms var(--ease), transform 160ms var(--ease); }
.desktop-nav > a[aria-current]::after, .desktop-nav > a:hover::after, .desktop-nav > a:focus-visible::after,
.nav-dropdown.is-current .nav-dropdown-toggle::after, .nav-dropdown:hover .nav-dropdown-toggle::after, .nav-dropdown.is-open .nav-dropdown-toggle::after, .nav-dropdown-toggle:focus-visible::after { opacity: 1; transform: scaleX(1); }

/* Products dropdown */
.nav-dropdown { position: relative; display: flex; }
.nav-dropdown-toggle { gap: 9px; padding: 0; border: 0; background: none; cursor: pointer; }
.nav-chevron { width: 7px; height: 7px; margin-top: -4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform 160ms var(--ease), margin 160ms var(--ease); }
.nav-dropdown.is-open .nav-chevron { margin-top: 3px; transform: rotate(-135deg); }
.nav-menu { position: absolute; z-index: 110; top: 100%; left: -18px; display: grid; min-width: 310px; padding: 8px; visibility: hidden; border: 1px solid var(--border); border-top: 0; background: var(--home-header); box-shadow: 0 24px 48px rgb(7 24 38 / 12%); opacity: 0; transform: translateY(-6px); transition: opacity 160ms var(--ease), transform 160ms var(--ease), visibility 160ms; }
.nav-dropdown.is-open .nav-menu { visibility: visible; opacity: 1; transform: none; }
.nav-menu a { display: flex; align-items: baseline; gap: 14px; padding: 13px 12px; color: var(--ink); font: 500 16px/1.2 var(--ui); white-space: nowrap; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.nav-menu a:hover, .nav-menu a:focus-visible { background: white; }
.nav-menu a[aria-current="page"] { color: var(--link); }
.nav-menu-number { color: var(--link); font: 700 15px/1 var(--number); font-variant-numeric: lining-nums tabular-nums; }

@media (hover: hover) and (min-width: 801px) {
  .nav-dropdown:hover .nav-menu { visibility: visible; opacity: 1; transform: none; }
}
.desktop-nav .nav-cta { align-self: center; min-height: 32px; padding: 0 15px; color: var(--navy); background: var(--cyan); font: 600 15px/1 var(--ui); letter-spacing: .02em; transition: background-color 160ms var(--ease); }

.menu-toggle { display: grid; width: 34px; height: 46px; align-self: center; place-items: center; padding: 0; color: #111; border: 0; background: transparent; cursor: pointer; }
.menu-lines, .menu-lines::before, .menu-lines::after { display: block; width: 20px; height: 2px; background: currentColor; transition: transform 180ms var(--ease), opacity 180ms var(--ease); }
.menu-lines { position: relative; }
.menu-lines::before, .menu-lines::after { position: absolute; left: 0; content: ""; }
.menu-lines::before { top: -7px; }
.menu-lines::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-lines { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-lines::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-lines::after { top: 0; transform: rotate(-45deg); }

.mobile-nav { position: fixed; z-index: 90; inset: var(--header-height) 0 0; display: grid; align-content: start; gap: 4px; padding: 28px 24px calc(32px + env(safe-area-inset-bottom)); visibility: hidden; opacity: 0; background: rgb(248 247 243 / 98%); transform: translateY(-10px); transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 180ms; }
.mobile-nav.is-open { visibility: visible; opacity: 1; transform: none; }
.mobile-nav a, .mobile-nav .nav-group-label { padding: 15px 4px; border-bottom: 1px solid var(--border); color: var(--ink); font: 700 1.6rem/1.05 var(--display); letter-spacing: var(--tracking-display); }
.mobile-nav .nav-group-label { border-bottom: 0; }
.mobile-nav .nav-subgroup { display: grid; padding: 6px 0 10px; border-bottom: 1px solid var(--border); }
.mobile-nav .nav-subgroup a { padding: 9px 4px 9px 18px; border-bottom: 0; color: var(--muted); font: 500 17px/1.25 var(--ui); letter-spacing: 0; }
.mobile-nav .nav-subgroup a[aria-current="page"] { color: var(--link); }
.mobile-nav .nav-cta { margin-top: 14px; padding: 16px 18px; color: var(--navy); border: 0; background: var(--cyan); text-align: center; }

/* Desktop shows the full navigation, so the menu button is only for small screens */
@media (min-width: 801px) {
  body.menu-open { overflow: auto; }
  .menu-toggle, .mobile-nav { display: none; }
  .header-actions { margin-right: 0; }
}

/* Buttons and links (subpages) */


.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--link); font: 600 17px/1.1 var(--ui); letter-spacing: .02em; transition: color 160ms var(--ease), transform 160ms var(--ease); }
.text-link::after { width: 17px; height: 12px; background: currentColor; content: ""; transition: transform 160ms var(--ease); -webkit-mask: var(--icon-arrow) center / contain no-repeat; mask: var(--icon-arrow) center / contain no-repeat; }

@media (hover: hover) {
  .desktop-nav .nav-cta:hover { background: var(--cyan-hover); }
  .text-link:hover, .read-more:hover { color: var(--link-hover); }
  .text-link:hover::after, .read-more:hover::after { transform: translateX(4px); }
}


/* Home: shared type */

.home-copy { color: var(--text); font: 400 18px/1.6 var(--body); letter-spacing: 0; }

/* Home: info strip */

.info-strip { padding: 0 10px; background: var(--home-bg); }
.info-items { display: grid; grid-template-columns: 442px 314px minmax(0, 1fr); gap: 20px; width: min(calc(100% - 28px), var(--content)); margin-inline: auto; padding: 29px 0 14px; }
.info-items p { margin: 0; color: var(--home-ink); font: 600 15px/1.2 var(--body); letter-spacing: var(--tracking-caps); text-transform: uppercase; white-space: nowrap; }
.cyan-rule { width: 100%; height: 16px; background: var(--cyan); }

/* Home: services */

.services { padding: 0 0 88px; background: var(--home-bg); scroll-margin-top: var(--header-height); }
/* Two sentences on the same columns as the service cards below */
.services-intro { padding: 64px 0 40px; }
.services-intro .services-intro-lead { max-width: 34em; margin: 0; color: var(--home-ink); font: 600 26px/1.3 var(--display); letter-spacing: -.005em; }

/* Product cards: the whole card is the link target (stretched read-more link) */
.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.service-card { position: relative; display: flex; min-width: 0; flex-direction: column; align-items: flex-start; padding: 34px 36px 32px; border-top: 8px solid var(--cyan); background: white; box-shadow: var(--shadow-card); transition: transform 280ms var(--ease-out), box-shadow 280ms var(--ease-out); }
.service-number { margin: 0 0 14px; color: var(--link); font: 700 16px/1 var(--number); font-variant-numeric: lining-nums tabular-nums; letter-spacing: .04em; }
.service-card h2 { margin: 0 0 14px; color: var(--home-ink); font: 700 30px/1.1 var(--display); letter-spacing: var(--tracking-display); text-wrap: wrap; }
.service-card p { max-width: 27em; margin: 0 0 28px; font-size: 17px; }
.service-card .read-more::before { position: absolute; inset: -8px 0 0; content: ""; }
.read-more { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; color: var(--link); font: 600 17px/1.2 var(--ui); letter-spacing: .02em; transition: color 160ms var(--ease); }
.read-more::after { width: 17px; height: 12px; background: currentColor; content: ""; transition: transform 200ms var(--ease-out); -webkit-mask: var(--icon-arrow) center / contain no-repeat; mask: var(--icon-arrow) center / contain no-repeat; }

@media (hover: hover) {
  .service-card:hover, .related-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
  .service-card:hover .read-more { color: var(--link-hover); }
  .service-card:hover .read-more::after { transform: translateX(5px); }
}
.service-card:has(.read-more:focus-visible), .related-card:focus-visible { outline: 3px solid rgb(102 203 212 / 70%); outline-offset: 3px; }
.service-card .read-more:focus-visible { outline: 0; }


/* Subpages */

.page-hero { position: relative; min-height: 310px; overflow: hidden; background: var(--surface); }
.page-hero-inner { position: relative; z-index: 2; display: flex; min-height: 310px; flex-direction: column; justify-content: center; padding-block: 54px; }
.page-hero h1 { max-width: 640px; margin: 0 0 20px; font: 700 62px/1 var(--display); letter-spacing: -.018em; }
.page-hero p { max-width: 32em; margin: 0; font-size: 19px; line-height: 1.55; }
.page-hero-art { position: absolute; z-index: 1; top: 0; right: -2%; width: 47%; height: 100%; object-fit: cover; object-position: center; opacity: .62; }
.page-hero-product h1 { max-width: 620px; font-size: 54px; line-height: 1.02; }
/* Home: the info strip below carries the cyan rule, so the hero drops its own */
.page-hero-home::after { display: none; }
.page-hero-home + .info-strip { border-top: 1px solid var(--border); }
/* Subpages: plain page header without hero band or art */
.page-header { background: white; }
.page-header-inner { padding: 64px 0 48px; border-bottom: 1px solid var(--border); }
.page-header h1 { max-width: 760px; margin: 0 0 18px; font: 700 54px/1.02 var(--display); letter-spacing: -.018em; }
.page-header p { max-width: 36em; margin: 0; font-size: 20px; line-height: 1.55; }
.page-header + .section { padding-top: 56px; }
.page-header .error-code { margin: 0 0 8px; color: var(--link); font: 700 20px/1 var(--number); letter-spacing: .04em; }
.related-grid + .text-link { margin-top: 32px; }

/* Reference highlight (case study) on a dark band */
.case-highlight { margin-top: 80px; padding: 48px 52px; color: rgb(255 255 255 / 78%); background: var(--navy-deep); border-left: 8px solid var(--cyan); }
.section .case-highlight .eyebrow { color: var(--cyan); }
.section .case-highlight h3 { margin: 0 0 14px; color: white; font-size: 26px; line-height: 1.2; }
.section .case-highlight p { max-width: 44em; margin: 0; }
.section .case-body .eyebrow { margin-bottom: 10px; }
.section .case-highlight p + p { margin-top: 1em; }
.case-highlight a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.case-highlight a:hover { color: white; }
@media (max-width: 800px) {
  .case-highlight { margin-top: 56px; padding: 32px 24px; }
    .section .case-highlight h3 { font-size: 22px; }
}
.related-grid.related-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .related-grid.related-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) { .related-grid.related-grid-four { grid-template-columns: 1fr; } }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px 10px; margin: 0 0 18px; padding: 0; color: var(--muted); font: 600 13px/1.3 var(--ui); letter-spacing: var(--tracking-caps); list-style: none; text-transform: uppercase; }
.breadcrumb li + li::before { margin-right: 10px; color: var(--cyan); content: "/"; }
.breadcrumb a { color: var(--link); transition: color 160ms var(--ease); }
.breadcrumb a:hover { color: var(--link-hover); }
.page-hero::after { position: absolute; z-index: 3; right: 0; bottom: 0; left: 0; height: 12px; background: var(--cyan); content: ""; }

.section { padding: 76px 0; background: white; }
.section[id] { scroll-margin-top: calc(var(--header-height) + 16px); }
.section + .section { border-top: 1px solid var(--border); }
.section-tinted { background: var(--surface); }
.section h2 { max-width: 660px; margin: 0 0 22px; font: 700 40px/1.08 var(--display); letter-spacing: var(--tracking-display); }
.section h3 { margin: 40px 0 10px; font: 700 24px/1.2 var(--display); letter-spacing: -.005em; }
.section p { max-width: 38em; margin: 0 0 1em; }

/* Links to the other product pages */
.related-heading { margin: 0 0 28px; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.related-card { display: flex; height: 100%; flex-direction: column; padding: 28px 26px 26px; border-top: 8px solid var(--cyan); background: white; box-shadow: var(--shadow-card); transition: transform 280ms var(--ease-out), box-shadow 280ms var(--ease-out); }
.related-number { color: var(--link); font: 700 16px/1 var(--number); font-variant-numeric: lining-nums tabular-nums; letter-spacing: .04em; }
.related-card strong { display: block; margin: 12px 0 24px; color: var(--ink); font: 700 22px/1.15 var(--display); letter-spacing: -.005em; }
.related-card .read-more { margin-top: auto; }

@media (hover: hover) {
  .related-card:hover .read-more { color: var(--link-hover); }
  .related-card:hover .read-more::after { transform: translateX(5px); }
}

/* Product page content blocks */
.section .section-lead { max-width: 30em; margin-bottom: 20px; color: var(--ink); font: 500 23px/1.45 var(--body); letter-spacing: -.005em; }

/* Intro: lead statement left, supporting copy and key capabilities right */
.intro-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.section .intro-split .section-lead { margin: 0; font-size: 24px; line-height: 1.42; }
.section .intro-split p { margin-bottom: 0; }
.section .intro-split p + p { margin-top: 1em; }

/* Wide lead statement with two short supporting statements below */
.section .section-lead-wide { max-width: 36em; margin: 0; font-size: 24px; line-height: 1.42; }
.section .lead-support { max-width: 40em; margin: 22px 0 0; }
.section-header .lead-support { margin-top: 16px; }
.section .stacked-copy p + p { margin-top: 1em; }
.stacked-copy { margin-top: 48px; }
.section .stacked-copy p { max-width: 40em; margin: 0; }
.section .stacked-copy .statement { max-width: 34em; margin-top: 32px; padding-top: 18px; border-top: 3px solid var(--cyan); color: var(--ink); font-size: 21px; font-weight: 500; line-height: 1.5; }
.statement-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; margin-top: 44px; }
.section .statement-pair p { max-width: none; margin: 0; padding-top: 18px; border-top: 3px solid var(--cyan); color: var(--ink); font-size: 18px; line-height: 1.55; }
.section .intro-split h2 { margin: 0; }

/* Five examples as a deliberate 3 + 2 grid: three cards on the first row, two wider ones below */
.example-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.example-grid > .example-card { grid-column: span 3; }
/* The main example (Tilannehuone) gets its own full-width row; the other four sit in a 2 x 2 grid below */
.example-grid > .example-card:first-child { grid-column: 1 / -1; padding: 32px 32px 30px; }
.example-grid > .example-card:first-child .screen-shot { aspect-ratio: 16 / 9; }
.section .example-grid > .example-card:first-child h3 { font-size: 28px; }
.example-card { padding: 24px 24px 26px; border-top: 8px solid var(--cyan); background: white; box-shadow: var(--shadow-card); }
.example-card.has-image .screen-link { margin-bottom: 22px; }
.example-card.has-image .screen-shot { aspect-ratio: 16 / 9; object-fit: cover; object-position: center top; box-shadow: var(--shadow-card); }
.media-row-text .spec-list { grid-template-columns: 1fr; margin-bottom: 28px; }
.card-label { color: var(--link); font: 700 16px/1 var(--number); font-variant-numeric: lining-nums tabular-nums; letter-spacing: .04em; }
.section .example-card h3 { margin: 10px 0 0; font-size: 22px; line-height: 1.2; }
.section .example-card p { margin: 0; }

.topic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; align-items: start; }
.topic { padding-top: 28px; border-top: 3px solid var(--cyan); }
.section .topic h2 { margin-bottom: 18px; font-size: 32px; }
.section .topic p:last-child { margin-bottom: 0; }

/* Two-column spec list separated by hairlines */
.spec-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; margin: 0 0 40px; padding: 0; border-bottom: 1px solid var(--border); list-style: none; }
.spec-list li { position: relative; padding: 15px 0 15px 24px; border-top: 1px solid var(--border); color: var(--ink); line-height: 1.45; }
.spec-list li::before { position: absolute; top: calc(15px + .725em - 4px); left: 0; width: 8px; height: 8px; background: var(--cyan); content: ""; }
.spec-note { display: block; margin-top: 3px; color: var(--muted); font-size: 15px; }
.spec-note a { color: var(--link); font-weight: 600; }
.spec-list + .text-link { margin-top: 0; }
.topic-grid-spaced { margin: 48px 0 40px; }

/* Product screenshots: transparent device mockups, so the shadow follows the device shape */
.device-shot { width: 100%; height: auto; filter: drop-shadow(0 28px 36px rgb(7 24 38 / 18%)) drop-shadow(0 4px 8px rgb(7 24 38 / 8%)); }
figure { margin: 0; }

/* Application screenshots (ZeeSpace): framed like an app window, open larger on click */
.screen-link { display: block; border-radius: 10px; cursor: zoom-in; }

/* Lightbox (created by site.js) */
.lightbox { display: none; width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 72px 32px 40px; border: 0; background: transparent; overflow: hidden; cursor: zoom-out; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox:focus { outline: 0; }
.lightbox::backdrop { background: rgb(4 18 29 / 88%); backdrop-filter: blur(6px); animation: lightbox-fade 260ms var(--ease-out); }
.lightbox-image { width: auto; max-width: min(100%, 1600px); height: auto; max-height: calc(100vh - 112px); max-height: calc(100dvh - 112px); border-radius: 10px; box-shadow: 0 40px 100px rgb(0 0 0 / 45%); cursor: default; animation: lightbox-zoom 380ms var(--ease-out); }
.lightbox-close { position: fixed; top: 20px; right: 20px; display: grid; width: 44px; height: 44px; place-items: center; padding: 0; border: 1px solid rgb(255 255 255 / 22%); border-radius: 50%; background: rgb(255 255 255 / 8%); color: white; cursor: pointer; transition: background-color 160ms var(--ease), border-color 160ms var(--ease); }
.lightbox-close::before, .lightbox-close::after { position: absolute; width: 18px; height: 2px; background: currentColor; content: ""; transform: rotate(45deg); }
.lightbox-close::after { transform: rotate(-45deg); }
.lightbox-close:hover { border-color: rgb(255 255 255 / 45%); background: rgb(255 255 255 / 16%); }
/* Device mockups are transparent PNGs: shadow follows the device, not a rectangle */
.lightbox-image.is-device { border-radius: 0; box-shadow: none; filter: drop-shadow(0 40px 60px rgb(0 0 0 / 45%)); }
/* Closing uses separately named keyframes so the animation actually restarts */
.lightbox.is-closing::backdrop { animation: lightbox-fade-out 200ms var(--ease) forwards; }
.lightbox.is-closing .lightbox-image { animation: lightbox-zoom-out 200ms var(--ease) forwards; }
.lightbox.is-closing .lightbox-close { opacity: 0; }
@keyframes lightbox-fade { from { opacity: 0; } }
@keyframes lightbox-zoom { from { opacity: 0; transform: translateY(12px) scale(.96); } }
@keyframes lightbox-fade-out { to { opacity: 0; } }
@keyframes lightbox-zoom-out { to { opacity: 0; transform: translateY(8px) scale(.97); } }
.screen-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; margin-top: 48px; }
/* Same frame shape for both screenshots so their bottom edges line up */
.screen-pair .screen-shot { aspect-ratio: 1600 / 1074; object-fit: cover; object-position: left top; }
.screen-shot { width: 100%; height: auto; border: 1px solid rgb(7 24 38 / 10%); border-radius: 10px; box-shadow: var(--shadow-card-hover); transition: transform 280ms var(--ease-out); }
@media (hover: hover) {
  .screen-link:hover .screen-shot { transform: translateY(-3px); }
}

/* Alternating text + screenshot rows; every screenshot is the same size */
.media-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.media-row + .media-row { margin-top: 96px; }
.media-row-reverse .media-row-figure { order: -1; }
.section .media-row-text h2 { margin-bottom: 20px; font-size: 34px; }
.section .media-row-text .section-lead { margin-bottom: 20px; font-size: 22px; line-height: 1.45; }
.section .media-row-text p:last-child { margin-bottom: 0; }
/* Two overlapping screenshots in one figure: large room behind, simple room in front */
.figure-stack { position: relative; padding-bottom: 24%; }
.figure-stack > .screen-link:first-child { width: 86%; margin-left: auto; }
.figure-stack > .screen-link + .screen-link { position: absolute; bottom: 0; left: 0; width: 60%; }
.figure-stack > .screen-link + .screen-link .device-shot { filter: drop-shadow(0 30px 40px rgb(7 24 38 / 26%)) drop-shadow(0 6px 10px rgb(7 24 38 / 12%)); }
.device-link .device-shot { transition: transform 280ms var(--ease-out); }
@media (hover: hover) {
  .device-link:hover .device-shot { transform: translateY(-3px); }
}
.media-row-highlight { padding: 56px 0; }
.media-row-highlight + .media-row-highlight { margin-top: 0; border-top: 1px solid var(--border); }
.media-row-closing { margin-bottom: 48px; border-bottom: 1px solid var(--border); }
.section .media-row-highlight h3 { margin: 0; font-size: 28px; line-height: 1.15; }
.section .media-row-highlight h3 + p { margin-top: 14px; }
.media-row-highlight .text-link { margin-top: 20px; }
.topic .spec-list { grid-template-columns: 1fr; margin-bottom: 0; }
.topic-grid + .text-link { margin-top: 0; }


.section-header { margin-bottom: 40px; }
.section-header h2 { margin-bottom: 0; }
.section .eyebrow { margin: 0 0 12px; color: var(--link); font: 600 13px/1.3 var(--ui); letter-spacing: var(--tracking-caps); text-transform: uppercase; }

.usecase-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
/* Subgrid lines up number, title, description and solution across a row */
.usecase { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start; padding: 30px 32px 32px; border-top: 8px solid var(--cyan); background: white; box-shadow: var(--shadow-card); }
.usecase-solution { grid-row: 4; }
.usecase-number { color: var(--link); font: 700 16px/1 var(--number); font-variant-numeric: lining-nums tabular-nums; letter-spacing: .04em; }
.section .usecase h3 { margin: 12px 0 14px; font-size: 22px; line-height: 1.2; }
.section .usecase p { margin: 0 0 22px; font-size: 16px; line-height: 1.6; }
.usecase-solution { padding-top: 18px; border-top: 1px solid var(--border); }
.section .usecase-solution p { margin: 0; color: var(--text); }
.usecase-label { display: block; margin-bottom: 8px; color: var(--link); font: 600 12px/1 var(--ui); letter-spacing: var(--tracking-caps); text-transform: uppercase; }

.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; margin: 0 0 40px; padding: 0; list-style: none; }
.feature-grid li { padding-top: 20px; border-top: 3px solid var(--cyan); }
.section .feature-grid h3 { margin: 0 0 8px; font-size: 22px; line-height: 1.2; }
.feature-abbr { display: block; margin-top: 4px; color: var(--muted); font: 500 15px/1.3 var(--ui); letter-spacing: 0; }
.section .feature-grid p { margin: 0; }
.feature-grid + .text-link { margin-top: 0; }

.company-lead { max-width: 30em; color: var(--ink); font: 500 24px/1.45 var(--body); letter-spacing: -.005em; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 46px 0 0; border-block: 12px solid var(--cyan); }
.fact { padding: 28px 26px; }
.fact + .fact { border-left: 1px solid var(--border); }
.fact strong { display: block; color: var(--ink); font: 700 52px/1 var(--number); font-variant-numeric: lining-nums; letter-spacing: -.015em; }
.fact span { display: block; margin-top: 10px; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase; }
.clients-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 410px); align-items: end; gap: 64px; margin-bottom: 38px; }
.clients-heading h2 { margin: 0; }
.clients-heading p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.client-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; margin: 0; padding: 0; border-top: 10px solid var(--cyan); list-style: none; }
.client-grid li { display: flex; min-height: 78px; align-items: center; padding: 16px 4px; border-bottom: 1px solid #cdd2d0; color: var(--ink); font: 600 21px/1.25 var(--display); letter-spacing: -.003em; }

.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 56px; }
.contact-block { padding-top: 22px; border-top: 3px solid var(--cyan); }
.contact-label { display: block; margin-bottom: 8px; color: var(--link); font-size: 13px; font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase; }
.contact-value { display: block; margin-bottom: 4px; color: var(--ink); font: 600 26px/1.3 var(--display); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.005em; }
.section.map-section { padding-top: 0; border-top: 0; }
.map-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.map-heading h2 { margin-bottom: 0; }
.map-address { color: var(--link); font-weight: 600; }
.map-link { display: block; overflow: hidden; border-bottom: 12px solid var(--cyan); background: var(--surface); }
.map-image { width: 100%; height: auto; aspect-ratio: 1177.643 / 707.596; object-fit: cover; }

/* Footer */

.site-footer { color: rgb(255 255 255 / 72%); background: var(--navy-deep); font-size: 16px; line-height: 1.6; }
.footer-inner { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding: 52px 0 40px; }
.footer-brand strong { display: block; margin-bottom: 8px; color: white; font: 700 22px/1.2 var(--display); letter-spacing: -.005em; }
.footer-brand p { max-width: 280px; margin: 0; }
.footer-label { display: block; margin-bottom: 8px; color: var(--cyan); font-size: 13px; font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase; }
.footer-col { font-variant-numeric: lining-nums tabular-nums; }
.footer-col a, .footer-col span:not(.footer-label) { display: block; }
.site-footer a { color: white; transition: color 160ms var(--ease); }
.site-footer a:hover { color: var(--cyan); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 20px 0 28px; border-top: 1px solid rgb(255 255 255 / 12%); font-size: 14px; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* Medium desktop */

@media (max-width: 1100px) {
  .content, .header-inner { width: min(calc(100% - 44px), var(--content)); }
  .header-actions, .desktop-nav { gap: 22px; }
  .info-items { grid-template-columns: repeat(3, auto); justify-content: space-between; width: min(calc(100% - 44px), var(--content)); }
  .info-items p { font-size: 13px; }
}

/* Tablet and mobile */

@media (max-width: 800px) {
  :root { --header-height: 66px; }
  .content, .header-inner { width: calc(100% - 36px); }
  .desktop-nav { display: none; }
  .header-actions { margin-right: -7px; }
  .header-logo { width: 150px; }

  .services-intro { padding: 40px 0 28px; }
  .services-intro .services-intro-lead { font-size: 22px; }

  .info-strip { padding: 0; }
  .info-items { grid-template-columns: 1fr; gap: 0; width: calc(100% - 36px); padding: 18px 0; }
  .info-items p { padding: 9px 0; font-size: 14px; white-space: normal; }
  .cyan-rule { height: 12px; }

  .services { padding-bottom: 45px; }
  .services-grid { grid-template-columns: 1fr; }
  .services-grid { gap: 16px; }
  .service-card { padding: 28px 22px 26px; }
  .service-card h2 { font-size: 26px; }
  .home-copy { font-size: 17px; }
  /* Long Finnish compounds need hyphenation in narrow columns */
  p, li { hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 10 4 4; }

  .page-hero, .page-hero-inner { min-height: 390px; }
  .page-hero-inner { justify-content: flex-start; padding-top: 58px; }
  .page-hero h1 { max-width: 580px; font-size: clamp(2.6rem, 12vw, 3.6rem); }
  .page-hero-product h1 { font-size: clamp(2.2rem, 9.5vw, 3rem); }
  .page-header-inner { padding: 40px 0 32px; }
  .page-header h1 { font-size: clamp(2.2rem, 9.5vw, 3rem); }
  .page-header p { font-size: 18px; }
  .page-header + .section { padding-top: 40px; }
  .breadcrumb { font-size: 12px; }
  .page-hero p { max-width: 90%; font-size: 17px; }
  .page-hero-art { top: auto; right: -20%; bottom: -22%; width: 85%; height: 76%; opacity: .18; }
  .section { padding: 54px 0; }
  .section h2 { font-size: clamp(1.85rem, 8vw, 2.25rem); }
  .company-lead { font-size: 20px; }
  .client-grid li { font-size: 19px; }
  .contact-value { font-size: 23px; }
  .map-heading { align-items: start; flex-direction: column; gap: 8px; }
  .clients-heading { grid-template-columns: 1fr; gap: 14px; margin-bottom: 28px; }
  .facts, .contact-grid, .client-grid, .related-grid, .usecase-grid, .feature-grid { grid-template-columns: 1fr; }
  .intro-split { grid-template-columns: 1fr; gap: 20px; }
  .stacked-copy { margin-top: 36px; }
  .section .stacked-copy .statement { font-size: 19px; }
  .topic-grid, .spec-list, .example-grid, .statement-pair, .media-row, .screen-pair { grid-template-columns: 1fr; }
  .media-row { gap: 32px; }
  .screen-pair { gap: 24px; margin-top: 32px; }
  .media-row + .media-row { margin-top: 64px; }
  .media-row-reverse .media-row-figure { order: 0; }
  .media-row-highlight { padding: 40px 0; }
  .section .media-row-text h2 { font-size: 28px; }
  .section .media-row-text .section-lead { font-size: 20px; }
  .device-shot { filter: drop-shadow(0 16px 22px rgb(7 24 38 / 18%)); }
  .statement-pair { gap: 24px; margin-top: 32px; }
  .section .section-lead-wide { font-size: 21px; }
  .example-grid { gap: 16px; }
  .example-grid > .example-card, .example-grid > .example-card:first-child { grid-column: auto; padding: 26px 22px; }
  .section .example-grid > .example-card:first-child h3 { font-size: 24px; }
  .example-card { padding: 26px 22px; }
    .topic-grid { gap: 44px; }
  .section .topic h2 { font-size: 28px; }  .section .intro-split .section-lead { font-size: 21px; }
  .usecase-grid { gap: 16px; }
  .usecase { display: block; padding: 26px 22px 26px; }
  .feature-grid { gap: 32px; }
  .section .section-lead { font-size: 20px; }
  .section-header { margin-bottom: 28px; }
  .related-grid { gap: 16px; }  .fact + .fact { border-top: 1px solid var(--border); border-left: 0; }
  .client-grid { border-top-width: 8px; }
  .client-grid li { min-height: 66px; }

  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; padding-top: 44px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 460px) {
  /* Long compound words must be allowed to wrap on the narrowest phones */
  .page-hero h1 .nowrap, .page-header h1 .nowrap { white-space: normal; }
  /* Very long Finnish compounds (e.g. "Käyttäjätyytyväisyyskysely") must not overflow the narrowest screens */
  h1, h2, h3 { hyphens: manual; overflow-wrap: break-word; }
  .media-row-text, .media-row-figure { min-width: 0; }
  .content, .header-inner, .info-items { width: calc(100% - 28px); }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
