:root {
  --bg: #0c0c0e;
  --fg: #f4f1ea;
  --muted: #9a958c;
  --accent: #d9a441;
  --accent-hover: #f0bd5e;
  --coffee: #c79a6b;        /* "Brewing something new." */
  --cream: #f6ecd8;         /* "Reach out." */
  --cream-hover: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 6vh 1.25rem;
  text-align: center;
  overflow: hidden;
}

/* Full-screen video background */
.hero-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  z-index: -1;
}

/* On narrow/portrait screens, center the portafilter + cup in the frame */
@media (max-width: 768px) {
  .hero-video {
    object-position: 70% center;
  }
}

/* Translucent panel holding the overlaid text */
.tagline {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.4rem;
  font-size: clamp(0.94rem, 2.8vw, 1.72rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  max-width: 90vw;
  padding: clamp(0.6rem, 1.5vw, 1rem) clamp(1rem, 2.5vw, 1.5rem);
  border-radius: 18px;
  background: rgba(12, 10, 8, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.9);
}

.line-coffee {
  color: var(--coffee);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.reach-out {
  font: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--cream);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  transition: color 0.18s ease;
}

.reach-out:hover,
.reach-out:focus-visible { color: var(--cream-hover); }

/* ---- Dialog ---- */
.contact {
  margin: auto; /* center in the viewport (reset above clears the UA default) */
  border: none;
  border-radius: 16px;
  padding: 0;
  width: min(420px, 92vw);
  background: #16161a;
  color: var(--fg);
  box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.85);
}

.contact::backdrop {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
}

.form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-head h2 {
  font-size: 1.35rem;
  font-weight: 600;
}

.close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease;
}
.close:hover { color: var(--fg); }

label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: left;
}

input[type="email"],
textarea {
  font: inherit;
  font-size: 0.95rem;
  color: var(--fg);
  background: #0e0e11;
  border: 1px solid #2a2a30;
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  resize: vertical;
  transition: border-color 0.15s ease;
}

input[type="email"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.submit {
  font: inherit;
  font-weight: 600;
  margin-top: 0.25rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #1a1206;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}
.submit:hover { background: var(--accent-hover); }
.submit:active { transform: translateY(1px); }
.submit:disabled { opacity: 0.6; cursor: default; }

.status {
  font-size: 0.85rem;
  min-height: 1.2em;
  text-align: center;
}
.status.ok { color: #6fcf97; }
.status.err { color: #eb5757; }
