/* Homepage art direction: a quiet, scroll-controlled construction story. */
.home-page {
 --paper:#f4f1eb;
 --ink:#302f29;
 --story-accent:#453d35;
 --story-progress:0;
}
.home-page h2 {font-family:Georgia,"Times New Roman",serif;letter-spacing:-.045em}
.home-page .header {
 position:fixed;inset:0 0 auto;height:100px;padding-inline:5%;
 color:var(--ink);background:linear-gradient(#f4f1ebe8,#f4f1eb00);
}
.home-page .header.on-paper {background:var(--paper);box-shadow:0 1px 0 #d7d3c980}
.home-page:has(.build-story) .header .brand img {filter:none;width:126px}
.home-page:has(.build-story) .header nav a {color:var(--ink);font-size:13px}
.home-page:has(.build-story) .header .nav-cta {
 background:var(--story-accent);color:#f4f1eb;border-color:transparent;
 padding:12px 21px;font-size:12px;gap:25px;
}
.build-story {position:relative;background:#d6cbbd}
.build-story.is-enhanced {height:420svh}
.build-story .story-stage {
 position:sticky;top:0;height:100svh;min-height:580px;overflow:hidden;
 color:var(--ink);isolation:isolate;background:#d6cbbd;
}
.story-stage .cinema-visual {z-index:-2}
.story-stage .cinema-visual video {object-position:50% 40%;filter:none;opacity:1}
.story-stage.cinema-hero::after{display:none}
.story-chapters {position:absolute;inset:0;pointer-events:none}
.story-copy {
 position:absolute;left:6%;top:50%;width:43%;max-width:590px;
 transform:translateY(-50%);pointer-events:auto;
}
.story-copy :is(h1,h2,p) {text-shadow:0 1px 8px #f4f1eb70}
.story-copy[hidden] {display:none}
.story-copy.is-active {animation:story-enter .55s ease both}
.story-copy .eyebrow {font-size:10px;letter-spacing:.15em;margin:0 0 25px}
.home-page .story-copy :is(h1,h2) {
 font-family:Georgia,"Times New Roman",serif;font-size:clamp(54px,5.4vw,88px);
 font-weight:400;letter-spacing:-.05em;line-height:1.02;margin:0 0 28px;
}
.story-copy :is(h1,h2) em {font-family:inherit;font-weight:400}
.story-copy>p:not(.eyebrow) {font-size:14px;line-height:1.75;margin:0 0 26px;color:#302f29}
.story-copy .pill {background:var(--story-accent);color:#f4f1eb;font-size:12px;padding:15px 22px;gap:32px;min-height:44px}
.story-bottom {
 position:absolute;left:6%;right:6%;bottom:25px;display:grid;
 grid-template-columns:1fr auto;gap:16px 28px;align-items:center;
}
.story-guide {display:flex;align-items:center;gap:14px;font-size:11px}
.story-scroll-icon {display:grid;place-items:center;width:32px;height:40px;border:1px solid #98948380;border-radius:22px;font-size:18px}
.story-controls {display:flex;gap:23px;align-items:center}
.story-controls :is(button,a) {display:inline-flex;align-items:center;min-height:44px;padding:8px 0;border:0;border-bottom:1px solid #98948380;background:none;font:inherit;font-size:11px;color:var(--ink);cursor:pointer}
.story-guide,.story-controls,.story-disclosure {background:#f4f1eb;padding:5px 10px;width:fit-content}
.story-controls {border-radius:3px}
.story-controls span {margin-left:8px}
.story-disclosure {font-size:8px;letter-spacing:.14em;grid-column:1/-1;margin:0}
.story-progress {grid-column:1/-1;height:2px;background:#d7d3c9;overflow:hidden}
.story-progress>span {display:block;background:var(--story-accent);width:100%;height:100%;transform:scaleX(var(--story-progress));transform-origin:left}
.home-page #om,.home-page #prosjekter,.home-page #tjenester,.home-page #kontakt {scroll-margin-top:105px}
.home-page .brand-statement {padding-block:105px;gap:10%;grid-template-columns:1fr 1.2fr}
.home-page .brand-statement h2 {font-size:clamp(36px,4vw,62px);max-width:420px}
.home-page .brand-statement>p {font-size:16px;line-height:1.95}
.home-page .selected-projects {padding-top:80px}
.home-page .section-heading {align-items:end}
.home-page .section-heading>p {font-size:13px}
.home-page .home-projects {gap:32px}
.home-page .home-project figure {aspect-ratio:4/5}
.home-page .home-project h3 {font-size:clamp(24px,2.3vw,34px)}
.home-page .trade-card figure {aspect-ratio:5/4}
.home-page .trade-services {padding-top:90px}
.home-page .process-editorial {background:#453d35}
.home-page .process-steps h3 {font-size:24px;letter-spacing:-.035em}
.home-page .contact h2 {font-size:clamp(44px,5vw,72px)}
.home-page .contact .button {background:var(--story-accent)}
.home-page .footer-top>p {font-family:Georgia,"Times New Roman",serif;font-size:25px}
@keyframes story-enter {from{opacity:0;translate:0 12px}to{opacity:1;translate:0 0}}
@media(min-width:1600px){.story-copy{left:max(6%,calc((100vw - 1510px)/2))}}
@media(max-width:850px) {
 .home-page .header{height:88px}
 .story-copy{width:53%;left:6%}
 .home-page .story-copy :is(h1,h2){font-size:clamp(48px,6.6vw,66px)}
 .story-stage.cinema-hero::after{display:none}
 .story-bottom{gap:12px}
 .story-controls{gap:16px}
}
@media(max-width:650px) {
 .home-page .header{height:82px;padding-inline:6%}
 .home-page:has(.build-story) .header .brand img{width:103px}
 .home-page .menu-toggle{color:var(--ink)}
 .build-story.is-enhanced{height:340svh}
 .build-story .story-stage{height:100svh;min-height:620px}
 .story-stage .cinema-visual video{object-position:50% 50%}
 .story-stage.cinema-hero::after{display:none}
 .story-copy{left:6%;right:6%;width:auto;top:120px;bottom:auto;transform:none}
 .home-page .story-copy :is(h1,h2){font-size:clamp(43px,11.8vw,62px);margin-bottom:17px}
 .story-copy .eyebrow{font-size:8px;letter-spacing:.13em;margin-bottom:15px}
 .story-copy>p:not(.eyebrow){font-size:12px;line-height:1.6;margin-bottom:18px}
 .story-copy .pill{padding:12px 19px;font-size:11px}
 .story-bottom{bottom:22px;gap:12px;grid-template-columns:1fr}
 .story-guide{font-size:10px;gap:10px;min-height:44px}
 .story-scroll-icon{width:24px;height:29px;font-size:15px}
 .story-controls{position:absolute;right:0;top:1px;gap:15px}
 .story-controls :is(button,a){font-size:10px}
 .story-controls a{display:none}
 .story-disclosure{font-size:6px;letter-spacing:.13em}
 .story-progress{margin-top:2px}
 .home-page .brand-statement{padding-block:65px;grid-template-columns:1fr;gap:24px}
 .home-page .brand-statement h2{font-size:42px}
 .home-page .brand-statement>p{font-size:14px;line-height:1.85}
 .home-page .selected-projects{padding-top:55px}
 .home-page .section-heading{display:block}
 .home-page .section-heading h2{font-size:44px}
 .home-page .section-heading>p{margin-top:14px}
 .home-page .home-projects{gap:42px}
 .home-page .home-project figure{aspect-ratio:5/4}
 .home-page .home-project h3{font-size:30px}
 .home-page .trade-services{padding-top:45px}
 .home-page .trade-services .section-heading{display:flex}
 .home-page .trade-card figure{aspect-ratio:3/2}
 .home-page .process-steps{grid-template-columns:1fr;gap:30px}
 .home-page .process-steps h3{margin-top:20px}
}
@media(prefers-reduced-motion:reduce) {
 .build-story.is-enhanced{height:auto}
 .build-story .story-stage{position:relative}
 .story-copy.is-active{animation:none}
}
.build-story.story-static{height:auto}
.build-story.story-static .story-stage{position:relative}
@media(max-height:650px) {
 .build-story .story-stage{min-height:0}
 .home-page .header{height:68px}
 .home-page:has(.build-story) .header .brand img{width:90px}
 .story-copy{top:48%;bottom:auto;transform:translateY(-50%)}
 .home-page .story-copy :is(h1,h2){font-size:clamp(32px,7vh,49px);margin-bottom:12px}
 .story-copy .eyebrow{margin-bottom:12px;font-size:8px}
 .story-copy>p:not(.eyebrow){font-size:11px;margin-bottom:14px}
 .story-copy .pill{padding:10px 16px;font-size:10px}
 .story-bottom{bottom:16px;gap:8px}
 .story-scroll-icon{height:25px;width:23px}
}
@media(max-height:450px) {
 .story-copy{top:47%;width:55%}
 .story-copy .eyebrow{display:none}
 .story-copy>p:not(.eyebrow){margin-bottom:10px}
 .story-disclosure{font-size:6px}
 .story-guide{font-size:9px}
}
@media(max-width:650px) and (max-height:650px) {
 .story-copy{top:94px;bottom:auto;transform:none}
 .story-stage.cinema-hero::after{display:none}
}

/* Contained film: preserve source detail and let visitors scroll normally. */
.home-page .header {background:var(--paper);border-bottom:1px solid #d7d3c980}
.build-story,.build-story.is-enhanced,.build-story.story-static {height:auto;background:var(--paper)}
.build-story .story-stage {position:relative;top:auto;height:auto;min-height:0;max-width:1400px;margin:auto;padding:140px 6% 60px;display:grid;grid-template-columns:1fr minmax(0,440px);gap:8%;align-items:center;overflow:visible;background:var(--paper)}
.story-chapters {position:static;pointer-events:auto;min-width:0}
.story-copy {position:static;transform:none;translate:none;width:auto;max-width:570px;animation:none}
.story-copy :is(h1,h2,p) {text-shadow:none}
.home-page .story-copy h1 {font-size:clamp(50px,5.4vw,78px);line-height:1.04;margin:0 0 26px}
.story-copy .eyebrow {font-size:11px;letter-spacing:.15em;display:block;margin:0 0 26px}
.story-copy>p:not(.eyebrow) {max-width:355px;font-size:16px;line-height:1.8;margin:0 0 30px;color:#646056}
.story-copy .pill {font-size:14px;min-height:50px;padding:15px 24px}
.story-project-link {display:flex;width:fit-content;align-items:center;gap:25px;min-height:48px;margin-top:18px;font-size:14px;color:var(--ink);text-decoration:underline;text-underline-offset:5px}
.story-media {width:100%;min-width:0}
.story-stage .cinema-visual {position:relative;inset:auto;z-index:auto;aspect-ratio:4/5;background:#e6dfd4;overflow:hidden}
.story-stage .cinema-visual video {width:100%;height:100%;object-fit:contain;object-position:center;filter:none;opacity:1}
.story-bottom {position:static;display:block;margin-top:12px;width:100%}
.story-controls {position:static;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:0;background:none;width:100%;border-radius:0}
.story-controls button {font-size:13px;min-height:48px;padding:10px 0;border:0;white-space:nowrap}
.story-controls [data-story-hint] {font-size:11px;color:#70695e;text-align:right}
.story-controls button:disabled {cursor:default}
.story-progress {margin:2px 0 12px;height:2px;background:#d7d3c9}
.story-disclosure {padding:0;background:none;font-size:10px;color:#70695e;letter-spacing:.04em;width:auto}
.story-bottom noscript p {font-size:13px;line-height:1.5}
.story-stage :is(a,button):focus-visible {outline:2px solid var(--ink);outline-offset:5px}
@media(min-width:1000px) and (max-height:800px) {
 .build-story .story-stage {grid-template-columns:1fr minmax(0,370px);padding-top:125px;padding-bottom:40px}
}
@media(max-width:750px) {
 .build-story .story-stage {grid-template-columns:1fr;gap:30px;padding:114px 6% 40px}
 .story-copy {max-width:none}
 .home-page .story-copy h1 {font-size:clamp(47px,9vw,64px);margin-bottom:20px}
 .story-copy .eyebrow {font-size:10px;margin-bottom:20px}
 .story-copy>p:not(.eyebrow) {font-size:15px;max-width:420px;margin-bottom:22px}
 .story-copy .pill {font-size:14px;padding:14px 22px}
 .story-project-link {margin-top:10px;font-size:13px}
 .story-media {max-width:440px;justify-self:center}
 .story-bottom {margin-top:8px}
 .story-controls [data-story-hint] {font-size:10px;max-width:130px}
 .story-disclosure {font-size:10px}
}
@media(prefers-reduced-motion:reduce) {.story-copy {animation:none}}
@media(max-width:650px) {
 .home-page .brand-statement>p:last-child {grid-column:auto;min-width:0;max-width:100%;overflow-wrap:break-word}
}

/* A short scroll journey; the source remains contained and sharp. */
@media(prefers-reduced-motion:no-preference) {
 .build-story.is-enhanced {height:250svh}
 .build-story.is-enhanced .story-stage {position:sticky;top:0;height:100svh;box-sizing:border-box;padding-top:115px;padding-bottom:25px}
 .build-story.is-enhanced .story-media {max-width:min(440px,calc((100svh - 220px)*.8));justify-self:end}
}
@media(max-width:750px) and (prefers-reduced-motion:no-preference) {
 .build-story.is-enhanced {height:auto}
 .build-story.is-enhanced .story-stage {position:relative;top:auto;height:auto;min-height:280svh;align-content:start;padding:114px 6% 40px;gap:30px}
 .build-story.is-enhanced .story-media {position:sticky;top:90px;align-self:start;justify-self:center;width:100%;max-width:min(440px,calc((100svh - 195px)*.8))}
}
.story-meta {display:flex;justify-content:space-between;align-items:center;gap:10px}
.story-meta a {font-size:11px;color:var(--ink);min-height:44px;display:inline-flex;align-items:center;text-underline-offset:4px;white-space:nowrap}
.story-meta .story-disclosure {margin:0}
@media(min-width:751px) and (max-width:999px) {
 .build-story .story-stage {grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6%}
 .home-page .story-copy h1 {font-size:clamp(42px,5.5vw,54px)}
 .story-copy>p:not(.eyebrow) {font-size:14px;line-height:1.7}
 .story-controls {gap:6px}
 .story-controls [data-story-hint] {max-width:130px;font-size:10px}
 .story-meta {flex-wrap:wrap;gap:0}
}

/* Larger editorial hero: the film occupies the right half, edge to edge. */
@media(min-width:751px) {
 .build-story .story-stage,
 .build-story.is-enhanced .story-stage {max-width:none;grid-template-columns:42% 58%;gap:0;padding:100px 0 0;height:100svh;min-height:620px;align-items:stretch}
 .story-chapters {display:flex;align-items:center;padding:35px 12% 35px 14%}
 .story-copy {width:100%;max-width:500px}
 .home-page .story-copy h1 {font-size:clamp(44px,5.1vw,78px)}
 .story-copy>p:not(.eyebrow) {font-size:15px;line-height:1.8}
 .build-story .story-media,.build-story.is-enhanced .story-media {position:relative;max-width:none;width:100%;height:100%;min-height:0;justify-self:stretch;overflow:hidden;background:#e6dfd4}
 .story-stage .cinema-visual {width:100%;height:100%;aspect-ratio:auto}
 .story-stage .cinema-visual video {object-fit:cover;object-position:center}
 .story-bottom {position:absolute;inset:auto 0 0;margin:0;padding:12px 24px 10px;background:linear-gradient(transparent,#f4f1ebed 28%);box-sizing:border-box}
 .story-controls [data-story-hint] {color:#453d35}
 .story-meta .story-disclosure {color:#453d35}
 .story-meta {flex-wrap:nowrap}
}
@media(min-width:751px) and (max-width:999px) {
 .build-story .story-stage,.build-story.is-enhanced .story-stage {padding-top:88px;grid-template-columns:40% 60%}
 .story-chapters {padding:26px 10% 26px 12%}
 .home-page .story-copy h1 {font-size:44px}
 .story-copy .eyebrow {font-size:9px;letter-spacing:.1em}
 .story-copy>p:not(.eyebrow) {font-size:14px}
 .story-stage .cinema-visual video {object-fit:contain}
 .story-bottom {padding-inline:14px}
 .story-meta {flex-wrap:wrap}
}
@media(max-width:750px) {
 .build-story .story-stage,.build-story.is-enhanced .story-stage {padding-inline:0;gap:24px}
 .story-chapters {padding-inline:6%}
 .build-story .story-media,.build-story.is-enhanced .story-media {max-width:none;width:100%}
 .story-stage .cinema-visual {height:min(125vw,calc(100svh - 230px));aspect-ratio:auto}
 .story-stage .cinema-visual video {object-fit:cover}
 .story-bottom {padding:0 6%;box-sizing:border-box}
}

/* Display the original 1080px-wide master without an intermediate crop/encode. */
.build-story .story-media,.build-story.is-enhanced .story-media {display:flex;flex-direction:column;background:var(--paper)}
.story-stage .cinema-visual {flex:1;min-height:0}
.story-stage .cinema-visual video {object-fit:cover;object-position:50% 58%;filter:none;transform:none}
.story-bottom {position:static;inset:auto;flex:none;background:var(--paper);margin:0;padding:8px 24px 0;box-sizing:border-box}
@media(min-width:751px) {
 .build-story .story-stage,.build-story.is-enhanced .story-stage {grid-template-columns:minmax(0,1fr) minmax(0,1.1fr)}
 .build-story .story-media,.build-story.is-enhanced .story-media {max-width:800px;justify-self:start}
}
@media(max-width:750px) {
 .story-stage .cinema-visual {flex:none;height:min(120vw,calc(100svh - 230px))}
 .story-bottom {padding:8px 6% 0}
}

/* Immersive hero. Use the untouched master; only crop its surplus ceiling/floor. */
.build-story .story-stage,.build-story.is-enhanced .story-stage {display:block;max-width:none;height:100svh;min-height:620px;padding:0;overflow:hidden;isolation:isolate;background:#453d35}
.build-story .story-media,.build-story.is-enhanced .story-media {position:absolute;inset:0;max-width:none;width:100%;height:100%;display:block;z-index:0;background:transparent}
.story-stage .cinema-visual {position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto}
.story-stage .cinema-visual video {object-fit:cover;object-position:50% 55%;filter:none;transform:none}
.story-stage .story-chapters {position:relative;z-index:2;display:flex;align-items:flex-end;box-sizing:border-box;height:100%;padding:150px 6% 175px;pointer-events:none;background:linear-gradient(90deg,rgba(24,22,19,.55),rgba(24,22,19,.12) 65%,transparent)}
.story-stage .story-copy {pointer-events:auto;max-width:620px;width:55%;color:#fffaf2}
.home-page .story-copy h1 {font-size:clamp(48px,6vw,86px);color:#fffaf2}
.story-copy .eyebrow,.story-copy>p:not(.eyebrow) {color:#fffaf2}
.story-copy>p:not(.eyebrow) {max-width:440px}
.story-copy .pill {background:#f4f1eb;color:#302f29}
.story-project-link {color:#fffaf2}
.story-stage .story-bottom {position:absolute;z-index:3;inset:auto 6% 20px;padding:0;background:none;width:auto;color:#fffaf2}
.story-controls button,.story-controls [data-story-hint],.story-meta a,.story-meta .story-disclosure {color:#fffaf2}
.story-progress {background:#ffffff50}
.story-progress>span {background:#fffaf2}
.home-page:has(.build-story) .header:not(.on-paper) {background:linear-gradient(#18161385,transparent);border:0;color:#fffaf2}
.home-page:has(.build-story) .header:not(.on-paper) .brand img {filter:brightness(0) invert(1)}
.home-page:has(.build-story) .header:not(.on-paper) nav a,.home-page:has(.build-story) .header:not(.on-paper) .menu-toggle {color:#fffaf2}
@media(max-width:750px) {
 .build-story.is-enhanced {height:250svh}
 .build-story .story-stage,.build-story.is-enhanced .story-stage {position:sticky;top:0;min-height:620px;height:100svh;padding:0}
 .story-stage .story-chapters {padding:120px 6% 170px;background:linear-gradient(0deg,#181613aa,transparent 90%)}
 .story-stage .story-copy {width:100%;max-width:520px}
 .home-page .story-copy h1 {font-size:clamp(43px,10vw,62px);margin-bottom:18px}
 .story-copy .eyebrow {margin-bottom:18px}
 .story-copy>p:not(.eyebrow) {font-size:14px;margin-bottom:18px}
 .story-project-link {display:none}
 .story-stage .cinema-visual video {object-position:50% 55%}
 .story-stage .story-bottom {inset:auto 6% 15px}
}
@media(prefers-reduced-motion:reduce) {
 .build-story.is-enhanced {height:auto}
 .build-story .story-stage {position:relative}
}
.build-story .story-media,.build-story.is-enhanced .story-media {z-index:auto}
.story-stage .cinema-visual {z-index:0}
.story-stage::before {content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,rgba(24,22,19,.55),rgba(24,22,19,.12) 65%,transparent)}
.story-stage .story-chapters {background:none}
@media(max-width:750px) {.story-stage::before {background:linear-gradient(0deg,#181613b3,transparent 95%)}}

/* Slightly wider perceived framing without inventing edges or blurring a backdrop. */
.story-stage .cinema-visual {inset:3%;width:94%;height:94%;background:#453d35}
.story-stage .cinema-visual video {object-position:50% 55%}
@media(max-width:750px) {
 .story-stage .cinema-visual {inset:2%;width:96%;height:96%}
}

/* Approved 1920x1080 film. Keep its complete composition on portrait screens. */
.story-landscape .cinema-visual {inset:0;width:100%;height:100%}
.story-landscape .cinema-visual video {object-position:center}
@media(max-aspect-ratio:4/3) {
 .home-page:has(.story-landscape) .header:not(.on-paper) {background:var(--paper);color:var(--ink);border-bottom:1px solid #d7d3c980}
 .home-page:has(.story-landscape) .header:not(.on-paper) .brand img {filter:none}
 .home-page:has(.story-landscape) .header:not(.on-paper) nav a,
 .home-page:has(.story-landscape) .header:not(.on-paper) .menu-toggle {color:var(--ink)}
 .build-story.story-landscape .story-stage,
 .build-story.story-landscape.is-enhanced .story-stage {
  display:grid;grid-template-columns:1fr;grid-template-rows:88px auto minmax(0,1fr) auto;
  gap:0;padding:0 0 16px;height:100svh;min-height:calc(56.25vw + 440px);
  background:var(--paper);overflow:hidden;
 }
 .story-landscape .story-stage::before {display:none}
 .build-story.story-landscape .story-media,
 .build-story.story-landscape.is-enhanced .story-media {display:contents}
 .story-landscape .cinema-visual {
  position:relative;grid-row:2;inset:auto;width:100%;height:auto;aspect-ratio:16/9;
  background:var(--paper);min-height:0;
 }
 .story-landscape .cinema-visual video {object-fit:contain;object-position:center}
 .story-landscape .story-chapters {
  position:relative;grid-row:3;height:auto;min-height:0;padding:20px 6% 10px;
  align-items:center;color:var(--ink);
 }
 .story-landscape .story-copy {width:100%;max-width:none;color:var(--ink)}
 .home-page .story-landscape .story-copy h1 {font-size:clamp(34px,6.6vw,46px);margin-bottom:14px;color:var(--ink)}
 .story-landscape .story-copy .eyebrow {display:none}
 .story-landscape .story-copy>p:not(.eyebrow) {font-size:14px;line-height:1.6;max-width:550px;color:#646056;margin-bottom:18px}
 .story-landscape .story-copy .pill {background:var(--story-accent);color:var(--paper);min-height:46px;padding:12px 22px}
 .story-landscape .story-project-link {display:none}
 .story-landscape .story-bottom {position:static;grid-row:4;inset:auto;padding:0 6%;width:100%;color:var(--ink)}
 .story-landscape .story-controls button,
 .story-landscape .story-controls [data-story-hint],
 .story-landscape .story-meta a,
 .story-landscape .story-meta .story-disclosure {color:var(--ink)}
 .story-landscape .story-controls button {min-height:44px}
 .story-landscape .story-progress {background:#d7d3c9}
 .story-landscape .story-progress>span {background:var(--story-accent)}
 .story-landscape .story-meta {flex-wrap:wrap;gap:0 12px}
}
