/* ==========================================================================
   Witchcraft marketing homepage
   ========================================================================== */

:root {
  --ink: #1a1a1a;
  --ink-soft: #4e4e4e;
  --line: #e6e6e6;
  --bg: #ffffff;
  --bg-alt: #f7f7f5;
  --maxw: 1140px;
  --header-h: 90px;
  --header-h-scrolled: 64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Open Sans", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  color: var(--ink-soft);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Open Sans", system-ui, -apple-system, Helvetica, Arial, sans-serif;
  color: var(--ink);
  margin: 0 0 .5em;
  line-height: 1.15;
  font-weight: 600;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
[id] { scroll-margin-top: var(--header-h-scrolled); }

.section__title {
  font-size: 52px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: 36px;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  transition: height .3s ease;
}

.site-nav {
  display: flex;
  gap: 34px;
  align-items: center;
}

.site-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color .15s ease;
}

.site-nav a:hover { color: var(--ink); }

/* Transparent over the hero video: light logo + nav */
.site-header:not(.is-scrolled) .wordmark__outline { -webkit-text-stroke-color: #fff; text-stroke-color: #fff; }
.site-header:not(.is-scrolled) .wordmark__solid { color: #fff; }
.site-header:not(.is-scrolled) .site-nav a { color: rgba(255, 255, 255, .92); }
.site-header:not(.is-scrolled) .site-nav a:hover { color: #fff; }

/* Scrolled: opaque white, shrunk */
.site-header.is-scrolled {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom-color: var(--line);
  box-shadow: 0 2px 16px rgba(0, 0, 0, .06);
}

.site-header.is-scrolled .site-header__inner { height: var(--header-h-scrolled); }

/* ---------- Wordmark logo ---------- */

.wordmark {
  font-family: "Mulish", system-ui, sans-serif;
  font-weight: 900;
  font-size: 26px;
  letter-spacing: .06em;
  line-height: 1;
  display: inline-flex;
  text-transform: uppercase;
  user-select: none;
}

.wordmark__outline {
  color: transparent;
  -webkit-text-stroke: 1.4px var(--ink);
  text-stroke: 1.4px var(--ink);
}

.wordmark__solid { color: var(--ink); }

.site-footer .wordmark { font-size: 22px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .4), rgba(0, 0, 0, .3));
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__title {
  color: #fff;
  font-size: 52px;
  font-weight: 600;
  line-height: 1.05;
  margin: 0;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .4);
}

/* ---------- About ---------- */

.section--about {
  background-color: #d0d1d3;
  background-repeat: no-repeat;
  background-position: center left;
  background-size: cover;
}

/* Text occupies the left half; the electronics show in the right half of the bg */
.about-copy {
  width: 50%;
  padding-right: 24px;
}

.about-copy p {
  font-size: 18px;
  margin: 0 0 24px;
}

.about-copy p:last-child { margin-bottom: 0; }

/* Below 980px drop the photo and let text go full width — the section keeps the same gray */
@media (max-width: 980px) {
  .section--about { background-image: none !important; }
  .about-copy { width: 100%; padding-right: 0; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  border: 1.5px solid var(--ink);
  color: #fff;
  background: var(--ink);
  transition: transform .12s ease, background .15s ease, color .15s ease;
}

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

.btn--ghost {
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover { background: var(--ink); color: #fff; }

/* ---------- Work cards (click to play video) ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 8px;
}

.work-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.work-card__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-card.is-playing .work-card__video { object-fit: contain; }

.work-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 74px;
  height: 74px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
  z-index: 2;
}

.work-card__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 13px 0 13px 21px;
  border-color: transparent transparent transparent var(--ink);
}

.work-card:hover .work-card__play { transform: translate(-50%, -50%) scale(1.08); background: #fff; }

.work-card__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 24px 22px;
  color: #fff;
  font-weight: 700;
  font-size: 22px;
  background: linear-gradient(to top, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, 0) 100%);
  z-index: 2;
  pointer-events: none;
}

.work-card.is-playing .work-card__play,
.work-card.is-playing .work-card__caption { display: none; }

/* ---------- Materials grid ---------- */

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

.material {
  position: relative;
  border-radius: 14px;
  height: 260px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  padding: 30px 24px;
}

.material::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  transition: background .25s ease;
}

.material:hover::before { background: rgba(0, 0, 0, .72); }

.material__title {
  position: relative;
  z-index: 1;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 18px;
  line-height: 1.4;
  color: #fff;
  transition: opacity .25s ease;
}

.material__desc {
  position: absolute;
  inset: 0;
  z-index: 1;
  padding: 26px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.55;
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}

.material:hover .material__title { opacity: 0; }
.material:hover .material__desc { opacity: 1; transform: translateY(0); }

/* ---------- Contact ---------- */

.contact {
  background-repeat: no-repeat;
  background-position: center right;
  background-size: cover;
}

.contact-info p {
  font-size: 18px;
  color: #000;
  margin: 0 0 6px;
}

.contact-info p:last-child { margin-top: 18px; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  background: var(--bg-alt);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer__copy {
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .materials-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__title { font-size: 48px; }
  .section__title { font-size: 38px; }
}

@media (max-width: 640px) {
  .work-grid { grid-template-columns: 1fr; }
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 14px; }
  .section { padding: 64px 0; }
}

@media (max-width: 460px) {
  .materials-grid { grid-template-columns: 1fr; }
  .site-nav { display: none; }
}
