/* skogen/ — night & clay. Values locked on the Claude Design boards (home-wall, buttons-bar). */
:root {
  --ground: #121311; --ground-2: #1A1C19; --black: #0B0C0A;
  --line: #EFE9DD; --body: #B6BAB2; --muted: #7E8379; --idle: #6A6E66;
  --green: #4E9D6F; --clay: #C9552F; --clay-dp: #A8431F; --bone: #FBF4EE;
  --rule: #2A2D28;
  --e: cubic-bezier(.2, 0, 0, 1);
  --gut: 64px; --head: 104px;
  --serif: "Recia", Georgia, serif;
  --sans: "Familjen Grotesk", system-ui, sans-serif;
  color-scheme: dark;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { background: var(--ground); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--ground); color: var(--body); font: 400 18px/1.55 var(--sans); min-height: 100vh; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
::selection { background: var(--clay); color: var(--bone); }
.sl { font-weight: inherit; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--line); color: var(--ground); padding: 10px 16px; font-weight: 600; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.nav {
  position: sticky; top: 0; z-index: 20; height: var(--head);
  padding: 0 var(--gut); display: flex; align-items: center; justify-content: space-between;
  background: var(--ground); border-bottom: 1px solid var(--rule);
}
.lock { display: flex; align-items: baseline; font-family: var(--serif); font-size: 25px; letter-spacing: -.022em; color: var(--line); white-space: nowrap; }
.lock .mk { font-weight: 600; }
.lock .who { font-weight: 400; }
.cut { color: var(--green); margin: 0 .02em 0 .04em; }
.nav-right { display: flex; align-items: center; gap: 38px; }
.nav-id { font-size: 15px; color: var(--muted); white-space: nowrap; }
.menu { display: flex; gap: 30px; }
.menu a { font-size: 17px; font-weight: 500; color: var(--body); transition: color 120ms var(--e); }
.menu a .sl { color: var(--muted); transition: color 120ms var(--e); }
.menu a:hover { color: var(--line); }
.menu a:hover .sl, .menu a.on .sl { color: var(--green); }
.menu a.on { color: var(--line); font-weight: 600; }
.menu-btn { display: none; height: 44px; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; color: var(--line); }
.menu-btn .sl { color: var(--green); }

/* full-screen menu (phones) */
.bigmenu { position: fixed; inset: var(--head) 0 0 0; z-index: 19; background: var(--ground); padding: 32px 16px; display: flex; flex-direction: column; justify-content: space-between; }
.bigmenu[hidden] { display: none; }
.bigmenu nav { display: flex; flex-direction: column; }
.bigmenu nav a { font-family: var(--serif); font-size: 44px; line-height: 1.25; letter-spacing: -.022em; color: var(--idle); padding: 6px 0; border-bottom: 1px solid var(--rule); }
.bigmenu nav a .mk { font-weight: 600; }
.bigmenu nav a .cut { color: var(--idle); }
.bigmenu nav a.on { color: var(--line); }
.bigmenu nav a.on .cut { color: var(--green); }
.bm-foot { font-size: 15px; color: var(--muted); }
.bm-foot a { color: var(--line); }

/* ---------- buttons: the bar ---------- */
.bar {
  height: 64px; display: inline-flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 30px; font-size: 18px; font-weight: 600; white-space: nowrap;
}
.bar.p {
  min-width: 300px; background-color: var(--clay); color: var(--bone);
  background-image: linear-gradient(90deg, var(--line), var(--line)); background-repeat: no-repeat; background-size: 0% 100%;
  transition: background-size 180ms var(--e), background-color 160ms var(--e), color 120ms var(--e) 30ms;
}
.bar.p .sl { opacity: .72; }
.bar.p:hover { background-size: 100% 100%; color: var(--ground); }
.bar.p:active { background-size: 0% 100%; background-color: var(--clay-dp); color: var(--bone); transition-duration: 90ms, 90ms, 60ms; transition-delay: 0s; }
.bar.q {
  min-width: 260px; padding: 0 28px; color: var(--body);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  transition: background-color 160ms var(--e), border-color 160ms var(--e), color 160ms var(--e), transform 90ms var(--e);
}
.bar.q .sl { color: var(--muted); transition: color 160ms var(--e); }
.bar.q:hover { background: var(--ground-2); border-color: var(--line); color: var(--line); }
.bar.q:hover .sl { color: var(--green); }
.bar.q:active { transform: translateY(1px); }
.nav-cta { min-width: 210px; height: 48px; padding: 0 20px; font-size: 16px; }
.k { display: inline-flex; flex-direction: column; }
.k-t { font-size: 19px; font-weight: 500; color: var(--line); }
.k-t .sl { color: var(--green); margin-left: .3em; }
.k-r { height: 2px; width: 0%; margin-top: 9px; background: var(--clay); transition: width 180ms var(--e); }
.k:hover .k-r { width: 100%; }

/* ---------- labels ---------- */
.seclabel {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  font: 700 13px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 22px;
}
.seclabel .n { color: var(--clay); }
.ix { color: var(--muted); }
.fr-n { font: 700 13px/1 var(--sans); letter-spacing: .1em; color: var(--clay); }

/* ---------- home: the wall ---------- */
.wall { display: flex; align-items: flex-start; }
.left { width: min(1200px, 62.5vw); flex: 0 0 auto; padding: 44px 56px 72px var(--gut); }
.seclabel.second { margin-top: 64px; }
.list { display: flex; flex-direction: column; border-bottom: 1px solid var(--rule); }
.row {
  min-height: 112px; padding: 22px 0; display: flex; flex-direction: column; justify-content: center;
  color: var(--idle); position: relative; border-top: 1px solid var(--rule);
  transition: color 160ms var(--e);
}
.r-thumb { display: none; }
.r-meta { display: flex; align-items: baseline; gap: 14px; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 7px; }
.r-meta .ix { opacity: .9; }
.r-kind { margin-left: auto; font-weight: 500; letter-spacing: .04em; text-transform: none; color: var(--muted); opacity: 0; transition: opacity 160ms var(--e); }
.r-idea { font-family: var(--serif); font-size: clamp(26px, 1.9vw, 36px); letter-spacing: -.018em; line-height: 1.12; }
.r-idea .sl { color: var(--clay); margin-right: .16em; }
.r-rule { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0%; background: var(--clay); transition: width 180ms var(--e); }
.row.on, .row:hover, .row:focus-visible { color: var(--line); }
.row.on .r-rule, .row:hover .r-rule, .row:focus-visible .r-rule { width: 100%; }
.row.on .r-kind, .row:hover .r-kind { opacity: 1; }
.acts { margin-top: 56px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.said { margin-left: 10px; font-size: 15px; color: var(--muted); max-width: 320px; line-height: 1.45; }

.frame { position: sticky; top: var(--head); flex: 1 1 auto; height: calc(100vh - var(--head)); overflow: hidden; background: var(--black); }
.shots { position: absolute; inset: 0; animation: enter 900ms var(--e) both; }
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 330ms var(--e); }
.shot.on { opacity: 1; }
.shot.tall { object-position: 50% 35%; }
.scrim { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(18,19,17,.55) 0 14%, rgba(18,19,17,0) 34% 58%, rgba(18,19,17,.82) 100%); }
.nowlab { position: absolute; top: 26px; left: 30px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--bone); }
.nowlab .sl { color: var(--clay); }
.cap { position: absolute; left: 30px; right: 30px; bottom: 28px; transition: opacity 200ms var(--e); }
.cap.swap { opacity: 0; }
.c-client { font-family: var(--serif); font-weight: 500; font-size: 30px; letter-spacing: -.018em; color: var(--bone); }
.cap .c-kind { font-size: 15px; color: #CFD3C9; margin-top: 6px; }
.c-link { font-size: 15px; font-weight: 600; color: var(--bone); margin-top: 10px; }
.c-link .sl { color: var(--clay); }
@keyframes enter { from { transform: scale(1.05); filter: brightness(.5) saturate(.8); } to { transform: none; filter: none; } }

/* ---------- case ---------- */
.c-top { display: grid; grid-template-columns: auto minmax(380px, 1fr); gap: 56px; padding: 40px var(--gut) 72px; align-items: start; }
.c-media { height: min(calc(100vh - var(--head) - 80px), 960px); aspect-ratio: var(--ar); max-width: 62vw; background: var(--black); }
.c-media .film, .c-media .still { width: 100%; height: 100%; object-fit: contain; background: var(--black); }
.c-media .still { object-fit: contain; object-position: top left; }
.c-text { padding-top: 6px; max-width: 640px; }
.c-meta { display: flex; gap: 14px; font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--line); margin-bottom: 18px; }
.c-meta span:last-child:not(:first-child) { color: var(--muted); }
.c-line { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 2.6vw, 50px); line-height: 1.1; letter-spacing: -.02em; color: var(--line); }
.c-line .sl { color: var(--clay); margin-right: .14em; }
.c-text .c-kind { font-size: 15px; color: var(--muted); margin: 16px 0 34px; }
.c-pair { display: grid; grid-template-columns: 96px 1fr; gap: 14px 24px; border-top: 1px solid var(--rule); padding-top: 22px; }
.c-pair dt, .c-credits dt, .c-end .lab { font: 700 13px/1.9 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.c-pair dd { font-size: 17px; line-height: 1.55; color: var(--body); max-width: 60ch; }
.c-end { display: grid; grid-template-columns: 96px 1fr; column-gap: 24px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule); }
.c-end .sv { font-family: var(--serif); font-size: 24px; color: var(--line); line-height: 1.25; }
.c-end .tr { grid-column: 2; font-size: 15px; color: var(--muted); }

.c-top.is-grid { grid-template-columns: minmax(0, 1.35fr) minmax(380px, 1fr); }
.c-top.is-grid .c-media { height: auto; aspect-ratio: auto; max-width: none; background: none; }
.grid6 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.g-cell { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--black); }
.g-cell video { width: 100%; height: 100%; object-fit: cover; }
.g-cell.tall video { object-position: 50% 30%; }
.g-cell span { position: absolute; left: 12px; bottom: 10px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--bone); text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.g-cell::after { content: ""; position: absolute; inset: 0; border-bottom: 2px solid var(--clay); transform: scaleX(0); transform-origin: left; transition: transform 180ms var(--e); }
.g-cell:hover::after { transform: none; }

.strip { padding: 0 0 80px; }
.c-top.is-tall { grid-template-columns: auto minmax(360px, 560px) minmax(0, 1fr); }
.c-top .strip { padding: 6px 0 0; min-width: 0; }
.c-top .strip .s-head { padding: 0; }
.c-top .strip .frames { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; padding: 0; gap: 18px 12px; }
.c-top .strip .frames .fr img { aspect-ratio: 9 / 13; object-fit: cover; object-position: 50% 40%; }
.c-top .strip .seclabel .n { display: none; }
.strip .s-head { padding: 0 var(--gut); }
.frames { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: min(30vw, 560px); gap: 16px; overflow-x: auto; padding: 0 var(--gut) 18px; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gut); scrollbar-color: var(--rule) transparent; }
.strip.tall .frames { grid-auto-columns: min(15vw, 270px); }
.frames li { scroll-snap-align: start; }
.fr { display: block; width: 100%; position: relative; overflow: hidden; background: var(--black); }
.fr img { width: 100%; transition: transform 400ms var(--e), opacity 160ms var(--e); }
.fr::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--clay); transform: scaleX(0); transform-origin: left; transition: transform 180ms var(--e); }
.fr:hover::after { transform: none; }
.frames p { display: flex; gap: 12px; align-items: baseline; margin-top: 12px; }
.fr-t { font-size: 13px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.frames .fr-c { margin-top: 4px; font-size: 16px; line-height: 1.4; color: var(--body); }

.flow, .boards, .proof, .how { padding: 0 var(--gut) 88px; }
.flow ol, .how ol { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); }
.flow li, .how li { padding: 26px 32px 0 0; }
.flow h3, .how h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; letter-spacing: -.018em; color: var(--line); margin: 14px 0 10px; }
.flow h3 .sl, .how h3 .sl { color: var(--clay); margin-right: .12em; }
.flow ol { gap: 24px; border-top: 0; }
.flow li { padding: 0; }
.flow li img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top center; background: #fff; margin-bottom: 18px; }
.flow li p, .how li p { max-width: 36ch; font-size: 17px; }
.boards ol { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
.boards img { width: 100%; background: var(--black); }
.boards p { display: flex; gap: 12px; align-items: baseline; margin-top: 12px; font-size: 16px; }
.proof-in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: 56px; align-items: end; }
.proof-in .film { width: 100%; aspect-ratio: 16 / 9; background: var(--black); }
.proof-in p { max-width: 48ch; font-size: 17px; }

.c-more { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; padding: 0 var(--gut) 96px; }
.c-made p { font-family: var(--serif); font-size: clamp(22px, 1.5vw, 28px); line-height: 1.4; letter-spacing: -.01em; color: var(--line); max-width: 36em; }
.c-credits dl { display: grid; grid-template-columns: minmax(150px, auto) 1fr; gap: 12px 24px; border-top: 1px solid var(--rule); padding-top: 18px; }
.c-credits dd { font-size: 17px; color: var(--body); }
.c-credits dd a, .a-body a, .f-base a { color: var(--line); text-decoration: underline; text-decoration-color: var(--clay); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.next { padding: 0 var(--gut) 96px; }
.row.big { border-bottom: 1px solid var(--rule); padding: 34px 0; color: var(--body); }
.row.big .r-idea { font-size: clamp(30px, 3vw, 56px); }
.row.big .ix { color: var(--clay); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(280px, 520px) minmax(0, 1fr); gap: 72px; padding: 48px var(--gut) 96px; align-items: start; }
.a-pic img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; filter: saturate(.9); }
.a-text { max-width: 720px; padding-top: 6px; }
.a-text .c-line { font-size: clamp(36px, 3.2vw, 60px); }
.a-body { margin-top: 34px; border-top: 1px solid var(--rule); padding-top: 26px; }
.a-body p { font-size: 19px; line-height: 1.6; max-width: 58ch; margin-bottom: 18px; }
.a-acts { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 34px; }
.tools { margin-top: 64px; }
.tools p { font-size: 17px; border-top: 1px solid var(--rule); padding-top: 18px; }

/* ---------- reel ---------- */
.reel { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 48px; padding: 32px var(--gut) 96px; align-items: start; }
.rl-stage { position: relative; height: calc(100vh - var(--head) - 64px); min-height: 420px; background: var(--black); }
.rl-stage .film { width: 100%; height: 100%; object-fit: contain; }
.rl-start { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.rl-start[hidden] { display: none; }
.rl-list { list-style: none; border-top: 1px solid var(--rule); }
.rl-list li { display: flex; align-items: stretch; border-bottom: 1px solid var(--rule); }
.rl-list button { flex: 1; display: grid; grid-template-columns: 44px 1fr auto; column-gap: 8px; text-align: left; padding: 16px 0; color: var(--idle); transition: color 160ms var(--e); position: relative; }
.rl-list button:hover, .rl-list li.on button { color: var(--line); }
.rl-list li.on .ix { color: var(--clay); }
.rl-c { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.rl-l { grid-column: 2 / 4; font-family: var(--serif); font-size: 21px; line-height: 1.25; letter-spacing: -.01em; margin-top: 4px; }
.rl-d { grid-column: 3; grid-row: 1; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--muted); }
.rl-list a { display: flex; align-items: center; padding: 0 0 0 18px; font-size: 15px; font-weight: 600; color: var(--muted); }
.rl-list a .sl { color: var(--green); margin-left: .2em; }
.rl-list a:hover { color: var(--line); }

.nf { padding: 120px var(--gut); min-height: 60vh; }
.nf .c-line { margin-bottom: 40px; }

/* ---------- footer: one colour field ---------- */
.field { background: var(--clay); color: var(--ground); }
.field-in { padding: 96px var(--gut) 80px; }
.f-line { font-family: var(--serif); font-size: clamp(44px, 5.2vw, 100px); line-height: 1; letter-spacing: -.03em; }
.f-mail { display: inline-block; margin-top: 28px; font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 2.6vw, 48px); letter-spacing: -.02em; border-bottom: 2px solid currentColor; line-height: 1.15; overflow-wrap: anywhere; }
.f-mail:hover { border-bottom-color: var(--bone); }
.f-row { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; margin-top: 48px; }
.bar.ink { background: var(--ground); color: var(--line); min-width: 280px; background-image: linear-gradient(90deg, var(--line), var(--line)); background-repeat: no-repeat; background-size: 0% 100%; transition: background-size 180ms var(--e), color 120ms var(--e) 30ms; }
.bar.ink .sl { color: var(--clay); }
.bar.ink:hover { background-size: 100% 100%; color: var(--ground); }
.field .k-t, .field .k-t .sl { color: var(--ground); }
.field .k-r { background: var(--ground); }
.f-lia { font-size: 16px; font-weight: 600; }
.f-base { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 22px var(--gut); background: var(--ground); color: var(--muted); font-size: 14px; }

/* ---------- mid widths ---------- */
@media (max-width: 1500px) {
  .nav-id { display: none; }
  .c-top { grid-template-columns: auto minmax(340px, 1fr); }
}
@media (max-width: 1180px) {
  :root { --gut: 40px; }
  .menu, .nav-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .wall { display: block; }
  .left { width: auto; padding: 32px var(--gut) 64px; }
  .frame { display: none; }
  .row { padding: 22px 0 26px; }
  .r-thumb { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 18px; background: var(--black); }
  .r-kind { display: none; }
  .row .r-rule { width: 100%; opacity: .0; }
  .row { color: var(--line); }
  .seclabel .n { display: none; }
  .c-top .strip .frames { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .c-top, .c-top.is-grid, .c-top.is-tall { grid-template-columns: 1fr; gap: 32px; padding-top: 24px; }
  .c-media { height: auto; width: 100%; max-width: none; }
  .c-top.is-tall .c-media { height: min(78vh, 760px); width: auto; max-width: 100%; }
  .frames { grid-auto-columns: min(70vw, 480px); }
  .strip.tall .frames { grid-auto-columns: min(42vw, 240px); }
  .c-more, .proof-in, .about, .reel { grid-template-columns: 1fr; gap: 40px; }
  .about .a-pic { max-width: 420px; }
  .rl-stage { height: auto; aspect-ratio: 16 / 9; min-height: 0; }
  .boards ol, .flow ol, .how ol { grid-template-columns: 1fr; }
  .flow li, .how li { padding: 24px 0; border-bottom: 1px solid var(--rule); }
}
@media (max-width: 640px) {
  :root { --gut: 16px; --head: 72px; }
  body { font-size: 17px; }
  .lock { font-size: 21px; }
  .lock .who { display: none; }
  .bar, .bar.p, .bar.q, .bar.ink { min-width: 0; width: 100%; height: 60px; padding: 0 22px; }
  .acts { gap: 12px; }
  .said { margin: 8px 0 0; }
  .r-idea { font-size: 25px; }
  .r-meta { font-size: 13px; }
  .c-line { font-size: 30px; }
  .c-pair, .c-end { grid-template-columns: 1fr; gap: 6px; }
  .c-end .tr { grid-column: 1; }
  .c-pair dd { margin-bottom: 12px; }
  .c-credits dl { grid-template-columns: 1fr; gap: 2px; }
  .c-credits dd { margin-bottom: 12px; }
  .grid6 { grid-template-columns: repeat(2, 1fr); }
  .c-top.is-tall .c-media { height: 70vh; margin: 0 auto; }
  .field-in { padding: 64px var(--gut) 56px; }
  .f-row { gap: 24px; }
  .f-mail { font-size: 25px; }
  .rl-list a { display: none; }
  .bigmenu nav a { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shots { animation: none; }
  *, *::before, *::after { transition-duration: 0s !important; }
}
