:root {
  color-scheme: light;
  --ink: #071b33;
  --navy: #08213e;
  --blue: #0b63ce;
  --cyan: #17b5d1;
  --cyan-light: #77dced;
  --paper: #f7fbff;
  --line: #9eb8d2;
  --focus: #ffbf47;
  --content-max: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --header: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--paper); font-family: "Segoe UI", Arial, sans-serif; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 100; top: .5rem; left: .5rem; padding: .75rem 1rem; color: #000; background: #fff; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 50; top: 0; display: flex; align-items: center; justify-content: space-between; min-height: var(--header); padding: .25rem max(var(--gutter), calc((100vw - var(--content-max)) / 2)); border-bottom: 1px solid #a9bfd8; background: #f7fbfff5; backdrop-filter: blur(12px); transition: min-height .18s ease, padding .18s ease, box-shadow .18s ease; }
.site-header.is-compact { min-height: 58px; padding-block: .12rem; box-shadow: 0 7px 20px #071b3312; }
.brand, .footer-brand { display: inline-flex; align-items: center; text-decoration: none; }
.logo-crop { position: relative; display: block; width: 182px; height: 40px; overflow: hidden; }
.logo-crop img { position: absolute; top: -28px; left: -15px; width: 212px; max-width: none; height: auto; }
.site-header.is-compact .logo-crop { width: 160px; height: 34px; }
.site-header.is-compact .logo-crop img { top: -25px; left: -14px; width: 186px; }
.main-nav { display: flex; align-items: center; gap: clamp(.7rem, 1.5vw, 1.45rem); }
.main-nav a { position: relative; padding: .7rem 0; font-size: .88rem; font-weight: 750; text-decoration: none; }
.main-nav a:not(.nav-cta)::after { content: ""; position: absolute; right: 0; bottom: .35rem; left: 0; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .16s ease; }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { padding: .72rem 1rem !important; border: 1px solid var(--blue); color: #fff; background: var(--blue); }
.menu-button { display: none; min-width: 72px; min-height: 44px; border: 1px solid var(--ink); color: var(--ink); background: transparent; font: inherit; font-weight: 800; }

main { min-height: 60vh; }
.eyebrow { margin: 0 0 1rem; color: var(--blue); font: 800 .75rem/1.3 Consolas, monospace; letter-spacing: .13em; text-transform: uppercase; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .8rem 1.15rem; border: 2px solid currentColor; font-weight: 800; text-decoration: none; }
.button.primary { border-color: var(--blue); color: #fff; background: var(--blue); }
.button.secondary { color: var(--blue); background: #fff; }
.text-link { font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.2rem; }

.hero { min-height: min(760px, calc(100vh - var(--header))); display: grid; grid-template-columns: 1.08fr .92fr; background-image: linear-gradient(#d9e6f2 1px, transparent 1px), linear-gradient(90deg, #d9e6f2 1px, transparent 1px); background-size: 32px 32px; }
.hero-copy { display: flex; flex-direction: column; justify-content: flex-start; padding-top: clamp(4.5rem, 8vh, 6.5rem); padding-bottom: clamp(3rem, 6vw, 6rem); padding-left: max(var(--gutter), calc((100vw - var(--content-max)) / 2)); padding-right: clamp(1.5rem, 5vw, 5rem); background: linear-gradient(90deg, #f7fbfff5 88%, transparent); }
.hero h1, .page-hero h1 { margin: 0 0 1.5rem; font-size: clamp(2.6rem, 4.37vw, 4.64rem); line-height: .96; letter-spacing: -.052em; }
.hero h1 { max-width: 13ch; }
.lede { max-width: 710px; margin: 0; font-size: clamp(1.05rem, 1.7vw, 1.35rem); line-height: 1.6; }
.hero-visual, .photo-panel { position: relative; min-height: 480px; overflow: hidden; background: var(--navy); isolation: isolate; }
.hero-visual { clip-path: polygon(8% 0,100% 0,100% 100%,0 100%,0 8%); }
.hero-visual > img, .photo-panel > img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.72) contrast(1.08); }
.hero-visual > img { object-position: 62% 70%; }
.hero-visual::after, .photo-panel::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg,#06192b10 30%,#06192bdd 100%), linear-gradient(90deg,#0b63ce36,transparent 55%); }
.photo-caption { position: absolute; z-index: 3; right: 1.4rem; bottom: 1.25rem; left: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--cyan-light); color: #fff; }
.photo-caption span { color: var(--cyan-light); font: 700 .68rem/1 Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.photo-caption strong { max-width: 32ch; font-size: .8rem; text-align: right; }
.signal-field { position: absolute; z-index: 2; top: 3%; right: 2%; width: 45%; aspect-ratio: 1; color: var(--cyan-light); filter: drop-shadow(0 4px 12px #001b); }
.node { position: absolute; display: grid; place-items: center; width: 23%; aspect-ratio: 1; border: 2px solid currentColor; background: #08213edb; box-shadow: 6px 6px 0 #17b5d155; backdrop-filter: blur(3px); font: 800 .68rem/1 Consolas, monospace; text-align: center; }
.node.object { left: 0; top: 40%; }.node.capture { left: 28%; top: 12%; }.node.system { right: 17%; top: 43%; }.node.value { right: 0; bottom: 2%; }
.flow { position: absolute; z-index: -1; height: 2px; background: currentColor; opacity: .7; transform-origin: left center; }
.f1 { width: 39%; left: 15%; top: 43%; transform: rotate(-32deg); }.f2 { width: 44%; left: 43%; top: 28%; transform: rotate(32deg); }.f3 { width: 31%; left: 70%; top: 61%; transform: rotate(58deg); }

.problem-strip { display: grid; grid-template-columns: repeat(4,1fr); color: #fff; background: var(--blue); }
.problem-strip p { margin: 0; padding: 1.25rem; border-right: 1px solid #ffffff45; font-size: .85rem; font-weight: 800; }
.section { padding-block: clamp(5rem, 9vw, 9rem); padding-inline: max(var(--gutter), calc((100vw - var(--content-max)) / 2)); }
.section.white { background: #fff; }
.section.dark { color: #fff; background: var(--navy); }
.section.blue { color: #fff; background: var(--blue); }
.section.muted { background: #eaf2f9; }
.section-heading { display: grid; grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); gap: 1rem clamp(2rem, 6vw, 7rem); margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-heading > * { min-width: 0; }
.section-heading .eyebrow { grid-row: 1 / span 2; }
.section-heading h2 { max-width: 15ch; margin: 0; font-size: clamp(2.25rem, 4.2vw, 4.4rem); line-height: 1; letter-spacing: -.04em; }
.section-heading > p:last-child { max-width: 700px; margin: 0; font-size: 1.08rem; line-height: 1.65; }
.dark .eyebrow { color: var(--cyan-light); }
.card-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.card { position: relative; min-height: 320px; padding: 1.6rem; border: 1px solid var(--line); background: var(--paper); }
.card.dark-card { border-color: #77dced66; color: #fff; background: #ffffff08; }
.card h3 { max-width: 16ch; margin: 3rem 0 1rem; font-size: 1.7rem; line-height: 1.05; }
.card p { line-height: 1.6; }
.card .text-link { position: absolute; bottom: 1.6rem; left: 1.6rem; }
.card-number { color: var(--blue); font: 700 .75rem/1 Consolas, monospace; }
.dark-card .card-number { color: var(--cyan-light); }
.icon-box { width: 70px; height: 70px; margin: 2.5rem 0 1.2rem; border: 2px solid currentColor; }
.list-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.list-panel { padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--line); background: #fff; }
.list-panel h3 { margin-top: 0; font-size: 1.5rem; }
.list-panel ul { padding-left: 1.2rem; line-height: 1.8; }
.work-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.work-steps li { min-height: 300px; padding: 1.5rem; border-top: 1px solid var(--cyan-light); }
.work-steps span { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid currentColor; font-weight: 900; }
.work-steps h3 { margin: 2.5rem 0 .8rem; font-size: 1.5rem; }.work-steps p { line-height: 1.6; }
.model-note { margin: 2rem 0 0; padding: 1.2rem 1.5rem; border-left: 4px solid var(--cyan-light); background: #ffffff0b; font-weight: 750; line-height: 1.6; }
.chain { display: flex; align-items: stretch; gap: .5rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.chain li { position: relative; flex: 1; display: grid; place-items: center; min-height: 92px; padding: 1rem; border: 1px solid var(--line); background: #edf5fc; font-weight: 800; text-align: center; }
.chain li:not(:last-child)::after { content: "→"; position: absolute; z-index: 2; right: -.75rem; color: var(--blue); font-size: 1.2rem; }
.questions { display: grid; grid-template-columns: repeat(2,1fr); gap: .8rem; margin-top: 2rem; }
.questions p { margin: 0; padding: 1.2rem; border-left: 4px solid var(--blue); background: #fff; font-weight: 750; }

.page-hero { display: grid; grid-template-columns: 1.08fr .92fr; width: min(var(--content-max), calc(100% - (2 * var(--gutter)))); min-height: 560px; margin: clamp(1.5rem, 3vw, 2.5rem) auto clamp(3.5rem, 6vw, 5.5rem); overflow: hidden; border: 1px solid #bdd0e2; background-image: linear-gradient(#d9e6f2 1px,transparent 1px),linear-gradient(90deg,#d9e6f2 1px,transparent 1px); background-size: 32px 32px; box-shadow: 0 18px 55px #071b330c; }
.page-hero-copy { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: clamp(3.5rem, 6vw, 5.5rem) clamp(2rem, 4.5vw, 4.5rem); background: #f7fbfff2; }
.page-hero h1 { max-width: 16ch; font-size: clamp(2.6rem, 4vw, 4.2rem); }
.page-hero .photo-panel { min-width: 0; min-height: 560px; }
.page-hero .photo-panel img { object-position: 55% center; }
.page-hero.no-photo { grid-template-columns: 1fr; min-height: 460px; }
.page-hero.no-photo .page-hero-copy { padding-right: clamp(2rem, 18vw, 15rem); }

.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 7vw, 8rem); align-items: center; }
.split h2 { margin: 0 0 1.5rem; font-size: clamp(2.25rem, 4.2vw, 4.25rem); line-height: 1; letter-spacing: -.04em; }
.split p { font-size: 1.08rem; line-height: 1.7; }
.split .photo-panel { min-height: 430px; border: 1px solid var(--blue); }
.split .photo-panel img { object-position: 54% center; }
.fact-band { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--line); }
.fact-band > div { padding: clamp(2rem,4vw,4rem); background: #fff; }
.fact-band h2, .fact-band h3 { margin: 0 0 1rem; font-size: clamp(1.6rem,3vw,2.5rem); }
.fact-band p { line-height: 1.6; }

.product-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.product-card { min-height: 460px; display: flex; flex-direction: column; padding: clamp(1.5rem,3vw,2.5rem); border: 1px solid #9eb8d2; }
.product-card:nth-child(1) { background: #fff; }
.product-card:nth-child(2) { color: #fff; background: #553f6c; }
.product-card:nth-child(3) { color: #fff; background: var(--navy); }
.product-label { font: 800 .7rem/1.3 Consolas,monospace; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.product-card h2 { margin: 4rem 0 .5rem; font-size: clamp(2rem,3vw,3.3rem); letter-spacing: -.04em; }
.product-card h3 { margin: 0 0 1.5rem; font-size: 1.05rem; }
.product-card p { line-height: 1.65; }
.product-card .text-link { margin-top: 1.5rem; font-size: .96rem; font-weight: 850; white-space: nowrap; }
.product-card .placeholder + .text-link { margin-top: 1.2rem; }
.product-card.meeting { border-color: #6c87a0; background: #f7fbff; color: #163047; }
.product-card.taste { border-color: #8f719f; background: #553f6c; color: #fff; }
.product-card.navigator { border-color: #1688a3; background: var(--navy); color: #fff; }
.product-page-hero { border-top-width: 6px; }
.product-page-hero.meeting { border-top-color: #6c87a0; }
.product-page-hero.taste { border-top-color: #8f719f; background-image: linear-gradient(#e5d9eb 1px,transparent 1px),linear-gradient(90deg,#e5d9eb 1px,transparent 1px); }
.product-page-hero.navigator { border-top-color: var(--cyan); background-image: linear-gradient(#cfe4eb 1px,transparent 1px),linear-gradient(90deg,#cfe4eb 1px,transparent 1px); }
.product-principles { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.product-principles > div { padding: clamp(1.5rem,3vw,2.5rem); border: 1px solid var(--line); background: #fff; }
.product-principles h2, .product-principles h3 { margin: 0 0 1rem; font-size: clamp(1.5rem,2.5vw,2.2rem); }
.product-principles p { line-height: 1.65; }
.placeholder { margin-top: auto; padding-top: 2rem; border-top: 1px solid currentColor; font: 700 .72rem/1.5 Consolas,monospace; opacity: .78; }
.notice { padding: 1.2rem 1.4rem; border: 1px solid #c48e18; color: #5c4100; background: #fff4d7; line-height: 1.55; }
.signature { position: relative; overflow: hidden; padding-block: clamp(5rem,9vw,9rem); padding-inline: max(var(--gutter), calc((100vw - var(--content-max)) / 2)); color: #fff; background: var(--blue); }
.signature::after { content: "REAL WORLD / CLEAR SYSTEMS"; position: absolute; right: -1rem; bottom: -.15em; color: #ffffff1c; font: 900 clamp(2.3rem,6vw,6rem)/1 Consolas,monospace; white-space: nowrap; }
.signature h2 { max-width: 11ch; margin: 0; font-size: clamp(2.8rem,5.8vw,5.8rem); line-height: .96; letter-spacing: -.055em; }
.signature p { max-width: 650px; font-size: 1.1rem; line-height: 1.65; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-card { min-height: 300px; padding: clamp(1.5rem,4vw,3rem); border: 1px solid var(--line); background: #fff; }
.contact-card h2 { margin: 0 0 1rem; font-size: 2rem; }.contact-card p, .contact-card li { line-height: 1.7; }
.site-footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; padding-block: 2rem; padding-inline: max(var(--gutter), calc((100vw - var(--content-max)) / 2)); border-top: 1px solid #a9bfd8; background: #fff; }
.site-footer .logo-crop { width: 248px; height: 54px; }
.site-footer .logo-crop img { top: -38px; left: -21px; width: 288px; }
.site-footer p { font-size: .78rem; line-height: 1.5; }.site-footer a { font-weight: 800; }

@media (max-width: 980px) {
  .main-nav { display: none; position: absolute; top: 100%; right: 1rem; left: 1rem; flex-direction: column; align-items: stretch; gap: 0; padding: 1rem; border: 1px solid var(--ink); background: #fffffff9; box-shadow: 0 18px 50px #0003; }
  .main-nav.is-open { display: flex; }.main-nav a { padding: .95rem; }.main-nav a::after { display: none; }.nav-cta { text-align: center; }
  .menu-button { display: block; }
  .hero, .page-hero { grid-template-columns: 1fr; }.hero-copy { padding: 5rem var(--gutter) 3rem; }.page-hero-copy { padding: 4rem clamp(1.5rem, 5vw, 3rem); }
  .hero-visual { min-height: 390px; margin: 0 1rem 1rem; clip-path: none; }.page-hero .photo-panel { min-height: 390px; margin: 0; }
  .page-hero { width: calc(100% - (2 * var(--gutter))); min-height: 0; margin-top: 1.5rem; }
  .card-grid, .product-grid { grid-template-columns: 1fr; }.card { min-height: 280px; }
  .product-principles { grid-template-columns: 1fr; }
  .product-card { min-height: 390px; }
  .section-heading { grid-template-columns: minmax(0, 1fr); }.section-heading .eyebrow { grid-row: auto; }
  .split { grid-template-columns: 1fr; }.split .photo-panel { min-height: 360px; }
  .work-steps { grid-template-columns: 1fr; }.work-steps li { min-height: auto; }
  .chain { flex-direction: column; }.chain li:not(:last-child)::after { right: 1rem; bottom: -.8rem; content: "↓"; }
  .fact-band { grid-template-columns: 1fr; }.contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --header: 64px; --gutter: .85rem; }
  html { scroll-padding-top: 62px; }
  .site-header { padding-inline: 1rem; }.site-header.is-compact { min-height: 56px; }
  .logo-crop { width: 138px; height: 30px; }.logo-crop img { top: -22px; left: -12px; width: 160px; }
  .site-header.is-compact .logo-crop { width: 128px; height: 28px; }.site-header.is-compact .logo-crop img { top: -20px; left: -11px; width: 149px; }
  .hero h1, .page-hero h1 { font-size: clamp(2.45rem,11.5vw,3.7rem); }
  .hero-actions { flex-direction: column; }.hero-actions .button { width: 100%; }
  .hero-visual, .page-hero .photo-panel { min-height: 350px; }
  .page-hero { width: calc(100% - 1.5rem); margin: .75rem auto 3.5rem; }
  .page-hero-copy { padding: 3.5rem 1.25rem 3rem; }
  .signal-field { width: 50%; }.photo-caption { flex-direction: column; }.photo-caption strong { text-align: left; }
  .problem-strip { grid-template-columns: 1fr; }.problem-strip p { border-bottom: 1px solid #ffffff45; }
  .section { padding: 4.5rem 1.2rem; }.section-heading h2, .split h2 { font-size: 2.35rem; overflow-wrap: anywhere; }
  .list-grid, .questions { grid-template-columns: 1fr; }
  .chain { flex-direction: column; }.chain li:not(:last-child)::after { right: 1rem; bottom: -.8rem; content: "↓"; }
  .site-footer { grid-template-columns: 1fr; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Startsida: Produkter → Affärer → Teknik */
.hero-home .hero-signature { margin: auto 0 0; padding-top: 2.5rem; color: var(--blue); font: 900 .78rem/1.3 Consolas, monospace; letter-spacing: .16em; }
.hero-home .hero-visual > img { object-position: center; }
.home-products .product-card { min-height: 520px; padding: 0; overflow: hidden; color: var(--ink); background: #fff; }
.home-products { align-items: stretch; }
.home-products .product-card { height: 100%; }
.home-products .product-card.meeting { border-top: 4px solid #6c87a0; }
.home-products .product-card.taste { border-top: 4px solid #8f719f; }
.home-products .product-card.navigator { border-top: 4px solid var(--cyan); }
.home-products .product-card.match { border-top: 4px solid var(--line); }
.competence-cards .product-card { border-top: 4px solid var(--blue); }
.competence-cards { grid-auto-rows: 1fr; }
.business-cards { grid-auto-rows: 1fr; }
.business-cards .product-card { min-height: 360px; border-top: 4px solid var(--blue); }
.product-card-body { display: flex; flex: 1; min-height: 0; flex-direction: column; padding: 1.55rem; }
.product-card-image > img { flex: 0 0 195px; width: 100%; height: 195px; object-fit: cover; filter: saturate(.78) contrast(1.05); }
.product-card-placeholder { flex: 0 0 195px; width: 100%; height: 195px; border-bottom: 1px solid var(--line); background: #edf5fc; }
.product-card-image.meeting > img { object-position: center 42%; }
.product-card-image.taste > img { object-position: center 31%; }
.product-card-image.navigator > img { object-position: center 24%; }
.home-products .product-label { color: var(--blue); opacity: 1; }
.home-products .taste .product-label, .home-products .taste .text-link { color: #69417c; }
.home-products .navigator .product-label, .home-products .navigator .text-link { color: #087f99; }
.home-products .product-card h2 { margin: 1.35rem 0 .55rem; font-size: clamp(1.55rem,2.05vw,2.05rem); line-height: 1; }
.home-products .product-card h3 { min-height: 2.5em; margin-bottom: .8rem; }
.home-products .product-card p { margin-top: 0; }
.home-products .product-card .text-link { margin-top: auto; padding-top: 1rem; white-space: normal; }
.business-section { grid-template-columns: .55fr 1.45fr; }
.business-marker { min-height: 390px; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(2rem,5vw,4rem); color: #fff; background: var(--blue); }
.business-marker span { font: 900 clamp(4rem,9vw,8rem)/.8 Consolas,monospace; opacity: .24; }
.business-marker p { margin: 0; font-size: clamp(2.2rem,4vw,4rem); font-weight: 850; letter-spacing: -.05em; }
.solution-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
.solution-card { display: grid; grid-template-rows: 260px 1fr; overflow: hidden; border: 1px solid var(--line); background: var(--paper); }
.solution-card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) contrast(1.07); }
.solution-card > div { padding: clamp(1.5rem,3vw,2.5rem); }
.solution-card h3 { max-width: 19ch; margin: 1.5rem 0 .8rem; font-size: clamp(1.6rem,2.5vw,2.2rem); line-height: 1.05; }
.solution-card p { line-height: 1.65; }
.work-steps.compact li { min-height: 230px; }
.method-section .model-note { max-width: 920px; }

@media (max-width: 980px) {
  .home-products .product-card { min-height: 0; }
  .home-products .product-card h3 { min-height: 0; }
  .business-section { grid-template-columns: 1fr; }
  .business-marker { min-height: 250px; }
  .solution-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero-home { min-height: auto; }
  .hero-home .hero-copy { padding-top: 4rem; }
  .hero-home .hero-signature { padding-top: 2rem; }
  .product-card-image > img, .product-card-placeholder { flex-basis: 190px; height: 190px; }
  .business-marker { min-height: 210px; padding: 1.5rem; }
  .solution-card { grid-template-rows: 210px 1fr; }
}
