/*
 * Home — layout of the reference page.
 *
 * Only the blocks that are the home page's own shape live here: the two-column
 * first screen and its entrance, the featured series (wide when there is one
 * product, a grid when there are more), the catalogue card and the inquiry band.
 * Everything repeated on other pages — section frames, cards, slots, check
 * lists, steps, FAQ, motion — is in assets/blocks.css.
 */

/* ==========================================================================
   1. First screen
   ========================================================================== */
.cyth-hero2 {
  padding: 72px 0 80px;
  border-bottom: 1px solid var(--cyth-border);
}

.cyth-hero2__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 56px;
  align-items: center;
}

.cyth-hero2__title {
  margin: 0 0 18px;
  max-width: 20ch;
  font-size: 48px;
  line-height: 57px;
  letter-spacing: -.02em;
}

.cyth-hero2__sub {
  margin: 0 0 28px;
  max-width: 56ch;
  font-size: 18px;
  line-height: 28px;
  color: var(--cyth-text-2);
}

.cyth-hero2__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 20px;
}

.cyth-hero2__trust {
  margin: 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--cyth-text-2);
}
.cyth-hero2__trust b { color: var(--cyth-brand); font-weight: 600; }

.cyth-hero2__note {
  margin: 12px 0 0;
  max-width: 58ch;
  font-size: 13px;
  line-height: 20px;
  color: var(--cyth-text-2);
}

/* The first screen arrives once, on load: the copy in reading order, then the
   picture. Nothing below the first screen animates until it is scrolled to. */
@media (prefers-reduced-motion: no-preference) {
  .cyth-hero2__copy > *,
  .cyth-hero2__grid > .cyth-slot {
    animation: cyth-home-in 620ms cubic-bezier(.22, .61, .36, 1) both;
  }
  .cyth-hero2__copy > *:nth-child(1) { animation-delay: 40ms; }
  .cyth-hero2__copy > *:nth-child(2) { animation-delay: 100ms; }
  .cyth-hero2__copy > *:nth-child(3) { animation-delay: 160ms; }
  .cyth-hero2__copy > *:nth-child(4) { animation-delay: 220ms; }
  .cyth-hero2__copy > *:nth-child(5) { animation-delay: 280ms; }
  .cyth-hero2__copy > *:nth-child(6) { animation-delay: 320ms; }
  .cyth-hero2__grid > .cyth-slot { animation-delay: 180ms; }
}

@keyframes cyth-home-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   2. Featured series
   ========================================================================== */
.cyth-feat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.cyth-feat:hover .cyth-feat__title { color: var(--cyth-accent); }

/* Square, the same field the listing's cards use: a fitting is shot square, and a
   4:3 frame either crops it or leaves two bands of empty field. One proportion on
   every product picture on the site means one photo works in both places. */
.cyth-feat__fig {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--cyth-surface-subtle);
  border: 1px solid var(--cyth-border);
  border-radius: var(--cyth-radius-sm);
  transition: border-color var(--cyth-transition), box-shadow var(--cyth-transition);
}
.cyth-feat:hover .cyth-feat__fig {
  border-color: var(--cyth-border-control);
  box-shadow: var(--cyth-shadow);
}
.cyth-feat__fig img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 480ms cubic-bezier(.22, .61, .36, 1);
}
.cyth-feat:hover .cyth-feat__fig img { transform: scale(1.03); }

/* A slot inside the frame fills it rather than keeping its own proportions. */
.cyth-feat__fig .cyth-slot { width: 100%; height: 100%; border: 0; border-radius: 0; }

.cyth-feat__title {
  margin: 0;
  font-size: 16px;
  line-height: 23px;
  font-weight: 600;
  color: var(--cyth-brand);
  transition: color var(--cyth-transition);
}
.cyth-feat__model {
  margin: 0;
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  color: var(--cyth-accent);
  font-variant-numeric: tabular-nums;
}
.cyth-feat__meta { margin: 0; font-size: 13px; line-height: 20px; color: var(--cyth-text-2); }

/* One series on the site lays out as one wide row instead of a lone card in a
   grid of empty columns. */
.cyth-feat--wide {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--cyth-border);
  border-radius: var(--cyth-radius-md);
  transition: border-color var(--cyth-transition), box-shadow var(--cyth-transition);
}
.cyth-feat--wide:hover {
  border-color: var(--cyth-border-control);
  box-shadow: var(--cyth-shadow);
}
.cyth-feat--wide .cyth-feat__fig { aspect-ratio: 1 / 1; }

/* The lone-series row's prompt. It is the same words the listing card closes on,
   so it reads the same way: navy until the row is hovered, then the accent. */
.cyth-tile__more {
  display: inline-block;
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--cyth-brand);
  transition: color var(--cyth-transition);
}
.cyth-feat--wide:hover .cyth-tile__more { color: var(--cyth-accent); }

/* ==========================================================================
   3. Catalogue card
   ========================================================================== */
.cyth-dl {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 20px;
  background: var(--cyth-surface);
  border: 1px solid var(--cyth-border);
  border-radius: var(--cyth-radius-md);
  transition: border-color var(--cyth-transition), box-shadow var(--cyth-transition);
}
.cyth-dl:hover { border-color: var(--cyth-border-control); box-shadow: var(--cyth-shadow); }
.cyth-dl h3 { margin: 0 0 4px; font-size: 17px; line-height: 25px; }
.cyth-dl p { margin: 0 0 10px; max-width: none; font-size: 14px; line-height: 22px; color: var(--cyth-text-2); }

/* ==========================================================================
   4. Inquiry band
   ========================================================================== */
/* The block above already closes with its own hairline, so the band changes
   surface without drawing a second rule. */
.cyth-inquiry {
  padding: 72px 0;
  background: var(--cyth-surface-subtle);
}
.cyth-inquiry__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 56px;
  align-items: start;
}
.cyth-inquiry h2 { margin: 0 0 12px; font-size: 34px; line-height: 44px; letter-spacing: -.015em; }
.cyth-inquiry__copy > p { max-width: 52ch; color: var(--cyth-text-2); }

.cyth-inquiry__contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 20px 0 0;
  font-size: 15px;
  line-height: 24px;
}
.cyth-inquiry__contact a {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--cyth-border);
  align-self: flex-start;
  transition: color var(--cyth-transition), border-color var(--cyth-transition);
}
.cyth-inquiry__contact a:hover { color: var(--cyth-accent); border-color: var(--cyth-accent); }

/* The form's card and its two-column field layout are the shared .cyth-card
   block, so the contact page gets the same card without a second rule set. */

/* ==========================================================================
   5. Narrower screens
   ========================================================================== */
@media (max-width: 1023px) {
  .cyth-hero2 { padding: 48px 0 56px; }
  .cyth-hero2__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .cyth-hero2__title { max-width: 26ch; }
  .cyth-feat--wide { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .cyth-inquiry { padding: 56px 0; }
  .cyth-inquiry__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .cyth-inquiry h2 { font-size: 28px; line-height: 37px; }
}

@media (max-width: 639px) {
  .cyth-hero2 { padding: 36px 0 44px; }
  .cyth-hero2__title { font-size: 34px; line-height: 42px; max-width: none; }
  .cyth-hero2__sub { font-size: 16px; line-height: 26px; margin-bottom: 24px; }
  .cyth-inquiry { padding: 40px 0; }
  .cyth-inquiry h2 { font-size: 25px; line-height: 33px; }
  .cyth-dl { padding: 16px; }
}
