/* Hai Matrix — site behaviour styles (film viewer, phone menu, forms, newsletter band).
   Namespaced hm- so nothing collides with the generated Tailwind. */
:root {
  --hm-ink: #0B0C0E; --hm-raised: #131519; --hm-overlay: #1A1D22; --hm-inset: #07080A;
  --hm-line: #25282E; --hm-line-strong: #363A42; --hm-bone: #EEEAE3; --hm-muted: #A09C95; --hm-faint: #6A6761;
  --hm-ember: #E8734F; --hm-ember-hover: #F08A69; --hm-on-ember: #120806;
  --hm-paper: #ECE7DF; --hm-on-paper: #0B0C0E; --hm-paper-muted: #5B5750; --hm-paper-line: #CFC8BC;
  --hm-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --hm-serif: "Instrument Serif", Georgia, serif;
  --hm-mono: "Geist Mono", ui-monospace, monospace;
}
html { scroll-behavior: smooth; }
html.hm-lock { overflow: hidden; }
[role="link"]:focus-visible, [role="button"]:focus-visible { outline: 2px solid var(--hm-ember); outline-offset: 4px; }
.hm-eb { font: 500 11px/1.2 var(--hm-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--hm-ember); margin: 0 0 14px; }
.hm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 22px;
  background: var(--hm-ember); color: var(--hm-on-ember) !important; font: 500 15px/1 var(--hm-sans);
  text-decoration: none !important; border-radius: 2px; transition: background .2s;
}
.hm-btn:hover { background: var(--hm-ember-hover); }
.hm-btn-full { width: 100%; }

/* ---------- film viewer (also hosts the phone menu) */
.hm-lb { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; padding: 24px; opacity: 0; transition: opacity .25s ease; }
.hm-lb.is-open { opacity: 1; }
.hm-lb-back { position: absolute; inset: 0; background: rgba(7, 8, 10, .92); }
.hm-lb-panel {
  position: relative; width: min(1240px, 100%); max-height: calc(100vh - 48px); overflow: auto;
  display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr); background: var(--hm-ink);
  border: 1px solid var(--hm-line); transform: translateY(12px) scale(.985); transition: transform .35s cubic-bezier(.2, .7, 0, 1);
}
.hm-lb.is-open .hm-lb-panel { transform: none; }
.hm-lb-media { background: var(--hm-inset); min-height: 240px; display: grid; }
.hm-lb-media img, .hm-lb-media video { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 16 / 9; }
.hm-lb-media iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.hm-lb-info { padding: 40px 36px; display: flex; flex-direction: column; gap: 6px; color: var(--hm-bone); font-family: var(--hm-sans); }
.hm-lb-info h2 { font: 600 40px/1.02 var(--hm-sans); letter-spacing: -.035em; margin: 0; color: var(--hm-bone); }
.hm-lb-client { color: var(--hm-muted); margin: 6px 0 0; font-size: 15px; }
.hm-lb-client a { color: var(--hm-bone); }
.hm-lb-log { color: rgba(238, 234, 227, .82); font-size: 16px; line-height: 1.6; margin: 18px 0 28px; }
.hm-lb-x {
  position: absolute; top: 14px; right: 14px; z-index: 2; appearance: none; cursor: pointer; background: rgba(11, 12, 14, .7);
  color: var(--hm-bone); border: 1px solid var(--hm-line-strong); border-radius: 2px; padding: 9px 12px;
  font: 500 11px/1 var(--hm-mono); letter-spacing: .12em; text-transform: uppercase;
}
.hm-lb-x:hover { border-color: var(--hm-ember); }
/* The menu variant: a full-height sheet, no media column. */
.hm-lb.is-menu { place-items: stretch; padding: 0; }
.hm-lb.is-menu .hm-lb-panel { grid-template-columns: 1fr; width: 100%; max-height: none; height: 100%; border: 0; background: var(--hm-overlay); }
.hm-lb.is-menu .hm-lb-media { display: none; }
.hm-lb.is-menu .hm-lb-info { padding: 88px 20px 32px; justify-content: flex-start; gap: 20px; }
.hm-menu { display: flex; flex-direction: column; border-top: 1px solid var(--hm-line); }
.hm-menu a {
  display: flex; align-items: baseline; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--hm-line);
  font: 600 32px/1.1 var(--hm-sans); letter-spacing: -.03em; color: var(--hm-bone); text-decoration: none;
}
.hm-menu a span { font: 500 11px/1 var(--hm-mono); letter-spacing: .1em; color: var(--hm-ember); }
@media (max-width: 860px) {
  .hm-lb { padding: 0; place-items: end stretch; }
  .hm-lb-panel { grid-template-columns: 1fr; max-height: 100vh; }
  .hm-lb-info { padding: 28px 20px 32px; }
  .hm-lb-info h2 { font-size: 32px; }
}

/* ---------- FAQ */
.hm-faq-a { color: var(--hm-muted); font: 400 17px/1.6 var(--hm-sans); margin: 0 0 24px; max-width: 900px; }

/* ---------- forms */
.hm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.hm-note { margin: 10px 0 0; font: 400 14px/1.5 var(--hm-sans); color: #F0A48C; flex-basis: 100%; width: 100%; }
.hm-note[data-kind="ok"] { color: var(--hm-muted); }
.hm-done { border: 1px solid var(--hm-line-strong); border-left: 2px solid var(--hm-ember); padding: 24px 28px; background: var(--hm-raised); color: var(--hm-muted); font: 400 16px/1.6 var(--hm-sans); }
.hm-done p { margin: 0; }
.hm-done a { color: var(--hm-bone); }
.hm-done-t { font: 600 28px/1.1 var(--hm-sans) !important; letter-spacing: -.03em; color: var(--hm-bone); margin: 0 0 8px !important; }
.hm-done.on-paper { background: #F7F4EE; border-color: var(--hm-paper-line); border-left-color: var(--hm-ember); color: var(--hm-paper-muted); }
.hm-done.on-paper .hm-done-t, .hm-done.on-paper a { color: var(--hm-on-paper); }
.hm-done:focus { outline: none; }

/* ---------- newsletter band (replaces the Journal section on Home) */
.hm-nl { background: var(--hm-ink); color: var(--hm-bone); font-family: var(--hm-sans); padding: 160px 40px 0; }
.hm-nl-in { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: end;
  border-top: 1px solid var(--hm-line); padding: 64px 0 160px; }
.hm-nl h2 { font: 600 clamp(44px, 5.4vw, 80px)/.98 var(--hm-sans); letter-spacing: -.045em; margin: 0; text-wrap: balance; }
.hm-nl h2 em { font-family: var(--hm-serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.hm-nl p { color: rgba(238, 234, 227, .8); font-size: 18px; line-height: 1.6; margin: 0 0 24px; max-width: 520px; }
.hm-nl ul { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; }
.hm-nl li { font: 400 12px/1.4 var(--hm-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--hm-muted); display: flex; gap: 10px; }
.hm-nl li::before { content: ""; width: 6px; height: 6px; background: var(--hm-ember); margin-top: 4px; flex: none; }
.hm-nl form { display: flex; gap: 8px; flex-wrap: wrap; }
.hm-nl input[type="email"] {
  flex: 1 1 260px; height: 56px; background: var(--hm-raised); border: 1px solid var(--hm-line-strong); border-radius: 2px;
  color: var(--hm-bone); padding: 0 18px; font: 400 16px var(--hm-sans);
}
.hm-nl input[type="email"]::placeholder { color: var(--hm-faint); }
.hm-nl input[type="email"]:focus { outline: none; border-color: var(--hm-ember); }
.hm-nl button { height: 56px; padding: 0 26px; background: var(--hm-ember); color: var(--hm-on-ember); border: 0; border-radius: 2px; font: 500 15px var(--hm-sans); cursor: pointer; }
.hm-nl button:hover { background: var(--hm-ember-hover); }
.hm-nl .hm-fine { font: 400 11px/1 var(--hm-mono); letter-spacing: .12em; color: var(--hm-faint); margin: 14px 0 0; }
.hm-nl--phone { padding: 96px 20px 0; }
.hm-nl--phone .hm-nl-in { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 96px; }
.hm-nl--phone h2 { font-size: 40px; }
.hm-nl--phone form { flex-direction: column; }
.hm-nl--phone input[type="email"], .hm-nl--phone button { flex: none; width: 100%; }
@media (max-width: 900px) { .hm-nl-in { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- preview label (public preview only) */
.hm-preview {
  position: fixed; left: 12px; bottom: 12px; z-index: 2147482000; pointer-events: none;
  font: 500 10px/1 var(--hm-mono); letter-spacing: .12em; color: var(--hm-faint);
  background: rgba(11, 12, 14, .85); border: 1px solid var(--hm-line); padding: 7px 9px;
}
@media (max-width: 759px) {
  .hm-preview { position: static; display: block; text-align: center; border: 0; border-top: 1px solid var(--hm-line); padding: 14px; }
}
.hm-note a { color: inherit; text-decoration: underline; }
