:root {
  --ink: #2b1b2e;
  --cream: #fbf1e3;
  --paper: #fffdf8;
  --orange: #ff9248;
  --yellow: #f6d55c;
  --muted: #5e4b63;
  --serif: 'Young Serif', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.45; }
button { font-family: inherit; cursor: pointer; color: var(--ink); }
button:focus-visible, a:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }

.pill { min-height: 44px; padding: 0 22px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper);
  box-shadow: 3px 3px 0 var(--ink); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  transition: transform .12s ease, box-shadow .12s ease; }
.pill:hover { transform: translate(-2px, -2px); }
.pill:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.pill.orange { background: var(--orange); }

/* ---------- 5 second typographic intro ---------- */
@keyframes slotIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes slotOut { from { opacity: 1 } to { opacity: 0 } }
@keyframes wordPop { 0% { transform: scale(.55) rotate(-4deg); opacity: 0 } 55% { transform: scale(1.08) rotate(1deg); opacity: 1 } 100% { transform: none; opacity: 1 } }
@keyframes slideL { from { transform: translateX(-110%) } to { transform: none } }
@keyframes slideR { from { transform: translateX(110%) } to { transform: none } }
@keyframes letterUp { from { transform: translateY(115%) } to { transform: none } }
@keyframes lineDraw { from { transform: scaleX(0) } to { transform: scaleX(1) } }
@keyframes fadeUp { from { transform: translateY(18px); opacity: 0 } to { transform: none; opacity: 1 } }
@keyframes barFill { from { transform: scaleX(0) } to { transform: scaleX(1) } }
@keyframes introOut { 0%, 90% { opacity: 1 } 100% { opacity: 0 } }

#intro { position: fixed; inset: 0; z-index: 10; background: var(--yellow); overflow: hidden; animation: introOut 5s linear both; }
.layer { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; }
.an { animation-fill-mode: both; }
.big { font-family: var(--serif); font-size: clamp(88px, 22vw, 260px); line-height: 1; letter-spacing: -.03em; display: inline-block; }
.stripe { width: 100%; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px;
  padding: 10px clamp(20px, 5vw, 64px); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); margin-top: -2px; }
.stripe b { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 9vw, 96px); line-height: 1.05; letter-spacing: -.02em; }
.stripe span { font-weight: 700; font-size: clamp(13px, 1.6vw, 18px); letter-spacing: .1em; text-transform: uppercase; }
.wordmark { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(64px, 16vw, 190px); line-height: 1; letter-spacing: -.03em; }
.wordmark .m { display: inline-block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.wordmark .m i { display: inline-block; font-style: normal; }
.rule { width: min(360px, 60%); height: 6px; border-radius: 999px; background: var(--orange); border: 2px solid var(--ink); transform-origin: left; }
.tagline { margin: 16px 0 0; font-size: clamp(16px, 2.2vw, 22px); }
.bar { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: rgba(43, 27, 46, .18); }
.bar div { height: 100%; background: var(--ink); transform-origin: left; animation: barFill 5s linear both; }
#skip { position: absolute; right: 24px; bottom: 28px; }
@media (prefers-reduced-motion: reduce) { #intro *, #intro { animation-duration: .01s !important; animation-delay: 0s !important; } }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); }
.login .brand { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 48px; background: var(--yellow); border-right: 2px solid var(--ink); }
.logo { display: flex; align-items: center; gap: 12px; }
.logo .mark { width: 44px; height: 44px; border-radius: 12px; background: var(--orange); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); display: flex; align-items: center; justify-content: center; }
.logo .name { font-family: var(--serif); font-size: 30px; letter-spacing: -.01em; }
.brand h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5vw, 64px); line-height: 1.04; letter-spacing: -.02em; max-width: 520px; }
.brand p { margin: 18px 0 0; font-size: 18px; max-width: 520px; }
.login .side { display: flex; align-items: center; justify-content: center; padding: 32px 24px; }
.card { width: min(440px, 100%); display: flex; flex-direction: column; gap: 24px; padding: 36px 32px; border: 2px solid var(--ink); border-radius: 28px; background: var(--paper); box-shadow: 6px 6px 0 var(--ink); }
.card h1 { margin: 0 0 8px; font-family: var(--serif); font-weight: 400; font-size: 38px; line-height: 1.05; letter-spacing: -.01em; }
.card p { margin: 0; color: #3e2d42; }
#gbtn { min-height: 44px; display: flex; justify-content: center; }
.fine { font-size: 13px !important; color: var(--muted) !important; }
.error { padding: 10px 14px; border: 2px solid var(--ink); border-radius: 14px; background: var(--yellow); font-weight: 700; font-size: 14px; }

/* ---------- app shell ---------- */
.app { min-height: 100vh; padding: 32px; max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.who { display: flex; align-items: center; gap: 12px; }
.who img, .who .ph { width: 44px; height: 44px; border-radius: 999px; border: 2px solid var(--ink); object-fit: cover; background: var(--yellow); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.who small { display: block; color: var(--muted); }
.panel { padding: 28px; border: 2px solid var(--ink); border-radius: 24px; background: var(--paper); box-shadow: 5px 5px 0 var(--ink); }
.panel h2 { margin: 0 0 8px; font-family: var(--serif); font-weight: 400; font-size: 32px; }
.panel p { margin: 0; color: #3e2d42; max-width: 640px; }
