@font-face {
  font-family: Poppins;
  src: url("./assets/poppins-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url("./assets/poppins-bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --paper: #000;
  --surface: #141414;
  --ink: #f8f7f7;
  --muted: #b5b2b2;
  --line: #2a2828;
  --accent: #f63032;
  --shell: 1440px;
  font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
p, h1, h2, h3, figure { margin: 0; }
.shell { width: min(calc(100% - clamp(36px, 8vw, 148px)), var(--shell)); margin-inline: auto; }
.skip { position: fixed; z-index: 12; left: 14px; top: 10px; translate: 0 -180%; background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 8px; }
.skip:focus { translate: 0; }

.masthead { position: sticky; z-index: 10; top: 0; background: #101010f5; border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-inner { min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; }
.brand { display: block; width: 182px; height: 44px; background: url("./assets/hatsoff-logo.webp") center calc(50% + 6px) / 230px auto no-repeat; }
.brand img { display: none; }
.brand > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.site-nav { display: flex; gap: clamp(18px, 2.35vw, 31px); align-items: center; color: var(--muted); font-size: .87rem; }
.site-nav a:hover, .footer a:hover { color: var(--ink); }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 9px; padding: 11px 18px; background: var(--accent); color: #090909; font-size: .87rem; font-weight: 700; border-radius: 8px; transition: background-color .2s; }
.button:hover { background: #ff6262; }
.button.compact { min-height: 38px; padding: 7px 15px; font-size: .8rem; }
.header-download { justify-self: end; }
.menu-toggle, .menu-scrim { display: none; }

.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; border-top: 1px solid var(--line); margin-top: 58px; padding-block: 23px; color: var(--muted); font-size: .76rem; }
.footer .brand { width: 151px; background-size: 192px auto; }
.footer nav { display: flex; flex-wrap: wrap; gap: 9px 17px; }
.prose { width: min(calc(100% - 42px), 740px); padding-top: clamp(48px, 7vw, 92px); }
.prose h1 { font-size: clamp(40px, 7vw, 68px); margin-bottom: 26px; }
.prose h2 { margin: 33px 0 12px; font-size: clamp(27px, 3.4vw, 39px); }
.prose h3, .prose h4 { margin: 21px 0 9px; font-size: 1.14rem; line-height: 1.4; letter-spacing: -.015em; }
.prose p, .prose li { color: var(--muted); line-height: 1.75; }
.prose p { margin-bottom: 14px; }
.prose li + li { margin-top: 6px; }
.prose a:not(.button) { color: #ff7777; text-decoration: underline; text-underline-offset: 4px; }
.prose a.button { margin: 4px 0 12px; }


.home-masthead { position: relative; background: #1c1c1c; border-bottom: 4px solid #000; }
.home-masthead .header-inner { min-height: clamp(96px, 11vw, 145px); grid-template-columns: auto minmax(0, 1fr) auto auto; gap: clamp(13px, 2.5vw, 36px); padding-inline: clamp(0px, 2.4vw, 30px); }
.home-masthead .site-nav { gap: clamp(12px, 1.45vw, 24px); color: var(--ink); font-size: clamp(.81rem, 1.45vw, 1.08rem); white-space: nowrap; }
.home-masthead .site-nav a:hover { color: #ff5353; }
.header-socials { display: flex; gap: 8px; }
.header-socials a { width: 41px; height: 41px; display: grid; place-items: center; border: 3px solid currentColor; border-radius: 50%; transition: color .2s; }
.header-socials a:hover { color: #ff5353; }
.header-socials svg { width: 25px; height: 25px; fill: currentColor; }
.original-download { min-width: 106px; padding: 19px 12px; border-bottom: 2px solid var(--accent); text-align: center; color: #ff4446; }
.original-download:hover { color: #fff; }

.tool-strip { background: #1c1c1c; overflow: hidden; mask-image: linear-gradient(to right, transparent, black 13%, black 87%, transparent); }
.tool-strip-track { display: flex; width: max-content; }
.tool-strip ul { display: flex; gap: clamp(36px, 6.3vw, 98px); list-style: none; margin: 0; padding: clamp(26px, 3.4vw, 48px) clamp(36px, 6.3vw, 98px) clamp(26px, 3.4vw, 48px) 0; }
.tool-strip li { font-size: clamp(17px, 2.03vw, 28px); white-space: nowrap; line-height: 1.3; }
@media (prefers-reduced-motion: no-preference) {
  .tool-strip-track { animation: tools-scroll 36s linear infinite; }
  .tool-strip:hover .tool-strip-track { animation-play-state: paused; }
  @keyframes tools-scroll { to { transform: translateX(-50%); } }
}

.hero { display: grid; grid-template-columns: minmax(0, 1.47fr) minmax(0, 1fr); grid-template-areas: "title image" "description image" "badge image"; grid-template-rows: auto auto 1fr; column-gap: clamp(34px, 8.6vw, 128px); padding-block: clamp(28px, 3vw, 47px) clamp(38px, 5.8vw, 78px); }
h1, h2 { margin: 0; font-size: clamp(32px, 3.72vw, 54px); font-weight: 700; line-height: 1.24; letter-spacing: -.016em; }
.hero h1 { grid-area: title; margin-top: clamp(36px, 6.1vw, 88px); }
.hero h1 span { position: relative; display: inline-block; }
.hero h1 span::after { position: absolute; content: ""; inset: auto -1% -.035em -1%; height: .105em; border-radius: 50% 42% 27% 38%; background: var(--accent); transform: rotate(-.75deg); }
.hero-description { grid-area: description; align-self: start; max-width: 14em; margin-top: clamp(33px, 7vw, 96px); font-size: clamp(24px, 2.88vw, 41px); line-height: 1.35; }
.hero-description span { display: inline-block; position: relative; }
.hero-description span::after { position: absolute; content: ""; inset: -.09em -.21em -.08em; border: .085em solid var(--accent); border-radius: 49% 45% 48% 39%; transform: rotate(-2deg); pointer-events: none; }
.hero-image { grid-area: image; width: 100%; aspect-ratio: 0.67; overflow: hidden; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.store-badge { grid-area: badge; display: block; align-self: start; justify-self: start; width: clamp(148px, 14.55vw, 188px); margin-block: clamp(33px, 8vw, 110px) 0; }
.store-badge img { width: 100%; height: auto; }
.store-badge:hover { opacity: .82; }

.original-training { background: #f8f8f8; color: #000; padding-block: clamp(66px, 9.8vw, 145px) clamp(55px, 7.5vw, 112px); text-align: center; }
.original-training h2 { text-transform: uppercase; }
.training-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 30px); margin-top: clamp(28px, 4.3vw, 66px); }
.training-grid article { min-width: 0; }
.training-grid h3 { position: relative; z-index: 1; font-size: clamp(21px, 2.9vw, 39px); font-weight: 400; line-height: 1.34; letter-spacing: -.018em; min-height: 2.68em; }
.training-grid img { width: 124%; max-width: none; height: auto; margin: -13% 0 0 -12%; }
.testimonials { padding-block: clamp(58px, 6.5vw, 100px) clamp(72px, 10vw, 140px); }
.testimonials blockquote { color: var(--accent); font-size: clamp(23px, 2.83vw, 38px); line-height: 1.42; letter-spacing: -.02em; margin: 0; }
.testimonials blockquote:nth-of-type(1) { max-width: 25ch; margin-top: clamp(32px, 9vw, 125px); }
.testimonials blockquote:nth-of-type(2) { width: max-content; max-width: 100%; margin: 18px 2% 0 auto; }
.testimonials blockquote:nth-of-type(3) { max-width: 32ch; margin: clamp(27px, 7vw, 100px) auto 0; }
.original-footer { background: #1c1c1c; padding: clamp(50px, 7vw, 105px) 0 10px; }
.updates-link { display: inline-block; margin-top: 24px; padding-bottom: 4px; border-bottom: 2px solid var(--accent); }
.updates-link:hover { color: #ff5353; }

@media (max-width: 925px) {
  .header-inner, .home-masthead .header-inner { min-height: 72px; display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 12px; padding-inline: 0; }
  .header-inner .brand { width: 152px; background-size: 194px auto; }
  .header-download { margin-left: auto; }
  .site-nav, .home-masthead .site-nav { order: 4; flex-basis: 100%; flex-wrap: wrap; white-space: normal; padding: 0 0 13px; }
  .js .site-nav {
    position: absolute;
    inset-block-start: calc(100% + 8px);
    inset-inline-end: max(18px, 4vw);
    display: grid;
    width: min(calc(100% - 36px), 320px);
    max-height: calc(100vh - 96px);
    max-height: calc(100dvh - 96px);
    padding: 6px 14px;
    overflow-y: auto;
    overscroll-behavior: contain;
    gap: 0;
    background: #1c1c1c;
    color: var(--ink);
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 16px 40px #0008;
    font-size: .94rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    translate: 0 -8px;
  }
  .js .menu-open .site-nav { opacity: 1; visibility: visible; pointer-events: auto; translate: 0 0; }
  .js .site-nav a { display: flex; align-items: center; min-height: 44px; padding-inline: 10px; }
  .js .site-nav a + a { border-top: 1px solid #303030; }
  .js .site-nav a:hover { color: #ff5353; }
  .js .menu-scrim { position: fixed; z-index: 9; inset: 0; display: block; background: #0007; opacity: 0; visibility: hidden; pointer-events: none; touch-action: none; }
  .js .menu-open + .menu-scrim { opacity: 1; visibility: visible; pointer-events: auto; }
  .js .menu-toggle { order: 3; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; border: 0; background: transparent; cursor: pointer; }
  .menu-toggle span { display: block; width: 22px; height: 1px; background: var(--ink); }
  .menu-open .menu-toggle span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-open .menu-toggle span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .header-socials { display: none; }
  .original-download { min-width: auto; padding: 10px 1px; font-size: .84rem; }
  .training-grid .desktop-break { display: none; }
  .training-grid h3 { font-size: clamp(17px, 2.8vw, 26px); }
}
@media (max-width: 690px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "image" "description" "badge"; text-align: center; padding-block: 29px 48px; }
  .hero h1 { margin: 0 auto 20px; font-size: clamp(28px, 6.6vw, 38px); }
  .hero-image { width: min(100%, 400px); aspect-ratio: 0.81; justify-self: center; }
  .hero-description { max-width: 25ch; margin: 24px auto 0; }
  .store-badge { justify-self: center; margin-top: 25px; }
  .desktop-break { display: none; }
  .testimonials blockquote:nth-of-type(2), .testimonials blockquote:nth-of-type(3) { margin: 23px 0 0; }
}
@media (max-width: 690px) and (orientation: portrait), (max-width: 520px) {
  .training-grid { grid-template-columns: 1fr; gap: 27px; justify-items: center; }
  .training-grid article { width: min(100%, 380px); }
  .training-grid h3 { min-height: 0; font-size: clamp(21px, 2.9vw, 39px); }
  .training-grid img { width: 100%; margin: 2px 0 0; }
}
@media (min-width: 691px), (min-width: 521px) and (orientation: landscape) {
  @supports (grid-template-rows: subgrid) {
    .training-grid article { display: grid; grid-row: span 2; grid-template-rows: subgrid; }
  }
  @supports not (grid-template-rows: subgrid) {
    .training-grid h3 { min-height: 4.02em; }
  }
}
@media (prefers-reduced-motion: no-preference) {
  .motion-ready [data-reveal] {
    opacity: .18;
    translate: var(--reveal-x, 0) var(--reveal-y, 24px);
    transition: opacity .65s ease, translate .65s cubic-bezier(.2, .65, .3, 1);
  }
  .motion-ready [data-reveal].revealed, .motion-ready [data-reveal]:focus-within { opacity: 1; translate: 0 0; }
  .hero-image { --reveal-y: 34px; }
  .testimonials blockquote { --reveal-x: -14px; --reveal-y: 12px; }
  .testimonials blockquote:nth-of-type(2) { --reveal-x: 14px; }
  .motion-ready .hero h1 span::after { scale: .25 1; transform-origin: left center; transition: scale .65s cubic-bezier(.2, .65, .3, 1) .12s; }
  .motion-ready .hero h1.revealed span::after { scale: 1 1; }
  .composition-motion .hero-image img {
    transform: translateY(var(--cover-offset, 0px)) scale(var(--cover-scale, 1));
    transform-origin: 52% 54%;
  }
  .composition-motion .training-grid img {
    translate: 0 var(--training-offset, 0px);
    scale: var(--training-scale, 1);
    opacity: var(--training-opacity, 1);
  }
}
@media (max-width: 925px) and (prefers-reduced-motion: no-preference) {
  .js .site-nav { transition: opacity .22s ease, translate .22s ease, visibility 0s linear .22s; }
  .js .menu-scrim { transition: opacity .22s ease, visibility 0s linear .22s; }
  .js .menu-open .site-nav, .js .menu-open + .menu-scrim { transition-delay: 0s; }
  .menu-toggle span { transition: transform .22s ease; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tool-strip { overflow-x: auto; mask-image: none; }
  .tool-strip-track ul:first-child { padding-inline-start: 20px; }
  .tool-strip-track ul[aria-hidden="true"] { display: none; }
}
