/* Haus of Ak'ei — hoa.ventures holding page
   One photograph, a slow breath, two captions, a contact panel. */

@font-face { font-family: 'JetBrains Mono'; src: url(/assets/fonts/jetbrains-mono-400.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(/assets/fonts/jetbrains-mono-500.woff2) format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url(/assets/fonts/ibm-plex-sans-400.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Sans'; src: url(/assets/fonts/ibm-plex-sans-500.woff2) format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --ground: #14161a;
  --ink: rgba(255, 255, 250, 0.9);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  --panel: rgba(13, 13, 12, 0.94);
  --paper: #f3f1eb;
  --muted: rgba(243, 241, 235, 0.76);
  --label: rgba(243, 241, 235, 0.78);
  --line: rgba(243, 241, 235, 0.4);
  --error: #ff9b8a;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; background: var(--ground); }
body { font-family: var(--mono); color: var(--ink); -webkit-font-smoothing: antialiased; }

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* the photograph */
.holding { position: fixed; inset: 0; overflow: hidden; }
.stage { position: absolute; inset: 0; transform-origin: 50.7% 60%; animation: breathe 8s infinite; will-change: transform; }
.photo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50.7% 60%; }

/* a slow 2% breath, centred on the sign so the logo holds its place */
@keyframes breathe {
  0%   { transform: scale(1);    animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  42%  { transform: scale(1.02); animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  100% { transform: scale(1); }
}
.is-open .stage { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .stage { animation: none; } }

/* captions */
.bar {
  position: absolute; left: calc(24px + env(safe-area-inset-left, 0px)); right: calc(24px + env(safe-area-inset-right, 0px));
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 20px;
  font-size: clamp(10px, calc(0.42vw + 8.4px), 11px); letter-spacing: clamp(0.5px, 0.12vw, 1.8px);
  text-transform: uppercase; line-height: 1.5; text-shadow: var(--shadow);
}
.bar-top { top: calc(20px + env(safe-area-inset-top, 0px)); }
.bar-bottom { bottom: calc(20px + env(safe-area-inset-bottom, 0px)); align-items: center; }
.here { display: flex; align-items: baseline; gap: 10px; margin: 0; white-space: nowrap; opacity: 0; transition: opacity 0.8s ease; }
.here.show { opacity: 1; }
.dim { opacity: 0.7; }
.meta { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; }
.legal-link { color: inherit; opacity: 0.7; text-decoration: none; }
.legal-link:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }

.contact {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; margin: -12px 0; padding: 0 16px;
  border: 1px solid currentColor; border-radius: 0; background: rgba(0, 0, 0, 0.28);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  color: inherit; font: inherit; letter-spacing: inherit; text-transform: uppercase; text-shadow: inherit; cursor: pointer;
}
.contact:hover { background: rgba(0, 0, 0, 0.45); }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--paper); outline-offset: 3px;
}

/* the contact panel */
.panel {
  position: fixed; inset: 0 0 0 auto; margin: 0; width: min(460px, 100%); height: 100%; max-height: 100%; max-width: 100%;
  box-sizing: border-box; padding: calc(24px + env(safe-area-inset-top, 0px)) 28px calc(32px + env(safe-area-inset-bottom, 0px));
  border: 0; overflow-y: auto; background: var(--panel); color: var(--paper);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-family: var(--sans);
}
.panel[open] { display: flex; flex-direction: column; gap: 20px; }
.panel::backdrop { background: rgba(6, 6, 6, 0.42); }
.panel-head { display: flex; justify-content: space-between; align-items: center; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--label); }
.close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -12px; border: 0; background: transparent; color: inherit; cursor: pointer; }
.panel h2 { margin: 0; font-size: 30px; font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
.lede { margin: 0; font-size: 16px; line-height: 1.55; color: var(--muted); }

form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--label); }
.field input, .field select, .field textarea {
  width: 100%; box-sizing: border-box; padding: 10px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; color: inherit; font: inherit; font-size: 17px;
}
.field select option { background: #1b1b1a; color: var(--paper); }
.field textarea { line-height: 1.5; resize: vertical; }
.field [aria-invalid="true"] { border-bottom-color: var(--error); }
.err { font-size: 14px; color: var(--error); margin: 0; }
.err:empty { display: none; }
.small { margin: 0; font-size: 14px; line-height: 1.5; color: rgba(243, 241, 235, 0.7); }
.small a { color: var(--paper); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.send {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px;
  border: 0; background: var(--paper); color: #111110; font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer;
}
.send[disabled] { opacity: 0.6; cursor: progress; }
.ghost {
  align-self: flex-start; height: 48px; padding: 0 22px; border: 1px solid var(--paper); background: transparent; color: var(--paper);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer;
}
.sent, .direct { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; border-top: 1px solid rgba(243, 241, 235, 0.2); }
.sent[hidden], .direct[hidden] { display: none; }
.sent-title { margin: 16px 0 0; font-size: 22px; font-weight: 500; }
.address { margin: 0; font-family: var(--mono); font-size: 17px; user-select: all; }

/* privacy and legal page */
.doc { min-height: 100%; box-sizing: border-box; padding: 48px 24px 64px; background: var(--ground); color: var(--paper); font-family: var(--sans); }
.doc-inner { max-width: 680px; margin: 0 auto; }
.doc a { color: var(--paper); }
.doc .back { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--label); text-decoration: none; }
.doc .back:hover { color: var(--paper); }
.doc h1 { margin: 32px 0 8px; font-size: 34px; font-weight: 500; letter-spacing: -0.01em; }
.doc h2 { margin: 36px 0 8px; font-size: 20px; font-weight: 500; }
.doc p, .doc li { font-size: 16px; line-height: 1.6; color: var(--muted); }
.doc ul { padding-left: 20px; }
.doc .updated { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); }
