/* L3.21: original homepage proportions; all copy/media remain CMS-owned. */
.home-restored{--accent:var(--home-accent,#f66d35);background:#090b0d;color:#f7f8f9;font-family:var(--site-font,-apple-system,BlinkMacSystemFont,"Helvetica Neue",Arial,sans-serif);-webkit-font-smoothing:antialiased}
.home-restored .preview-banner{display:none}
.home-restored .site-header{position:fixed;top:0;left:0;right:0;border-bottom-color:transparent;transition:background .25s,box-shadow .25s}
.home-restored .site-header.is-scrolled,.home-restored.menu-open .site-header{background:rgba(11,12,14,.94);border-bottom:1px solid #ffffff17;backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}
.home-restored .header-inner{width:min(90%,1560px);min-height:78px;padding:0;gap:24px}
.home-restored .brand{font-size:18px;letter-spacing:.08em;font-weight:800}
.home-restored .main-nav>.nav-list{gap:clamp(11px,1.5vw,26px)}
.home-restored .main-nav a{color:#f7f8f9;font-size:13px;font-weight:600}
.home-restored .main-nav a:hover,.home-restored .main-nav [aria-current=page]{color:var(--accent)}
.home-restored .nav-children{background:#151719;border-radius:0}
.home-restored .nav-children a:hover{background:#ffffff13}
.home-restored .hero{min-height:100svh;background:#00364a}
.home-restored .hero-slide{min-height:100svh}
.home-restored .empty-hero{padding-top:140px}
.home-restored .hero-body{width:min(90%,1560px);padding:130px 0 100px}
.home-restored .hero-copy{width:100%;max-width:min(90vw,1780px)}
.home-restored .hero-body h1{font-size:clamp(52px,5.65vw,120px);font-weight:760;letter-spacing:normal;line-height:1.07;max-width:none;margin:22px 0 27px;text-wrap:balance;overflow-wrap:break-word}
.home-restored .hero .eyebrow{display:flex;align-items:center;gap:12px;color:#f7f8f9;font-size:11px;letter-spacing:.18em}
.home-restored .hero .eyebrow::before{content:"";width:25px;height:1px;background:var(--accent);flex-shrink:0}
.home-restored .hero-description{max-width:630px;font-size:24px;line-height:1.5;color:#d5d7dc;white-space:pre-line}
.home-restored .hero-actions{display:flex;flex-wrap:wrap;gap:13px;align-items:center;margin-top:28px}
.home-restored .hero-actions .cta{margin:0;border-radius:5px;font-size:13px;line-height:1.4;padding:15px 22px;border:1px solid transparent;color:#111316}
.home-restored .hero-actions .cta-outline{background:transparent;border-color:#ffffff80;color:#f7f8f9}
.home-restored .slider-controls{justify-content:flex-end;bottom:22px;font-size:12px}
.home-restored .home-intro-panel{background:var(--home-intro-bg,#e5e9e3);color:var(--home-text,#20342b);scroll-margin-top:78px}
.home-restored .home-profile{width:min(var(--site-max-width,1240px),calc(100% - 48px));grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:clamp(36px,6vw,120px);align-items:start;padding-block:clamp(70px,9vw,150px)}
.home-restored .home-profile h2,.home-restored .expertise h2{font-size:44px;line-height:1.16;letter-spacing:normal;font-weight:720;margin:.2em 0 .35em;overflow-wrap:break-word}
.home-restored .home-profile .eyebrow,.home-restored .expertise .eyebrow{font-size:11px;line-height:1.5;color:var(--home-text);letter-spacing:.18em}
.home-restored .profile-lead{font-size:24px;line-height:1.5;color:inherit;margin-top:20px}
.home-restored .profile-copy{font-size:18px;line-height:1.75;color:inherit;max-width:760px}
.home-restored .profile-copy p{margin:0 0 1.05em}
.home-restored .profile-copy .cta{display:inline-flex;margin-top:12px;background:transparent;border-radius:0;border-bottom:1px solid currentColor;padding:0 0 6px;color:inherit;font-weight:700}
.home-restored .home-expertise{background:var(--home-skills-bg,#000);color:var(--home-text,#20342b);color:contrast-color(var(--home-skills-bg,#000));padding-block:clamp(70px,9vw,150px);scroll-margin-top:78px}
.home-restored .home-expertise>.site-container,.home-restored .expertise-controls{width:min(var(--site-max-width,1240px),calc(100% - 48px))}
.home-restored .expertise-heading{max-width:850px;margin-bottom:clamp(30px,4vw,56px)}
.home-restored .expertise-intro{color:inherit;font-size:18px;line-height:1.75;max-width:760px;margin-bottom:0}
body.home-restored main .home-expertise .expertise-heading :is(h2, .expertise-intro){color:inherit}
body.home-restored main .expertise-heading .eyebrow{color:var(--home-accent,#4da3ed)}
.home-restored .expertise-viewport{overflow-x:auto;overflow-y:hidden;scrollbar-width:none;scroll-behavior:smooth;scroll-padding-inline:max(24px,calc((100vw - var(--site-max-width,1240px))/2));overscroll-behavior-x:contain;touch-action:pan-x pan-y;padding:4px 0 18px;cursor:grab}
.home-restored .expertise-viewport::-webkit-scrollbar{display:none}
.home-restored .expertise-viewport.is-dragging{cursor:grabbing;user-select:none;scroll-behavior:auto}
.home-restored .expertise-track{display:flex;align-items:stretch;gap:clamp(16px,1.8vw,24px);padding-inline:max(24px,calc((100vw - var(--site-max-width,1240px))/2));width:max-content}
.home-restored .expert-card{position:relative;isolation:isolate;flex:0 0 clamp(340px,27vw,420px);width:clamp(340px,27vw,420px);min-height:470px;display:flex;flex-direction:column;border-radius:32px;background:var(--home-card-bg,#f7f5ef);color:var(--home-text,#20342b);border:1px solid #22352917;box-shadow:0 16px 32px #1a2f2514;transition:transform .28s,box-shadow .28s}
.home-restored .expert-card:hover{transform:translateY(-3px);box-shadow:0 17px 34px #12291c1f}
.home-restored .card-copy{padding:26px 26px 6px;display:flex;flex-direction:column;gap:13px}
.home-restored .card-copy h3{font-size:28px;line-height:1.17;letter-spacing:normal;font-weight:680;margin:0}
.home-restored .card-copy p{font-size:clamp(16px,1.06vw,18px);line-height:1.55;letter-spacing:normal;color:inherit;margin:0}
.home-restored .card-hitarea{position:absolute;inset:0;z-index:2;border-radius:inherit}
.home-restored .card-hitarea:focus-visible{outline-offset:-5px}
.home-restored .card-media{margin-top:auto;min-height:156px;display:flex;align-items:flex-end;justify-content:center;padding:16px 20px 22px}
.home-restored .card-media img{width:auto;max-width:100%;max-height:166px;aspect-ratio:auto;object-fit:contain;object-position:center bottom;filter:drop-shadow(0 14px 22px #1120181a)}
.home-restored .expertise-controls{display:flex;justify-content:flex-end;gap:14px;margin-top:18px}
.home-restored .expertise-controls button{width:44px;height:44px;border-radius:50%;border:1px solid #20342b1f;background:var(--home-card-bg);color:var(--home-text);font-size:24px;cursor:pointer}
.home-restored .expertise-controls button:disabled{opacity:.38;cursor:default}
.home-restored .site-footer{background:#080a0c;color:#c5c7cb;padding-block:60px 25px}
@media(max-width:1199px) and (min-width:761px){.home-restored .home-profile h2,.home-restored .expertise h2{font-size:40px}.home-restored .hero-description{font-size:22px}}
@media(max-width:900px){.home-restored .header-inner{min-height:65px}.home-restored .site-header{background:#0a0b0cbf;backdrop-filter:blur(16px)}.home-restored .menu-toggle{margin-left:auto}.home-restored .main-nav{background:#151719}.home-restored .main-nav .nav-list{display:block}}
@media(max-width:800px){.home-restored .home-profile{grid-template-columns:1fr;gap:22px}}
@media(max-width:760px){.home-restored .home-profile h2,.home-restored .expertise h2{font-size:32px}.home-restored .profile-lead{font-size:21px}.home-restored .profile-copy,.home-restored .expertise-intro{font-size:17px}.home-restored .card-copy h3{font-size:24px}.home-restored .expert-card{flex-basis:82vw;width:82vw;min-height:445px}.home-restored .card-copy{padding:22px 22px 6px}.home-restored .card-copy p{font-size:16px}.home-restored .card-media{min-height:136px;padding:16px 16px 18px}.home-restored .card-media img{max-height:145px}.home-restored .home-profile,.home-restored .home-expertise{padding-block:64px}}
@media(max-width:679px){.home-restored .hero-body{width:100%;padding:clamp(130px,22svh,190px) clamp(22px,6vw,32px) 80px}.home-restored .hero-copy{max-width:100%}.home-restored .hero-body h1{font-size:clamp(32px,8.25vw,51px);line-height:1.08;margin-bottom:20px}.home-restored .hero-description{font-size:clamp(14px,3.85vw,18px);line-height:1.5;max-width:100%}.home-restored .hero .eyebrow{font-size:clamp(9px,2.4vw,11px);letter-spacing:.12em}.home-restored .hero-actions{justify-content:center;gap:10px}.home-restored .hero-actions .cta{font-size:12px;padding:11px 15px}.home-restored .expertise-controls{margin-top:8px}}
@media(max-width:480px){.home-restored .home-profile,.home-restored .home-expertise>.site-container,.home-restored .expertise-controls{width:calc(100% - 36px)}.home-restored .expertise-track{padding-inline:18px}.home-restored .expertise-viewport{scroll-padding-inline:18px}.home-restored .brand{font-size:15px}}
@media(prefers-reduced-motion:reduce){.home-restored .expertise-viewport{scroll-behavior:auto}.home-restored .expert-card,.home-restored .site-header{transition:none}.home-restored .expert-card:hover{transform:none}}

/* L3.40: natural document scroll drives the optional pinned carousel. */
.home-restored .expertise-scroll-runway{position:relative;background:var(--home-skills-bg,#000)}
.home-restored .home-expertise.expertise-scroll-measure{padding-block:24px}
.home-restored .expertise-scroll-measure .expertise-heading{margin-bottom:24px}
.home-restored .home-expertise.expertise-scroll-pinned{position:sticky;top:var(--expertise-top);height:var(--expertise-height);display:flex;flex-direction:column;justify-content:center}
.home-restored .expertise-scroll-pinned .expertise-viewport{overflow:clip;cursor:default}
.home-restored .expertise-scroll-pinned .expertise-track{will-change:transform}
@media print{.home-restored .expertise-scroll-runway{height:auto!important}.home-restored .home-expertise.expertise-scroll-pinned{position:static;height:auto}.home-restored .expertise-scroll-pinned .expertise-track{width:auto;flex-wrap:wrap;transform:none!important}}

/* Homepage hero spacing adjustment */
body.home-restored main #hjem .hs-title {
  font-size: clamp(34px, 4.4vw, 70px);
}
body.home-restored main #hjem .hs-content {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 180px;
  padding-bottom: 130px;
}
@media (max-width:760px) {
  body.home-restored main #hjem .hs-title {
    font-size: clamp(30px, 7.6vw, 44px);
  }
  body.home-restored main #hjem .hs-content {
    padding-top: 150px;
    padding-bottom: 110px;
  }
}

/* Hero lower position */
body.home-restored main #hjem .hs-content {
  padding-bottom: 100px;
}
@media (max-width:760px) {
  body.home-restored main #hjem .hs-content {
    padding-bottom: 80px;
  }
}

