/* Birdman Barbecue: coming soon */
:root {
  --bg: #0e0c0b;
  --bg-2: #15110f;
  --ink: #d2cec8;          /* logo ink: warm light gray */
  --text: #ede8e2;
  --muted: #a8a098;
  --ember: #ff6a1f;
  --amber: #ffa53a;
  --ember-deep: #b8360b;
  --danger: #ff8a7a;
  --ok: #9fdc8a;
  --radius: 18px;
  --font-display: "Bebas Neue", "Oswald", Impact, "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--text); color: var(--bg); padding: .6rem 1rem; border-radius: 8px;
  font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Atmosphere ---------- */
.atmos { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; isolation: isolate; } /* grain blend stays inside this layer */
.glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(70% 48% at 50% 110%, rgba(255, 106, 31, .42) 0%, rgba(184, 54, 11, .2) 40%, transparent 74%),
    radial-gradient(38% 26% at 50% 104%, rgba(255, 165, 58, .30) 0%, transparent 70%),
    radial-gradient(80% 60% at 50% 35%, #1a1512 0%, var(--bg) 70%);
  animation: breathe 7s ease-in-out infinite alternate;
}
@keyframes breathe {
  0%   { opacity: .82; transform: scale(1); }
  100% { opacity: 1;   transform: scale(1.03); }
}
#smoke { position: absolute; inset: 0; width: 100%; height: 100%; }
.grain {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .07; mix-blend-mode: overlay;
}
.vignette {
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0,0,0,.55) 100%);
}

main, .footer { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: clamp(2rem, 6vh, 4rem) 1.25rem clamp(3rem, 8vh, 5rem);
  text-align: center;
}
.hero__inner { display: flex; flex-direction: column; align-items: center; max-width: 52rem; }

.logo-wrap {
  position: relative; margin-bottom: clamp(1.25rem, 3.5vh, 2.25rem);
  isolation: isolate; /* keep the halo layers local; nothing blends into the logo */
}
/* Soft ember halo + grounding shadow behind the stamp.
   Pure gradients, no CSS `filter` anywhere on the logo or its halo:
   filter chains (blur/drop-shadow) on the animated <img> made some browsers
   (iOS/macOS Safari) composite the image into a solid light square once the
   animation ended. */
.logo-wrap::before, .logo-wrap::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  border-radius: 50%; opacity: 0;
}
.logo-wrap::before { /* warm glow */
  inset: -24%;
  background: radial-gradient(closest-side,
    rgba(255, 120, 40, .17) 0%, rgba(255, 120, 40, .11) 35%,
    rgba(255, 120, 40, .045) 62%, rgba(255, 120, 40, 0) 100%);
  animation: halo-in 3s ease-out .8s forwards;
}
.logo-wrap::after { /* soft dark shadow just under the stamp (replaces the old drop-shadow) */
  inset: 4% 2% -10%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .42) 0%, rgba(0, 0, 0, .2) 55%, rgba(0, 0, 0, 0) 100%);
  animation: fade-in 2.6s ease-out .25s forwards;
}
.logo {
  position: relative; /* paints above the halo layers */
  width: clamp(200px, 34vmin, 320px);
  background: transparent;
  opacity: 0;
  transform: translateY(28px) scale(.94);
  /* opacity + transform only: no filter, no blend mode */
  animation: rise-from-smoke 2.6s cubic-bezier(.2,.7,.2,1) .25s forwards;
}
@keyframes rise-from-smoke {
  0%   { opacity: 0;   transform: translateY(28px) scale(.94); }
  55%  { opacity: .85; }
  100% { opacity: 1;   transform: none; }
}
@keyframes halo-in {
  from { opacity: 0; transform: scale(.85); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade-in { to { opacity: 1; } }

.reveal { opacity: 0; transform: translateY(14px); animation: reveal 1.1s cubic-bezier(.2,.7,.2,1) var(--d, 0s) forwards; }
@keyframes reveal { to { opacity: 1; transform: none; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .9rem;
  margin: 0 0 .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: .78rem;
  letter-spacing: .42em; text-transform: uppercase; color: var(--amber);
  padding-left: .42em; /* optically balance letter-spacing */
}
.eyebrow__line { width: 2.2rem; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,165,58,.7)); }
.eyebrow__line:last-child { background: linear-gradient(90deg, rgba(255,165,58,.7), transparent); }

.headline {
  margin: 0;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(3.4rem, 10.5vw, 6.6rem);
  line-height: .92; letter-spacing: .02em;
  color: var(--text);
  background: linear-gradient(180deg, #fbf7f2 15%, #e6ddd3 60%, #d4b294 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 32px rgba(255, 110, 40, .16)) drop-shadow(0 3px 10px rgba(0,0,0,.45));
}
.teaser {
  margin: 1rem 0 0;
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 1.75rem); line-height: 1.35;
  color: #d8d0c7; max-width: 32ch;
}

/* Heat motif */
.heat { margin-top: clamp(1.6rem, 4vh, 2.4rem); width: min(280px, 72vw); }
.heat__label {
  display: flex; align-items: center; justify-content: center; gap: .55rem;
  font-size: .72rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--muted);
  margin-bottom: .7rem; padding-left: .28em;
}
.heat__flame {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 6px 2px rgba(255, 140, 40, .8), 0 0 16px 4px rgba(255, 90, 20, .45);
  animation: flicker 1.8s ease-in-out infinite;
}
@keyframes flicker { 0%,100% { opacity: 1; transform: scale(1); } 40% { opacity: .6; transform: scale(.8); } 70% { opacity: .9; transform: scale(1.1); } }
.heat__track { position: relative; height: 3px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: visible; }
.heat__fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, #6b1d06, var(--ember) 60%, var(--amber));
  box-shadow: 0 0 10px rgba(255, 106, 31, .7), 0 0 22px rgba(255, 106, 31, .35);
  animation: heat-up 5s cubic-bezier(.3,.6,.2,1) 2.2s forwards, heat-pulse 2.6s ease-in-out 7.2s infinite;
}
.heat__fill::after { /* hot tip */
  content: ""; position: absolute; right: -3px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%;
  background: #ffd9a0; box-shadow: 0 0 10px 3px rgba(255, 170, 70, .9);
}
@keyframes heat-up { to { width: 68%; } }
@keyframes heat-pulse { 0%,100% { filter: brightness(1); } 50% { filter: brightness(1.35); } }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: .95rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: var(--pad-y) 1.6rem; border-radius: 999px;
  font: 600 .82rem/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: 0;
  transition: transform .2s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
}
.btn:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.btn--ghost {
  margin-top: clamp(1.8rem, 4.5vh, 2.6rem);
  color: var(--text); background: rgba(255,255,255,.03);
  border: 1px solid rgba(237, 232, 226, .28);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.btn--ghost svg { transition: transform .25s ease; }
.btn--ghost:hover { border-color: rgba(255, 165, 58, .7); color: #fff; box-shadow: 0 0 24px rgba(255, 106, 31, .18); }
.btn--ghost:hover svg { transform: translateY(3px); }

.btn--ember {
  position: relative; width: 100%; margin-top: .5rem; padding: 1.1rem 1.6rem;
  color: #1c0e05;
  background: linear-gradient(180deg, #ffb45a 0%, #ff7a2a 55%, #f0601a 100%);
  box-shadow: 0 10px 30px -10px rgba(255, 106, 31, .65), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn--ember:hover { transform: translateY(-1px); box-shadow: 0 14px 36px -10px rgba(255, 106, 31, .8), inset 0 1px 0 rgba(255,255,255,.4); }
.btn--ember:active { transform: translateY(0); }
.btn--ember[disabled] { cursor: progress; opacity: .85; }
.btn__spinner {
  display: none; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(28, 14, 5, .25); border-top-color: #1c0e05;
  animation: spin .8s linear infinite;
}
.is-sending .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Contact ---------- */
.contact { padding: 2rem 1.25rem clamp(4rem, 10vh, 7rem); display: grid; place-items: center; scroll-margin-top: 1rem; }
.card {
  width: min(100%, 36rem);
  padding: clamp(1.75rem, 5vw, 3rem);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(30, 25, 22, .78), rgba(18, 15, 13, .82));
  border: 1px solid rgba(237, 232, 226, .09);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  position: relative;
}
.card::before { /* ember edge highlight */
  content: ""; position: absolute; left: 12%; right: 12%; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 140, 50, .7), transparent);
}
.card__title {
  margin: 0; text-align: center;
  font-family: var(--font-display); font-weight: 400; letter-spacing: .06em;
  font-size: clamp(2.4rem, 6vw, 3.1rem); line-height: 1; color: var(--text);
}
.card__intro { margin: .6rem auto 1.8rem; text-align: center; color: var(--muted); max-width: 34ch; }
.noscript { background: rgba(255, 165, 58, .1); border: 1px solid rgba(255, 165, 58, .35); padding: .9rem 1rem; border-radius: 10px; font-size: .95rem; }
.noscript a, .form-status a { color: var(--amber); }

.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .45rem; }
.field label { font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #cfc7be; }
.field input, .field textarea {
  width: 100%; font: 400 1rem/1.5 var(--font-body); color: var(--text);
  background: rgba(8, 7, 6, .55);
  border: 1px solid rgba(237, 232, 226, .16); border-radius: 12px;
  padding: .85rem 1rem; transition: border-color .2s, box-shadow .2s, background-color .2s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 8.5rem; }
.field input::placeholder, .field textarea::placeholder { color: #8a827a; }
.field input:hover, .field textarea:hover { border-color: rgba(237, 232, 226, .28); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--amber); background: rgba(8, 7, 6, .75);
  box-shadow: 0 0 0 3px rgba(255, 140, 50, .22), 0 0 24px -6px rgba(255, 106, 31, .45);
}
.field [aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(255, 138, 122, .15); }
.field__error { margin: 0; min-height: 0; font-size: .86rem; color: var(--danger); }
.field__error:empty { display: none; }

.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form-status {
  display: flex; gap: .85rem; align-items: flex-start;
  padding: 1rem 1.1rem; border-radius: 12px; font-size: .95rem; line-height: 1.5; outline: none;
  animation: reveal .5s ease forwards; opacity: 0; transform: translateY(6px);
}
.form-status[hidden] { display: none; }
.form-status strong { display: block; font-weight: 600; color: var(--text); margin-bottom: .1rem; }
.form-status__icon { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; margin-top: .1rem; }
.form-status--success { background: rgba(159, 220, 138, .08); border: 1px solid rgba(159, 220, 138, .35); color: #cfe9c5; }
.form-status--success .form-status__icon { background: rgba(159, 220, 138, .18); color: var(--ok); }
.form-status--error { background: rgba(255, 138, 122, .08); border: 1px solid rgba(255, 138, 122, .4); color: #f3cbc4; }
.form-status--error .form-status__icon { background: rgba(255, 138, 122, .18); color: var(--danger); }

/* Success: swap the form for a confirmation panel */
.form.is-sent .field, .form.is-sent .btn--ember { display: none; }
.form.is-sent .form-status--success { flex-direction: column; align-items: center; text-align: center; padding: 2rem 1.25rem; font-size: 1rem; }
.form.is-sent .form-status--success .form-status__icon { width: 52px; height: 52px; margin: 0 0 .4rem; }
.form.is-sent .form-status--success strong { font-family: var(--font-display); font-weight: 400; font-size: 2rem; letter-spacing: .05em; line-height: 1.1; }

/* ---------- Footer ---------- */
.footer { text-align: center; padding: 0 1rem 2.25rem; color: #8d857d; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.footer p { margin: 0; }

/* ---------- Small screens ---------- */
@media (max-width: 480px) {
  .eyebrow { letter-spacing: .34em; font-size: .72rem; }
  .eyebrow__line { width: 1.4rem; }
  .teaser br { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .heat__fill { width: 68%; }
  /* Logo + halo simply appear in their final state. */
  .logo, .logo-wrap::before, .logo-wrap::after { animation: none !important; opacity: 1; transform: none; }
}
