/* ==========================================================================
   yandleyick.com
   Two colors, chamfered ("notched") corners, alternating bands.
   ========================================================================== */

:root {
  --black: #000;
  --ink: #111;
  --white: #fff;
  --mute-on-dark: #b4b4b4;
  --mute-on-light: #585858;
  --hair-on-dark: rgba(255, 255, 255, .16);
  --hair-on-light: rgba(0, 0, 0, .12);

  --font-body: "Kanit", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-mark: "Michroma", "Eurostile", "Segoe UI", Arial, sans-serif;

  --cut: 14px;                       /* height of the angled seam between bands */
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1120px;
  --header-h: 72px;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-locked { overflow: hidden; }

img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  padding: 10px 14px; background: #fff; color: #000;
}
.skip:focus { left: 8px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- notched outline ----------
   clip-path cuts borders off along the diagonal, so the outline is faked:
   the element itself is the outline color, and ::before is the fill, inset
   by the outline width and clipped to a slightly smaller chamfer.          */

.frame {
  --c: 16px;    /* chamfer size  */
  --bw: 2px;    /* outline width */
  position: relative;
  background: var(--fg);
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)));
}
.frame::before {
  --ci: calc(var(--c) - var(--bw) * .586);
  content: "";
  position: absolute;
  inset: var(--bw);
  background: var(--bg);
  clip-path: polygon(0 0, calc(100% - var(--ci)) 0, 100% var(--ci), 100% 100%, var(--ci) 100%, 0 calc(100% - var(--ci)));
  transition: background-color .18s ease;
}
.frame > * { position: relative; }

a.frame, button.frame { color: var(--fg); text-decoration: none; transition: color .18s ease; }
a.frame:hover, a.frame:focus-visible,
button.frame:hover, button.frame:focus-visible { color: var(--bg); outline: none; }
a.frame:hover::before, a.frame:focus-visible::before,
button.frame:hover::before, button.frame:focus-visible::before { background: var(--fg); }

/* ---------- header ---------- */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  color: #fff;
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease;
}
.site-header.is-solid {
  background: rgba(0, 0, 0, .9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--hair-on-dark);
}

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mark);
  font-size: clamp(14px, 1.5vw, 19px);
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.brand__mark { width: 28px; height: 28px; flex: none; }

.tabs { display: flex; align-items: center; gap: 4px; }
.tabs a {
  display: inline-flex; align-items: center;
  min-height: 40px; padding: 0 18px;
  font-family: var(--font-mark);
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
  transition: background-color .15s ease, color .15s ease;
}
/* The last tab is a run of eleven @ signs, set a touch larger and tighter
   than the lettered tabs so it reads as one solid bar. */
.tabs a.tabs__at { font-size: 14px; letter-spacing: .02em; padding: 0 16px; }
.tabs a:hover, .tabs a:focus-visible, .tabs a[aria-current="page"] {
  background: #fff; color: #000; outline: none;
}

.menu-btn {
  display: none;
  width: 44px; height: 44px; padding: 0; border: 0;
  background: #fff; color: #000; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.menu-btn span {
  display: block; width: 18px; height: 2px; margin: 3px auto;
  background: currentColor;
  transition: transform .2s ease;
}
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  background: #000;
}
.menu[hidden] { display: none; }
.menu a {
  font-weight: 800; font-style: italic;
  font-size: clamp(44px, 14vw, 76px); line-height: 1.08;
  text-transform: uppercase; text-decoration: none; color: #fff;
}
/* Eleven @ signs at the full menu size would run off a phone screen. */
.menu a.menu__at { font-size: clamp(24px, 10vw, 76px); line-height: 1.4; }
.menu a[aria-current="page"] { color: transparent; -webkit-text-stroke: 1.5px #fff; }

/* 800px, not lower: the three tabs plus the logo need about 690px of room.
   Keep in step with the matchMedia width in site.js. */
@media (max-width: 800px) {
  .tabs { display: none; }
  .menu-btn { display: block; }
}

/* ---------- faint grid used behind dark heroes ---------- */

.gridfx::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 75%);
  pointer-events: none;
}

/* ---------- home hero ---------- */

.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 540px;
  overflow: hidden;
  background: #000;
  isolation: isolate;
}
/* The video plays underneath; the canvas on top redraws it through the
   "bad TV" shader in site.js. If WebGL is unavailable the canvas is hidden
   (.no-fx) and the plain black & white video shows instead. */
.hero__fx, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__video {
  z-index: 1;
  object-fit: cover;
  opacity: 0;
  transition: opacity .6s ease;
}
.hero__fx { z-index: 2; display: block; }
.hero.no-fx .hero__fx { display: none; }

.hero.has-video .hero__video { opacity: 1; }
/* With a video supplied in parts there are two players; the one waiting its
   turn is invisible. */
.hero.has-video .hero__video.is-idle { opacity: 0; transition: none; }
.hero.has-video::before { display: none; }

.hero__shade {
  position: absolute; inset: 0; z-index: 3;
  background: linear-gradient(180deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, .12) 28%, rgba(0, 0, 0, .2) 55%, rgba(0, 0, 0, .88) 100%);
  pointer-events: none;
}
.hero__content {
  position: absolute; z-index: 4;
  left: var(--gutter); right: var(--gutter);
  bottom: clamp(64px, 11vh, 120px);
}
.hero__toggle {
  --fg: #fff; --bg: #000; --c: 10px;
  position: absolute; z-index: 5;
  right: var(--gutter); bottom: clamp(64px, 11vh, 120px);
  width: 44px; height: 44px; padding: 0; border: 0;
  display: grid; place-items: center;
  cursor: pointer;
}
.hero__toggle[hidden] { display: none; }
.hero__toggle svg { width: 16px; height: 16px; }
.hero__toggle .icon-pause { display: none; }
.hero__toggle.is-playing .icon-pause { display: block; }
.hero__toggle.is-playing .icon-play { display: none; }
.kicker {
  font-family: var(--font-mark);
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: #d0d0d0;
}
.kicker::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 28px; height: 2px; margin-right: 12px;
  background: currentColor;
}
.hero h1 {
  margin: .14em 0 .16em -.03em;
  font-weight: 800; font-style: italic;
  /* 13vw keeps the 11-letter name on one line inside the gutters at any width. */
  font-size: clamp(40px, 13vw, 148px);
  line-height: .9; letter-spacing: -.01em;
  text-transform: uppercase;
}
/* Second tier of the heading: CANDLESTICK / jungian tracer shaman.
   Lowercase on purpose, against the all-caps name. */
.hero h1 .hero__role {
  display: block;
  margin: .5em 0 0 .08em;
  font-weight: 500;
  font-size: clamp(21px, 3.6vw, 44px);
  line-height: 1.1; letter-spacing: .01em;
  text-transform: none;
}

/* ---------- seams ---------- */

.seam { position: relative; z-index: 6; height: 0; }
.chip {
  --fg: #fff; --bg: #000; --c: 12px;
  position: absolute; left: 50%; top: 0;
  width: 52px; height: 52px;
  transform: translate(-50%, -50%);
  display: grid; place-items: center;
}
.chip svg { width: 20px; height: 20px; }

/* ---------- bands ---------- */

.band {
  position: relative; z-index: 1;
  padding: clamp(84px, 11vw, 150px) var(--gutter);
  background: var(--bg); color: var(--fg);
  overflow: hidden;
}
.band--light { --bg: #fff; --fg: #000; --mute: var(--mute-on-light); --hair: var(--hair-on-light); }
.band--dark  { --bg: #111; --fg: #fff; --mute: var(--mute-on-dark);  --hair: var(--hair-on-dark); }

/* Raised center plateau with 45° shoulders, overlapping the band above. */
.band--cut {
  margin-top: calc(var(--cut) * -1);
  clip-path: polygon(0 var(--cut), 6% var(--cut), calc(6% + var(--cut)) 0, calc(94% - var(--cut)) 0, 94% var(--cut), 100% var(--cut), 100% 100%, 0 100%);
}

.wrap { position: relative; max-width: var(--max); margin: 0 auto; }

.heading {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(12px, 2vw, 20px);
  font-weight: 800; font-style: italic;
  font-size: clamp(42px, 7.5vw, 88px);
  line-height: .95; letter-spacing: -.005em;
  text-transform: uppercase;
}
.heading__chip {
  flex: none;
  height: .84em;
  padding-inline: .28em;
  display: grid; place-items: center;
  background: var(--fg); color: var(--bg);
  clip-path: polygon(0 0, calc(100% - .2em) 0, 100% .2em, 100% 100%, .2em 100%, 0 calc(100% - .2em));
}
.heading__chip > span {
  font: 400 clamp(1rem, 3.4vw, 2rem)/1 var(--font-mark);
  letter-spacing: 0;
  white-space: nowrap;
}

.lead {
  max-width: 34ch; margin: 22px auto 0;
  text-align: center;
  text-wrap: balance;               /* even line lengths, no one-word last line */
  font-style: italic; font-weight: 500;
  font-size: clamp(18px, 2vw, 24px); line-height: 1.35;
  letter-spacing: 0; text-transform: none;   /* it may be an <h2> */
  color: var(--mute);
}

/* Oversized outlined glyph behind a band's content. */
.ghost {
  position: absolute; right: -3vw; top: 50%; z-index: 0;
  transform: translateY(-52%);
  font-weight: 800; font-size: min(72vw, 760px); line-height: .8;
  color: transparent; -webkit-text-stroke: 1.5px var(--hair);
  pointer-events: none; user-select: none;
}

/* ---------- social tiles ---------- */

.tiles {
  list-style: none; padding: 0;
  margin: clamp(40px, 6vw, 64px) auto 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 18px;
}
.tiles > li { flex: 1 1 280px; max-width: 352px; }
.tiles--stack { max-width: 760px; }
.tiles--stack > li { flex-basis: 100%; max-width: none; }

.tile {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  min-height: 116px;
  padding: 22px 28px 22px 30px;
}
.tile__name {
  display: block;
  font-weight: 800; font-style: italic;
  font-size: 30px; line-height: 1.05;
  text-transform: uppercase;
}
.tile > span { min-width: 0; }   /* lets a long handle wrap instead of pushing the icon out */
.tile__handle { display: block; margin-top: 4px; font-size: 16px; line-height: 1.3; color: var(--mute); overflow-wrap: anywhere; transition: color .18s ease; }
.tile__icon { flex: none; width: 46px; height: 46px; transition: transform .18s ease; }
a.frame:hover .tile__handle, a.frame:focus-visible .tile__handle { color: inherit; }
a.frame:hover .tile__icon, a.frame:focus-visible .tile__icon { transform: translateX(4px); }

/* ---------- explore panels ---------- */

.panels {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px;
}
.panel {
  /* Icon, name, arrow. No description line and no link label, by design. */
  display: flex; flex-direction: column; gap: 14px;
  min-height: 210px;
  padding: 30px 30px 28px;
}
.panel__chip {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--fg); color: var(--bg);
  font-weight: 800; font-size: 26px; line-height: 1;
  clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 11px, 100% 100%, 11px 100%, 0 calc(100% - 11px));
  transition: background-color .18s ease, color .18s ease;
}
.panel__chip svg { width: 24px; height: 24px; }
.panel h3 {
  margin-top: 6px;
  font-weight: 800; font-style: italic;
  font-size: 40px; line-height: 1;
  text-transform: uppercase;
}
/* "@" sits small next to capitals, so scale it up without changing the row height. */
.panel h3.panel__at { font-size: 58px; line-height: 40px; }
.panel__go { margin-top: auto; padding-top: 10px; display: inline-flex; }
.panel__go svg { width: 18px; height: 18px; transition: transform .18s ease; }
a.frame:hover .panel__chip, a.frame:focus-visible .panel__chip { background: var(--bg); color: var(--fg); }
a.frame:hover .panel__go svg, a.frame:focus-visible .panel__go svg { transform: translateX(4px); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 17px 26px;
  background: var(--fg); color: var(--bg);
  font-family: var(--font-mark);
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 14px; height: 14px; }

/* ---------- inner pages ---------- */

.page-hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) var(--gutter) clamp(72px, 9vw, 120px);
  background: #000; color: #fff;
  overflow: hidden;
}
.page-hero .wrap { z-index: 1; }
.page-hero h1 {
  margin: .12em 0 0 -.03em;
  font-weight: 800; font-style: italic;
  font-size: clamp(56px, 12vw, 150px);
  line-height: .9; text-transform: uppercase;
}

.empty {
  max-width: 760px; margin: 0 auto;
  padding: 44px 36px;
  text-align: center;
}
.empty h2 {
  font-weight: 800; font-style: italic;
  font-size: clamp(28px, 4vw, 40px); line-height: 1.05;
  text-transform: uppercase;
}

/* ---------- guide index and topics ---------- */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px;
  max-width: var(--max); margin: 0 auto;
}
.guide-card {
  display: flex; align-items: center;
  min-height: 8rem; padding: 1.5rem;
  font-size: clamp(1.75rem, 3.3vw, 2.5rem); font-style: italic; font-weight: 800;
  line-height: 1;
}
.guide-overview {
  display: inline-block; margin-top: .875rem;
  font-size: 1rem; text-underline-offset: .22em;
}
.guide-topic-hero h1 { font-size: clamp(2.25rem, 8vw, 7.25rem); }
.guide-parent { display: inline-block; text-underline-offset: .2em; }
.guide-topic-content { display: grid; justify-items: start; gap: 1.25rem; }
.guide-topic-content p { max-width: 45ch; font-size: clamp(1.125rem, 2vw, 1.5rem); }

/* ---------- footer ---------- */

.site-footer {
  position: relative; z-index: 1;
  padding: clamp(72px, 8vw, 100px) var(--gutter) 36px;
  background: #000; color: #fff;
}
.site-footer__row {
  max-width: var(--max); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.site-footer nav a {
  font-family: var(--font-mark);
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; color: var(--mute-on-dark);
  transition: color .15s ease;
}
.site-footer nav a:hover, .site-footer nav a:focus-visible { color: #fff; }
.fine {
  max-width: var(--max); margin: 36px auto 0; padding-top: 20px;
  border-top: 1px solid var(--hair-on-dark);
  font-size: 14px; color: #8c8c8c;
}
