/* Ministry of Faces atmosphere study: McKenzie's own photography and identity. */
.intention-page { --hero-paper: #fffdf8; }
.intention-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100svh;
  background: var(--espresso);
  color: var(--white);
}
.intention-image { position: absolute; inset: 0; z-index: -2; overflow: clip; }
.intention-image picture, .intention-image img { display: block; width: 100%; height: 100%; }
.intention-image img { object-fit: cover; object-position: 50% 33%; }
/* Local neutral photo scrims keep white type readable and leave the face clear. */
.intention-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgb(66 43 33 / .88), rgb(66 43 33 / .7) 27%, transparent 72%), /* taste-skill-ignore: permitted neutral photo scrim. */
    linear-gradient(180deg, rgb(66 43 33 / .78), transparent 240px); /* taste-skill-ignore: permitted neutral photo scrim. */
}
.intention-header {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; gap: 32px;
  padding-top: max(30px, env(safe-area-inset-top, 0px)); padding-bottom: 26px;
}
.intention-brand { grid-column: 2; grid-row: 1; justify-self: center; font-size: 44px; text-align: center; }
.intention-brand span { font-size: 12px; margin-top: 8px; }
.intention-navigation { grid-column: 1; grid-row: 1; display: flex; align-items: center; gap: clamp(20px, 2vw, 30px); }
.intention-navigation a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 13px; text-decoration: none; text-underline-offset: 6px; text-decoration-thickness: 2px;
}
.intention-navigation [aria-current] { font-weight: 600; }
.intention-page .intention-book {
  grid-column: 3; grid-row: 1; justify-self: end;
  min-height: 48px; padding: 12px 24px;
  background: var(--ivory); color: var(--espresso); font-size: 13px;
}
.intention-menu { display: none; }
.intention-content {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  align-content: end; align-items: end; gap: 26px 24px;
  padding-top: clamp(200px, 24svh, 300px); padding-bottom: max(60px, env(safe-area-inset-bottom, 0px));
}
.intention-heading {
  grid-column: 1 / -1; max-width: 740px;
  font: 400 clamp(60px, 5.25vw, 82px)/1.02 var(--serif); letter-spacing: -.018em;
}
.intention-heading > span { display: block; padding-block: .1em; margin-block: -.1em; overflow: clip; }
.intention-line { display: block; }
.intention-support { grid-column: 1 / 6; width: min(100%, 33ch); }
.intention-support > p { font-size: 18px; line-height: 1.55; }
.intention-support .action-group { margin-top: 24px; justify-items: start; gap: 9px; }
.intention-support .booking { background: var(--ivory); color: var(--espresso); min-height: 52px; padding-inline: 26px; }
.intention-support .booking-note { font-size: 12px; line-height: 1.5; }
.intention-next {
  grid-column: 10 / -1; justify-self: end; display: inline-flex; align-items: center;
  min-height: 44px; font-size: 13px; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px;
}
.intention-page .booking[aria-disabled="true"] { cursor: default; }
.intention-page .skip-link:focus { z-index: 10; }
.intention-hero :is(a,button,summary):focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
.intention-hero :is(a,summary) { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.intention-hero summary { user-select: none; -webkit-user-select: none; }
.intention-hero :is(a,summary):active { opacity: .75; }
@media (hover: hover) and (pointer: fine) {
  .intention-navigation a:hover { text-decoration: underline; }
  .intention-next:hover { text-decoration-thickness: 3px; }
  .intention-menu summary:hover { text-decoration: underline; text-underline-offset: 6px; }
}
/* A bounded first-entry reveal; the finished static composition is the default.
   Only the short pre-paint preparation hides the heading. The inline watchdog
   restores it if assets or this controller arrive late. Navigation/CTA stay live. */
html[data-intention-entrance] .intention-image { clip-path: inset(0 8% 0 0); }
html[data-intention-entrance] .intention-image img { transform: scale(1.015); }
html[data-intention-entrance="pending"] .intention-heading { opacity: 0; }
html[data-intention-entrance="playing"] .intention-heading { transform-origin: 0 0; }
html[data-intention-entrance="playing"] .intention-line { transform-origin: 50% 100%; }
/* taste-skill-ignore: temporary neutral photo scrim protects the central white type. */
html[data-intention-entrance="playing"] .intention-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: rgb(35 23 18 / .28); animation: intention-intro-light 1580ms linear both;
}
html[data-intention-entrance="playing"] .intention-image { animation: intention-mask 800ms var(--ease-out) both; }
html[data-intention-entrance="playing"] .intention-image img { animation: intention-image 800ms var(--ease-out) both; }
@keyframes intention-mask { to { clip-path: inset(0); } }
@keyframes intention-image { to { transform: scale(1); } }
@keyframes intention-intro-light { 0%, 42% { opacity: 1; } to { opacity: 0; } }
@media (max-width: 1099px) {
  .intention-heading { font-size: clamp(62px, 8vw, 80px); }
  .intention-content { padding-top: 300px; padding-bottom: 48px; }
  .intention-support { grid-column: 1 / 8; max-width: 360px; }
  .intention-next { grid-column: 9 / -1; }
  .intention-image img { object-position: 60% 36%; }
}
@media (max-width: 999px) {
  .intention-header { grid-template-columns: minmax(0, 1fr) auto auto; gap: 24px; }
  .intention-brand { grid-column: 1; justify-self: start; text-align: left; font-size: 38px; }
  .intention-navigation { display: none; }
  .intention-page .intention-book { grid-column: 2; }
  .intention-menu { grid-column: 3; grid-row: 1; display: block; }
  .intention-menu summary { display: flex; align-items: center; min-height: 46px; list-style: none; font-size: 14px; cursor: pointer; }
  .intention-menu summary::-webkit-details-marker { display: none; }
  .intention-menu[open] summary { font-weight: 600; }
  .intention-menu nav {
    position: absolute; top: calc(100% - 8px); left: var(--gutter); right: var(--gutter);
    display: grid; gap: 4px; max-height: calc(100svh - 140px); overflow-y: auto; overscroll-behavior: contain;
    padding: 22px 24px; background: var(--hero-paper); color: var(--espresso);
  }
  .intention-menu nav a { display: flex; align-items: center; min-height: 48px; font-size: 20px; text-decoration: none; }
  .intention-menu nav a:focus-visible { outline-offset: 0; }
  .intention-hero::before {
    background:
      linear-gradient(0deg, rgb(66 43 33 / .93), rgb(66 43 33 / .8) 230px, transparent 580px), /* taste-skill-ignore: permitted neutral photo scrim. */
      linear-gradient(180deg, rgb(66 43 33 / .78), transparent 240px); /* taste-skill-ignore: permitted neutral photo scrim. */
  }
}
@media (max-width: 599px) {
  /* Safari can show the page through its floating controls. Paint the full
     large viewport, but reserve the small viewport for readable content.
     Bottom padding is photographic bleed, never hidden copy. */
  .intention-document, .intention-page { background: #6f4c3e; }
  .intention-page > main { background: var(--paper); }
  .intention-hero {
    --gutter: 22px;
    --hero-readable-height: 100svh;
    --hero-picture-height: 100lvh;
    --hero-browser-bleed: max(0px, calc(var(--hero-picture-height) - var(--hero-readable-height)));
    min-height: var(--hero-picture-height);
    padding-bottom: var(--hero-browser-bleed);
  }
  .intention-header { gap: 16px; padding-top: max(22px, env(safe-area-inset-top, 0px)); padding-bottom: 22px; }
  .intention-brand { font-size: 32px; }
  .intention-brand span { margin-top: 7px; font-size: 11px; }
  .intention-page .intention-book { padding: 10px 14px; font-size: 12px; min-height: 46px; }
  .intention-menu summary { font-size: 13px; }
  .intention-content { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: clamp(64px, 20svh, 180px); padding-bottom: max(32px, env(safe-area-inset-bottom, 0px)); }
  .intention-heading { grid-column: 1; font-size: clamp(46px, 13.3vw, 70px); line-height: 1.02; }
  .intention-support { grid-column: 1; width: 100%; max-width: 330px; }
  .intention-support > p { font-size: 16px; line-height: 1.5; }
  .intention-support .action-group { margin-top: 22px; gap: 8px; }
  .intention-support .booking { min-height: 52px; padding: 14px 24px; }
  .intention-next { display: none; }
  .intention-image img { object-position: 60% 40%; }
  .intention-hero::before {
    background:
      linear-gradient(0deg, rgb(66 43 33 / .95), rgb(66 43 33 / .84) calc(190px + var(--hero-browser-bleed)), rgb(66 43 33 / .3) calc(360px + var(--hero-browser-bleed)), transparent calc(520px + var(--hero-browser-bleed))), /* taste-skill-ignore: permitted neutral photo scrim. */
      linear-gradient(180deg, rgb(66 43 33 / .78), transparent 180px); /* taste-skill-ignore: permitted neutral photo scrim. */
  }
  html[data-intention-entrance="playing"] .intention-hero::after { animation-duration: 1380ms; }
  html[data-intention-entrance] .intention-image { clip-path: inset(0 5% 0 0); }
  html[data-intention-entrance] .intention-image img { transform: scale(1.008); }
}
@media (prefers-reduced-motion: reduce) {
  html[data-intention-entrance] .intention-image { clip-path: none; }
  html[data-intention-entrance] .intention-image img, html[data-intention-entrance] .intention-heading,
  html[data-intention-entrance] .intention-line { transform: none !important; opacity: 1 !important; }
  html[data-intention-entrance] .intention-hero::after { display: none; }
  .intention-hero *, .intention-hero *::before, .intention-hero *::after { animation: none !important; transition: none !important; }
}
