/*
 * Homepage — `design/handoffs/homepage and mega menu/` (README, "Homepage
 * Latest" at 1280, "Homepage Mobile v2" version e at 393).
 *
 * The mock is two fixed artboards; this is the same design as a fluid layout.
 * Desktop rules first, then the ladder down: 1100 and 1000 loosen the grids,
 * 720 is the phone (version e). Colours, radii, shadows and type come from
 * tokens.css; the only literals are the hero's display size, which has no
 * token (precedent T07), and the mock's tile and card type that sits between
 * the scale's steps.
 */

.as-main.as-route-home { max-width: none; padding-inline: 0; padding-block-end: 0; }
/* The newsletter band's own bottom padding is the gap to the footer (56px, 32
   on a phone, as the handoff draws it). With .as-main's and the footer's
   margins on top it was 168. */
.as-main.as-route-home + .as-footer { margin-top: 0; }

.as-home__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.as-home__head > a { font-weight: 700; font-size: var(--text-sm); }

/* ─── THE HERO ───────────────────────────────────────────────────────────── */
.as-home-hero { padding: var(--space-12) 0 var(--space-16); text-align: center; }  /* 48 above the eyebrow, not the mock's 88 (Dennis, 2026-11-12) */
.as-home-hero__inner { display: flex; flex-direction: column; align-items: center; gap: var(--space-7); }
.as-home-hero__eyebrow { margin: 0; color: var(--atomic-blue); }
.as-home-hero__title {
  margin: 0;
  /* 86px at the 1280 artboard; scales with the column so the first line never breaks. */
  font-size: clamp(40px, 6.72vw, 86px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  color: var(--color-text);
}
.as-home-hero__a,
.as-home-hero__b { white-space: nowrap; }
.as-home-hero__fast { display: block; color: var(--atomic-blue); }
.as-home-hero__sub {
  margin: 0;
  max-width: 56ch;
  font-size: var(--text-body-lg);
  line-height: var(--leading-body);
  color: var(--color-text-muted);
}
.as-home-hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin: 0; }

/* ─── THE FOUR CATEGORIES: A PHOTO BENTO ─────────────────────────────────── */
.as-home-boxes { padding: 0 0 var(--space-16); }
.as-home-boxes__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: 280px 280px;
  gap: var(--space-4);
}
.as-home-box {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-surface-alt);
  color: var(--color-text-invert);
  text-decoration: none;
}
.as-home-box--stickers { grid-column: span 2; grid-row: span 2; padding: var(--space-8); }
.as-home-box--banners  { grid-column: span 2; padding: var(--space-7); }
.as-home-box:hover     { color: var(--color-text-invert); }

/* The photograph, full bleed, under a navy scrim that keeps the white type readable. */
.as-home-box__photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  border-radius: 0;
}
.as-home-box__photo .as-slot__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms var(--ease);
}
.as-home-box:hover .as-home-box__photo .as-slot__img { transform: scale(1.03); }
.as-home-box::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(36, 41, 56, 0) 45%, rgba(36, 41, 56, 0.72) 100%);
  pointer-events: none;
}
/* The phone's cut-out and kicker are the phone's (5e, below). */
.as-home-box__cut,
.as-home-box__kick { display: none; }

.as-home-box__text { display: flex; flex-direction: column; gap: var(--space-1-5); }
.as-home-box__name {
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
.as-home-box--stickers .as-home-box__name { font-size: var(--text-stat); }
.as-home-box--banners .as-home-box__name  { font-size: var(--text-h2); }
.as-home-box__sub { font-size: var(--text-sm); }
.as-home-box__cta { font-size: var(--text-sm); font-weight: 700; }

/* ─── FEATURED THIS MONTH ────────────────────────────────────────────────── */
.as-home-featured { padding: 0 0 var(--space-16); }
.as-home-featured .as-home__head { align-items: center; margin-bottom: 22px; }
.as-home-featured__nav { display: flex; gap: var(--space-1-5); }
.as-home-featured__arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  box-shadow: inset 0 0 0 1.5px var(--color-border);
  font: inherit;
  font-weight: 700;
  color: var(--color-text-muted);
  cursor: pointer;
}
.as-home-featured__arrow--next { background: var(--atomic-dark); box-shadow: none; color: var(--color-text-invert); }
.as-home-featured__arrow:disabled { opacity: 0.4; cursor: default; }
.as-home-featured__swipe { display: none; }

/* Three to a screen, scrolled a card at a time. */
.as-home-featured__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * var(--space-5)) / 3);
  gap: var(--space-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: var(--space-1);
}
.as-home-featured__track::-webkit-scrollbar { display: none; }

/*
 * The product card, laid out as the feature: words beside the picture.
 *
 * The picture is 150px, or 45% of the card's inside when that is less. At a
 * fixed 150 the words' column fell to 68px at 1024 — "Laminated" ran under the
 * photograph (Dennis, 2026-11-12) — and with two cards to a screen below 1200
 * and the cap, it stays above ~140px down to the phone layout.
 */
.as-cat-card--feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(150px, 45%);
  align-items: center;
  gap: var(--space-4);
  padding: 26px 26px 26px 30px;
  border-radius: var(--radius-lg);
  background: var(--color-surface-alt);
  box-shadow: none;
  text-align: left;
  scroll-snap-align: start;
  transition: background var(--dur) var(--ease);
}
.as-cat-card--feature:hover { transform: none; box-shadow: none; background: var(--color-surface-tint); }
.as-cat-card--feature .as-cat-card__shot { grid-column: 2; grid-row: 1; padding: 0; background: none; }
.as-cat-card--feature .as-cat-card__shot .as-slot { background: none; }
.as-cat-card--feature .as-cat-card__body { grid-column: 1; grid-row: 1; align-items: flex-start; gap: var(--space-1-5); padding: 0; }
.as-cat-card--feature .as-cat-card__name {
  margin: 0;
  font-size: var(--text-h3);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.as-cat-card--feature .as-cat-card__foot { align-items: flex-start; padding-top: var(--space-1-5); }
.as-cat-card--feature .as-cat-card__incl { margin-bottom: var(--space-1-5); font-weight: 400; }
.as-cat-card--feature .as-cat-card__cta,
.as-cat-card--feature:hover .as-cat-card__cta {
  align-items: center;
  gap: var(--space-3);
  border: 0;
  border-radius: 0;
  background: none;
}
.as-cat-card--feature .as-cat-card__price,
.as-cat-card--feature:hover .as-cat-card__price { padding: 0; font-size: var(--text-h3); font-weight: 800; color: var(--color-text); }
.as-cat-card--feature .as-cat-card__view { padding: 0; background: none; font-size: var(--text-xs); font-weight: 700; color: var(--atomic-blue); }
/* A no-break space: the link is a flex box, which drops an ordinary leading space. */
.as-cat-card--feature .as-cat-card__view::after { content: "\00a0→"; }

/* ─── SPLIT 5 ────────────────────────────────────────────────────────────── */
/* The band and its card are the shared starburst recipe (primitives.css);
   this page sets only its padding, tilt and shadow. */
.as-home-split { padding: 0 0 var(--space-16); }
.as-home-split__band { padding: 44px 52px; }
.as-home-split__card {
  --tilt: -1.5deg;
  flex: none;
  flex-direction: column;
  gap: var(--space-1);
  padding: 26px var(--space-8);
  box-shadow: var(--shadow-pop);
}
.as-home-split__kick { color: var(--atomic-blue); }
.as-home-split__offer {
  font-size: var(--text-h1);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-text);
}
.as-home-split__small { font-size: var(--text-xs); color: var(--color-text-muted); }
.as-home-split__text {
  flex: 1;
  margin: 0;
  font-size: var(--text-body);
  font-weight: 500;
  line-height: var(--leading-body);
  color: var(--color-text-invert);
}
.as-home-split__cta { flex: none; }

/* ─── ABOUT + HOURS ──────────────────────────────────────────────────────── */
.as-home-about { padding: var(--space-16) 0; border-top: 1px solid var(--color-border-soft); }
.as-home-about__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-14); align-items: start; }
.as-home-about__copy { display: flex; flex-direction: column; gap: var(--space-4-5); }
.as-home-about__copy h2 { margin: 0; font-size: clamp(28px, 3vw, 38px); font-weight: 800; line-height: 1.08; letter-spacing: -0.025em; }
.as-home-about__copy .as-home-about__lede { margin: 0; max-width: none; font-size: var(--text-body); font-weight: 600; color: var(--atomic-blue); }
.as-home-about__copy p { margin: 0; max-width: 52ch; font-size: var(--text-body); line-height: 1.7; color: var(--color-text-muted); }
.as-home-about__copy .as-home-about__note {
  max-width: none;
  padding-left: var(--space-3-5);
  border-left: 3px solid var(--atomic-blue);
  font-weight: 600;
  line-height: var(--leading-body);
  color: var(--atomic-dark);
}

.as-home-about__panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-7) var(--space-8);
  padding: var(--space-8) 36px;
  border-radius: var(--radius-xl);
  background: var(--atomic-dark);
  color: var(--color-text-invert);
}
.as-home-about__cell h3 { margin: 0 0 var(--space-1-5); color: var(--atomic-blue); }
.as-home-about__cell p { margin: 0; font-size: var(--text-sm); line-height: 1.7; }
.as-home-about__cell a { color: var(--color-text-invert); font-weight: 700; }
.as-home-about__cell a:hover { color: var(--atomic-blue); }
.as-home-about__cell--actions { display: flex; flex-direction: column; gap: var(--space-2); justify-content: flex-end; }
.as-home-about__pair { display: flex; gap: var(--space-2); }
.as-home-about__pair .as-btn { flex: 1; }
/* The handoff's faint ring; hover keeps the dark variant's (primitives.css). */
.as-home-about__pair .as-btn--outline { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); }

/* ─── INSTAGRAM ──────────────────────────────────────────────────────────── */
.as-home-social { padding: var(--space-14) 0; background: var(--color-surface-alt); }
.as-home-social .as-home__head a { color: var(--atomic-blue); }
.as-home-social .as-home__head a:hover { color: var(--atomic-dark); }
.as-home-social__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-3); margin-top: 22px; }
.as-home-social__item { border-radius: var(--radius-md); overflow: hidden; background: var(--color-surface); }

/* ─── THE NEWSLETTER ─────────────────────────────────────────────────────── */
.as-home-news { padding: var(--space-14) 0; }
.as-home-news__panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-10);
  align-items: center;
  padding: 44px 52px;
  border-radius: var(--radius-xl);
  background: var(--atomic-blue);
  color: var(--color-text-invert);
}
.as-home-news__panel h2 { margin: 0 0 var(--space-2-5); font-size: clamp(26px, 3vw, 36px); font-weight: 800; line-height: var(--leading-tight); letter-spacing: -0.025em; }
.as-home-news__panel p { margin: 0; font-size: var(--text-sm); line-height: var(--leading-body); color: #eaf8fe; }
.as-home-news__panel strong { color: var(--color-text-invert); }
.as-home-news__form { display: flex; gap: var(--space-2); }
.as-home-news__form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: var(--space-3-5) var(--space-4-5);
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  font: inherit;
  font-size: var(--text-sm);
  color: var(--color-text);
}
.as-home-news__form input[type="email"]::placeholder { color: var(--color-placeholder); }
.as-home-news__form .as-btn { padding-inline: var(--space-6); font-size: var(--text-sm); white-space: nowrap; }

/* ─── NARROWER ───────────────────────────────────────────────────────────── */
@media (max-width: 1200px) {
  /* Two featured cards to a screen: three left their words a sliver beside the picture. */
  .as-home-featured__track { grid-auto-columns: calc((100% - var(--space-5)) / 2); }
}

@media (max-width: 1100px) {
  .as-home-boxes__grid { grid-template-rows: 240px 240px; }
  .as-home-about__grid { grid-template-columns: 1fr; gap: var(--space-10); }
}

@media (max-width: 1000px) {
  .as-home-social__grid    { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .as-home-split__band     { flex-wrap: wrap; gap: var(--space-7); padding: 36px var(--space-10); }
  .as-home-split__text     { flex-basis: 100%; order: 3; }
  .as-home-news__panel     { grid-template-columns: 1fr; gap: var(--space-6); }
}

@media (max-width: 900px) {
  .as-home-hero { padding: var(--space-10) 0 var(--space-12); }
  /* Gutters narrow to 24px here: a little less padding keeps the words' column wide enough. */
  .as-cat-card--feature { padding: 22px; }
}

/*
 * ─── THE PHONE (VERSION e) ──────────────────────────────────────────────────
 *
 * The hero turns left-aligned with three lines; the bento becomes the 5e
 * boxes (all four above the fold on an iPhone 15); featured becomes a
 * sideways row of upright cards; the Split card and its button stack.
 */
@media (max-width: 720px) {
  .as-home__head h2 { font-size: 20px; }
  /* Version e's Featured title has no tracking. The Instagram title keeps the
     desktop's -0.01em: without it "…for more" breaks at 390–393 (Dennis,
     2026-11-11: keep the spacing on the Instagram title). */
  .as-home-featured .as-home__head h2 { letter-spacing: normal; }

  /* 8 / 10 rather than the mock's 20 / 14: the notice bar the README asks for
     is 37px the mock's phone frame did not have, and all four boxes have to
     clear the fold at 393 × 660 (Dennis, 2026-11-11: trim the hero). */
  .as-home-hero { padding: var(--space-2) 0 var(--space-2-5); text-align: left; }
  .as-home-hero__inner { align-items: flex-start; gap: var(--space-2-5); }
  .as-home-hero__street { display: none; }
  /* 38px, the mock's, until the screen is too narrow for its widest no-wrap
     line: "SIGNS. BANNERS." is 8.05 times the font size, so a 320 phone
     (272px inside the gutters) pushed the page 10px sideways. */
  .as-home-hero__title { font-size: min(38px, calc((100vw - 2 * var(--gutter)) / 8.1)); letter-spacing: -0.04em; }
  .as-home-hero__a { display: block; }
  .as-home-hero__sub { font-size: var(--text-sm); line-height: 1.55; }
  .as-home-hero__cta { justify-content: flex-start; align-items: center; gap: var(--space-4); padding-top: var(--space-0-5); }
  .as-home-hero__cta .as-btn--primary { padding: var(--space-3) 22px; font-size: var(--text-sm); }
  /* Get a quote is a text link beside the one button on a phone. */
  .as-home-hero__cta .as-home-hero__quote,
  .as-home-hero__cta .as-home-hero__quote:hover {
    min-height: 0;
    padding: 0;
    background: none;
    box-shadow: none;
    font-size: var(--text-sm);
    color: var(--color-text);
  }
  .as-home-hero__quote::after { content: " →"; }

  /* 5e: one navy bestseller tile across the top, three light tiles under it. */
  .as-home-boxes { padding: 0 0 var(--space-8); }
  .as-home-boxes__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: 138px 112px;
    gap: var(--space-2-5);
  }
  .as-home-box,
  .as-home-box--banners {
    grid-column: auto;
    justify-content: flex-start;
    gap: var(--space-1-5);
    padding: var(--space-2-5) var(--space-2-5) 11px;
    border-radius: var(--radius-md);
    background: var(--color-surface-alt);
    color: var(--atomic-dark);
  }
  .as-home-box:hover { color: var(--atomic-dark); }
  .as-home-box__photo,
  .as-home-box::after,
  .as-home-box__sub { display: none; }
  .as-home-box__cut {
    display: block;
    flex: 1;
    min-height: 0;
    width: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
  }
  .as-home-box__text { gap: 1px; }
  .as-home-box__name,
  .as-home-box--banners .as-home-box__name { font-size: 13px; line-height: 1.15; letter-spacing: -0.01em; }
  .as-home-box__cta { font-size: var(--text-label); color: var(--atomic-blue); }

  .as-home-box--stickers {
    grid-column: span 3;
    grid-row: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: var(--space-2-5);
    padding: var(--space-4) var(--space-4-5);
    border-radius: var(--radius-lg);
    background: var(--atomic-dark);
    color: var(--color-text-invert);
  }
  .as-home-box--stickers:hover { color: var(--color-text-invert); }
  .as-home-box--stickers .as-home-box__cut {
    grid-column: 2;
    grid-row: 1;
    height: 100%;
    mix-blend-mode: normal;
    transform: rotate(6deg);
  }
  .as-home-box--stickers .as-home-box__text { grid-column: 1; grid-row: 1; gap: 3px; }
  .as-home-box--stickers .as-home-box__kick { display: block; color: var(--atomic-blue); }
  .as-home-box--stickers .as-home-box__name { font-size: var(--text-h3); letter-spacing: var(--tracking-tight); line-height: var(--leading-tight); }
  .as-home-box--stickers .as-home-box__cta { margin-top: auto; font-size: var(--text-xs); color: var(--color-text-invert); }

  /* Featured: one card and a peek, swiped. */
  .as-home-featured { padding: 0 0 var(--space-8); }
  .as-home-featured .as-home__head { margin-bottom: var(--space-3-5); }
  .as-home-featured__nav { display: none; }
  .as-home-featured__swipe { display: block; font-size: var(--text-label); font-weight: 600; color: var(--color-placeholder); }
  .as-home-featured__track {
    grid-auto-columns: 280px;
    gap: var(--space-3);
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
  }
  .as-cat-card--feature {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
    padding: var(--space-5);
  }
  /* Width and height both set, so the slot's inline 1 / 1 ratio stands down. */
  .as-cat-card--feature .as-cat-card__shot .as-slot { height: 150px; }
  .as-cat-card--feature .as-cat-card__body { gap: 3px; }
  .as-cat-card--feature .as-cat-card__name { font-size: 17px; letter-spacing: normal; }
  .as-cat-card--feature .as-cat-card__foot { width: 100%; }
  .as-cat-card--feature .as-cat-card__cta,
  .as-cat-card--feature:hover .as-cat-card__cta { width: 100%; justify-content: space-between; }
  .as-cat-card--feature .as-cat-card__view {
    margin-left: auto;
    line-height: 1.5;
    padding: 9px var(--space-4);
    border-radius: var(--radius-pill);
    background: var(--atomic-dark);
    color: var(--color-text-invert);
  }
  .as-cat-card--feature .as-cat-card__view::after { content: none; }

  .as-home-split { padding: 0 0 var(--space-8); }
  .as-home-split__band { flex-direction: column; flex-wrap: nowrap; gap: var(--space-4); padding: 26px var(--space-5); }
  .as-home-split__card { padding: var(--space-4-5) 22px; text-align: center; }
  .as-home-split__cta { font-size: var(--text-sm); transform: none; }
  .as-home-split__offer { font-size: 32px; }
  .as-home-split__br,
  .as-home-split__text { display: none; }

  .as-home-about { padding: 36px 0; }
  .as-home-about__copy h2 { font-size: 26px; }
  .as-home-about__copy p,
  .as-home-about__copy .as-home-about__lede { font-size: var(--text-sm); }
  .as-home-about__panel { gap: var(--space-3-5); padding: var(--space-5); border-radius: var(--radius-lg); }
  .as-home-about__cell--actions { grid-column: 1 / -1; }

  .as-home-social { padding: var(--space-8) 0; }

  .as-home-news { padding: var(--space-4) 0 var(--space-8); }
  .as-home-news__panel { gap: var(--space-3-5); padding: var(--space-7) 22px; }
  .as-home-news__form { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .as-home-box__photo .as-slot__img { transition: none; }
  .as-home-box:hover .as-home-box__photo .as-slot__img { transform: none; }
}
