/* Midasblue website. Blue builds the page; gold marks a match, a selection or the next step. */
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("fonts/schibsted-grotesk-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #f5f7fb;
  --white: #ffffff;
  --ink: #0f1c3f;
  --slate: #56617f;
  --line: #dce2ef;
  --blue: #0874b5;
  --blue-press: #065d93;
  --deep: #0c3466;
  --gold: #fbb034;
  --gold-ink: #3d2800;
  --gold-soft: #fff3d6;
  --radius: 14px;
  --wrap: 1180px;
  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-press); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.1rem); font-weight: 760; }
h2 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); font-weight: 720; }
h3 { font-size: 1.45rem; font-weight: 700; }
p { margin: 0 0 1em; }
.h-small { font-size: 1.1rem; font-weight: 650; letter-spacing: 0; color: var(--slate); }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; color: #fff; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 650; font-size: 1rem; text-decoration: none; border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s; }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: #ffc25c; color: var(--gold-ink); }
.btn-quiet { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-quiet:hover { border-color: var(--blue); color: var(--blue); }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(245, 247, 251, .88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { text-decoration: none; color: var(--ink); display: flex; align-items: center; }
.brand-logo { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.03em; }
.brand-logo img { height: 46px; width: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 6px; }
.nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 550; font-size: .97rem; }
.nav a:hover { color: var(--blue); background: rgba(8, 116, 181, .08); }
.nav .nav-flow a { margin-left: 8px; border: 2px solid var(--blue); color: var(--blue); border-radius: 999px; padding: 6px 16px; font-weight: 650; }
.nav .nav-flow a:hover { background: var(--blue); color: #fff; }
.nav-toggle { display: none; }

/* hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 112px); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero h1 { max-width: 15ch; }
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--slate); margin: 24px 0 32px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* the shortlist: the one moving thing on the page */
.shortlist { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 22px 22px 16px; box-shadow: 0 30px 60px -30px rgba(12, 52, 102, .35), 0 2px 0 rgba(12, 52, 102, .04); }
.sl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .9rem; }
.sl-app { font-weight: 750; color: var(--blue); }
.sl-count { color: var(--slate); font-variant-numeric: tabular-nums; }
.sl-count b { color: var(--ink); font-weight: 700; }
.sl-role { margin: 14px 0 10px; padding: 14px 16px; background: var(--paper); border-radius: 12px; }
.sl-role strong { display: block; font-size: 1.05rem; font-weight: 700; }
.sl-role span { color: var(--slate); font-size: .92rem; }
.sl-list { list-style: none; margin: 0; padding: 0; }
.sl-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) 96px 34px; align-items: center; gap: 12px; padding: 13px 4px; border-top: 1px solid var(--line); }
.sl-row:first-child { border-top: 0; }
.r1 { --score: 92; --d: .9s; }
.r2 { --score: 86; --d: .55s; }
.r3 { --score: 71; --d: .2s; }
.sl-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #e1f0fa; color: var(--deep); font-weight: 700; font-size: .82rem; }
.sl-who b { display: block; font-weight: 650; font-size: .98rem; }
.sl-who small { display: block; color: var(--slate); font-size: .84rem; line-height: 1.35; }
.sl-bar { height: 8px; border-radius: 99px; background: var(--paper); overflow: hidden; }
.sl-bar i { display: block; height: 100%; width: calc(var(--score) * 1%); background: var(--blue); border-radius: inherit; transform-origin: left; }
.sl-row:first-child .sl-bar i { background: var(--gold); }
.sl-score { font-weight: 750; font-variant-numeric: tabular-nums; text-align: right; }
.sl-chip { display: inline-block; vertical-align: 2px; margin-left: 6px; background: var(--gold); color: var(--gold-ink); font-size: .72rem; font-weight: 750; padding: 1px 9px; border-radius: 99px; }
.shortlist figcaption { margin-top: 10px; font-size: .84rem; color: var(--slate); }
/* the entrance runs once on load: weakest match first, the best one lands last and gets the gold chip */
.sl-bar i { animation: sl-fill 1s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) both; }
.sl-score, .sl-who small { animation: sl-fade .5s ease calc(var(--d, 0s) + .5s) both; }
.sl-chip { animation: sl-pop .45s cubic-bezier(.3, 1.6, .5, 1) 2.1s both; }
@keyframes sl-fill { from { transform: scaleX(0); } }
@keyframes sl-fade { from { opacity: 0; } }
@keyframes sl-pop { from { opacity: 0; transform: translateY(5px) scale(.85); } }

/* clients */
.clients { padding: 0 0 clamp(64px, 8vw, 104px); }
.logo-wall { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.logo-wall li { height: 104px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; padding: 18px 22px; }
.logo-wall img { max-height: 64px; max-width: 100%; height: auto; width: auto; object-fit: contain; }
.logo-wall .logo-name { font-weight: 700; color: var(--ink); text-align: center; line-height: 1.2; }
.logo-wall li.empty { background: transparent; border-style: dashed; color: #9aa3bd; font-size: .9rem; }
.logo-wall li.more { background: var(--white); border-color: var(--line); gap: 6px; align-content: center; justify-items: center; }
.typing { display: inline-flex; gap: 6px; padding: 11px 15px; border-radius: 18px 18px 18px 6px; background: var(--paper); }
.typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: typing 1.3s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
.more small { color: var(--slate); font-size: .86rem; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-5px); opacity: 1; } }

/* recruitment services */
.services { background: var(--white); border-block: 1px solid var(--line); padding: clamp(64px, 8vw, 112px) 0; }
.svc-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.svc-intro { position: sticky; top: 104px; }
.svc-intro p { color: var(--slate); font-size: 1.1rem; margin-top: 18px; max-width: 30em; }
.svc-intro .svc-areas { font-size: 1rem; color: var(--ink); border-left: 3px solid var(--gold); padding-left: 14px; }
.pairs { margin: 0; }
.pair { padding: 26px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; }
.pair:first-child { border-top: 0; padding-top: 4px; }
.pair dt { font-weight: 700; font-size: 1.15rem; line-height: 1.35; }
.pair dd { margin: 0; color: var(--slate); }
.steps-wrap { margin-top: clamp(56px, 7vw, 88px); }
.steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 18px; right: calc((100% - 90px) / 6 - 18px); top: 17px; height: 2px; background: var(--line); }
.steps li { counter-increment: step; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--white); border: 2px solid var(--blue); color: var(--blue); font-weight: 750; font-size: .92rem; margin-bottom: 14px; position: relative; }
.steps li:last-child::before { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.steps b { display: block; font-weight: 700; margin-bottom: 4px; }
.steps span { color: var(--slate); font-size: .94rem; line-height: 1.45; display: block; }

/* products */
.products { padding: clamp(64px, 8vw, 112px) 0; }
.prod-intro { max-width: 40em; margin-bottom: 36px; }
.prod-intro p { color: var(--slate); font-size: 1.1rem; margin-top: 14px; }
.prod-kind { font-size: .95rem; font-weight: 600; margin: 0 0 6px; }
.flow { background: var(--deep); color: #fff; border-radius: 24px; padding: clamp(28px, 4vw, 52px); display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); }
.flow .prod-kind { color: #8fcbf2; }
.flow h3 { font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem); font-weight: 780; letter-spacing: -0.03em; }
.flow-copy p { color: #d4e7f5; font-size: 1.08rem; margin: 16px 0 28px; max-width: 28em; }
.flow-mods { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, .16); }
.flow-mods li { padding: 18px 18px 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.flow-mods li:nth-child(odd) { padding-right: 24px; }
.flow-mods b { display: block; font-weight: 700; margin-bottom: 3px; }
.flow-mods span { color: #b9d5ea; font-size: .95rem; line-height: 1.45; display: block; }
.prod-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.prod { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 3vw, 36px); }
.prod .prod-kind { color: var(--blue); }
.soon { display: inline-block; vertical-align: 5px; margin-left: 8px; font-size: .78rem; font-weight: 700; letter-spacing: 0; color: var(--gold-ink); background: var(--gold-soft); border: 1px solid #f3d08a; border-radius: 99px; padding: 2px 10px; }
.prod > p { color: var(--slate); margin: 12px 0 18px; }
.prod ul { margin: 0; padding: 0; list-style: none; }
.prod li { padding: 9px 0 9px 26px; border-top: 1px solid var(--line); position: relative; font-size: .98rem; }
.prod li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--blue); }

/* leadership */
.leaders { background: var(--white); border-top: 1px solid var(--line); padding: clamp(64px, 8vw, 112px) 0; }
.leaders-lede { color: var(--slate); font-size: 1.1rem; max-width: 36em; margin: 14px 0 40px; }
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 72px); }
.person { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 26px; align-items: start; }
.portrait { width: 136px; height: 136px; border-radius: 50%; background: var(--blue) center/cover no-repeat; color: #fff; display: grid; place-items: center; font-size: 1.9rem; font-weight: 750; letter-spacing: -0.02em; }
.portrait.has-photo span { display: none; }
.person .role { color: var(--blue); font-weight: 650; margin: 4px 0 14px; }
.person p { color: #2b3657; }
.in-link { font-weight: 650; }

/* contact */
.contact { background: var(--blue); color: #fff; padding: clamp(64px, 8vw, 104px) 0; }
.contact-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact h2 { max-width: 14ch; }
.contact-in > div:first-child p { color: #e3f1fb; font-size: 1.12rem; margin-top: 18px; max-width: 28em; }
.contact-ways { display: grid; gap: 10px; }
.way { display: block; padding: 16px 20px; border-radius: var(--radius); background: rgba(255, 255, 255, .1); color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, .18); transition: background-color .15s; }
.way:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.way small { display: block; color: #cfe7f7; font-size: .86rem; }
.way b { font-size: 1.2rem; font-weight: 700; }
.careers { color: #e3f1fb; margin: 8px 0 0; }
.careers a { color: #fff; font-weight: 650; }
.contact :focus-visible { outline-color: var(--gold); }

/* footer */
.foot { background: var(--ink); color: #b3bbd4; font-size: .92rem; }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 26px 0; }
.foot nav { display: flex; gap: 20px; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { color: var(--gold); }

/* tablet */
@media (max-width: 980px) {
  .hero-in, .svc-in, .flow, .contact-in { grid-template-columns: minmax(0, 1fr); }
  .svc-intro { position: static; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .steps::before { display: none; }
  .people { grid-template-columns: minmax(0, 1fr); }
  .logo-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shortlist { max-width: 560px; }
}
/* phone */
@media (max-width: 820px) {
  .nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); cursor: pointer; }
  .nav-toggle i, .nav-toggle i::before, .nav-toggle i::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s; }
  .nav-toggle i::before, .nav-toggle i::after { content: ""; position: absolute; left: 0; }
  .nav-toggle i::before { top: -6px; }
  .nav-toggle i::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] i { background: transparent; }
  .nav-toggle[aria-expanded="true"] i::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] i::after { transform: translateY(-6px) rotate(-45deg); }
  .nav ul { display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 24px 18px; box-shadow: 0 20px 30px -20px rgba(12, 52, 102, .3); }
  .nav ul.open { display: flex; }
  .nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .nav-flow a { margin: 14px 0 0; text-align: center; border-radius: 999px; padding: 11px 16px; }
  .pair { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .prod-pair { grid-template-columns: minmax(0, 1fr); }
  .flow-mods { grid-template-columns: minmax(0, 1fr); }
  .flow-mods li:nth-child(odd) { padding-right: 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-wall li { height: 88px; padding: 14px; }
  .logo-wall li.more { grid-column: span 2; }
  .person { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .portrait { width: 88px; height: 88px; font-size: 1.5rem; }
  .sl-row { grid-template-columns: 34px minmax(0, 1fr) 30px; }
  .sl-bar { grid-column: 2 / 4; grid-row: 2; }
  .sl-av { width: 34px; height: 34px; }
  .wrap { width: min(var(--wrap), 100% - 36px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sl-bar i, .sl-score, .sl-who small, .sl-chip { animation: none !important; }
  .typing i { animation: none; opacity: .8; }
}
