/* ==========================================================================
   PRIMORDIAL STONE — Venetian Plaster
   Full-page looping plaster video, dark glass surfaces, copper accents.
   Display: Marcellus · Body: Outfit
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --ink: #f6ecd9;
  --muted: rgba(246, 236, 217, 0.78);
  --faint: rgba(246, 236, 217, 0.55);
  --copper: #c98d58;
  --copper-deep: #8a5530;
  --bronze: #3e2c1d;
  --bronze-deep: #1d130a;
  --cream: #f6ecd9;
  --line: rgba(246, 236, 217, 0.16);
  --line-strong: rgba(246, 236, 217, 0.3);
  --glass: rgba(24, 15, 8, 0.62);
  --glass-strong: rgba(22, 14, 7, 0.78);
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 34px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.5);
  --display: 'Marcellus', 'Times New Roman', serif;
  --body: 'Outfit', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bronze-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* the looping plaster video is the whole page background */
.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* warm dark wash over the video so content stays readable */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(20, 12, 5, 0) 25%, rgba(20, 12, 5, 0.5) 100%),
    linear-gradient(rgba(20, 12, 5, 0.32), rgba(20, 12, 5, 0.55));
  pointer-events: none;
}

::selection { background: rgba(201, 141, 88, 0.4); color: var(--cream); }

img { max-width: 100%; height: auto; }

/* ── Type scale ─────────────────────────────────────────────────────────── */

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.08;
  color: var(--cream);
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); letter-spacing: 0.01em; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4); }
h3 { font-size: 1.3rem; letter-spacing: 0.01em; }

.eyebrow, .kicker {
  margin: 0 0 16px;
  color: var(--copper);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-weight: 600;
  font-size: 0.72rem;
}

.lead {
  max-width: 640px;
  margin: 22px auto 0;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  line-height: 1.7;
  font-weight: 300;
  color: var(--muted);
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px clamp(16px, 4vw, 40px);
  background: rgba(20, 13, 7, 0.66);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--cream);
}

.mark {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: url('../img/logo-crest-header.png') center/contain no-repeat;
  filter: drop-shadow(0 0 6px rgba(201, 141, 88, 0.35));
  animation: mark-glow 4.5s ease-in-out infinite alternate;
  transition: transform 0.4s var(--ease);
}

.brand:hover .mark { transform: rotate(-8deg) scale(1.06); }

@keyframes mark-glow {
  from { filter: drop-shadow(0 0 4px rgba(201, 141, 88, 0.25)); }
  to { filter: drop-shadow(0 0 10px rgba(201, 141, 88, 0.55)); }
}

.brand strong {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.95rem;
}

.brand small {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  color: var(--copper);
  font-size: 0.56rem;
  font-weight: 600;
  margin-top: 2px;
}

nav { display: flex; gap: 2px; align-items: center; }

nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 10px 13px;
  border-radius: 999px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}

nav a:hover { color: var(--cream); background: rgba(246, 236, 217, 0.1); }

nav a.quote {
  margin-left: 8px;
  background: linear-gradient(135deg, var(--copper), var(--copper-deep));
  color: var(--cream);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

nav a.quote:hover { color: #fff; }

/* ── Hero — medallion and headline straight over the video ──────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 110px 22px 64px;
}

.hero-content {
  position: relative;
  text-align: center;
  width: min(840px, 100%);
}

.crest-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 26px;
}

.hero-crest {
  position: relative;
  display: block;
  width: clamp(240px, 36vh, 420px);
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
  animation: crest-float 7s ease-in-out infinite;
}

@keyframes crest-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── Buttons ────────────────────────────────────────────────────────────── */

.actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.btn:hover { transform: translateY(-2px); }

.btn.primary {
  background: linear-gradient(135deg, var(--copper), var(--copper-deep));
  color: var(--cream);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

.btn.ghost {
  color: var(--cream);
  border: 1px solid var(--line-strong);
  background: rgba(246, 236, 217, 0.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.btn.ghost:hover { background: rgba(246, 236, 217, 0.16); }

/* ── Section scaffolding ────────────────────────────────────────────────── */

section {
  width: min(1140px, calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(72px, 9vw, 120px) 0;
}

section > .kicker, section > h2 { text-align: center; }

section > h2 + p, .intro > p, .areas > p {
  max-width: 660px;
  margin: 20px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 300;
}

.intro { text-align: center; padding-bottom: 0; }

.intro h2 { max-width: 760px; margin-left: auto; margin-right: auto; }

/* ── Cards — dark glass over the video ──────────────────────────────────── */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 52px;
}

.card {
  padding: 30px 28px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 141, 88, 0.5);
}

.card.big {
  grid-column: span 2;
  background:
    linear-gradient(120deg, rgba(201, 141, 88, 0.16), rgba(201, 141, 88, 0) 55%),
    var(--glass);
}

.legacy { border-style: dashed; }

.card h3 { color: #e9c79b; }

.card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  font-weight: 300;
}

.finish span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border-radius: 999px;
  color: var(--cream);
  background: linear-gradient(135deg, var(--copper), var(--copper-deep));
  font-family: var(--display);
  font-size: 0.95rem;
}

/* ── Brand statement band ───────────────────────────────────────────────── */

.show {
  position: relative;
  display: flex;
  align-items: center;
  margin: 30px auto;
  min-height: 380px;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  background:
    linear-gradient(120deg, rgba(22, 14, 7, 0.85) 35%, rgba(22, 14, 7, 0.45)),
    url('../img/brand-bg.jpg') center/cover no-repeat;
}

.show div { position: relative; max-width: 640px; }

.show p {
  margin: 16px 0 0;
  color: var(--muted);
  font-weight: 300;
}

/* ── YouTube ────────────────────────────────────────────────────────────── */

#videos { text-align: center; }

.videos-lead {
  max-width: 620px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 300;
}

.video-embed {
  margin: 44px auto 0;
  width: min(940px, 100%);
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bronze-deep);
  box-shadow: var(--shadow-md);
}

.video-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

.videos-cta { margin-top: 30px; }

/* ── Process ────────────────────────────────────────────────────────────── */

.steps {
  list-style: none;
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 28px;
  margin: 52px 0 0;
  counter-reset: s;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.step {
  counter-increment: s;
  padding: 26px 0 0;
  border-top: 1px solid var(--line-strong);
}

.step::before {
  content: counter(s, decimal-leading-zero);
  display: block;
  margin-bottom: 14px;
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--copper);
}

.step strong {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.18rem;
  letter-spacing: 0.01em;
  color: var(--cream);
}

.step p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.65;
}

/* ── About ──────────────────────────────────────────────────────────────── */

.about {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.about > div:last-child .kicker, .about h2 { text-align: left; }

.about p { color: var(--muted); font-weight: 300; margin: 18px 0 0; }

.portrait {
  align-self: stretch;
  min-height: 460px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    url('../img/logo-crest.png') center/min(68%, 360px) no-repeat,
    var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
}

/* ── Areas ──────────────────────────────────────────────────────────────── */

.areas { text-align: center; }

/* ── Contact ────────────────────────────────────────────────────────────── */

.contact { padding-bottom: clamp(72px, 9vw, 120px); }

.contact-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(36px, 6vw, 72px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 85% 0%, rgba(201, 141, 88, 0.28), transparent 55%),
    var(--glass-strong);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
}

.contact-panel p { max-width: 560px; font-weight: 300; margin: 18px 0 0; color: var(--muted); }

.contact-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }

.contact-links a {
  text-decoration: none;
  color: var(--cream);
  border: 1px solid var(--line-strong);
  background: rgba(246, 236, 217, 0.07);
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.contact-links a:hover { background: rgba(201, 141, 88, 0.4); transform: translateY(-2px); }

.contact-links a:first-child {
  background: linear-gradient(135deg, var(--copper), var(--copper-deep));
  border-color: transparent;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

footer {
  text-align: center;
  padding: 38px 22px;
  color: var(--faint);
  font-size: 0.88rem;
  font-weight: 300;
  background: rgba(15, 9, 4, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}

footer a { color: var(--copper); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 980px) {
  .grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .about > div:last-child .kicker, .about h2 { text-align: center; }
  .about p { text-align: center; }
  .portrait { min-height: 380px; }
}

@media (max-width: 700px) {
  .bar { flex-wrap: wrap; justify-content: center; padding: 10px 12px; }
  nav { width: 100%; overflow-x: auto; justify-content: flex-start; -webkit-overflow-scrolling: touch; }
  .hero { padding-top: 150px; }
  .grid, .steps { grid-template-columns: 1fr; }
  .card.big { grid-column: auto; }
  section { width: min(100% - 32px, 1140px); }
}

@media (max-width: 480px) {
  .brand span:not(.mark) { display: none; }
}


/* ── Portfolio gallery ──────────────────────────────────────────────────── */

.photo-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto;
  gap: 16px;
  margin-top: 52px;
}

.photo-item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  position: relative;
  background: var(--glass);
}

.photo-item--wide {
  grid-row: span 2;
}

.photo-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 260px;
  transition: transform 0.55s var(--ease);
}

.photo-item:hover img { transform: scale(1.04); }

.photo-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 20px 16px;
  background: linear-gradient(transparent, rgba(20, 13, 7, 0.82));
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .photo-item--wide { grid-row: auto; grid-column: span 2; }
}

@media (max-width: 540px) {
  .photo-grid { grid-template-columns: 1fr; }
  .photo-item--wide { grid-column: auto; }
}

/* respect users who prefer no motion */
@media (prefers-reduced-motion: reduce) {
  .bg-video { display: none; }
  body { background: var(--bronze-deep) url('../img/brand-bg-blur.jpg') center/cover no-repeat fixed; }
  .mark, .hero-crest {
    animation: none;
  }
}
