/* Shared chrome for the standard pages (Work / Services / Contact).
   The reel has its own full-bleed treatment in styles.css. */

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #f5f4f0;
  color: #161512;
  font-family: 'Montserrat', sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: #161512; text-decoration: none; }
a:hover { color: #8a877f; }
::selection { background: #161512; color: #f5f4f0; }
input::placeholder, textarea::placeholder { color: #a5a29a; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(38px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.reveal {
  animation: fadeUp .9s cubic-bezier(.2, .7, .2, 1) both;
  animation-timeline: view();
  animation-range: entry 0% entry 60%;
}

/* browsers without scroll-driven animations just get the content, unanimated */
@supports not (animation-timeline: view()) {
  .reveal { animation: none; }
}

/* ---------- top bar ---------- */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 210;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
  mix-blend-mode: difference;
  pointer-events: none;
}

.topbar__mark {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  letter-spacing: .12em;
  color: #fff;
  line-height: 1;
  pointer-events: auto;
}

.topbar__mark:hover { color: #fff; opacity: .7; }

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 38px;
  pointer-events: auto;
}

.topbar__link {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  letter-spacing: .26em;
  font-weight: 600;
  color: #fff;
  transition: opacity .3s ease;
}

/* the bar is mix-blend-mode:difference, so fading is the only safe hover — a
   colour change reads as an arbitrary hue over whatever sits behind it */
.topbar__link:hover { color: #fff; opacity: .6; }
.topbar__link.is-current { opacity: .45; }

/* ---------- menu overlay ---------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #edeae4;
  opacity: 0;
  pointer-events: none;
  transition: opacity .55s cubic-bezier(.2, .7, .2, 1);
}

.menu.is-open { opacity: 1; pointer-events: auto; }

.menu__scenes {
  position: absolute;
  top: 100px;
  left: 6vw;
  right: 4vw;
  z-index: 1; /* above the preview sheet, which is full-bleed behind it */
}

.menu__label {
  font-size: 9px;
  letter-spacing: .3em;
  font-weight: 600;
  color: rgba(20, 20, 20, .45);
  margin-bottom: 12px;
}

.menu__scene-list {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 34px;
  row-gap: 12px;
}

.menu-item {
  display: flex;
  align-items: baseline;
  gap: 9px;
  cursor: pointer;
  transform: translateY(0);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}

.menu-item:hover { transform: translateY(-4px); }

.menu-item__num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 12px;
  letter-spacing: .1em;
  color: rgba(20, 20, 20, .4);
  transition: color .35s ease;
}

.menu-item:hover .menu-item__num { color: rgba(20, 20, 20, .75); }

.menu-item__title {
  position: relative;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(20px, 2.1vw, 32px);
  line-height: 1;
  letter-spacing: .05em;
  color: #141414;
  transition: opacity .35s ease;
}

.menu-item:hover .menu-item__title { opacity: .55; }

.menu-item__title::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  background: #141414;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1);
}

.menu-item:hover .menu-item__title::after { transform: scaleX(1); }

/**
 * Hover-preview panel: the reel's cloth sheet in its menu-open state.
 *
 * Deliberately full-bleed and transparent. The panel's position, its warped
 * cloth edges and its grey wash all come from the shader, exactly as they do on
 * the reel itself — so it lands in the same place and looks identical wherever
 * the menu is opened. Sizing this box to the panel instead would mean
 * duplicating the shader's geometry in CSS and getting flat, square edges.
 */
.menu__preview {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s ease .15s;
}

.menu.is-open .menu__preview { opacity: 1; }

.menu__preview-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  pointer-events: none;
}

.menu__nav {
  position: absolute;
  left: 6vw;
  top: 50%;
  transform: translateY(-40%);
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 1;
}

.menu__nav-label {
  font-size: 9px;
  letter-spacing: .3em;
  font-weight: 600;
  color: rgba(20, 20, 20, .45);
}

.menu__link {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(34px, 3.6vw, 56px);
  line-height: 1;
  letter-spacing: .05em;
  color: #141414;
  text-decoration: none;
  transform: translateX(0);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), opacity .35s ease;
}

.menu__link:hover { color: #141414; opacity: .55; transform: translateX(12px); }
.menu__link.is-current { opacity: .4; }

/* ---------- footer ---------- */

.site-footer { padding: 130px 40px 34px; }

.site-footer__top { border-top: 1px solid #161512; padding-top: 22px; }

.site-footer__label {
  margin: 0 0 26px;
  font-size: 11px;
  letter-spacing: .26em;
  font-weight: 600;
  color: #8a877f;
}

.site-footer__cta {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(44px, 7vw, 104px);
  line-height: 1.02;
  letter-spacing: -.03em;
}

.site-footer__cta a {
  color: #a19d93;
  border-bottom: 2px solid #cfccc3;
  padding-bottom: 6px;
  transition: color .3s ease, border-color .3s ease;
}

.site-footer__cta a:hover { color: #8a877f; border-bottom-color: #8a877f; }

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 52px;
  font-size: 13px;
  font-weight: 600;
}

.site-footer__social a { transition: opacity .3s ease; }
.site-footer__social a:hover { opacity: .55; }

.site-footer__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid #dedcd4;
  margin-top: 70px;
  padding-top: 26px;
  font-size: 11px;
  letter-spacing: .2em;
  font-weight: 600;
  color: #8a877f;
}

/* ---------- shared page header ---------- */

.page-head { padding: 150px 40px 0; }

.page-head__inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 18px;
  border-top: 1px solid #161512;
  padding-top: 20px;
}

.page-head__title {
  margin: 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(52px, 9vw, 140px);
  line-height: .96;
  letter-spacing: .03em;
}

.page-head__lede {
  margin: 0;
  max-width: 46ch;
  font-size: 14px;
  line-height: 1.75;
  color: #6d6a62;
}

@media (max-width: 720px) {
  .topbar { padding: 18px 20px; }
  .topbar__nav { gap: 18px; }
  .topbar__link { font-size: 10px; letter-spacing: .16em; }
  .page-head { padding: 120px 20px 0; }
  .site-footer { padding: 90px 20px 28px; }
}
