/* ── Swank Labs ──────────────────────────────────────────────────────────────
   The studio pages: the home page and Support. Dark, quiet, Manrope.

   The Switchback pages are a different world on purpose — sand, Fredoka and
   National Park live in `styles.css`. The only things the two share are the
   amber and the Fredoka display face.                                       */

:root {
  --void:      #07070A;
  --void-lift: #0B0B0E;
  --panel:     rgba(12, 12, 16, .72);
  --panel-lift:rgba(18, 18, 23, .86);

  --bone:      #E9E7E2;
  --bone-lift: #FFFFFF;
  --warm:      #D2CEC5;
  --body:      #B6B2A9;
  --muted:     #A6A29A;
  --faint:     #8A8781;
  --dim:       #6E6B64;

  --rule:      rgba(233, 231, 226, .09);
  --rule-lift: rgba(233, 231, 226, .16);
  --rule-hi:   rgba(233, 231, 226, .24);
  --wash:      rgba(233, 231, 226, .06);

  --amber:      #E0922F;
  --amber-lift: #EDA84B;

  --display: 'Fredoka', ui-sans-serif, system-ui, sans-serif;
  --text:    'Manrope', ui-sans-serif, system-ui, sans-serif;

  --wrap: 1240px;
  --gutter: 28px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--void);
  color: var(--bone);
  font-family: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--bone); text-decoration: none; }
a:hover { color: var(--bone-lift); }

::selection { background: var(--amber); color: var(--void-lift); }

:focus-visible { outline: 1px solid var(--amber); outline-offset: 4px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; }

/* Small caps rule marker, used for eyebrows and card labels */
.eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--faint);
}
.eyebrow-sm { font-size: 10px; letter-spacing: .26em; }
.eyebrow-tight { display: block; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--dim); }

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ── Night sky ───────────────────────────────────────────────────────────────
   `sky.js` paints stars onto the canvas; the layer above it is a vignette that
   keeps text off the busiest part of the field. Both are fixed and inert, and
   both sit behind everything at z-index 0.                                  */

.sky {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 0;
  pointer-events: none;
}

.sky-vignette {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(130% 90% at 50% 8%,
              rgba(7, 7, 10, 0) 0%,
              rgba(7, 7, 10, .35) 55%,
              rgba(7, 7, 10, .82) 100%);
}

/* ── Boot ────────────────────────────────────────────────────────────────────
   A hiker walks a switchback while the page settles, then the whole overlay is
   removed from the DOM. It is only ever a cover: every word underneath it is in
   the markup already, so a crawler or a reader with no JavaScript sees the page
   and never the loader (see the <noscript> rule in the page head).          */

.boot {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--void);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  transition: opacity .45s ease;
}
.boot.is-done { opacity: 0; pointer-events: none; }

.boot-trail { position: relative; width: 240px; height: 120px; }

.boot-trail svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.trail-ghost { stroke: rgba(233, 231, 226, .14); }

.trail-ink {
  stroke: var(--amber);
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: trailDraw 1.5s cubic-bezier(.4, .1, .3, 1) forwards;
}

/* The hiker rides the same path the ink draws, so the line appears under his
   boots rather than ahead of them. */
.boot-hiker {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  offset-path: path('M10 108 L72 40 L120 96 L172 32 L230 84');
  offset-rotate: 0deg;
  animation: hike 1.5s cubic-bezier(.4, .1, .3, 1) forwards;
}

.boot-hiker i {
  position: absolute;
  width: 26px;
  height: 30px;
  animation: bob .5s ease-in-out infinite;
}
/* He walks left to right along the path, so the pack sits on the trailing
   side of the body — on his back, not his chest. */
.boot-hiker i b,
.boot-hiker i s { position: absolute; display: block; }
.boot-hiker i b   { left: 5px;  top: 10px; width: 16px; height: 20px; border-radius: 8px 8px 6px 6px; background: #33353C; }
.boot-hiker i s   { left: 1px;  top: 12px; width: 9px;  height: 13px; border-radius: 3px; background: #6B4A2F; }
.boot-hiker i em  { position: absolute; left: 6px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #D8A46A; }
.boot-hiker i u   { position: absolute; left: 5px; top: 1px; width: 16px; height: 8px; border-radius: 8px 8px 0 0; background: #D8452F; }

.boot-word {
  font-size: 11px;
  letter-spacing: .4em;
  color: #7C7970;
  text-transform: uppercase;
}

@keyframes trailDraw { from { stroke-dashoffset: 340; } to { stroke-dashoffset: 0; } }
@keyframes hike      { from { offset-distance: 0%; }   to { offset-distance: 100%; } }
@keyframes bob {
  0%, 100% { transform: translate(-50%, -88%)  rotate(-3deg); }
  50%      { transform: translate(-50%, -104%) rotate(3deg); }
}
@keyframes stageIn   { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes floatHint { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(6px); opacity: .9; } }

/* ── Header ─────────────────────────────────────────────────────────────── */

.studio-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  background: linear-gradient(rgba(7, 7, 10, .92) 62%, rgba(7, 7, 10, 0));
  backdrop-filter: blur(2px);
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); display: block; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: .01em; }

.studio-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--muted);
}
.studio-nav a { color: var(--muted); }
.studio-nav a:hover,
.studio-nav a[aria-current] { color: var(--bone); }

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero { position: relative; min-height: 80vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0 90px; }

.hero-body {
  position: relative;
  max-width: 760px;
  animation: stageIn .9s cubic-bezier(.2, .7, .2, 1) both;
}

.hero h1 {
  font-size: clamp(52px, 8vw, 104px);
  line-height: .98;
  letter-spacing: -.02em;
  margin: 26px 0;
}

.hero-lede {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
  color: var(--body);
  margin: 0 0 38px;
  max-width: 56ch;
  text-wrap: pretty;
}
.hero-lede strong { color: var(--bone); font-weight: inherit; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn-amber,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-size: 15px;
}
.btn-amber {
  background: var(--amber);
  color: var(--void-lift);
  font-weight: 600;
  transition: transform .2s ease, background .2s ease;
}
.btn-amber:hover { background: var(--amber-lift); color: var(--void-lift); transform: translateY(-2px); }
.btn-amber span { font-size: 17px; }

.btn-ghost {
  border: 1px solid rgba(233, 231, 226, .2);
  color: var(--bone);
  font-weight: 500;
  transition: border-color .2s ease, background .2s ease;
}
.btn-ghost:hover { border-color: var(--rule-hi); background: var(--wash); }

.scroll-hint {
  position: relative;
  margin-top: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--dim);
  animation: floatHint 3.4s ease-in-out infinite;
}
.scroll-hint::before { content: ''; width: 34px; height: 1px; background: #3A3833; display: block; }

/* ── Sections ───────────────────────────────────────────────────────────── */

.band { padding: 70px 0 20px; border-top: 1px solid var(--rule); }

.band-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 42px;
}
.band-head h2 { font-size: 34px; margin: 0; letter-spacing: -.01em; }
.band-head .eyebrow { font-size: 11px; letter-spacing: .3em; color: var(--dim); }

/* ── Projects ───────────────────────────────────────────────────────────── */

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr));
  gap: 20px;
  align-items: stretch;
}

.project {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(233, 231, 226, .1);
  border-radius: 20px;
  overflow: hidden;
  background: var(--panel);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.project:hover {
  transform: translateY(-4px);
  border-color: var(--rule-hi);
  background: var(--panel-lift);
  color: var(--bone);
}

.project-art {
  height: 190px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-art img { width: 100%; height: 100%; object-fit: cover; display: block; }

.art-switchback { background: linear-gradient(180deg, #1B2A16, #0C0C10); }
/* The knight is a tall mark in a short frame, so he gets the least padding of
   the three or he ends up a third the size of the other two logos. */
.art-conqr      { background: linear-gradient(180deg, #161418, #0C0C10); padding: 10px; }
.art-flippity   { background: linear-gradient(180deg, #121216, #0C0C10); padding: 34px; }

/* Switchback's tile is a landscape and fills the frame. The other two are
   cut-out marks on transparency, so they sit inside it instead. */
.art-conqr img,
.art-flippity img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.project-body {
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.project-body h3 { font-size: 26px; margin: 0; }
.project-body p { font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0; text-wrap: pretty; }

.status { display: flex; align-items: center; gap: 10px; }
.status i { width: 7px; height: 7px; border-radius: 50%; display: block; background: var(--dot, var(--bone)); }
.status span { font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--faint); }

.project-go { margin-top: auto; padding-top: 14px; font-size: 14px; color: var(--amber); }

/* ── The studio ─────────────────────────────────────────────────────────── */

.about {
  padding: 80px 0;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  gap: 34px;
  align-items: start;
  border-top: 1px solid var(--rule);
  margin-top: 70px;
}
.about h2 { font-size: 34px; margin: 0; letter-spacing: -.01em; }
.about p { font-size: 19px; line-height: 1.65; color: var(--body); margin: 0 0 26px; max-width: 62ch; text-wrap: pretty; }
.about p + p { margin-bottom: 18px; }

.mail-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 22px;
  color: var(--bone);
  border-bottom: 1px solid rgba(233, 231, 226, .25);
  padding-bottom: 4px;
}
.mail-link:hover { border-color: var(--amber); color: var(--bone-lift); }

/* ── Footer ─────────────────────────────────────────────────────────────── */

.studio-footer {
  padding: 34px 0 120px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--dim);
}
.studio-footer a { color: var(--dim); }
.studio-footer a:hover { color: var(--bone); }
.studio-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }

/* ── Social dock ─────────────────────────────────────────────────────────
   Pinned to the bottom of the window: the Switchback channels are the only
   feeds the studio has, so they follow you down the page.                  */

.dock {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 8px;
  border-radius: 999px;
  border: 1px solid rgba(233, 231, 226, .12);
  background: rgba(14, 14, 18, .82);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .5);
  max-width: calc(100vw - 32px);
}

.dock-label {
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 0 12px 0 10px;
}

.dock a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px;
  color: #C4C0B8;
  transition: background .18s ease, color .18s ease;
}
.dock a:hover { background: rgba(233, 231, 226, .09); color: var(--bone-lift); }
.dock svg { display: block; flex: none; }

/* ── Support ────────────────────────────────────────────────────────────── */

.page-head { padding: 60px 0 44px; border-bottom: 1px solid var(--rule); }
.page-head h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 22px 0 20px;
}
.page-head p { font-size: 19px; line-height: 1.6; color: var(--body); margin: 0; max-width: 56ch; text-wrap: pretty; }

.doc {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  align-items: start;
  padding: 44px 0 0;
}

.doc-nav {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.doc-nav a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--faint);
  border-left: 2px solid transparent;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.doc-nav a:hover { color: var(--bone); }
.doc-nav a.is-active {
  color: var(--bone);
  background: var(--wash);
  border-left-color: var(--amber);
}

.doc-body { min-width: 0; padding-bottom: 80px; }
.doc-body h2 {
  font-size: 32px;
  margin: 0 0 20px;
  scroll-margin-top: 110px;
}
.doc-body h2 + p { margin-top: 0; }
.doc-body section + section h2 { padding-top: 24px; border-top: 1px solid var(--rule); }
.doc-body h3 { font-size: 20px; margin: 28px 0 10px; color: var(--bone); }
.doc-body p { font-size: 17px; line-height: 1.7; color: var(--body); margin: 0 0 16px; max-width: 64ch; text-wrap: pretty; }
.doc-body section { padding-bottom: 40px; }
.doc-body a:not(.mail-link):not(.chip) {
  color: var(--amber);
  border-bottom: 1px solid rgba(224, 146, 47, .35);
}
.doc-body a:not(.mail-link):not(.chip):hover { color: var(--amber-lift); }

.doc-date { font-size: 15px; color: var(--dim); margin: 0 0 22px; }
.doc-date b { color: var(--body); font-weight: 400; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 34px;
}
.step { border: 1px solid rgba(233, 231, 226, .1); border-radius: 14px; padding: 20px; }
.step p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--warm); }
.step .eyebrow-tight { margin-bottom: 9px; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}
.contact-card { border: 1px solid rgba(233, 231, 226, .1); border-radius: 16px; padding: 24px; }
.contact-card .eyebrow-tight { margin-bottom: 12px; }
.contact-card .mail-link { font-size: 19px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--rule-lift);
  font-size: 14px;
  color: #C4C0B8;
}
.chip:hover { background: var(--wash); color: var(--bone-lift); }

/* Author's note on copy that has not been through counsel yet. */
.draft {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(224, 146, 47, .08);
  border: 1px solid rgba(224, 146, 47, .28);
  margin-bottom: 28px;
}
.draft::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  display: block;
  margin-top: 7px;
  flex: none;
}
.draft p { margin: 0; font-size: 14px; line-height: 1.6; color: #E4C79B; max-width: none; }

/* ── Cookie notice ───────────────────────────────────────────────────────
   Same behaviour as the Switchback pages, dressed for the dark.            */

.cookie-notice {
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%);
  z-index: 90;
  width: min(560px, calc(100vw - 32px));
}
.cookie-notice[hidden] { display: none; }

.cookie-card {
  border: 1px solid var(--rule-lift);
  border-radius: 18px;
  background: rgba(14, 14, 18, .94);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
  padding: 20px 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.cookie-card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--body); flex: 1 1 260px; }
.cookie-card a { color: var(--amber); }

.cookie-actions { display: flex; gap: 10px; }

/* One look for both answers, so neither is nudged. */
.cookie-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--rule-lift);
  background: transparent;
  color: var(--bone);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.cookie-btn:hover { background: var(--wash); border-color: var(--rule-hi); }

/* ── Narrow ─────────────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; gap: 18px; margin-top: 40px; padding: 56px 0; }
  .doc { grid-template-columns: 1fr; gap: 28px; }
  .doc-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }
  .doc-nav a { border-left: 0; border-bottom: 2px solid transparent; padding: 8px 12px; }
  .doc-nav a.is-active { border-left: 0; border-bottom-color: var(--amber); }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .studio-header { padding: 16px 0; }
  .studio-nav { gap: 18px; font-size: 13px; }
  .dock-label { display: none; }
  .dock a span { display: none; }
  .dock a { padding: 10px 12px; }
  .studio-footer { padding-bottom: 150px; }
  .cookie-notice { bottom: 84px; }
}

/* ── Motion ─────────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* The same channels as the dock, but in the flow of the page — Support has no
   dock of its own, and the bottom of the page is where people look for them. */
.footer-social {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.footer-social-label {
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--dim);
  margin-right: 8px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--rule-lift);
  font-size: 13px;
  color: var(--body);
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.footer-social a:hover {
  background: var(--wash);
  border-color: var(--rule-hi);
  color: var(--bone-lift);
}
.footer-social svg { display: block; flex: none; }

/* The notch in the YouTube badge is a hole, so it has to be the page behind it. */
.footer-social .yt-notch { fill: var(--void); }
