/* Other End — fictional dog rescue. Signature: one leash drawn by scroll. */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-wdth.woff2") format("woff2-variations"), url("../fonts/archivo-wdth.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
}
@font-face {
  font-family: "Schibsted";
  src: url("../fonts/schibsted-grotesk-normal.woff2") format("woff2");
  font-weight: 400 900; font-display: swap;
}

:root {
  --cobalt: #2232f0;
  --cobalt-deep: #1622b8;
  --pink: #ff3d8b;
  --pink-deep: #d81f68;
  --lemon: #e7ff55;
  --paper: #f3f3f8;
  --ink: #0b0d2a;
  --ink-soft: #3d4068;
  --gutter: clamp(16px, 4vw, 56px);
  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --body: "Schibsted", system-ui, -apple-system, sans-serif;
  --leash-w: 11px;
}
@media (max-width: 720px) { :root { --leash-w: 8px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.5;
  overflow-x: hidden; position: relative;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-stretch: 125%; font-weight: 900; line-height: .9; letter-spacing: -0.02em; }
a { color: inherit; }

/* ---------- leash layer ---------- */
.leash {
  position: absolute; left: 0; top: 0; width: 100%; height: 100px;
  z-index: 2; pointer-events: none; overflow: visible;
}
.leash path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.leash-rope { stroke: var(--pink); stroke-width: var(--leash-w); }
.leash-shine { stroke: #ff8cbb; stroke-width: calc(var(--leash-w) * .28); transform: translate(-1.5px, -1.5px); }
.leash-shadow { stroke: rgba(11, 13, 42, .28); stroke-width: var(--leash-w); transform: translate(5px, 9px); }
.clip-collar { fill: var(--pink-deep); }
.clip-hook, .clip-gate { fill: none; stroke: #c9cbe0; stroke-width: 4.5; stroke-linecap: round; }
.clip-gate { stroke: #9a9dbb; stroke-width: 3; }

/* everything readable sits above the leash */
.nav, .hero-title, .hero-photo, .hero-sub, .hero-scroll, .intro > *, .section-title, .dog,
.marquee, .steps .step > *:not(.ring), .yard-photo, .yard-copy, .book-head, .book-form, .footer > * {
  position: relative; z-index: 3;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter); color: var(--paper);
  mix-blend-mode: normal;
}
.nav::before { content: ""; position: absolute; inset: 0; background: var(--cobalt); opacity: var(--navbg, 0); pointer-events: none; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: 22px; letter-spacing: -0.03em; position: relative; }
.brand-mark { width: 26px; height: 30px; color: var(--pink); }
.nav-links { display: flex; align-items: center; gap: 26px; position: relative; font-weight: 600; font-size: 15px; }
.nav-links a:not(.btn) { text-decoration: none; }
.nav-links a:not(.btn):hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 720px) { .nav-links a:not(.btn) { display: none; } .brand { font-size: 19px; } }

.btn {
  display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer;
  background: var(--pink); color: #fff; font: 700 16px/1 var(--body);
  padding: 15px 24px; border-radius: 999px; text-decoration: none;
  transition: transform .2s cubic-bezier(.3,1.6,.5,1), background .2s;
}
.btn:hover { transform: translateY(-2px) rotate(-1.5deg); background: var(--pink-deep); }
.btn:focus-visible, .chip:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--lemon); outline-offset: 3px; }
.btn-sm { padding: 11px 18px; font-size: 14px; }
.btn-big { padding: 22px 34px; font-size: 20px; font-family: var(--display); font-stretch: 110%; font-weight: 800; }

/* ---------- hero ---------- */
.hero {
  background: var(--cobalt); color: var(--paper);
  padding: 110px var(--gutter) 90px; position: relative; overflow: hidden;
  min-height: 100svh;
  display: grid; grid-template-columns: 1fr minmax(280px, 34vw); grid-template-rows: auto 1fr auto; column-gap: 4vw;
}
.hero-title { z-index: 4; grid-column: 1 / -1; grid-row: 1; font-size: clamp(56px, 8.2vw, 150px); text-transform: uppercase; }
.ht-line { display: block; white-space: nowrap; will-change: transform; }
.ht-pink { color: var(--pink); padding-left: 9vw; }
.ht-line:last-child { color: var(--lemon); }
.hero-photo {
  grid-column: 2; grid-row: 1 / 4; align-self: end; margin: 0; margin-top: 30vh;
  border-radius: 28px; overflow: hidden;
}
.hero-photo img { border-radius: 28px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 0 40px 80px -30px rgba(5,8,60,.7); }
.leash-start { position: absolute; width: 2px; height: 2px; left: 31%; top: 100%; }
.hero-sub { grid-column: 1; grid-row: 2; align-self: end; max-width: 30ch; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.35; margin: 40px 0 0; }
.hero-scroll { grid-column: 1; grid-row: 3; margin-top: 30px; display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 14px; color: var(--lemon); }
.hero-scroll span { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--lemon); position: relative; }
.hero-scroll span::after { content: ""; position: absolute; left: 50%; top: 8px; width: 2px; height: 12px; margin-left: -1px; background: var(--lemon); border-radius: 2px; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }

@media (max-width: 820px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-top: 92px; padding-bottom: 60px; min-height: 0; }
  .hero-title { font-size: clamp(36px, 11.2vw, 92px); }
  .ht-line { white-space: normal; }
  .ht-pink { padding-left: 0; }
  .hero-photo { grid-column: 1; grid-row: 3; margin: 28px 8vw 0 14vw; }
  .hero-sub { grid-row: 2; margin-top: 22px; font-size: 18px; }
  .hero-scroll { display: none; }
}

/* ---------- intro ---------- */
.intro { padding: clamp(110px, 16vw, 220px) var(--gutter) clamp(80px, 10vw, 140px); }
.intro-text {
  font-family: var(--display); font-stretch: 100%; font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(30px, 4.6vw, 76px); line-height: 1.02; margin: 0; max-width: 18ch;
  margin-left: auto; margin-right: 4vw;
}
.intro-text .w { opacity: .14; }
.stats { display: flex; flex-wrap: wrap; gap: 18px 6vw; margin-top: clamp(60px, 8vw, 110px); }
.stats div { display: flex; flex-direction: column; }
.stats b { font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: clamp(54px, 7vw, 110px); line-height: .9; color: var(--cobalt); }
.stats span { font-weight: 600; color: var(--ink-soft); }
@media (max-width: 720px) { .intro-text { margin-right: 0; } }

/* ---------- dogs ---------- */
.dogs { padding: 40px var(--gutter) 120px; }
.section-title { font-size: clamp(48px, 9vw, 150px); text-transform: uppercase; }
.section-title span { display: block; }
.section-title span:last-child { color: var(--pink); padding-left: 12vw; }
.section-title.light { color: var(--paper); }
.section-title.light span:last-child { color: var(--lemon); }

.dog-list { margin-top: clamp(80px, 10vw, 160px); display: flex; flex-direction: column; gap: clamp(120px, 14vw, 220px); }
.dog {
  display: grid; grid-template-columns: minmax(0, 40vw) 1fr; gap: 5vw; align-items: start;
}
.dog:nth-child(even) { grid-template-columns: 1fr minmax(0, 40vw); }
.dog:nth-child(even) .dog-card { order: 2; }
.dog-card { position: relative; padding-top: 34px; will-change: transform; }
.dog .ring {
  position: absolute; left: 50%; top: 0; width: 40px; height: 40px; margin-left: -20px;
  border-radius: 50%; border: 7px solid #c9cbe0; z-index: 4; background: transparent;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.06);
}
.dog .ring::after { content: ""; position: absolute; left: 50%; top: 100%; width: 10px; height: 20px; margin-left: -5px; background: #c9cbe0; border-radius: 0 0 4px 4px; }
.dog-photo { position: relative; margin: 0; border-radius: 26px; overflow: hidden; box-shadow: 0 30px 70px -30px rgba(11,13,42,.55); background: #ccc; }
.dog-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.dog-photo .gray { position: absolute; inset: 0; height: 100%; filter: grayscale(1) contrast(.9) brightness(1.05); }
.dog-tag {
  position: absolute; right: -14px; top: 58px; width: 86px; height: 86px; border-radius: 50%;
  background: var(--lemon); color: var(--ink); display: grid; place-items: center; text-align: center;
  font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: 13px; line-height: 1;
  transform-origin: 50% -16px; box-shadow: 0 10px 24px -10px rgba(11,13,42,.6); z-index: 2;
}
.dog-tag::before { content: ""; position: absolute; top: -16px; left: 50%; width: 3px; height: 18px; margin-left: -1.5px; background: #c9cbe0; }
.dog-tag em { display: block; font-style: normal; font-size: 30px; }

.dog-info { padding-top: clamp(40px, 8vw, 140px); }
.dog-name { white-space: nowrap; font-size: clamp(56px, 6.6vw, 116px); text-transform: uppercase; overflow: hidden; padding-bottom: .04em; }
.dog-name .c { display: inline-block; will-change: transform; }
.dog-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 18px; }
.dog-meta span { border: 2px solid var(--ink); border-radius: 999px; padding: 5px 13px; font-weight: 600; font-size: 14px; }
.dog-meta span.hot { background: var(--ink); color: var(--lemon); }
.dog-line { font-size: clamp(19px, 1.7vw, 25px); line-height: 1.35; max-width: 26ch; margin: 0 0 28px; }
.dog-good { color: var(--ink-soft); font-size: 15px; margin: -14px 0 26px; }

@media (max-width: 820px) {
  .dog, .dog:nth-child(even) { grid-template-columns: 1fr; gap: 8px; }
  .dog:nth-child(even) .dog-card { order: 0; }
  .dog-card { margin: 0 6vw; }
  .dog:nth-child(even) .dog-card { margin: 0 2vw 0 10vw; }
  .dog:nth-child(odd) .dog-card { margin: 0 10vw 0 2vw; }
  .dog-info { padding-top: 26px; }
  .dog-name { font-size: clamp(40px, 12.6vw, 96px); }
  .dog-tag { width: 70px; height: 70px; right: -8px; font-size: 11px; }
  .dog-tag em { font-size: 24px; }
}

/* ---------- marquee ---------- */
.marquee { background: var(--lemon); color: var(--ink); overflow: hidden; padding: 18px 0; transform: rotate(-2.5deg); margin: 0 -4vw; }
.marquee-track { display: flex; white-space: nowrap; will-change: transform; font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: clamp(34px, 5vw, 70px); text-transform: uppercase; line-height: 1; }
.marquee-track span { padding-right: .5em; }
.marquee-track i { font-style: normal; color: var(--pink); padding-right: .5em; }

/* ---------- how ---------- */
.how { background: var(--cobalt); color: var(--paper); padding: clamp(130px, 14vw, 200px) var(--gutter) clamp(100px, 12vw, 180px); margin-top: -30px; }
.steps { list-style: none; padding: 0; margin: clamp(70px, 9vw, 140px) 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(70px, 9vw, 130px) 8vw; }
.step { position: relative; padding-top: 70px; max-width: 30ch; }
.step:nth-child(even) { margin-top: clamp(120px, 14vw, 220px); }
.step .ring { position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 50%; border: 8px solid var(--lemon); z-index: 4; transition: none; }
.step b { font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: 18px; color: var(--lemon); }
.step h3 { font-size: clamp(36px, 4.2vw, 64px); text-transform: uppercase; margin: 10px 0 14px; }
.step p { margin: 0; font-size: 18px; color: #d9dbff; }
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; gap: 80px; }
  .step:nth-child(even) { margin-top: 0; margin-left: 14vw; }
}

/* ---------- yard ---------- */
.yard { position: relative; background: var(--cobalt); padding: 0 var(--gutter) clamp(80px, 10vw, 150px); color: var(--paper); }
.yard-photo { margin: 0; border-radius: 32px; overflow: hidden; height: min(80vh, 760px); }
.yard-photo img { width: 100%; height: 125%; object-fit: cover; will-change: transform; }
.yard-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; margin-top: 50px; }
.yard-copy h2 { font-size: clamp(40px, 5.6vw, 92px); text-transform: uppercase; color: var(--lemon); }
.yard-copy p { font-size: clamp(18px, 1.5vw, 22px); margin: 0; align-self: end; max-width: 40ch; color: #d9dbff; }
@media (max-width: 720px) { .yard-copy { grid-template-columns: 1fr; gap: 20px; } .yard-photo { height: 62vh; } }

/* ---------- book ---------- */
.book { padding: clamp(120px, 14vw, 220px) var(--gutter) clamp(90px, 10vw, 160px); display: grid; grid-template-columns: 1fr minmax(0, 560px); gap: 6vw; align-items: start; }
.book-title { font-size: clamp(64px, 10vw, 170px); text-transform: uppercase; }
.book-title span { display: block; color: var(--pink); position: relative; }
.book-head p { font-size: clamp(18px, 1.5vw, 22px); max-width: 30ch; margin: 30px 0 0; }
.book-form { background: #fff; border-radius: 30px; padding: clamp(22px, 3vw, 40px); box-shadow: 0 40px 90px -40px rgba(11,13,42,.35); display: grid; gap: 22px; }
.field { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; min-width: 0; }
.field legend, .label { font-weight: 700; font-size: 14px; padding: 0; margin-bottom: 10px; }
.label { margin-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 600 15px/1 var(--body); padding: 11px 15px; border-radius: 999px; border: 2px solid #d7d8e8; background: #fff; color: var(--ink); cursor: pointer; transition: background .15s, border-color .15s; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.days .chip { display: grid; gap: 4px; text-align: center; min-width: 58px; padding: 10px 10px; }
.days .chip small { font-size: 12px; font-weight: 500; opacity: .75; }
input, select { font: 500 16px var(--body); padding: 14px 16px; border-radius: 14px; border: 2px solid #d7d8e8; background: var(--paper); color: var(--ink); width: 100%; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.book-form .btn-big { justify-self: start; }
.form-note { margin: 0; font-weight: 600; min-height: 1.5em; }
.form-note.ok { color: var(--cobalt); }
.form-note.err { color: var(--pink-deep); }
@media (max-width: 900px) { .book { grid-template-columns: 1fr; } .two { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #cfd1ee; padding: 70px var(--gutter) 40px; }
.footer-brand { font-family: var(--display); font-stretch: 125%; font-weight: 900; font-size: clamp(44px, 12.5vw, 220px); line-height: .85; color: var(--pink); letter-spacing: -0.04em; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; font-size: 15px; }
.footer-cols p { margin: 0; }
@media (max-width: 720px) { .footer-cols { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .hero-scroll span::after { animation: none; }
  .btn { transition: none; }
}
