/* ==========================================================================
   HAVEN. — the header, and the phone menu.

   Editorial, not a floating pill. Over the opening photograph it is
   transparent and pale; once the window has become a window it settles into a
   thin bar with one rule under it. core/header.js owns the state and the focus
   trap; everything visual is here.
   ========================================================================== */
.head {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.7rem var(--gutter);
  z-index: 30;
  color: var(--ink);
  transition: padding .5s var(--ease), background .5s var(--ease),
              color .4s var(--ease);
}
.head::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; opacity: 0;
  transform: scaleX(0); transform-origin: left;
  transition: transform .7s var(--ease), opacity .4s var(--ease);
}
.head.is-compact {
  padding: .95rem var(--gutter);
  background: rgba(245, 241, 232, .92);
  backdrop-filter: blur(10px);
}
.head.is-compact::after { opacity: .18; transform: scaleX(1); }

/* over a photograph the header is chalk, over the page it is ink. The tone
   comes from [data-head-tone] on whatever section is under it — core/header.js
   mirrors it here and this is the only place it means anything. */
.head[data-tone="photo"]:not(.is-compact) { color: var(--chalk); }
.head[data-tone="photo"]:not(.is-compact) .head__place { color: rgba(245,241,232,.72); }
.head[data-tone="photo"]:not(.is-compact) .head__cta { border-color: rgba(245,241,232,.5); }

.head__brand { text-decoration: none; display: grid; gap: .2rem; }
.head__mark {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: .01em;
}
.head__place {
  font-size: .58rem; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-45);
  transition: color .4s var(--ease);
}
.is-compact .head__place { font-size: .55rem; }

.head__nav { display: flex; gap: 1.9rem; justify-self: end; }
.head__nav a {
  font-size: .67rem; font-weight: 600; letter-spacing: .15em;
  text-transform: uppercase; text-decoration: none;
  position: relative; padding-bottom: .25rem;
}
.head__nav a::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.head__nav a:hover::after { transform: scaleX(1); }

.head__cta {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .67rem; font-weight: 600; letter-spacing: .15em;
  text-transform: uppercase;
  padding: .72rem 1.1rem;
  border: 1px solid var(--ink-18);
  background: none; cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease),
              border-color .35s var(--ease);
}
.head__cta:hover { background: var(--ink); border-color: var(--ink); color: var(--chalk); }
.head__arrow { transition: transform .35s var(--ease); }
.head__cta:hover .head__arrow { transform: translateX(.3rem); }

.head__toggle {
  display: none;
  border: 0; background: none; cursor: pointer; padding: .5rem 0;
  font-size: .67rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase;
}
.head__toggleClose { display: none; }

/* --- the phone menu ------------------------------------------------------
   Not a drawer sliding in from the side: the four intentions, large, on the
   page's own ground — the same four rows the selector has, because they are
   the same list. */
.menu {
  position: fixed; inset: 0;
  background: var(--chalk);
  padding: 7.5rem var(--gutter) 3rem;
  display: flex; flex-direction: column; gap: 2rem;
  z-index: 25;
  opacity: 0; visibility: hidden;
  transform: translateY(-1.5rem);
  transition: opacity .45s var(--ease), transform .55s var(--ease),
              visibility .45s;
  overflow-y: auto;
}
.is-menu-open .menu { opacity: 1; visibility: visible; transform: none; }

.menu__intents { border-top: 1px solid var(--ink-18); }
.menu__intents button {
  display: flex; align-items: baseline; gap: 1rem;
  width: 100%; padding: 1.1rem 0;
  border: 0; border-bottom: 1px solid var(--ink-18);
  background: none; text-align: left; cursor: pointer;
}
.menu__no { font-size: .65rem; font-weight: 600; letter-spacing: .14em; color: var(--ink-45); }
.menu__intents .row__title { font-size: 2rem; }

.menu__nav { display: grid; gap: .9rem; }
.menu__nav a {
  font-size: .74rem; font-weight: 600; letter-spacing: .15em;
  text-transform: uppercase; text-decoration: none;
}
.menu__descriptor { color: var(--ink-45); margin-top: auto; }

@media (max-width: 899px) {
  .head { grid-template-columns: 1fr auto; gap: 1rem; }
  .head__nav, .head__cta { display: none; }
  .head__toggle { display: block; }
  .is-menu-open .head__toggleOpen { display: none; }
  .is-menu-open .head__toggleClose { display: block; }
  .is-menu-open .head { color: var(--ink); }
}
@media (min-width: 900px) {
  .menu { display: none; }
}
