/* Homegrown Hardware's page wears the channel's own "Keynote" look: black stage, soft spotlight,
   Inter Tight, gray type, one blue and titanium hero numerals.
   RidgeFold's header and footer stay, re-tinted through the shared tokens. */
body.hh {
  --paper: #000000;
  --paper-2: #0d0d0f;
  --ink: #f5f5f7;
  --ink-2: #a1a1a6;
  --ink-3: #86868b;
  --rule: #1f1f22;
  --contour: #3a3a3c;
  --blue: #0a84ff;
  --titanium: linear-gradient(180deg, #ffffff 0%, #dde1e6 46%, #8e949c 100%);
  --display: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
  background: #000000;
  color: var(--ink);
}
.hh h1, .hh h2, .hh h3 { letter-spacing: -0.035em; }
.hh .kicker::before { border-bottom-color: var(--marker); }
.hh .site-header::before { background: linear-gradient(#000 35%, rgba(0, 0, 0, 0)); }
.hh .site-header::after { background: rgba(0, 0, 0, 0.78); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08); }
.hh .nav a.nav-cta { border-color: #3a3a3c; border-radius: 999px; }
.hh .nav a.nav-cta:hover { border-color: var(--ink-2); }
.hh section { position: relative; }
.hh .block { padding-block: clamp(72px, 10vw, 128px) 0; }
.hh .block-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.hh .block-head h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1; }
.hh .block-head p:not(.kicker) { color: var(--ink-2); font-size: clamp(17px, 1.5vw, 20px); max-width: 40em; }
.titanium { background: var(--titanium); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons in the channel's colours */
.hh .btn { border-radius: 999px; min-height: 48px; padding: 0 24px; }
/* The fill is a shade deeper than the accent blue so white button text passes contrast. */
.hh .btn.blue { background: #0071e3; border-color: #0071e3; color: #fff; }
.hh .btn.blue:hover { background: var(--blue); border-color: var(--blue); }
.hh .btn.ghost { background: transparent; border-color: #3a3a3c; color: var(--ink); }
.hh .btn.ghost:hover { border-color: var(--ink-2); background: #0d0d0f; }

/* Hero */
.hh-hero { padding-block: clamp(40px, 7vw, 96px) 0; text-align: center; overflow-x: clip; }
.hh-hero::before {
  content: ""; position: absolute; left: 50%; top: calc(var(--header) * -1); width: min(1100px, 140vw); aspect-ratio: 1; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0)); pointer-events: none;
}
.hh-hero .wrap { position: relative; display: grid; justify-items: center; gap: 22px; }
.crumbs { font: 400 11px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.hh-logo { width: clamp(84px, 10vw, 120px); height: auto; }
.hh-logo .house { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .hh-logo .house { animation: draw 1.4s cubic-bezier(.65, 0, .25, 1) .15s both; }
.js .hh-logo .prompt { animation: fadeup .6s ease 1.3s both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fadeup { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.hh-hero h1 { font-size: clamp(52px, 9.4vw, 136px); line-height: 0.92; letter-spacing: -0.05em; padding-bottom: 0.06em; }
.hh-hero .tagline { font-size: clamp(19px, 2vw, 24px); color: var(--ink-2); max-width: 30em; }
.hh-hero .cta-row { justify-content: center; margin-top: 6px; }

/* The reel */
.reel { position: relative; margin: clamp(48px, 6vw, 72px) auto 0; max-width: 1080px; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; border: 1px solid var(--rule); background: #000; box-shadow: 0 40px 120px -40px rgba(10, 132, 255, 0.25); -webkit-mask-image: -webkit-radial-gradient(white, black); }
.reel video { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.reel-toggle {
  position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px;
  font: 500 12px/1 var(--display); color: #f5f5f7; background: rgba(0, 0, 0, 0.6); border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px; min-height: 40px; padding: 0 14px; cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.reel-toggle:hover { border-color: rgba(255, 255, 255, 0.4); }
html:not(.js) .reel-toggle { display: none; }   /* hh.js runs it */
.reel-cap { margin-top: 14px; text-align: center; color: var(--ink-3); font-size: 14px; }

/* Numbers: titanium, one per tile, typed in like the videos' spoken numbers */
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.numbers div { padding: 34px 24px 30px 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.numbers div + div { padding-left: 24px; border-left: 1px solid var(--rule); }
.numbers dd { margin: 0; font: 700 clamp(36px, 4.6vw, 68px)/1 var(--display); letter-spacing: -0.045em; font-variant-numeric: tabular-nums; min-height: 1em; }
.numbers dt { order: 2; color: var(--ink-2); font-size: 15px; line-height: 1.4; }
.hh .source { margin-top: 14px; font: 500 12px/1.4 var(--display); letter-spacing: 0; text-transform: none; color: var(--ink-3); }

/* Latest videos */
.videos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; }
.videos a { display: grid; gap: 12px; text-decoration: none; }
.thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #0d0d0f; border: 1px solid var(--rule); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.videos a:hover .thumb img { transform: scale(1.035); }
.dur { position: absolute; right: 8px; bottom: 8px; font: 600 12px/1 var(--display); background: rgba(0, 0, 0, 0.82); color: #fff; padding: 4px 6px; border-radius: 4px; font-variant-numeric: tabular-nums; }
.videos h3 { font-size: 16px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 600; }
.videos a:hover h3 { color: #fff; text-decoration: underline; text-decoration-color: var(--blue); text-underline-offset: 3px; }
.videos .when { font-size: 13px; color: var(--ink-3); }
.more { margin-top: 36px; }

/* How a video gets made */
.steps-hh { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.steps-hh li { background: var(--paper-2); border: 1px solid var(--rule); border-radius: 18px; padding: 26px 24px 28px; display: grid; gap: 10px; align-content: start; }
.steps-hh .n { font: 600 13px/1 var(--display); color: var(--blue); letter-spacing: 0.02em; }
.steps-hh h3 { font-size: 21px; line-height: 1.15; }
.steps-hh p { color: var(--ink-2); font-size: 15.5px; }

/* Who watches */
.audience { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.bars { display: grid; gap: 18px; margin: 0; }
.bars div { display: grid; grid-template-columns: 92px minmax(0, 1fr) 58px; align-items: center; gap: 16px; }
.bars dt { color: var(--ink-2); font-size: 15px; }
.bars .track { height: 10px; border-radius: 999px; background: #1c1c1e; overflow: hidden; }
/* --v is the bar's length as a share of the largest group's (hh.js scales it), so the largest fills its track. */
.bars .fill { display: block; height: 100%; width: calc(var(--v) * 1%); max-width: 100%; border-radius: inherit; background: var(--blue); }
.bars .fill.dim { background: #3a3a3c; }
.bars dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.topics { display: grid; gap: 16px; }
.topics h3 { font-size: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { border: 1px solid #2c2c2e; border-radius: 999px; padding: 8px 14px; font-size: 14.5px; color: var(--ink); }

/* Work with us */
.formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.formats article { border: 1px solid var(--rule); border-radius: 18px; padding: 26px 24px; display: grid; gap: 10px; align-content: start; background: var(--paper-2); }
.formats .tag { font: 600 12px/1 var(--display); color: var(--blue); letter-spacing: 0.02em; }
.formats h3 { font-size: 23px; }
.formats p { color: var(--ink-2); font-size: 15.5px; }
.deal { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 32px; align-items: center; padding: clamp(26px, 3.4vw, 40px); border-radius: 22px; background: linear-gradient(135deg, #0a1a2e, #04070c 60%); border: 1px solid #12324f; }
.deal .email { color: #fff; }
.deal p { color: var(--ink-2); }
.deal .row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.hh .copy-btn { border-radius: 999px; border-color: #2c2c2e; }
.fine-print { margin-top: 16px; color: var(--ink-3); font-size: 14px; }

/* Official links */
.official { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--rule); margin: 0; }
.official div { padding: 20px 20px 4px 0; display: grid; gap: 6px; min-width: 0; }
.official dt { font: 400 10.5px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.official dd { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.official a { text-decoration-color: #3a3a3c; }
.hh .site-footer { margin-top: clamp(80px, 10vw, 128px); }

@media (max-width: 1000px) {
  .videos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-hh { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .numbers div:nth-child(3) { padding-left: 0; border-left: 0; }
  .numbers div:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 760px) {
  .audience, .formats, .official, .deal { grid-template-columns: 1fr; }
  .reel { border-radius: 14px; }
}
@media (max-width: 520px) {
  .steps-hh { grid-template-columns: 1fr; }
  .videos { gap: 26px 14px; }
  .videos h3 { font-size: 14.5px; }
  .numbers div { padding-right: 12px; }
  .numbers div + div { padding-left: 12px; }
  .numbers div:nth-child(3) { padding-left: 0; }
  .bars div { grid-template-columns: 76px minmax(0, 1fr) 52px; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .hh-logo .house, .js .hh-logo .prompt { animation: none; }
  .thumb img { transition: none; }
}

/* ---------- Motion ---------- */
/* Page load: the logo draws, then the name, tagline and buttons rise in turn. */
.js .hh-hero .crumbs { animation: rise .9s cubic-bezier(.2, .7, .2, 1) .05s both; }
.js .hh-hero h1 { animation: rise-soft 1.1s cubic-bezier(.2, .7, .2, 1) .4s both; }
.js .hh-hero .tagline { animation: rise .9s cubic-bezier(.2, .7, .2, 1) .62s both; }
.js .hh-hero .cta-row { animation: rise .9s cubic-bezier(.2, .7, .2, 1) .78s both; }
.js .hh-hero .reel-cap { animation: rise .9s cubic-bezier(.2, .7, .2, 1) 1.1s both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes rise-soft { from { opacity: 0; transform: translateY(34px); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
.hh-hero::before { opacity: calc(1 - var(--hero-fade, 0) * 0.85); }

/* The reel tips up and settles to full size as it scrolls into view (hh.js sets --reel-p, 0 to 1). */
.hh-anim .reel {
  transform-origin: 50% 100%;
  transform: perspective(1600px) rotateX(calc((1 - var(--reel-p, 1)) * 16deg)) scale(calc(0.9 + var(--reel-p, 1) * 0.1));
  opacity: calc(0.3 + var(--reel-p, 1) * 0.7);
  box-shadow: 0 40px 120px -40px rgba(10, 132, 255, calc(var(--reel-p, 1) * 0.32));
  will-change: transform;
}

/* Groups hand in one item after another; headings sharpen out of a soft blur. */
.hh-anim .enter {
  opacity: 0; transform: translateY(26px);
  transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1), filter .9s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * 85ms);
}
.hh-anim .block-head > h2.enter { filter: blur(10px); transform: translateY(34px); }
.hh-anim .enter.in, .hh-anim .block-head > h2.enter.in { opacity: 1; transform: none; filter: none; }
.hh-anim .bars .fill { transform: scaleX(0); transform-origin: left center; transition: transform 1.3s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 120ms + 250ms); }
.hh-anim .bars .in .fill { transform: none; }

/* ---------- Pointer light ---------- */
/* One faint blue light follows the cursor across the black stage (hh.js sets --gx/--gy). */
.hh main, .hh .site-footer { position: relative; z-index: 1; }
.has-glow body.hh::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(560px circle at var(--gx, -1000px) var(--gy, -1000px), rgba(10, 132, 255, 0.07), rgba(10, 132, 255, 0) 65%);
}
.videos a .thumb { transition: box-shadow .4s ease, border-color .4s ease; }
.videos a:hover .thumb { box-shadow: 0 22px 60px -26px rgba(10, 132, 255, 0.65); }
.hh .btn.blue:hover { box-shadow: 0 0 0 1px rgba(10, 132, 255, 0.55), 0 12px 40px -10px rgba(10, 132, 255, 0.75); }
.hh .btn.ghost:hover { border-color: rgba(10, 132, 255, 0.55); box-shadow: 0 10px 36px -16px rgba(10, 132, 255, 0.6); }
.hh .btn { transition: background-color .2s, color .2s, box-shadow .3s, border-color .3s; }

@media (prefers-reduced-motion: reduce) {
  .js .hh-hero .crumbs, .js .hh-hero h1, .js .hh-hero .tagline, .js .hh-hero .cta-row, .js .hh-hero .reel-cap { animation: none; }
}

/* ---------- Print and Save as PDF ---------- */
/* Dark ink on white (browsers drop backgrounds when printing), everything shown at once, numbers at their values,
   and no reel, header or buttons. */
@media print {
  body.hh { --paper: #fff; --paper-2: #fff; --ink: #111; --ink-2: #333; --ink-3: #555; --rule: #ccc; --contour: #999; color-scheme: light; background: #fff; }
  .hh * { box-shadow: none !important; text-shadow: none !important; animation: none !important; transition: none !important; }
  .titanium { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--ink); }
  .hh-anim .enter, .hh-anim .block-head > h2.enter { opacity: 1; transform: none; filter: none; }
  .hh-anim .bars .fill { transform: none; }
  .numbers dd .sr-only { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; }
  .numbers dd [data-typed] { display: none; }
  .hh-logo .house { stroke: #111; }
  .has-glow body.hh::before, .hh-hero::before, .has-glow .glow::before, .has-glow .glow::after { display: none; }
  .site-header, .skip, .reel, .reel-cap, .cta-row, .more, .copy-btn, .deal .btn { display: none; }
  .hh .block { padding-block: 32px 0; }
  .deal { background: none; border-color: var(--rule); }
  .deal .email, .videos a:hover h3 { color: var(--ink); }
  .chips span { border-color: var(--rule); }
  .numbers div, .videos li, .steps-hh li, .formats article, .bars div, .official div { break-inside: avoid; }
}
