/* ugna.no home v43 (25 Nov 2026): everything under the valley hero. Taken from the ugna.com landing preview (landing.css, branch
   claude/ugna-com-landing-52c0e0 at 9ce5fae2) and cut down to the parts this page shows: The sites, the three scenes, Why here, Industries
   we power, the dark Join us sheet and the footer. The hero and the floating nav stay with the engine (ugna-site-v43.js).
   Changes from the preview: Apercu Pro instead of Geist (weights 450 become 400, the nearest lighter weight Apercu has); the tokens live on
   .site and .foot instead of :root, and the preview's element rules only reach into .site and .foot, so nothing here touches the hero or the
   nav and the engine's tokens cannot change these sections; resets for the Webflow element rules (li, a) the preview never met; the first
   section takes over from the hero the way ugna.no's did (a 110 px fade to the tint, ugna.no's top padding); the scenes: the first opens
   as before, the middle one is always full-bleed, the last arrives full-bleed and closes as it leaves. */

.site, .foot {
  --night: #17211a;                      /* the closing sheet: the forest at night */
  --white: #fff;
  --edge: max(24px, calc(env(safe-area-inset-left) + 8px));
  --edge-r: max(24px, calc(env(safe-area-inset-right) + 8px));
  --tint: #eef2eb;
  --ink: #1a221c;
  --green: #2d4a38;
  --body: #3f4b43;
  --muted: #6f7a70;
  --sage-text: #4a6640;
  --rule: #dde3da;
  --wrap: 1120px;
  --gut: max(24px, env(safe-area-inset-left), env(safe-area-inset-right));
  --e: cubic-bezier(.2, .7, .2, 1);      /* the page's one ease: quick to start, long to settle */
  font-family: "Apercu Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px; line-height: normal;  /* the preview's body; the engine's .u-root (17.5px / 1.55) would otherwise reach in */
  -webkit-font-smoothing: antialiased;
}
/* the footer is outside main.u-site, so it waits and fades in with it (the first-paint style only holds .u-nav and .u-site) */
.foot { opacity: 0; animation: uBoot .7s ease 1.4s forwards; }
html.u-cas2 .foot { opacity: 1; animation: none; transition: opacity .7s ease; }
html.u-reduce .foot { opacity: 1; animation: none; }
:where(.site, .foot) img { display: block; max-width: 100%; height: auto; }
:where(.site, .foot) a { color: inherit; font-weight: inherit; }
:where(.site, .foot) a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 4px; }
:where(.site) li { margin: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------------------------------------------------------------- ugna.no's story */
/* the hero's valley lies behind the page (a fixed canvas); the first section fades in over it as ugna.no's next section always did */
.site { background: linear-gradient(to bottom, rgba(238, 242, 235, 0), #eef2eb 110px); }
.sec { padding: clamp(96px, 12vw, 168px) var(--gut) 0; }
.in { max-width: var(--wrap); margin: 0 auto; }
.grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 1fr) minmax(0, 6fr); row-gap: 56px; }
.grid > .l { grid-column: 1; }
.grid > .r { grid-column: 3; padding-top: 29px; }
.grid > .wide { grid-column: 1 / -1; }

.kicker {
  display: block; margin: 0 0 18px;
  font-size: 11px; line-height: 1; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 400; color: var(--sage-text);
}
.site h2 {
  margin: 0;
  font-size: clamp(28px, 3.1vw, 40px); line-height: 1.12; font-weight: 300; letter-spacing: -.018em;
  color: var(--green);
  text-wrap: balance;
}
.site p { margin: 0 0 1em; font-size: 16px; line-height: 1.65; color: var(--body); max-width: 34em; }
.site p:last-child { margin-bottom: 0; }
.split .w { display: inline-block; }

/* the three scenes, edge to edge. With the script the first opens from a rounded frame to the full width as it comes up (--k, 0 framed to
   1 open), the middle one is full-bleed throughout, and the last comes up full-bleed and closes back into the frame as it leaves; each
   drawing drifts a little slower than the page (--t, 0 entering to 1 gone). The words sit at the left. */
.sites { padding-top: clamp(64px, 7vw, 96px); padding-bottom: clamp(64px, 8vw, 112px); }
.scene { position: relative; height: min(100vh, 72vw); height: min(100svh, 72vw); min-height: 460px; overflow: hidden; background: #2f3a32; color: var(--white); }
.scene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 85% at 0% 100%, rgba(10, 16, 12, .6) 0, rgba(10, 16, 12, .26) 40%, rgba(10, 16, 12, 0) 66%),
    linear-gradient(to top, rgba(10, 16, 12, .34) 0, rgba(10, 16, 12, 0) 42%);
}
html.fx-on .scene {
  --fy: 7vh; --fx: max(24px, 5vw);
  clip-path: inset(calc((1 - var(--k, 1)) * var(--fy)) calc((1 - var(--k, 1)) * var(--fx)) round calc((1 - var(--k, 1)) * 32px));
}
html.fx-on .scene[data-k="hold"] { clip-path: none; }
html.fx-on .scene img { transform: translate3d(0, calc((var(--t, .5) - .5) * -6%), 0) scale(calc(1.14 - .07 * var(--k, 1))); will-change: transform; }
.cap {
  position: absolute; z-index: 1;
  left: var(--edge); right: var(--edge-r); bottom: clamp(32px, 7vh, 80px);
  max-width: 34em;
}
.cap .num { display: block; margin-bottom: 14px; font-size: 11px; line-height: 14px; /* the preview's line box (Geist's normal); Apercu's normal is 11px */ letter-spacing: .2em; color: rgba(255, 255, 255, .72); font-variant-numeric: tabular-nums; }
.cap h3 { margin: 0 0 12px; font-size: clamp(28px, 3.6vw, 52px); line-height: 1.06; font-weight: 300; letter-spacing: -.016em; color: var(--white); text-wrap: balance; text-shadow: 0 1px 18px rgba(0, 0, 0, .18); }
.site .cap p { margin: 0; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, .88); max-width: 32em; }

/* why here: three pillars between hairlines */
.pillars { display: flex; flex-direction: column; }
.pillar { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 18px; padding: 24px 0; }
.pillar:first-child { padding-top: 0; }
.pillar + .pillar::before, .tags::before, .tags li + li::before { content: ''; position: absolute; background: var(--rule); pointer-events: none; }
.pillar + .pillar::before { left: 0; right: 0; top: 0; height: 1px; transform-origin: 0 50%; }
.pillar .ic { grid-row: span 2; width: 30px; height: 30px; color: var(--green); }
.pillar h3 { margin: 4px 0 6px; font-size: 15.5px; line-height: 1.3; font-weight: 500; color: var(--ink); }
.site .pillar p { font-size: 14.5px; line-height: 1.6; color: var(--muted); }

/* the industries, between hairlines */
.tags { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tags::before { left: 0; right: 0; top: 0; height: 1px; transform-origin: 0 50%; }
.tags li { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 26px 18px 4px; font-size: 14px; line-height: 1.35; color: var(--ink); }
.tags li + li::before { left: 0; top: 0; bottom: 0; width: 1px; transform-origin: 50% 0; }
.tags li:first-child { padding-left: 0; }
.tags .ic { width: 28px; height: 28px; color: var(--green); flex: none; }

/* join us: a dark sheet that closes the page, its top corners rounded, with the footer on it */
.end {
  position: relative;
  margin-top: clamp(120px, 15vw, 220px);
  padding: clamp(88px, 10vw, 150px) var(--gut) clamp(80px, 9vw, 128px);
  border-radius: 32px 32px 0 0;
  background: radial-gradient(130% 100% at 10% 0%, #26392c 0, var(--night) 62%);
  color: #e9efe6;
}
.end .mark { display: block; width: 34px; height: 34px; margin: 0 0 22px; color: #cfdfc6; }
.end .kicker { color: #a6bf9b; }
.site .end h2 { color: #eef2eb; }
.site .end p { color: rgba(233, 239, 230, .74); }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 30px; }
.cta {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 26px;
  border-radius: 999px; background: #eef2eb; color: #1b2a20;
  font-size: 15px; font-weight: 400; text-decoration: none;
  transition: background .25s ease, transform .25s var(--e);
}
.cta:hover { background: #fff; color: #1b2a20; transform: translate3d(0, -1px, 0); }
.cta:focus-visible { outline-color: #eef2eb; }   /* the ring sits on the dark sheet, not on the light pill */
.cta2 {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 14.5px; font-weight: 400; color: #dfe8da;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: rgba(223, 232, 218, .32);
  transition: text-decoration-color .25s ease, color .25s ease;
}
.cta2:hover { color: #fff; text-decoration-color: rgba(255, 255, 255, .8); }

/* the footer, on the dark sheet: the wordmark on the left, the address, Privacy and the year on the right */
.foot { position: relative; z-index: 1; background: var(--night); padding: 0 var(--gut) max(28px, env(safe-area-inset-bottom)); }
.foot .in { display: flex; flex-wrap: wrap; align-items: center; gap: 0 26px; padding-top: 22px; border-top: 1px solid rgba(233, 239, 230, .12); }
.flogo { display: block; line-height: 0; color: #eef2eb; margin-right: auto; }
.flogo:hover { color: #eef2eb; }
.flogo svg { display: block; height: 17px; width: 75px; fill: currentColor; overflow: visible; }
.fl { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 400; color: rgba(233, 239, 230, .6); text-decoration: none; transition: color .2s ease; }
a.fl:hover { color: #fff; }

/* ---------------------------------------------------------------- the story comes in (only when the script runs and motion is welcome) */
/* The script marks each block .rv, splits its headings into words (.w) and gives every part its moment (--d): the label first, the words of
   the heading one after another, then the text; a line sign draws itself, a hairline runs out. A block comes in once, when it is in view. */
html.rv-on .rv :is(.kicker, .num, .w, h3:not(.split), p:not(.split), .ctas, li) { opacity: 0; transform: translate3d(0, 16px, 0); }
html.rv-on .rv .split .w { transform: translate3d(0, .42em, 0); filter: blur(6px); }
html.rv-on .rv.seen :is(.kicker, .num, .w, h3:not(.split), p:not(.split), .ctas, li) {
  opacity: 1; transform: none; filter: none;
  transition: opacity 1s var(--e) var(--d, 0ms), transform 1.25s var(--e) var(--d, 0ms), filter 1s var(--e) var(--d, 0ms);
}
/* the line signs draw themselves (the dash is inherited through <use> by every line of the sign; the longest is about 130 units) */
html.rv-on .rv :is(.ic, .mark) { opacity: 0; stroke-dasharray: 140; stroke-dashoffset: 140; }
html.rv-on .rv.seen :is(.ic, .mark) { opacity: 1; stroke-dashoffset: 0; transition: opacity .6s ease var(--d, 0ms), stroke-dashoffset 2.2s cubic-bezier(.25, .8, .25, 1) var(--d, 0ms); }
/* 3.5 s after a block came in its transitions are over; .done then drops them, which changes nothing where they ran and shows the block where
   a browser never runs them */
html.rv-on .rv.seen.done :is(.kicker, .num, .w, h3:not(.split), p:not(.split), .ctas, li, .ic, .mark), html.rv-on .rv.seen.done::before, html.rv-on .rv.seen.done li::before { transition: none; }
/* the hairlines run out from their start */
html.rv-on .pillar.rv + .pillar.rv::before, html.rv-on .tags.rv::before { transform: scaleX(0); }
html.rv-on .tags.rv li + li::before { transform: scaleY(0); }
html.rv-on .pillar.rv.seen + .pillar.rv::before, html.rv-on .pillar.rv + .pillar.rv.seen::before, html.rv-on .tags.rv.seen::before, html.rv-on .tags.rv.seen li + li::before {
  transform: none; transition: transform 1.6s var(--e) var(--d, 0ms);
}

@media (min-width: 1100px) {
  .site, .foot { --edge: max(48px, env(safe-area-inset-left)); --edge-r: max(48px, env(safe-area-inset-right)); }
}
@media (max-width: 860px) {
  .grid { grid-template-columns: minmax(0, 1fr); row-gap: 26px; }
  .grid > .l, .grid > .r, .grid > .wide { grid-column: 1; }
  .grid > .r { padding-top: 0; }
  .tags { grid-template-columns: minmax(0, 1fr); margin-top: 8px; }
  .tags li { flex-direction: row; align-items: center; gap: 16px; padding: 16px 0; }
  .tags li + li::before { top: 0; bottom: auto; right: 0; width: auto; height: 1px; transform-origin: 0 50%; }
  html.rv-on .tags.rv li + li::before { transform: scaleX(0); }
  .end { border-radius: 24px 24px 0 0; }
}
/* phones: a scene is a tall picture, the drawing's middle in view, and opens or closes in a narrower frame */
@media (max-aspect-ratio: 1/1) {
  .scene { height: auto; aspect-ratio: 4 / 5; min-height: 0; max-height: 92vh; max-height: 92svh; }
  html.fx-on .scene { --fy: 4vh; --fx: 16px; }
}
@media (max-width: 600px) {
  .foot .in { display: grid; grid-template-columns: auto auto; justify-content: space-between; gap: 0 18px; }
  .flogo { margin-right: 0; }
  .foot .fl:nth-child(even) { justify-self: end; }
}

@media (prefers-reduced-motion: reduce) {
  .cta, .cta2 { transition: none; }
  html.fx-on .scene { clip-path: none; }
  html.fx-on .scene img { transform: none; }
}
