:root{
  /* These values keep the background warm + premium while the card stays cinematic */
  --fg: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.74);
  --faint: rgba(255,255,255,.58);

  --stroke: rgba(255,255,255,.18);
  --stroke2: rgba(255,255,255,.12);

  --shadow: 0 26px 90px rgba(0,0,0,.38);
  --radius: 22px;

  /* Card background */
  --cardTop: rgba(20,17,18,.86);
  --cardBot: rgba(26,21,22,.74);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;

  /* Warm base under the real plaster image (so it always feels “crepe”) */
  background:
    radial-gradient(900px 650px at 18% 4%, rgba(255,255,255,.55), transparent 58%),
    radial-gradient(900px 650px at 88% 10%, rgba(255,235,210,.42), transparent 60%),
    linear-gradient(180deg, #f2e6cd 0%, #e0c9a1 30%, #d2b788 62%, #b58c55 115%);
  background-attachment: fixed;

  font:16px/1.6 -apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display",Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  letter-spacing:.2px;

  position:relative;
}

/* REAL texture overlay (plaster) + vignette.
   IMPORTANT: Put bg image at assets/bg-plaster.jpg */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;

  background:
    radial-gradient(1100px 760px at 50% 35%, rgba(0,0,0,0) 52%, rgba(0,0,0,.18) 100%),
    url("../assets/bg-plaster.jpg");

  background-repeat: repeat;
  background-size: 1400px auto;   /* scale of plaster texture */
  opacity: .35;                   /* intensity */
  mix-blend-mode: multiply;        /* makes it feel like pigment in plaster */
}

/* Layout */
.wrap{
  min-height:100%;
  display:flex;
  flex-direction:column;
  justify-content:space-between;

  /* Fix cramped: more outer breathing room */
  padding: 80px 26px;
  max-width: 1060px;
  margin: 0 auto;
}

.hero{
  position:relative;
  border: 1px solid var(--stroke2);
  background: linear-gradient(180deg, var(--cardTop), var(--cardBot));
  border-radius: var(--radius);

  /* Fix cramped: more interior breathing room */
  padding: 30px;

  box-shadow: var(--shadow);
  overflow:hidden;
  color: var(--fg);
  animation: rise .7s ease-out both;
}

@keyframes rise{
  from{ transform: translateY(10px); opacity:0; }
  to{ transform: translateY(0); opacity:1; }
}

/* subtle sheen sweep */
.hero::before{
  content:"";
  position:absolute;
  inset:-40%;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,230,190,.05) 45%,
    rgba(255,245,230,.10) 50%,
    rgba(255,230,190,.05) 55%,
    transparent 100%);
  transform: rotate(12deg) translateX(-42%);
  animation: sheen 1.25s ease-out .35s 1 both;
  pointer-events:none;
  mix-blend-mode: screen;
  opacity:.55;
}
@keyframes sheen{
  to{ transform: rotate(12deg) translateX(42%); opacity:0; }
}

/* fine grain on card */
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.10;
  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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.30'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.media{
  border: 1px solid rgba(255,255,255,.12);
  border-radius: calc(var(--radius) - 6px);
  overflow:hidden;

  background:#080607;
  aspect-ratio: 16 / 9;
  box-shadow: 0 12px 34px rgba(0,0,0,.42);

  /* Slight spacing below media (fix cramped) */
  margin-bottom: 18px;
}

#heroVid{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  filter: contrast(1.05) saturate(1.03);
}

/* Text block rhythm */
.text{
  max-width: 72ch; /* better readability */
}

/* Fix cramped: consistent spacing between items */
.text > * { margin: 0 0 14px; }
.text > *:last-child { margin-bottom: 0; }

.eyebrow{
  font-size: 12px;
  letter-spacing: .28em;
  color: rgba(255,220,190,.62);
}

.motto{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:baseline;
}

.latin{
  font-family: "Cinzel", serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(255,235,215,.94);
}

.gloss{
  font-size: 13px;
  color: rgba(255,220,190,.70);
}

.title{
  font-size: clamp(28px, 2.8vw, 42px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.02em;

  /* give it room to feel premium */
  margin-top: 2px;
}

.mission{
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
  max-width: 66ch;
}

/* Pills */
.pillars{
  display:flex;
  gap: 8px;
  flex-wrap:wrap;
  margin-top: 4px;
}

.pill{
  display:inline-flex;
  gap:8px;
  align-items:baseline;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(8px);
  color: rgba(255,235,215,.88);
  opacity: .92;
}

.pill strong{
  font-family: "Cinzel", serif;
  letter-spacing: .10em;
  text-transform: uppercase;
  font-size: 12px;
}

.pill em{
  font-style: normal;
  color: rgba(255,220,190,.72);
  font-size: 12px;
}

/* CTA */
.cta{
  display:flex;
  align-items:center;
  gap: 12px;
  flex-wrap:wrap;

  /* extra space before CTA (fix cramped) */
  margin-top: 6px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.20);
  color: rgba(255,245,235,.96);
  text-decoration:none;
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(9px);
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}

.btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.28);
}

.hint, .hintlink{
  color: rgba(255,220,190,.74);
  font-size: 13px;
  letter-spacing: .02em;
}

.hintlink{
  text-decoration:none;
}
.hintlink:hover{ text-decoration: underline; }

.dot{
  color: rgba(255,220,190,.42);
}

.footer{
  margin-top: 18px;
  color: rgba(60,35,15,.78);
  font-size: 13px;
  padding: 10px 2px;
  text-shadow: 0 1px 0 rgba(255,255,255,.30);
}

/* Mobile cleanup */
@media (max-width: 640px){
  .wrap{ padding: 56px 16px; }
  .hero{ padding: 22px; }
  .dot{ display:none; }
  .hintlink{ width:100%; }
  .media{ margin-bottom: 16px; }
}