:root {
  --bg: #ffffff;
  --alt: #f5f7f6;
  --ink: #101828;
  --text: #344054;
  --muted: #667085;
  --line: #e4e7ec;
  --brand: #0b5d4b;
  --brand-dark: #084538;
  --brand-tint: #e7f2ee;
  --dark: #0d1f1a;
  --error: #b42318;

  --head: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--brand); }
h1, h2, h3 { font-family: var(--head); color: var(--ink); margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; border-radius: 6px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 10px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 10px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 16px/1 var(--body); padding: 15px 22px; border-radius: 8px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.btn:disabled { opacity: .6; cursor: default; }
.text-link { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }

/* header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__name { font: 800 22px/1 var(--head); letter-spacing: -0.02em; }
.brand__the { font-weight: 500; color: var(--muted); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 32px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--ink); }
.nav .nav__cta { background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.nav .nav__cta:hover { background: var(--brand-dark); color: #fff; }
.menu { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu span { width: 18px; height: 2px; background: var(--ink); transition: transform .2s; }
.menu[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* hero */
.hero { padding: clamp(64px, 10vw, 128px) 0 clamp(56px, 8vw, 96px); border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--brand-tint) 0%, #fff 70%); }
.hero h1 { font-size: clamp(38px, 5.4vw, 68px); line-height: 1.06; font-weight: 800; max-width: 15em; }
.hero__sub { font-size: clamp(18px, 1.6vw, 21px); color: var(--text); margin-top: 24px; max-width: 38em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__facts { list-style: none; padding: 0; margin: 56px 0 0; display: flex; flex-wrap: wrap; gap: 12px 40px; color: var(--muted); font-size: 15px; }
.hero__facts li { padding-left: 16px; border-left: 2px solid var(--brand); }
.hero__facts strong { color: var(--ink); font-weight: 600; }

/* sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--alt { background: var(--alt); }
.section--dark { background: var(--dark); color: #c9d6d1; }
.section--dark h2 { color: #fff; }
.section__head { max-width: 44em; margin-bottom: 48px; }
.section__head h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; font-weight: 700; }
.section__head p { margin-top: 14px; font-size: 18px; color: var(--muted); }

/* services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.service { background: #fff; padding: 32px 28px 34px; }
.service__icon { width: 28px; height: 28px; fill: none; stroke: var(--brand); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-size: 21px; font-weight: 700; margin: 18px 0 8px; }
.service p { color: var(--text); font-size: 16px; }
.service ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-size: 15px; color: var(--muted); }
.service li { padding-left: 22px; position: relative; }
.service li::before { content: ""; position: absolute; left: 0; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }

/* work */
.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.case__industry { font-size: 13px; font-weight: 600; color: var(--brand); text-transform: uppercase; letter-spacing: .05em; }
.case h3 { font-size: 20px; line-height: 1.25; font-weight: 700; }
.case p { font-size: 15.5px; }
.case__features { list-style: none; padding: 14px 0 0; margin: 4px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 15px; color: var(--muted); }
.case__features li::before { content: "— "; color: var(--brand); }
.case__stack { margin-top: auto; padding-top: 12px; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.case--feature { padding: 30px; border-top: 3px solid var(--brand); }
.case--feature h3 { font-size: 22px; }

/* process */
.process { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px 80px; align-items: start; }
.section__head--side { position: sticky; top: 110px; margin-bottom: 0; }
.section__head--side .btn { margin-top: 28px; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; border-left: 2px solid var(--line); }
.steps li { counter-increment: step; position: relative; padding: 0 0 36px 44px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: -17px; top: -2px;
  width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid var(--brand);
  color: var(--brand); font: 700 14px/28px var(--head); text-align: center;
}
.steps h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.steps p { color: var(--muted); }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px 88px; align-items: start; }
.about h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; font-weight: 700; margin-bottom: 22px; }
.about p { margin-bottom: 16px; font-size: 17.5px; }
.about .text-link { color: #fff; display: inline-block; margin-top: 8px; }
.stack { margin: 0; display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.stack div { padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); display: grid; grid-template-columns: 120px 1fr; gap: 16px; }
.stack dt { color: #fff; font-weight: 600; }
.stack dd { margin: 0; }

/* faq */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 48px 80px; align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font: 600 18px/1.4 var(--head); color: var(--ink); }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 6px; top: 28px; width: 10px; height: 10px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(45deg); transition: transform .2s; }
details[open] summary::after { transform: rotate(-135deg); top: 33px; }
details p { padding: 0 0 24px; color: var(--muted); max-width: 42em; }

/* contact */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 48px 80px; align-items: start; }
.contact__info h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; font-weight: 700; }
.contact__info > p { margin-top: 14px; font-size: 18px; color: var(--muted); }
.contact__info dl { margin: 36px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 14px 24px; }
.contact__info dt { font-weight: 600; color: var(--ink); }
.contact__info dd { margin: 0; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: clamp(22px, 3vw, 36px); display: grid; grid-template-columns: 1fr 1fr; gap: 20px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: 14px; color: var(--ink); }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; font: 400 16px/1.4 var(--body); color: var(--ink); background: #fff;
  border: 1px solid #d0d5dd; border-radius: 8px; padding: 11px 13px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 15%, transparent); }
input[aria-invalid="true"] { border-color: var(--error); }
textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form__status { font-size: 15px; }
.form__status.is-ok { color: var(--brand); font-weight: 600; }
.form__status.is-err { color: var(--error); }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 64px 0 40px; background: var(--alt); }
.footer__inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px 64px; align-items: start; }
.footer__brand .brand { margin-bottom: 14px; }
.footer__tag { color: var(--muted); font-size: 15px; max-width: 24em; }
.footer__mail { display: inline-block; margin-top: 16px; font-weight: 600; font-size: 15px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__h { font: 700 13px/1 var(--head); text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin-bottom: 6px; }
.footer__col a { color: var(--text); text-decoration: none; font-size: 15px; width: fit-content; }
.footer__col a:hover { color: var(--brand); }
.footer__legal { grid-column: 1 / -1; margin-top: 16px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

/* responsive */
@media (max-width: 1024px) {
  .services, .work { grid-template-columns: repeat(2, 1fr); }
  .process, .faq, .contact, .about { grid-template-columns: 1fr; }
  .section__head--side { position: static; }
}
@media (max-width: 760px) {
  .menu { display: flex; }
  .nav {
    position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav .nav__cta { margin-top: 14px; text-align: center; border-bottom: 0; }
  .services, .work, .form { grid-template-columns: 1fr; }
  .hero__facts { flex-direction: column; margin-top: 40px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .stack div { grid-template-columns: 1fr; gap: 4px; }
}
/* service card title links */
.service__link { color: inherit; text-decoration: none; }
.service__link::after { content: " →"; color: var(--brand); font-weight: 600; }
.service__link:hover { color: var(--brand); }

/* service pages */
.page-hero { padding: clamp(40px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--brand-tint) 0%, #fff 80%); }
.page-hero h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.08; font-weight: 800; max-width: 18em; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs span { margin: 0 6px; }
.crumbs [aria-current] { margin: 0; color: var(--ink); }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px 72px; align-items: start; }
.article { max-width: 46em; }
.article h2 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; font-weight: 700; margin: 44px 0 14px; }
.article h2:first-child { margin-top: 0; }
.article p { margin-bottom: 14px; }
.article__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.article__list li { padding-left: 26px; position: relative; }
.article__list li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.article .faq__list { margin-top: 8px; }
.aside { position: sticky; top: 100px; display: grid; gap: 20px; }
.aside h2 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.aside__card { background: var(--alt); border: 1px solid var(--line); border-radius: 12px; padding: 26px; }
.aside__card p { font-size: 15.5px; margin-bottom: 18px; }
.aside__card .btn { width: 100%; }
.aside__mail { margin: 12px 0 0 !important; text-align: center; font-size: 14px; color: var(--muted); }
.aside__more { padding: 4px 4px 0; }
.aside__more ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.aside__more a { text-decoration: none; font-weight: 500; font-size: 15.5px; }
.aside__more a:hover { text-decoration: underline; }
@media (max-width: 1024px) {
  .article-grid { grid-template-columns: 1fr; }
  .aside { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
