.omega-workshop-front .omega-site-frame {
  overflow: hidden;
}

.omega-home p,
.omega-home figure {
  margin: 0;
}

.omega-home-hero {
  position: relative;
  height: 780px;
  overflow: hidden;
}

/* The hero photograph is an image block, so it fills the section from behind
   rather than being the section's only child. */
.omega-home-hero__image {
  position: absolute;
  inset: 0;
  height: auto;
}

/* An image block nests the picture inside a figure, and a linked one nests it
   inside an anchor as well. Neither takes a height of its own, so both are told
   to fill the tile before the image is asked to cover it — otherwise `height:
   100%` on the image resolves against nothing and it falls back to its
   intrinsic height, overflowing the grid row. */
.omega-home-hero__image,
.omega-home-tile > a {
  display: block;
  width: 100%;
  height: 100%;
}

.omega-home-hero__image img,
.omega-home-tile img,
.omega-home-timber__hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The scrim was a bare div in the old template. It has no content and nothing
   to edit, so it is drawn rather than composed — one less block for an editor
   to delete by accident. */
.omega-home-hero::after,
.omega-home-timber__scrim {
  position: absolute;
  inset: 0;
  content: "";
}

.omega-home-hero::after {
  background: var(--omega-scrim-hero);
}

/* The mark is an image block so that `motion.css` can travel it into the
   header's brand slot by animating the image's width. */
.omega-home-hero__mark {
  position: absolute;
  inset: 210px 0 auto;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.omega-home-hero__mark img {
  width: 540px;
  height: auto;
  object-fit: contain;
  filter: invert(1);
  opacity: 0.95;
}

/* The strip is a component of the page column, not of the window — it stops on
   the same edge as every section below the hero.

   It is a run of core buttons laid out as flat grid cells rather than as
   buttons: this is navigation set into the hero's lower edge, not a call to
   action, so it opts out of the shared button appearance. */
.omega-home-categories {
  position: absolute;
  z-index: 1;
  inset: auto var(--omega-gutter) 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--omega-hair);
  border-bottom: 0;
  background: rgba(20, 21, 15, 0.5);
}

.omega-home-categories .wp-block-button__link {
  display: block;
  width: 100%;
  min-height: 0;
  padding: 26px 0;
  border: 0;
  background: transparent;
  color: var(--omega-paper);
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: none;
}

.omega-home-categories .wp-block-button__link:hover {
  background: rgba(20, 21, 15, 0.5);
  color: var(--omega-paper);
}

.omega-home-categories .wp-block-button + .wp-block-button {
  border-inline-start: 1px solid var(--omega-hair);
}

/* Beats WordPress's own `.wp-block-buttons > .wp-block-button`, which is two
   classes and would otherwise keep this cell in the desktop grid. */
.omega-home-categories > .wp-block-button.omega-home-categories__all {
  display: none;
}

.omega-home-collection {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 88px var(--omega-gutter);
}

.omega-home-collection__title {
  max-width: 22ch;
  font-size: 64px;
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1;
}

.omega-home-mosaic {
  display: grid;
  grid-auto-rows: 270px;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.omega-home-tile {
  position: relative;
  overflow: hidden;
}

.omega-home-tile--lead {
  grid-column: span 2;
  grid-row: span 2;
}

.omega-home-tile--wide {
  grid-column: span 2;
}

/* An image block puts its caption in a `figcaption` it owns, so the caption is
   addressed by position in the tile rather than by a class of ours. */
.omega-home-tile figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 12px 16px;
  background: var(--omega-caption-bg);
  color: var(--omega-stone);
  font-family: "Cormorant Garamond", serif;
  font-size: 22px;
  line-height: 1.05;
  text-align: start;
}

/* A product tile's caption is the piece and what it costs, bound to
   WooCommerce and set on one line. */
.omega-home-tile--product figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  font-family: "Inter", sans-serif;
  font-size: 16px;
}

.omega-home-tile--lead figcaption {
  padding: 16px 20px;
}

.omega-home-tile--lead .omega-home-tile__name {
  font-family: var(--omega-display);
  font-size: 26px;
}

.omega-home-tile--wide .omega-home-tile__name {
  font-family: var(--omega-display);
  font-size: 24px;
}

.omega-home-tile .omega-price {
  flex: none;
  color: var(--omega-bronze);
}

.omega-home-tile--catalogue {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 26px;
  background: var(--omega-raise);
}

.omega-home-tile__catalogue-count,
.omega-home-tile__caption-note {
  font-family: var(--omega-display);
  font-size: 38px;
  line-height: 1.04;
}

.omega-home-tile__link {
  align-self: flex-start;
  margin-top: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--omega-ember);
  color: var(--omega-paper);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* The home page introduces the workshop and hands off to it. The four steps
   and the four timbers are set out in full on /workshop/, not here. */
.omega-home-workshop {
  display: grid;
  grid-template-columns: 7fr 5fr;
  align-items: stretch;
  gap: 64px;
  padding: 88px var(--omega-gutter);
  border-block: 1px solid var(--omega-hair);
  background: var(--omega-linen);
}

.omega-home-workshop__frame {
  width: 100%;
  height: 420px;
  overflow: hidden;
}

.omega-home-workshop__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.omega-home-workshop__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
}

.omega-home-workshop__body > h2 {
  font-size: 52px;
  font-weight: 300;
  letter-spacing: -0.012em;
  line-height: 1.02;
}

.omega-home-workshop__steps {
  display: flex;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-direction: column;
  counter-reset: omega-step;
}

.omega-home-workshop__steps li {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--omega-ink);
  counter-increment: omega-step;
  font-family: var(--omega-display);
  font-size: 26px;
}

.omega-home-workshop__steps li::before {
  color: var(--omega-bronze);
  content: counter(omega-step, decimal-leading-zero);
  font-family: var(--omega-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.omega-home-workshop__body p {
  font-size: 16px;
  line-height: 1.62;
}

.omega-home-workshop__link {
  padding-bottom: 6px;
  border-bottom: 1px solid var(--omega-ember);
  color: var(--omega-paper);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.omega-home-commission {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 88px var(--omega-gutter);
  border-top: 1px solid var(--omega-hair);
}

.omega-home-commission__intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
}

.omega-home-commission__intro h2 {
  max-width: 18ch;
  font-size: 56px;
  font-weight: 300;
  letter-spacing: -0.012em;
  line-height: 1.02;
}

.omega-home-commission__intro .wp-block-button__link {
  flex: none;
  padding-inline: 32px;
}

.omega-home-commission__action {
  flex: none;
}

.omega-home-commission__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.omega-home-commission__step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--omega-hair);
}

.omega-home-commission__index {
  color: var(--omega-bronze);
  font-family: var(--omega-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.omega-home-commission__step h3 {
  font-size: 28px;
}

.omega-home-commission__step p {
  color: var(--omega-sand);
  font-size: 16px;
  line-height: 1.62;
}

@media (max-width: 700px) {
  .omega-home-hero {
    height: 580px;
  }

  .omega-home-hero__image {
    object-position: 56% 44%;
  }

  .omega-home-hero__mark {
    inset: 180px 20px auto;
  }

  .omega-home-hero__mark img {
    width: 260px;
    opacity: 1;
  }

  .omega-home-categories {
    grid-template-columns: repeat(3, 1fr);
  }

  .omega-home-categories .wp-block-button {
    display: none;
    padding: 18px 0;
    font-family: var(--omega-mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .omega-home-categories > .wp-block-button:nth-child(1),
  .omega-home-categories > .wp-block-button:nth-child(2),
  .omega-home-categories > .wp-block-button.omega-home-categories__all {
    display: block;
  }

  .omega-home-collection {
    gap: 20px;
    padding: 36px 20px;
  }

  .omega-home-collection__title {
    font-size: 42px;
  }

  .omega-home-mosaic {
    grid-auto-rows: 170px;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .omega-home-tile--lead {
    grid-column: span 2;
    grid-row: span 2;
  }

  .omega-home-tile--lead figcaption {
    padding: 12px 14px;
  }

  .omega-home-tile--lead .omega-home-tile__name {
    font-size: 22px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: clip;
  }

  .omega-home-tile--lead .omega-price {
    overflow: hidden;
    max-width: 70px;
    white-space: nowrap;
  }

  .omega-home-tile--detail figcaption,
  .omega-home-tile--storage,
  .omega-home-tile--joinery,
  .omega-home-tile--table,
  .omega-home-tile--console {
    display: none;
  }

  .omega-home-tile--catalogue {
    gap: 0;
    justify-content: space-between;
    padding: 14px;
  }

  .omega-home-tile__catalogue-count {
    font-size: 22px;
    line-height: 1.1;
  }

  .omega-home-tile__link {
    padding-bottom: 4px;
    font-family: var(--omega-mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  .omega-home-workshop {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 36px 20px;
  }

  .omega-home-workshop__frame {
    height: 200px;
  }

  .omega-home-workshop__body {
    gap: 16px;
  }

  .omega-home-workshop__body > h2 {
    font-size: 34px;
    line-height: 1.05;
  }

  .omega-home-workshop__steps li {
    padding: 10px 0;
    font-size: 22px;
  }

  .omega-home-workshop__body p {
    font-size: 15px;
    line-height: 1.6;
  }

  .omega-home-commission {
    gap: 24px;
    padding: 36px 20px;
  }

  .omega-home-commission__intro {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .omega-home-commission__intro h2 {
    max-width: none;
    font-size: 34px;
    line-height: 1.05;
  }

  .omega-home-commission__intro .wp-block-button__link {
    min-height: 52px;
  }

  .omega-home-commission__steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .omega-home-commission__step h3 {
    font-size: 24px;
  }

  .omega-home-commission__step p {
    font-size: 15px;
  }
}
/* Live category cards are rendered from non-empty WooCommerce terms, so this
   section changes with the catalogue instead of preserving seeded links. */
.omega-home-category-cards {
  padding: 86px var(--omega-gutter);
  border-bottom: 1px solid var(--omega-hair);
}

.omega-home-category-cards > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.omega-home-category-cards h2 {
  max-width: 720px;
  font-size: clamp(42px, 5vw, 74px);
}

.omega-home-category-cards__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--omega-hair);
}

.omega-home-category-card {
  position: relative;
  display: grid;
  min-height: 310px;
  align-content: end;
  overflow: hidden;
  padding: 24px;
  background: var(--omega-bark);
  isolation: isolate;
}

.omega-home-category-card::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(0deg, rgb(10 11 8 / 88%), transparent 72%);
  content: "";
}

.omega-home-category-card img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.omega-home-category-card:hover img {
  transform: scale(1.035);
}

.omega-home-category-card > span {
  color: var(--omega-paper);
  font-family: var(--omega-display);
  font-size: 34px;
  line-height: 1;
}

.omega-home-category-card > small {
  margin-top: 8px;
  color: var(--omega-sand);
  font-family: var(--omega-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .omega-home-category-cards {
    padding: 58px 20px;
  }

  .omega-home-category-cards > header {
    display: block;
  }

  .omega-home-category-cards h2 {
    margin-top: 12px;
    font-size: 42px;
  }

  .omega-home-category-cards__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .omega-home-category-card {
    min-height: 220px;
    padding: 18px;
  }

  .omega-home-category-card > span {
    font-size: 26px;
  }
}
