/* guru.blends — Hungry Tiger-led direction
   Changa One (display) + Azeret Mono (annotation, data, interface). Both SIL OFL 1.1, self-hosted. */

@font-face {
  font-family: "Changa One";
  src: url("fonts/ChangaOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Azeret Mono";
  src: url("fonts/AzeretMono-Latin-VF.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

/* Metric-matched fallbacks: width and line box follow the web fonts, so a slow font load does not reflow the page. */
@font-face {
  font-family: "Changa One Fallback";
  src: local("Arial Black"), local("Arial-Black");
  size-adjust: 82.8%;
  ascent-override: 106.5%;
  descent-override: 21.7%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Azeret Mono Fallback";
  src: local("Menlo"), local("Menlo-Regular");
  size-adjust: 108%;
  ascent-override: 86.8%;
  descent-override: 21.3%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Azeret Mono Fallback Consolas";
  src: local("Consolas");
  size-adjust: 118%;
  ascent-override: 79.4%;
  descent-override: 19.5%;
  line-gap-override: 0%;
}

:root {
  /* Materials from the chair: comb-jar blue, the red and black cape, clipper black, the white neck strip. */
  --shop: #1c46c9;
  --shop-deep: #1537a3;
  --cape: #cf1f2e;
  --cape-deep: #b41826;
  --clipper: #0f1012;
  --clipper-row: #1a1c20;
  --strip: #eef0f3;
  --strip-row: #dfe3ea;
  --ink: #0f1012;
  --mist: #c9d3f2;
  --smoke: #a9adb6;
  --slate: #3d4250;

  --display: "Changa One", "Changa One Fallback", "Arial Black", sans-serif;
  --mono: "Azeret Mono", "Azeret Mono Fallback", "Azeret Mono Fallback Consolas", ui-monospace, Menlo, Consolas, monospace;

  --gutter: clamp(1rem, 3.4vw, 2.75rem);
  --section: clamp(5rem, 10vw, 9rem);
  --bar-h: 4.75rem;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.0625rem;
  --step-2: clamp(1.5rem, 1.15rem + 1.2vw, 2.1rem);
  --step-3: clamp(2.35rem, 1.5rem + 3.4vw, 4.6rem);
  --step-4: clamp(2.85rem, 1.35rem + 5.3vw, 6rem);
  --hero: clamp(3.5rem, 19.2vw, 21rem);
  --mark: clamp(3rem, 16.8vw, 18rem);

  --print-w: min(240px, 60vw, 29svh);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
  scrollbar-color: var(--shop) var(--strip);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--bar-h) + 0.75rem);
}

html[data-motion="full"] {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--clipper);
  color: var(--strip);
  font-family: var(--mono);
  font-size: var(--step-0);
  font-weight: 420;
  line-height: 1.6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main:focus {
  outline: none;
}

h1,
h2,
h3,
p,
ol,
ul,
dl,
dd,
figure {
  margin: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--cape);
  color: var(--strip);
}

.field--cape ::selection {
  background: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--focus, var(--strip));
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip {
  position: fixed;
  left: var(--gutter);
  top: 0.75rem;
  z-index: 60;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  background: var(--strip);
  color: var(--ink);
  font-weight: 650;
  text-decoration: none;
  transform: translateY(-160%);
}

.skip:focus {
  transform: none;
  outline: 3px solid var(--cape);
  outline-offset: 3px;
}

/* ---------- Fields: each colour is a role, not a decoration ---------- */

.field {
  background-color: var(--bg);
  color: var(--fg);
}

.field--shop {
  --bg: var(--shop);
  --fg: var(--strip);
  --fg-2: var(--mist);
  --act-bg: var(--cape);
  --act-hover: var(--cape-deep);
  --focus: var(--strip);
}

.field--clipper {
  --bg: var(--clipper);
  --fg: var(--strip);
  --fg-2: var(--smoke);
  --act-bg: var(--cape);
  --act-hover: var(--cape-deep);
  --focus: var(--strip);
}

.field--cape {
  --bg: var(--cape);
  --fg: var(--strip);
  --fg-2: var(--strip);
  --act-bg: var(--clipper);
  --act-hover: #26282d;
  --focus: var(--strip);
  background-image: url("media/cape.svg");
  background-size: 760px 760px;
}

.field--strip {
  --bg: var(--strip);
  --fg: var(--ink);
  --fg-2: var(--slate);
  --act-bg: var(--cape);
  --act-hover: var(--cape-deep);
  --focus: var(--ink);
}

/* ---------- Type ---------- */

.display {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step-4);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: lowercase;
  text-wrap: balance;
}

.lede {
  max-width: 44ch;
  font-size: var(--step-1);
  line-height: 1.6;
}

.subhead {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step-2);
  line-height: 1;
  text-transform: lowercase;
}

.note {
  max-width: 52ch;
  color: var(--fg-2);
  font-size: var(--step--1);
  line-height: 1.55;
}

/* ---------- Pills: the packaging-tab system shared by header, dock and buttons ---------- */

.tab,
.btn,
.dock__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.7rem 1.05rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: var(--step--1);
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 180ms ease-out, color 180ms ease-out, border-color 180ms ease-out;
}

.tab,
.dock__btn {
  background: var(--strip);
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.tab:hover,
.dock__btn:hover {
  background: var(--ink);
  color: var(--strip);
  border-color: var(--strip);
}

.tab--book,
.dock__btn--book {
  background: var(--cape);
  color: var(--strip);
  border: 2px solid var(--strip);
}

.tab--book:hover,
.dock__btn--book:hover {
  background: var(--cape-deep);
  border-color: var(--strip);
}

.tab--mark {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  padding: 0.5rem 1.1rem 0.62rem;
}

.btn {
  min-height: 3rem;
  padding: 0.8rem 1.3rem;
  background: var(--fg);
  color: var(--bg);
  border: 1.5px solid var(--fg);
}

.btn:hover {
  background: transparent;
  color: var(--fg);
}

.btn--act {
  background: var(--act-bg);
  color: var(--strip);
  border: 2px solid var(--strip);
}

.btn--act:hover {
  background: var(--act-hover);
  color: var(--strip);
}

.btn--ink {
  background: var(--ink);
  color: var(--strip);
  border-color: var(--ink);
}

.btn--ink:hover {
  background: var(--strip);
  color: var(--ink);
}

.bar .tab:focus-visible,
.dock__btn:focus-visible,
.menu .tab:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 7px var(--strip);
}

/* ---------- Header ---------- */

.bar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  padding: 0.85rem var(--gutter);
  pointer-events: none;
  transition: transform 320ms var(--ease-out);
}

.bar__nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.bar__nav > *,
.bar__links {
  pointer-events: auto;
}

.bar__links {
  display: none;
  gap: 0.35rem;
}

.tab--mark {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.tab__long {
  display: none;
}

.bar.is-tucked {
  transform: translateY(-130%);
}

.bar:focus-within {
  transform: none;
}

/* ---------- Mobile menu ---------- */

.menu {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0.85rem var(--gutter) 2rem;
  border: 0;
  background: var(--clipper);
  color: var(--strip);
  --focus: var(--strip);
}

.menu[open] {
  display: flex;
  flex-direction: column;
}

.menu::backdrop {
  background: var(--clipper);
}

.menu__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.menu__links {
  margin-top: clamp(2.5rem, 10svh, 5rem);
  display: grid;
  gap: 0.2rem;
}

.menu__links a {
  display: inline-block;
  font-family: var(--display);
  font-size: clamp(2.6rem, 11vw, 4rem);
  line-height: 1.05;
  text-transform: lowercase;
  text-decoration: none;
}

.menu__links a:hover {
  color: var(--mist);
}

.menu__foot {
  margin-top: auto;
  color: var(--smoke);
  font-size: var(--step--1);
}

/* ---------- Run: hero + the chair turns ---------- */

.run {
  position: relative;
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  padding: calc(var(--bar-h) + 1.5rem) var(--gutter) 3rem;
}

.hero__title {
  display: grid;
  justify-items: center;
  text-align: center;
  font-weight: 400;
}

.hero__word {
  font-family: var(--display);
  font-size: var(--hero);
  line-height: 0.86;
  letter-spacing: -0.02em;
  text-transform: lowercase;
}

.hero__name {
  margin-top: 0.35em;
  font-family: var(--display);
  font-size: clamp(1.9rem, 1rem + 3.4vw, 4.4rem);
  line-height: 1;
  color: var(--fg-2);
}

.hero__base {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.hero__lede {
  max-width: 30ch;
  font-size: var(--step-1);
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* Prints: the photographs handled as physical objects. */
.print {
  position: relative;
  width: calc(var(--print-w) + 20px);
  padding: 10px;
  background: var(--strip);
  border-radius: 3px;
  box-shadow: 0 24px 38px -22px rgba(6, 8, 18, 0.55);
}

.print img {
  width: var(--print-w);
  height: auto;
  border-radius: 1px;
}

.print__tag {
  position: absolute;
  top: -0.7rem;
  left: -0.8rem;
  padding: 0.45rem 0.7rem;
  border-radius: 4px;
  background: var(--cape);
  color: var(--strip);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  line-height: 1;
  transform: rotate(-7deg);
}

/* Static layout (no script, or reduced motion): both prints side by side. */
.run__pin-wrap {
  position: relative;
  z-index: 1;
  padding: 1rem var(--gutter) 2rem;
}

.run__pin {
  display: flex;
  justify-content: center;
}

.turn__card {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.25rem 1.75rem;
}

.turn__face--front {
  transform: rotate(-2.5deg);
}

.turn__face--back {
  transform: rotate(2deg);
}

.angles {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3.5rem;
  padding: 3rem var(--gutter) var(--section);
}

.stage {
  display: grid;
  gap: 1rem;
  max-width: 40rem;
}

.stage__line {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step-4);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: lowercase;
  text-wrap: balance;
}

.stage__note {
  max-width: 38ch;
  color: var(--fg-2);
  font-size: var(--step-1);
}

/* Enhanced layout: one print stays pinned while the story scrolls past it. */
.js[data-pin="on"] .hero {
  min-height: 100vh;
  min-height: 100svh;
  grid-template-rows: auto 1fr auto;
  padding-bottom: 2.5rem;
}

.js[data-pin="on"] .hero__base {
  grid-row: 3;
}

.js[data-pin="on"] .run__pin-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 0;
  pointer-events: none;
}

.js[data-pin="on"] .run__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: grid;
  place-items: center;
}

.js[data-pin="on"] .turn {
  --x: 0px;
  --y: 0px;
  --r: -3deg;
  perspective: 1500px;
  transform: translate3d(var(--x), var(--y), 0) rotate(var(--r));
  will-change: transform;
}

.js[data-pin="on"] .turn__lift {
  animation: rise 1100ms var(--ease-out) 120ms both;
}

.js[data-pin="on"] .turn__card {
  display: block;
  position: relative;
  width: calc(var(--print-w) + 20px);
  aspect-ratio: 260 / 340;
  transform-style: preserve-3d;
  transform: rotateY(calc(var(--turn, 0) * 180deg));
  will-change: transform;
}

.js[data-pin="on"] .turn__face {
  position: absolute;
  inset: 0;
  width: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: none;
}

.js[data-pin="on"] .turn__face--back {
  transform: rotateY(180deg);
}

.js[data-pin="on"] .angles {
  gap: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.js[data-pin="on"] .stage {
  min-height: 100vh;
  min-height: 100svh;
  align-content: end;
  padding-bottom: 2.75rem;
}

.turn__dial {
  display: none;
}

.js[data-pin="on"] .turn__dial {
  display: block;
  position: absolute;
  left: 50%;
  top: calc(100% + 1.1rem);
  transform: translateX(-50%);
  color: var(--mist);
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

@keyframes rise {
  from {
    transform: translateY(58%) rotate(-7deg);
  }
  to {
    transform: none;
  }
}

/* ---------- Lingo: the fade as a working diagram ---------- */

.lingo {
  display: grid;
  gap: clamp(3rem, 6vw, 4.5rem);
  padding: var(--section) var(--gutter);
}

.lingo__intro {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

.ramp {
  --k: 1;
  display: grid;
  gap: 1rem;
}

.js[data-motion="full"] .ramp {
  --k: 0;
}

.ramp__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.9rem;
  height: clamp(18rem, 60svh, 32rem);
}

.ramp__strands {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
  padding-left: 3px;
}

/* The scalp: the axis every strand grows from. */
.ramp__strands::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--ink);
}

.ramp__strand {
  flex: 1 1 0;
  min-height: 1px;
  background: var(--ink);
  transform-origin: left center;
  transform: scaleX(calc(var(--a) + (var(--b) - var(--a)) * var(--k)));
}

/* Alternate guard bands read blue while they are still separate steps and settle to ink once blended. */
.ramp__strand.is-alt {
  background: color-mix(in oklab, var(--shop) calc((1 - var(--k)) * 100%), var(--ink));
}

.ramp__steps {
  display: grid;
  grid-template-rows: repeat(7, minmax(0, 1fr));
  align-items: center;
  font-size: var(--step--1);
  line-height: 1.2;
}

.ramp__steps li {
  display: grid;
  grid-template-columns: 3.4rem auto;
  align-items: baseline;
}

.ramp__steps b {
  font-weight: 700;
}

.ramp__steps span {
  color: var(--fg-2);
}

.ramp__caption {
  max-width: 52ch;
  color: var(--fg-2);
  font-size: var(--step--1);
}

.lingo__words {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

.words {
  display: grid;
  gap: 1.35rem;
}

.words__item {
  display: grid;
  gap: 0.3rem;
}

.words dt {
  font-family: var(--display);
  font-size: 1.55rem;
  line-height: 1;
  text-transform: lowercase;
}

.words dd {
  max-width: 50ch;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.lingo__guards {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.guards {
  width: 100%;
  max-width: 34rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums slashed-zero;
}

.guards caption {
  margin-bottom: 1rem;
  text-align: left;
}

.guards th,
.guards td {
  padding: 0.55rem 0.8rem;
  text-align: left;
  font-weight: 450;
}

.guards thead th {
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-2);
}

.guards tbody th {
  font-weight: 700;
}

.guards tbody tr:nth-child(odd) {
  background: var(--strip-row);
}

/* ---------- The chair: consultation brief + the two questions ---------- */

.chair {
  display: grid;
}

.chair__brief,
.chair__questions {
  padding: var(--section) var(--gutter);
}

.chair__brief {
  display: grid;
  gap: 1.75rem;
  align-content: start;
  justify-items: start;
}

.checklist {
  display: grid;
  gap: 1.1rem;
  max-width: 46ch;
  padding: 0;
  list-style: none;
  counter-reset: brief;
}

.checklist li {
  position: relative;
  padding-left: 2.6rem;
  counter-increment: brief;
  color: var(--fg-2);
}

.checklist li::before {
  content: counter(brief);
  position: absolute;
  left: 0;
  top: -0.2rem;
  font-family: var(--display);
  font-size: 1.6rem;
  line-height: 1;
  color: var(--cape);
}

.checklist b {
  color: var(--fg);
  font-weight: 700;
}

.chair__questions {
  display: grid;
  align-content: center;
  gap: 1.75rem;
  min-height: 70svh;
}

.ask {
  display: grid;
  gap: 0.5em;
  font-family: var(--display);
  font-size: var(--step-4);
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-transform: lowercase;
}

.ask__line {
  display: block;
  text-wrap: balance;
}

.ask__line + .ask__line {
  padding-left: 0.9em;
}

.ask__note {
  font-size: var(--step-1);
  font-weight: 600;
}

/* ---------- Work: personal display of haircuts ---------- */

.work {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
  padding: var(--section) var(--gutter);
}

.work__head {
  display: grid;
  gap: 1.5rem;
}

.work__cuts {
  display: grid;
  gap: 3rem;
}

.cut {
  --fg: var(--ink);
  --fg-2: var(--slate);
  --bg: var(--strip);
  --focus: var(--ink);
  --act-bg: var(--cape);
  --act-hover: var(--cape-deep);
  display: grid;
  gap: 1.25rem;
  justify-items: center;
  padding: 0.75rem 0.75rem 1.5rem;
  border-radius: 6px;
  background: var(--strip);
  color: var(--ink);
  transition: transform 420ms var(--ease-out);
}

.cut .print {
  width: auto;
  padding: 0;
  box-shadow: none;
}

.cut__body {
  display: grid;
  gap: 1rem;
  justify-items: start;
  width: 100%;
  padding: 0 0.5rem;
}

.cut__title {
  display: grid;
  gap: 0.35rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--step-2);
  line-height: 0.98;
  text-transform: lowercase;
}

.cut__no {
  justify-self: start;
  padding: 0.35rem 0.55rem;
  border-radius: 4px;
  background: var(--cape);
  color: var(--strip);
  font-family: var(--mono);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chips li {
  padding: 0.3rem 0.65rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 600;
  line-height: 1.2;
}

.cut__ask {
  display: grid;
  gap: 0.25rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.cut__ask b {
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate);
}

.breakdown {
  width: 100%;
}

.breakdown summary {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border: 1.5px dashed var(--ink);
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.breakdown summary::-webkit-details-marker {
  display: none;
}

.breakdown summary::after {
  content: "+";
  font-size: 1.1rem;
  line-height: 1;
}

.breakdown[open] summary::after {
  content: "\2212";
}

.breakdown summary:hover {
  background: var(--strip-row);
}

.breakdown__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
  margin-top: 1rem;
}

.breakdown__grid dt {
  margin-bottom: 0.35rem;
  font-size: var(--step--1);
  font-weight: 700;
  color: var(--slate);
}

.work__more {
  max-width: 62ch;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  color: var(--fg-2);
  font-size: var(--step--1);
}

/* ---------- Needs: honest gaps, drawn as blank tags ---------- */

.needs {
  display: inline-block;
  padding: 0.3rem 0.55rem;
  border: 1.5px dashed currentColor;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.needs__what {
  display: block;
  margin-top: 0.45rem;
  color: var(--fg-2);
  font-size: var(--step--1);
  line-height: 1.5;
}

/* ---------- Visit: the facts label ---------- */

.visit {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  padding: var(--section) var(--gutter);
}

.visit__head {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

.label {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.label th,
.label td {
  padding: 0.85rem 0.9rem;
  text-align: left;
  vertical-align: top;
}

.label tbody tr:not(.label__group):nth-child(even) {
  background: var(--clipper-row);
}

.label tbody th[scope="row"] {
  width: 36%;
  color: var(--smoke);
  font-weight: 600;
}

.label__group th {
  padding: 2.4rem 0.9rem 0.8rem;
  font-family: var(--display);
  font-size: var(--step-2);
  font-weight: 400;
  line-height: 1;
  text-transform: lowercase;
}

.label tbody:first-child .label__group th {
  padding-top: 0.2rem;
}

.label a {
  text-decoration-color: var(--cape);
}

/* ---------- Book: the brief builder ---------- */

.book {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  padding: var(--section) var(--gutter);
}

.book__head {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

.brief {
  display: grid;
  gap: 1.75rem;
}

.brief__set {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.brief__set legend {
  padding: 0;
  margin-bottom: 0.75rem;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.opts,
.refs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.opt,
.ref {
  position: relative;
  cursor: pointer;
}

.opt input,
.ref input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.opt span {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--strip);
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: 0.03em;
  transition: background-color 160ms ease-out, color 160ms ease-out;
}

.opt:hover span {
  background: rgba(15, 16, 18, 0.28);
}

.opt input:checked + span {
  background: var(--strip);
  color: var(--cape);
}

.opt input:focus-visible + span,
.ref input:focus-visible ~ span {
  outline: 3px solid var(--strip);
  outline-offset: 3px;
}

.ref {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.75rem;
  min-height: 5.5rem;
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  border: 1.5px solid var(--strip);
  border-radius: 6px;
  font-size: var(--step--1);
  font-weight: 650;
  line-height: 1.35;
  transition: background-color 160ms ease-out, color 160ms ease-out;
}

.ref img {
  width: 3.5rem;
  height: auto;
  border-radius: 2px;
}

.ref--own {
  grid-template-columns: 1fr;
  padding-left: 1rem;
}

.ref:hover {
  background: rgba(15, 16, 18, 0.28);
}

.ref:has(input:checked) {
  background: var(--strip);
  color: var(--cape);
}

.ticket {
  display: grid;
  gap: 1rem;
  align-content: start;
  padding: 1.5rem;
  border-radius: 6px;
  background: var(--strip);
  color: var(--ink);
  --focus: var(--ink);
  --fg: var(--ink);
  --bg: var(--strip);
  --fg-2: var(--slate);
}

.ticket__title {
  padding-bottom: 1rem;
  border-bottom: 2px dashed var(--ink);
  font-family: var(--display);
  font-size: var(--step-2);
  font-weight: 400;
  line-height: 1;
  text-transform: lowercase;
}

.ticket__text {
  display: block;
  white-space: pre-line;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.ticket__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ticket__status {
  min-height: 1.5em;
  color: var(--slate);
  font-size: var(--step--1);
}

.ticket__booking {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step--1);
  font-weight: 600;
}

/* ---------- Footer ---------- */

.foot {
  display: grid;
  gap: 2.5rem;
  padding: clamp(3rem, 6vw, 5rem) var(--gutter) 2.5rem;
}

.foot__mark {
  font-family: var(--display);
  font-size: var(--mark);
  line-height: 0.8;
  letter-spacing: -0.02em;
  text-align: center;
  white-space: nowrap;
}

.foot__cols {
  display: grid;
  gap: 1.75rem;
  font-size: var(--step--1);
}

.foot__who {
  font-weight: 700;
}

.foot__nav ul {
  display: grid;
  gap: 0.4rem;
}

.foot__nav a,
.foot__social a {
  text-decoration: none;
}

.foot__nav a:hover,
.foot__social a:hover {
  text-decoration: underline;
}

.foot__needs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  color: var(--smoke);
}

/* ---------- Dock: persistent quick actions (desktop) ---------- */

.dock {
  position: fixed;
  right: var(--gutter);
  bottom: 1.25rem;
  z-index: 35;
  display: none;
  gap: 0.45rem;
  transition: transform 320ms var(--ease-out), opacity 220ms ease-out, visibility 0s linear 0s;
}

.dock.is-away {
  transform: translateY(160%);
  opacity: 0;
  visibility: hidden;
  transition: transform 320ms var(--ease-out), opacity 220ms ease-out, visibility 0s linear 320ms;
}

.dock.is-in-lingo .dock__btn:not(.dock__btn--book) {
  display: none;
}

/* ---------- Wider screens ---------- */

@media (min-width: 40rem) {
  .work__cuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .work__cuts .cut:nth-child(2) {
    margin-top: 5rem;
  }
}

@media (min-width: 62rem) {
  .bar__links {
    display: flex;
  }

  .tab--menu {
    display: none;
  }

  .tab__long {
    display: inline;
  }

  .tab__short {
    display: none;
  }

  .dock {
    display: flex;
  }

  .hero__base {
    max-width: 34rem;
  }

  .run__pin-wrap {
    padding-top: 0;
  }

  .angles {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.5rem;
  }

  .js[data-pin="on"] .angles {
    display: block;
  }

  .js[data-pin="on"] .stage {
    max-width: min(44vw, 40rem);
    align-content: center;
    padding-bottom: 0;
  }

  .lingo {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-areas:
      "intro ramp"
      "words ramp"
      "words guards";
    column-gap: clamp(3rem, 7vw, 7rem);
    row-gap: 4rem;
  }

  .lingo__intro {
    grid-area: intro;
  }

  .ramp {
    grid-area: ramp;
    align-self: start;
  }

  .lingo__words {
    grid-area: words;
  }

  .lingo__guards {
    grid-area: guards;
  }

  .words {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
  }

  .chair {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .chair__questions {
    min-height: 0;
  }

  .work {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
    align-items: start;
    column-gap: clamp(2rem, 5vw, 5rem);
  }

  .work__head {
    position: sticky;
    top: calc(var(--bar-h) + 2rem);
  }

  .work__more {
    grid-column: 2;
  }

  .cut {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    justify-items: stretch;
    padding: 0.75rem;
    transform: rotate(-1deg);
  }

  .work__cuts .cut:nth-child(2) {
    transform: rotate(1deg);
  }

  .cut:hover,
  .cut:focus-within,
  .work__cuts .cut:nth-child(2):hover,
  .work__cuts .cut:nth-child(2):focus-within {
    transform: none;
  }

  .cut__body {
    padding: 0.5rem 0.5rem 0.5rem 0;
  }

  .work__cuts {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

  .work__cuts .cut:nth-child(2) {
    margin-top: 0;
    margin-left: clamp(0rem, 6vw, 6rem);
  }

  .visit {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr);
    column-gap: clamp(2rem, 6vw, 6rem);
    align-items: start;
  }

  .visit__head {
    position: sticky;
    top: calc(var(--bar-h) + 2rem);
  }

  .book {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
    column-gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
  }

  .brief {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    column-gap: 2rem;
    align-items: start;
  }

  .brief__set {
    grid-column: 1;
  }

  .ticket {
    grid-column: 2;
    grid-row: 1 / span 5;
    position: sticky;
    top: calc(var(--bar-h) + 1.5rem);
  }

  .foot__cols {
    grid-template-columns: 1fr 1fr 1fr 1.4fr;
    align-items: start;
  }
}

@media (min-width: 62rem) and (min-height: 38rem) {
  .book__head {
    position: sticky;
    top: calc(var(--bar-h) + 2rem);
  }
}

@media (max-width: 22.5rem) {
  .tab {
    padding: 0.7rem 0.8rem;
  }

  .tab--mark {
    font-size: 1.1rem;
  }
}

/* ---------- Reduced motion: every state is reachable without movement ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .bar.is-tucked {
    transform: none;
  }
}

html[data-motion="reduced"] .bar.is-tucked {
  transform: none;
}
