/* Copper Kite Studio site styles. Palette: cool window-light sky, dusk slate ink, kite copper, patina green. */
:root {
  --sky: #eef3f5;
  --paper: #ffffff;
  --ink: #172430;
  --ink-soft: #4a5a66;
  --mist: #c9d6dc;
  --copper: #a3551f;
  --copper-bright: #c8773a;
  --patina: #2f7a72;
  --display: "Gloock", Georgia, serif;
  --text: "Schibsted Grotesk", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max-w: 1240px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--patina); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h1, h2 { font-family: var(--display); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.1; }
h3 { font: 700 1.0625rem/1.3 var(--text); }
p { margin: 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--sky); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-head {
  max-width: var(--max-w); margin: 0 auto; padding: 22px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 500 1.125rem/1 var(--text); }
.kite { width: 26px; height: 36px; overflow: visible; }
.kite path:first-child { fill: var(--copper); }
.kite-spar { stroke: var(--sky); stroke-width: 1.5; fill: none; }
.kite-tail { stroke: var(--copper); stroke-width: 2; fill: none; stroke-linecap: round; }
.site-head nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); }
.site-head nav a { text-decoration: none; font-weight: 500; }
.site-head nav a:hover, .site-head nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--copper); }
.nav-cta { border: 1.5px solid var(--ink); padding: 9px 16px; border-radius: 999px; }
.site-head nav a.nav-cta:hover { background: var(--ink); color: var(--sky); text-decoration: none; }

/* Buttons */
.btn { display: inline-block; padding: 14px 24px; border-radius: 999px; font-weight: 700; text-decoration: none; transition: background-color .15s, color .15s; }
.btn-solid { background: var(--copper); color: var(--paper); }
.btn-solid:hover { background: var(--ink); }
.btn-line { border: 1.5px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--sky); }
.link { font-weight: 700; text-decoration-color: var(--copper); text-underline-offset: 5px; text-decoration-thickness: 2px; }

main > section, .work-intro, .filters, .work-grid { max-width: var(--max-w); margin-left: auto; margin-right: auto; padding-left: var(--gutter); padding-right: var(--gutter); }
main > section { padding-top: clamp(56px, 9vw, 120px); }

/* Hero */
/* Headline across the top, then the full-width slider: the photo is the page's one bold element */
.hero { padding-top: clamp(24px, 5vw, 64px) !important; }
.hero-copy { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 16px clamp(28px, 5vw, 72px); align-items: end; }
.hero-copy > :not(h1) { grid-column: 2; }
.hero-copy h1 { grid-row: 1 / span 4; }
.hero h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1; max-width: 15ch; }
.hero .compare-hero { margin-top: clamp(32px, 5vw, 56px); aspect-ratio: 16 / 9; }
.lede { font-size: 1.1875rem; color: var(--ink-soft); max-width: 42ch; }
.offer { font-weight: 700; color: var(--copper); }
.actions { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Before/after compare: the before image is clipped to the left of --pos */
.compare { --pos: 50%; position: relative; margin: 0; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 6px; background: var(--mist); user-select: none; touch-action: pan-y; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--paper); box-shadow: 0 0 0 1px rgba(23, 36, 48, .25); pointer-events: none; }
.compare-handle span { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--paper); box-shadow: 0 2px 10px rgba(23, 36, 48, .3); }
.compare-handle span::before, .compare-handle span::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -6px; border: 6px solid transparent; }
.compare-handle span::before { left: 6px; border-right-color: var(--copper); }
.compare-handle span::after { right: 6px; border-left-color: var(--copper); }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare:has(.compare-range:focus-visible) { outline: 3px solid var(--patina); outline-offset: 3px; }
.compare figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-between; pointer-events: none; }
.compare figcaption span { background: rgba(23, 36, 48, .78); color: var(--paper); font-size: .8125rem; font-weight: 500; padding: 4px 10px; border-radius: 999px; }
.compare-hero { box-shadow: 0 30px 60px -30px rgba(23, 36, 48, .45); }

/* What changes */
.fixes h2, .steps h2, .pricing h2 { max-width: 18ch; }
.fix-list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 56px); }
.fix-list li { border-top: 2px solid var(--ink); padding-top: 16px; }
.fix-list p { margin-top: 8px; color: var(--ink-soft); }

/* What we never change: the one dark band */
main > section.rules { max-width: none; padding: 0; margin-top: clamp(56px, 9vw, 120px); background: var(--ink); color: var(--sky); }
.rules > div { max-width: var(--max-w); margin: 0 auto; padding: clamp(48px, 8vw, 104px) var(--gutter); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); }
.rules h2 { color: var(--copper-bright); }
.rules p { font-size: 1.25rem; line-height: 1.6; max-width: 58ch; }

/* Teaser */
.teaser-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.teaser-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

/* Steps: a real sequence, so the numbers carry meaning */
.step-list { list-style: none; counter-reset: step; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.step-list li { counter-increment: step; }
.step-list li::before { content: counter(step); display: block; font: 400 3.5rem/1 var(--display); color: var(--copper); margin-bottom: 12px; }
.step-list p { margin-top: 8px; color: var(--ink-soft); }

/* Pricing */
.pricing-note { margin-top: 14px; color: var(--ink-soft); max-width: 60ch; }
.tiers { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tier { background: var(--paper); border-radius: 6px; padding: 28px; }
.tier-mid { background: var(--ink); color: var(--sky); }
.tier-sub { display: block; font-weight: 400; color: var(--ink-soft); }
.tier-mid .tier-sub { color: var(--mist); }
.price { margin-top: 18px; font: 400 3rem/1 var(--display); }
.price span { font: 400 1rem/1 var(--text); color: var(--ink-soft); }
.tier-mid .price span { color: var(--mist); }
.tier ul { margin: 20px 0 0; padding: 0 0 0 18px; }
.tier li + li { margin-top: 6px; }
.free { margin-top: 22px; font-weight: 700; color: var(--copper); }

/* Contact */
.contact { padding-bottom: clamp(56px, 9vw, 120px); }
.contact p { margin-top: 14px; color: var(--ink-soft); max-width: 52ch; }
.mail { display: inline-block; margin-top: 22px; font: 400 clamp(1.5rem, 4.6vw, 3.2rem)/1.15 var(--display); color: var(--copper); text-decoration-thickness: 2px; text-underline-offset: 8px; overflow-wrap: anywhere; }
.mail:hover { color: var(--ink); }

/* Footer */
.site-foot { border-top: 1px solid var(--mist); max-width: var(--max-w); margin: 0 auto; padding: 28px var(--gutter) 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .9375rem; color: var(--ink-soft); }
.foot-links { display: flex; gap: 20px; }

/* Work page */
.work-intro { padding-top: clamp(24px, 5vw, 64px); }
.work-intro h1 { font-size: clamp(2.5rem, 5.2vw, 4.4rem); line-height: 1.03; }
.work-intro p { margin-top: 16px; color: var(--ink-soft); max-width: 56ch; font-size: 1.1875rem; }
.filters { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { font: 500 .9375rem/1 var(--text); color: var(--ink); background: transparent; border: 1.5px solid var(--mist); padding: 10px 16px; border-radius: 999px; cursor: pointer; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--sky); }
.work-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 28px 20px; }
.tile-meta { margin-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tile-meta p { color: var(--ink-soft); font-size: .9375rem; }
.tile-open { font: 700 .9375rem/1 var(--text); background: none; border: 0; padding: 6px 0; cursor: pointer; color: var(--ink); text-decoration: underline; text-decoration-color: var(--copper); text-underline-offset: 4px; }
.tile[hidden] { display: none; }
.credits { padding-top: clamp(56px, 8vw, 96px); }
.credits p { margin-top: 14px; color: var(--ink-soft); max-width: 70ch; }
.credits ul { margin: 18px 0 0; padding: 0 0 0 18px; columns: 2 320px; font-size: .9375rem; color: var(--ink-soft); }
.credits li { break-inside: avoid; margin-bottom: 6px; }

.viewer { width: min(1200px, calc(100vw - 32px)); max-width: none; padding: 0; border: 0; background: transparent; overflow: visible; }
.viewer::backdrop { background: rgba(23, 36, 48, .86); }
.viewer .compare { aspect-ratio: auto; height: min(80vh, calc((100vw - 32px) * .667)); }
.viewer .compare img { object-fit: contain; background: var(--ink); }
.viewer-note { margin-top: 12px; color: var(--sky); }
.viewer-close { position: absolute; top: -48px; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--paper); color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; }

.prose { max-width: 70ch; margin: 0 auto; padding: clamp(24px, 5vw, 64px) var(--gutter) 96px; }
.prose h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); margin-bottom: 24px; }
.prose p + p { margin-top: 16px; }

@media (max-width: 900px) {
  .hero-copy, .rules > div { grid-template-columns: 1fr; }
  .hero-copy > :not(h1) { grid-column: 1; }
  .hero-copy h1 { grid-row: auto; }
  .hero .compare-hero { aspect-ratio: 4 / 3; }
  .fix-list, .step-list, .tiers, .teaser-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .site-head nav a[href$="#pricing"] { display: none; }
  .brand span { font-size: 1rem; white-space: nowrap; }
  .site-head nav { gap: 14px; }
  .nav-cta { padding: 8px 12px; white-space: nowrap; }
  .fix-list, .step-list, .tiers, .teaser-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
