/* customsdingus — slapped together on purpose */

:root {
  --paper: #f4efe6;
  --paper-2: #ebe4d6;
  --ink: #141414;
  --ink-soft: #3b3b3b;
  --pink: #ff3d8a;
  --orange: #ff5c1a;
  --yellow: #ffe94d;
  --blue: #2b4cff;
  --tape: rgba(255, 233, 77, .75);

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --mono: "Space Mono", "Courier New", monospace;
  --marker: "Permanent Marker", "Comic Sans MS", cursive;

  --wobble: 255px 15px 225px 15px / 15px 225px 15px 255px;
  --wobble-2: 15px 225px 15px 255px / 255px 15px 225px 15px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  background-image:
    radial-gradient(rgba(0,0,0,.045) 1px, transparent 1px);
  background-size: 6px 6px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.05; }
p { margin: 0; }

.sec {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 120px) 16px;
}

.sec-title {
  font-family: var(--serif);
  font-size: clamp(38px, 6vw, 72px);
  margin-bottom: 12px;
}
.sec-title::after {
  content: "";
  display: block;
  width: 2.2em;
  height: 10px;
  margin-top: 6px;
  background: var(--yellow);
  transform: rotate(-1.5deg) skewX(-12deg);
}

/* ---------- masthead ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  background-image: radial-gradient(rgba(0,0,0,.045) 1px, transparent 1px);
  background-size: 6px 6px;
  border-bottom: 3px solid var(--ink);
}
.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.wordmark {
  font-family: var(--marker);
  font-size: 30px;
  text-decoration: none;
  transform: rotate(-2deg);
  display: inline-block;
}
.wordmark span { color: var(--pink); }
.nav { display: flex; gap: 18px; align-items: center; font-size: 14px; }
.nav a { text-decoration: underline wavy var(--pink); text-underline-offset: 4px; }
.nav a[aria-current="page"] { font-weight: 700; }

/* ---------- internal control (top band) ---------- */
.sec--control {
  text-align: center;
  background: var(--ink);
  color: var(--paper);
  max-width: none;
}
.control-text {
  font-family: var(--serif);
  font-size: clamp(22px, 3.1vw, 40px);
  line-height: 1.3;
  max-width: none;
  margin: 0 auto;
  padding: 0 16px;
}
.control-text span { display: block; }
.control-text span:nth-child(2) { color: var(--yellow); }
.control-text span:nth-child(3) { font-style: italic; }

/* ---------- the equation ---------- */
.equation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 18px;
  font-family: var(--serif);
  font-size: clamp(26px, 4.2vw, 52px);
}
.eq-box {
  padding: 8px 22px;
  border: 3px solid var(--ink);
  border-radius: var(--wobble);
  background: #fff;
  transform: rotate(-1.2deg);
}
.eq-box small { display: block; text-align: center; font-family: var(--mono); font-weight: 700; font-size: .42em; letter-spacing: .06em; color: var(--ink); margin-top: 2px; }
.eq-box--os { background: var(--yellow); transform: rotate(1deg); }
.eq-box--money { background: var(--pink); font-family: var(--serif); font-weight: 700; letter-spacing: .06em; transform: rotate(-3deg); }
.eq-op { font-family: var(--marker); font-size: 1.1em; }

/* ---------- motto ---------- */
.sec--motto { text-align: center; }
.motto-small { font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 10px; }
.motto-big {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(44px, 9vw, 120px);
  letter-spacing: -.02em;
}
.motto-big .u { position: relative; display: inline-block; }
.motto-big .u::after {
  content: "";
  position: absolute;
  left: -.04em; right: -.04em; bottom: .02em;
  height: .13em;
  background: var(--pink);
  transform: rotate(-1.5deg);
  mix-blend-mode: multiply;
  z-index: -1;
}

/* ---------- magazine ---------- */
.sec--mag {
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}
.mag-head { text-align: center; margin-bottom: 40px; }
.mag-title {
  font-family: var(--serif);
  font-size: clamp(40px, 8vw, 104px);
  letter-spacing: -.02em;
  max-width: 14ch;
  margin: 0 auto;
}
.mag-title em { color: var(--orange); }

.mag-list {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  column-gap: 48px;
  column-rule: 1px solid var(--ink);
}
.mag-list li {
  break-inside: avoid;
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px dashed var(--ink);
}
.mag-num {
  font-family: var(--serif);
  font-size: 64px;
  line-height: .8;
  color: var(--pink);
  min-width: 1.6em;
}
.mag-list h3 { font-family: var(--serif); font-size: 32px; margin-bottom: 6px; }
.mag-list p { font-size: 15px; color: var(--ink-soft); }
.mag-list p b { color: var(--ink); }

/* ---------- pricing ---------- */
.math-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px 36px;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(22px, 4vw, 40px);
  border-radius: 6px;
  transform: rotate(-.8deg);
  margin: 28px 0 96px;
}
.credit-lhs {
  font-family: var(--marker);
  font-size: clamp(30px, 4.4vw, 62px);
  line-height: 1;
  color: var(--yellow);
  white-space: nowrap;
}
.math {
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.9;
  min-width: 0;
}
.math-line { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; }
.math-line + .math-line { margin-top: 10px; }
.m-big { font-size: 1.6em; line-height: 1; }
.math sub, .math sup { font-size: .55em; }
.frac { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; line-height: 1.15; font-size: .85em; }
.frac > span:first-child { border-bottom: 2px solid var(--paper); padding: 0 6px 2px; }
.frac > span:last-child { padding: 2px 6px 0; }
.lim { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; vertical-align: middle; }
.lim > sup, .lim > sub { vertical-align: baseline; position: static; font-size: .5em; line-height: 1; }
.lim > sup sub { font-size: .7em; }

.billing-title {
  font-family: var(--serif);
  font-size: clamp(30px, 4.4vw, 52px);
  margin-bottom: 16px;
}
.billing-title::after {
  content: "";
  display: inline-block;
  width: 1.6em; height: 8px;
  margin-left: 12px;
  background: var(--blue);
  transform: rotate(-2deg) skewX(-12deg);
  vertical-align: middle;
}
.graph {
  margin: 0;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--wobble-2);
  padding: 16px;
  transform: rotate(.5deg);
}
.graph canvas { width: 100%; height: auto; display: block; }
figcaption { font-size: 12px; color: var(--ink-soft); margin-top: 10px; font-style: italic; }

/* ---------- stat ---------- */
.sec--stat {
  text-align: center;
  background: var(--yellow);
  max-width: none;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}
.stat-lead { font-family: var(--serif); font-size: clamp(24px, 3.5vw, 40px); }
.stat-num {
  font-family: var(--marker);
  font-size: clamp(30px, 7vw, 100px);
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.stat-value { font-variant-numeric: tabular-nums; }
.stat-src { margin-top: 18px; font-size: 13px; color: var(--ink-soft); }
.stat-src::before { content: "* "; }

/* ---------- logos ---------- */
.sec--logos { max-width: none; padding: 0 0 clamp(40px, 6vw, 80px); }
.logos-title { text-align: center; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 26px; }
.marquee {
  overflow: hidden;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  background: #fff;
  padding: 26px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 80px;
  width: max-content;
  padding-left: 80px;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.logo { white-space: nowrap; opacity: .85; filter: grayscale(1); display: inline-flex; align-items: center; }
.logo--img img { display: block; height: 52px; width: auto; }
.logo--enron img { height: 76px; }
.logo--theranos img { height: 40px; }
.logo--titanic img { height: 66px; mix-blend-mode: multiply; }
.logo--fyre img { height: 84px; }
/* the madoff file is a white wordmark centred on a black square: invert it and crop to the band */
.logo--madoff { width: 280px; height: 64px; overflow: hidden; }
.logo--madoff img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50.7%; filter: invert(1); }
.logo--aa { font-family: var(--serif); font-size: 30px; font-variant: small-caps; letter-spacing: .12em; border-bottom: 3px double var(--ink); }
.logo--lehman { font-family: var(--serif); font-size: 34px; font-style: italic; }

/* ---------- review ---------- */
.review {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 20px;
}
.review-person { text-align: center; }
.avatar {
  width: 150px; height: 150px;
  margin: 0 auto 10px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  overflow: hidden;
  background: var(--paper-2);
  transform: rotate(-3deg);
  box-shadow: 4px 4px 0 var(--pink);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; display: block; }
.review-name { font-family: var(--serif); font-size: 26px; }
.review-role { font-size: 12px; color: var(--ink-soft); }
.bubble {
  margin: 0;
  position: relative;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 30px;
  padding: 28px 32px;
  font-family: var(--marker);
  font-size: clamp(22px, 3vw, 34px);
  transform: rotate(1deg);
  box-shadow: 5px 5px 0 var(--pink);
}
.bubble::before {
  content: "";
  position: absolute;
  left: -26px; top: 50%;
  width: 0; height: 0;
  border: 14px solid transparent;
  border-right-color: var(--ink);
  transform: translateY(-50%);
}
.bubble::after {
  content: "";
  position: absolute;
  left: -20px; top: 50%;
  width: 0; height: 0;
  border: 12px solid transparent;
  border-right-color: #fff;
  transform: translateY(-50%);
}

/* ---------- accuracy ---------- */
.sec--accuracy { text-align: center; }
.accuracy-num {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(22px, 4.5vw, 56px);
  line-height: 1.05;
  overflow-wrap: anywhere;
  word-break: break-all;
  background: var(--ink);
  color: var(--yellow);
  padding: 14px 18px;
  transform: rotate(-.7deg);
  display: block;
}
.accuracy-word { font-family: var(--serif); font-size: clamp(48px, 10vw, 140px); line-height: 1; margin-top: 14px; }

/* ---------- how ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--wobble);
  padding: 28px 22px 32px;
  text-align: center;
}
.step:nth-child(1) { transform: rotate(-1.5deg); }
.step:nth-child(2) { transform: rotate(1deg); background: var(--yellow); }
.step:nth-child(3) { transform: rotate(-.5deg); background: var(--pink); }
.step-num {
  display: inline-grid; place-items: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--ink); color: var(--paper);
  font-family: var(--marker);
  font-size: 28px;
  margin-bottom: 14px;
}
.step h3 { font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); }

/* ---------- bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.bento-card {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 28px;
  padding: 44px 30px;
  min-height: 180px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  transition: transform .15s;
}
.bento-card:hover { transform: translateY(-3px) rotate(-.5deg); }
.bento-card:nth-child(2n) { background: var(--paper-2); }
.bento-card:nth-child(3n) { background: #fff8d6; }
.bento-card h3 { font-family: var(--serif); font-size: 32px; }
.sparkle {
  position: absolute;
  font-size: 18px;
  color: var(--pink);
  line-height: 1;
  animation: twinkle 2.4s ease-in-out infinite;
}
.sparkle--tl { top: 12px; left: 14px; }
.sparkle--tr { top: 12px; right: 14px; animation-delay: .6s; }
.sparkle--bl { bottom: 12px; left: 14px; animation-delay: 1.2s; }
.sparkle--br { bottom: 12px; right: 14px; animation-delay: 1.8s; }
@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: .8; }
  50% { transform: scale(1.4) rotate(20deg); opacity: 1; }
}

/* ---------- the globe ---------- */
.globe-grid {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 480px);
  align-items: center;
  gap: 40px;
}
.globe-title {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(44px, 7vw, 96px);
  letter-spacing: -.02em;
}
.globe-box {
  aspect-ratio: 1 / 1;
  width: 100%;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 6px;
  box-shadow: 8px 8px 0 var(--blue);
  padding: 0;
  position: relative;
  overflow: hidden;
  transform: rotate(1deg);
}
.globe-box::before {
  content: "";
  position: absolute;
  top: -14px; left: 34px;
  width: 96px; height: 28px;
  background: var(--tape);
  transform: rotate(-5deg);
}
.globe-box canvas { width: 100%; height: 100%; display: block; cursor: move; touch-action: pan-y; }

/* ---------- pullquote ---------- */
.sec--quote { text-align: center; }
.pullquote { margin: 0 auto; max-width: 900px; }
.pullquote p {
  font-family: var(--serif);
  font-size: clamp(34px, 6vw, 76px);
  line-height: 1.1;
  letter-spacing: -.01em;
}
.stars {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1;
  letter-spacing: .08em;
  color: var(--orange);
  margin-bottom: 18px;
}
.stars span { display: inline-block; }
.stars span:nth-child(1) { transform: rotate(-8deg); }
.stars span:nth-child(2) { transform: rotate(5deg) translateY(2px); }
.stars span:nth-child(3) { transform: rotate(-3deg); }
.stars span:nth-child(4) { transform: rotate(7deg) translateY(1px); }
.stars span:nth-child(5) { transform: rotate(-6deg); }
.pullquote-who {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 26px;
}
.pullquote-who img {
  width: 76px; height: 76px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 30%;
  border: 3px solid var(--ink);
  transform: rotate(-4deg);
  box-shadow: 3px 3px 0 var(--yellow);
}
.pullquote cite { font-style: normal; font-size: 14px; color: var(--ink-soft); }

/* ---------- about page ---------- */
.page-about { min-height: 100vh; display: flex; flex-direction: column; }
.page-about .masthead, .page-about .footer { width: 100%; flex: none; }
.about {
  flex: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
.about-text {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 54px);
  line-height: 1.28;
  letter-spacing: -.005em;
  text-align: center;
  max-width: 30ch;
  /* a little texture: halftone grain inside the letters */
  color: transparent;
  background-color: var(--ink);
  background-image:
    radial-gradient(rgba(255,255,255,.28) .9px, transparent 1.1px),
    radial-gradient(rgba(255,255,255,.14) .8px, transparent 1px);
  background-size: 4px 4px, 7px 7px;
  background-position: 0 0, 2px 3px;
  -webkit-background-clip: text;
          background-clip: text;
}
.about-text mark {
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  font-style: italic;
  background: linear-gradient(transparent 50%, var(--yellow) 50%, var(--yellow) 94%, transparent 94%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0 .06em;
}
.about-text a {
  color: var(--pink);
  -webkit-text-fill-color: var(--pink);
  text-decoration: underline wavy var(--ink);
  text-underline-offset: .12em;
  text-decoration-thickness: 2px;
}

/* ---------- footer ---------- */
.footer {
  padding: 36px 16px;
  border-top: 3px solid var(--ink);
  font-size: 13px;
  color: var(--ink-soft);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.footer-inner .linkedin { justify-self: start; }
.linkedin {
  display: inline-grid;
  place-items: center;
  width: 52px; height: 52px;
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: var(--wobble);
  background: #fff;
  transform: rotate(-3deg);
  box-shadow: 3px 3px 0 var(--pink);
  transition: transform .12s;
}
.linkedin:hover { transform: rotate(2deg) translate(-1px, -1px); }
.footer-made { font-family: var(--marker); font-size: 20px; color: var(--ink); transform: rotate(-1deg); display: inline-block; text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .mag-list { columns: 1; }
  .steps { grid-template-columns: 1fr; }
  .review { grid-template-columns: 1fr; }
  .bubble::before, .bubble::after { display: none; }
  .equation { font-size: clamp(22px, 7vw, 40px); }
  .math { font-size: 18px; }
  .math-card { grid-template-columns: 1fr; }
  .credit-lhs { white-space: normal; }
  .globe-grid { grid-template-columns: 1fr; }
  .globe-title { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .sparkle { animation: none; }
  html { scroll-behavior: auto; }
}
