:root {
  --bg: #203C7F;
  --ink: #F1ECCA;
  --wall: #F1ECCA;
  --way: #3073B7;
  --sans: "Schibsted Grotesk", "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: 12px;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--bg);
  padding: 8px 12px;
}
.skip:focus { transform: none; }

.frame {
  width: min(1180px, calc(100% - 72px));
  margin: 0 auto;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--ink);
}

.name,
.header-link {
  font-weight: 400;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.mark {
  width: 26px;
  height: auto;
  display: block;
  flex: none;
}

.header-nav {
  display: flex;
  align-items: baseline;
  gap: 28px;
}

.header-link { text-underline-offset: 3px; }

.header-link[aria-current="page"] { text-decoration: none; }

.open {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  grid-template-rows: auto minmax(220px, 1fr);
  align-items: start;
  column-gap: 64px;
  row-gap: 48px;
  min-height: calc(100svh - 64px);
  padding: 56px 0 7vh;
}

h1 {
  margin: 0;
  font-size: clamp(2.85rem, 5.2vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.open h1 { grid-column: 1 / -1; }

h1 span {
  display: block;
  white-space: nowrap;
}

.situation,
.do,
.stance,
.start p {
  max-width: 34ch;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.35;
}

.situation {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  max-width: 22em;
}

.scale {
  grid-column: 1;
  grid-row: 2;
  align-self: stretch;
  margin: 0;
  min-height: 0;
}

.scale svg {
  width: 100%;
  height: 100%;
  display: block;
}

.scale-line {
  fill: none;
  stroke: var(--way);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: scale-in 1.8s cubic-bezier(0.4, 0, 0.2, 1) 0.25s forwards;
}

@keyframes scale-in {
  to { stroke-dashoffset: 0; }
}

.maze {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.7fr);
  gap: 28px 40px;
  align-items: center;
  padding: 12vh 0 14vh;
}

.maze svg {
  width: 100%;
  height: auto;
  display: block;
}

.walls,
.way {
  fill: none;
}

.walls {
  stroke: var(--wall);
  stroke-width: 14;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.way {
  stroke: var(--way);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.way.is-found {
  animation: find 2.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes find {
  to { stroke-dashoffset: 0; }
}

.hinge {
  margin: 0;
  max-width: 8em;
  font-size: clamp(2.15rem, 3.4vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.do { margin: 1.2rem 0 0; }

.stance { margin: 1rem 0 0; max-width: 22ch; }

.start {
  position: relative;
  min-height: 62vh;
  padding: 8vh 0 10vh;
}

.corner {
  position: absolute;
  left: 0;
  bottom: 7vh;
  width: calc(100% - 230px);
  height: auto;
  pointer-events: none;
}

.corner-tall { display: none; }

.corner-line {
  fill: none;
  stroke: var(--way);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.corner-line.is-drawn {
  animation: find 2.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.start-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 22em;
  padding: 16vh 0 18vh 72px;
}

.start p { margin: 0; max-width: 28em; }

.start-book {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: calc(7vh + 8px);
}

.start-mail {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: calc(7vh + 8px);
  transform: translateY(calc(100% + 14px));
}

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  padding: 14px 18px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.mail { font-size: 15px; text-underline-offset: 3px; }

footer {
  padding: 22px 0 40px;
  border-top: 1px solid var(--ink);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13px;
  line-height: 1.4;
}
footer a { color: inherit; }

.footer-link {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  max-width: 440px;
  margin-right: auto;
  padding: 18px 18px 16px;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  transform: translateY(calc(100% + 32px));
  opacity: 0;
  pointer-events: none;
}

.cookie-banner.show {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner h2 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 500;
}

.cookie-banner p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.45;
}

.cookie-banner .btn {
  background: var(--bg);
  color: var(--ink);
}

.cookie-banner p a { text-underline-offset: 2px; }

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.cookie-actions .text-button {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.who {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(280px, 1fr);
  column-gap: 72px;
  align-items: start;
  max-width: none;
  padding: 8vh 0 14vh;
}

.portrait { margin: 0; }

.portrait img {
  width: 100%;
  height: auto;
  display: block;
}

.who-copy { padding-top: 7vh; }

.who h1 {
  max-width: 8em;
  margin-bottom: 1.4rem;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
}

.who p {
  max-width: 38em;
  margin: 0 0 1.15rem;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.35;
}

.who .stance { max-width: 16em; }

@media (max-width: 800px) {
  .frame { width: min(1180px, calc(100% - 40px)); }
  .open, .maze, .start { grid-template-columns: 1fr; }
  .open {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 40px 0 14vh;
    row-gap: 0;
  }
  .maze { padding: 12vh 0; row-gap: 28px; }
  .start {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 8vh 0 6vh;
    margin-bottom: 18px;
  }
  .corner-wide { display: none; }
  .corner-tall {
    display: block;
    position: relative;
    order: 2;
    left: auto;
    bottom: auto;
    width: calc(100% - 210px);
    margin-top: 28px;
  }
  .start-copy {
    order: 1;
    max-width: 36em;
    padding: 0;
  }
  .start-book,
  .start-mail {
    right: 0;
    bottom: 6vh;
  }
  .situation { margin-top: 32px; max-width: 36em; }
  .scale { width: 100%; margin-top: 40px; align-self: stretch; }
  .scale svg { width: 100%; height: auto; }
  .who {
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding: 40px 0 12vh;
  }
  .who-copy { padding-top: 0; }
  .hinge, h1, .who h1 { max-width: none; }
  h1 span { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner { transition: none; }
  .way,
  .way.is-found,
  .scale-line,
  .corner-line,
  .corner-line.is-drawn { animation: none; stroke-dashoffset: 0; }
}
