/* entrance (Definer Group brand section, quiet luxury pass 2026-11-18): the first
   screen of home and the three line pages (craft limit L5). One big photo of our own
   work, the headline, the intro and both actions (signature S4), nothing else.
   Source order = phone order: eyebrow, h1, intro, actions, then the photo (E2).
   Variant bleed: from 960px the photo runs from the middle of the screen to its right
   edge, the full height of the first screen; the text sits on the ivory wall beside it.
   Variant framed: the photo hangs inside the container in a white mat with a 1px outer
   line (for screens and printed pieces, which should not be cropped to an edge).
   A small wall label (plate number and caption) sits on the photo's lower corner.
   Still state (reduced motion, no JS, the pause switch, the still preset): the photo
   at rest, the headline in place. Motion (recipe contract R00): the photo settles from
   a 4% enlargement over 2.6 s once on load (transform only), the headline rises (kit
   data-rise). Nothing loops. Semantic tokens only. */
.s-ent { padding-block: 0; }
.s-ent__stage { display: grid; }
.s-ent__panel {
  display: grid;
  align-content: center;
  row-gap: var(--space-6);
  padding: var(--space-8) max(var(--margin), 16px) var(--space-7);
}
.s-ent__eyebrow { color: var(--accent); }
.s-ent__title { font-size: clamp(2.6rem, 1.7rem + 3vw, 4.6rem); }
@media (min-width: 960px) { .s-ent__title { font-size: clamp(2.75rem, 1rem + 2.9vw, 3.6rem); } }
.s-ent__title span { display: block; }
.s-ent__intro { color: var(--fg-soft); max-width: 30rem; }
.s-ent__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }

.s-ent__photo { position: relative; margin: 0; }
.s-ent__frame .media { border-radius: 0; aspect-ratio: 4 / 3; }
.s-ent__label {
  display: grid;
  row-gap: var(--space-1);
  max-width: 24rem;
  padding: var(--space-3) max(var(--margin), 16px) 0;
}
.s-ent__no { color: var(--accent); }
.s-ent__cap { color: var(--fg-muted); }

/* framed: a white mat and a 1px outer line, inside the page margins */
.s-ent--framed .s-ent__photo { margin-inline: max(var(--margin), 16px); }
.s-ent--framed .s-ent__frame {
  padding: var(--space-3);
  background: var(--surface);
  border: var(--hairline) solid var(--rule-strong);
}
.s-ent--framed .s-ent__label { padding-inline: 0; }
.s-ent--framed { padding-bottom: var(--space-7); }

/* Phones, Latin: the title lines run on as one sentence (as hero-index). */
@media (max-width: 639px) {
  .s-ent__title:lang(en) span { display: inline; }
  .s-ent__title:lang(zh) span { word-break: keep-all; }
  .s-ent__title:lang(zh) { font-size: 2.25rem; }
}

@media (min-width: 960px) {
  .s-ent__stage {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: min(calc(100svh - 7rem), 52rem);
  }
  .s-ent__panel {
    padding-block: var(--space-9);
    padding-left: max(var(--margin), calc((100vw - var(--container)) / 2));
    padding-right: var(--space-8);
  }
  .s-ent--bleed .s-ent__photo { min-height: 100%; }
  .s-ent--bleed .s-ent__frame,
  .s-ent--bleed .s-ent__frame .media { height: 100%; }
  .s-ent--bleed .s-ent__frame .media { aspect-ratio: auto; min-height: 30rem; }
  .s-ent__label {
    position: absolute;
    left: 0;
    bottom: 0;
    padding: var(--space-4) var(--space-5) 0 0;
    background: var(--bg);
    border-top: var(--hairline) solid var(--accent);
  }
  .s-ent--framed .s-ent__photo {
    align-self: center;
    margin: var(--space-8) max(var(--margin), calc((100vw - var(--container)) / 2)) var(--space-9) 0;
  }
  .s-ent--framed .s-ent__frame { padding: var(--space-4); }
  .s-ent--framed .s-ent__label { position: static; padding-top: var(--space-3); background: none; }
  .s-ent--framed { padding-bottom: 0; }
}

/* text only (owner, 2026-11-19): a line with no real photo of our own work shows the
   headline, intro and actions alone, in one column on the ivory wall. */
@media (min-width: 960px) {
  .s-ent--text .s-ent__stage { grid-template-columns: minmax(0, 1fr); min-height: 0; }
}

/* motion (R00): the photo settles once on load */
@media (prefers-reduced-motion: no-preference) {
  html.js:not([data-motion="off"]):not([data-motion-preset="still"]) .s-ent__frame .media > img {
    animation: ent-settle 2600ms cubic-bezier(.2, .6, .2, 1) both;
  }
}
@keyframes ent-settle { from { transform: scale(1.04); } to { transform: none; } }
