@font-face {
  font-family: "Dearest";
  src: url("assets/fonts/Dearest-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #111;
  --line: #cfcfc9;
  --muted: #3f3f3b;
}

* { box-sizing: border-box; }
html, body {
  background: #fff;
}

/* Grid overlay removed */
.grid-debug { display: none !important; }
.grid-debug .col-labels {
  top: 6px;
  left: 0;
  right: 0;
  grid-template-columns: repeat(12, 1fr);
  text-align: center;
}
.grid-debug .row-labels {
  top: 0;
  bottom: 0;
  left: 6px;
  grid-template-rows: repeat(12, 1fr);
  align-items: center;
}

body {
  margin: 0;
  background: #fff !important;
  color: var(--ink);
  font-family: "Dearest", "Bodoni Moda", "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
}

.site,
.home-layout,
.hero-row,
.hero-center,
.page,
.page-head,
.copy-block {
  background: #fff !important;
}

.site {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px 34px;
  min-height: 100vh;
}

.home-layout {
  display: grid;
  grid-template-rows: 1fr auto;
}

.hero-row {
  display: grid;
  grid-template-columns: 320px 1fr 320px;
  align-items: center;
  gap: 28px;
  min-height: 66vh;
  position: relative;
}

.hero-center {
  text-align: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  padding-inline: 8px;
  width: max-content;
}
.hero-center .title {
  text-align: center;
}

.title {
  margin: 0;
  font-family: "Dearest", "Bodoni Moda", "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  font-size: clamp(52px, 5.8vw, 88px);
  line-height: .92;
  letter-spacing: .02em;
  white-space: nowrap;
}

.services {
  margin: 18px auto 0;
  text-transform: lowercase;
  font-size: 16px;
  color: var(--muted);
}

.figure {
  position: relative;
  display: grid;
  place-items: center;
  z-index: 1;
  align-self: center;
  width: 320px;
  height: 320px;
}
.figure.left {
  position: fixed;
  /* Center pinned to grid box 8B (col B, row 8) */
  left: calc(12.5vw - 160px);
  top: calc(62.5vh - 160px);
  margin: 0;
  justify-self: start;
  align-self: start;
}
.figure.right {
  position: fixed;
  /* Adjusted: feet align around middle of J column, head near row 1.5 */
  width: 260px;
  height: 260px;
  left: calc(79.1667vw - 130px);
  top: 12.5vh;
  margin: 0;
  transform: none;
  justify-self: end;
  align-self: start;
}
.figure.top-left {
  align-self: end;
  justify-self: start;
  margin: 0;
}

.char-img {
  width: 100%;
  height: 100%;
  display: block;
  margin: 0;
  background: transparent;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.figure.left .char-img,
.figure.right .char-img {
  max-width: none;
}

video.char-img {
  background: transparent;
  object-fit: contain;
  /* Pseudo-key out matte: keep dark outlines, suppress light background */
  mix-blend-mode: multiply;
  filter: grayscale(1) contrast(2.2) brightness(1.06);
}

.left-anim,
.right-anim {
  object-position: center;
}

.left-anim { transform: scale(1.02); }
.right-anim { transform: scaleX(-1) scale(1.08); }
.float-a { animation: bobA 5s ease-in-out infinite; }
.float-b { animation: bobB 5.8s ease-in-out infinite; }

.left .wand {
  position: absolute;
  right: 8px;
  top: 62%;
  width: 56px;
  height: 4px;
  background: linear-gradient(90deg, #2f241b, #7a5332);
  border-radius: 999px;
  transform: rotate(-28deg);
  transform-origin: left center;
  animation: wandWave 1.8s ease-in-out infinite;
}

.left .spark {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #f7dea0;
  box-shadow: 0 0 12px rgba(247,222,160,.9);
  animation: twinkle 1.4s ease-in-out infinite;
}
.left .sparkle-1 { right: 2px; top: 50%; }
.left .sparkle-2 { right: -6px; top: 56%; width: 6px; height: 6px; animation-delay: .25s; }
.left .sparkle-3 { right: 10px; top: 46%; width: 5px; height: 5px; animation-delay: .5s; }

.right .top-hat {
  position: absolute;
  left: 62%;
  top: 64%;
  width: 42px;
  height: 26px;
  background: #101115;
  border-radius: 6px 6px 3px 3px;
}
.right .top-hat::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 58px;
  height: 7px;
  transform: translateX(-50%);
  background: #121317;
  border-radius: 999px;
}

.right .rabbit {
  position: absolute;
  left: 68%;
  top: 58%;
  width: 18px;
  height: 16px;
  border-radius: 999px;
  background: #fff;
  animation: rabbitPop 2.1s ease-in-out infinite;
}
.right .rabbit .ear {
  position: absolute;
  top: -13px;
  width: 5px;
  height: 14px;
  border-radius: 999px;
  background: #fff;
}
.right .rabbit .ear-l { left: 3px; transform: rotate(-8deg); }
.right .rabbit .ear-r { right: 3px; transform: rotate(8deg); }

@keyframes bobA {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}
@keyframes bobB {
  0%, 100% { transform: scaleX(-1) scale(1.08) translateY(0px); }
  50% { transform: scaleX(-1) scale(1.08) translateY(4px); }
}

@keyframes wandWave {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(7deg); }
}

@keyframes twinkle {
  0%, 100% { opacity: .35; transform: scale(.82) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.08) rotate(10deg); }
}

@keyframes rabbitPop {
  0%, 100% { transform: translateY(6px); }
  40% { transform: translateY(-9px); }
  70% { transform: translateY(-2px); }
}

.bottom-nav {
  border-top: 3px solid #111;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 30px;
}

/* Home-only vertical lift for nav placement */
.home-layout .bottom-nav {
  margin-top: 0;
  position: relative;
  top: -28px;
  border-top: 3px solid #111;
}

.bottom-nav a {
  text-decoration: none;
  color: var(--ink);
  text-align: center;
  padding: 16px 8px;
  font-size: 13px;
  letter-spacing: .22em;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  text-transform: none;
}

.bottom-nav a[aria-current="page"] { font-weight: 600; }

.page-head {
  margin-bottom: 18px;
}
.page-head .home-link {
  color: #1e1e1a;
  text-decoration: none;
  font-size: clamp(52px, 5.8vw, 88px);
  line-height: .92;
  letter-spacing: .02em;
  text-transform: none;
  font-weight: 700;
  display: inline-block;
}

.page-head .home-link.lowercase-logo {
  text-transform: lowercase;
}
.page-head h1 {
  margin: 10px 0 0;
  font-family: "Dearest", "Bodoni Moda", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
}

.video-grid {
  display: grid;
  gap: 14px;
}
.landscape-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.portrait-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.video-card {
  background: transparent;
}
.video-card iframe,
.video-poster {
  width: 100%;
  border: 0;
  display: block;
}
.video-card.landscape iframe,
.video-card.landscape .video-poster { aspect-ratio: 16/9; }
.video-card.portrait iframe,
.video-card.portrait .video-poster { aspect-ratio: 9/16; }

.video-poster {
  position: relative;
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hover-bar {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  height: 38px;
  border-radius: 10px;
  background: rgba(0,0,0,.82);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
}
.video-poster:hover .hover-bar,
.video-poster:focus-visible .hover-bar {
  opacity: 1;
  transform: translateY(0);
}
.hover-play {
  width: 22px;
  text-align: center;
  font-size: 14px;
}
.hover-track {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.3);
  overflow: hidden;
}
.hover-progress {
  width: 0%;
  height: 100%;
  background: #fff;
  display: block;
}
.hover-fullscreen {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  opacity: .95;
}
.hover-fullscreen svg {
  width: 18px;
  height: 18px;
  display: block;
}

.video-title {
  margin: 0;
  padding: 10px 12px;
  font-family: "Dearest", "Bodoni Moda", "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.copy-block {
  max-width: 820px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.copy-block p {
  margin: 0 0 16px;
  font-family: "Inter", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
.copy-block p:last-child { margin-bottom: 0; }

.contact-block a {
  color: #111;
  text-decoration-thickness: 1px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.social-ig {
  width: 18px;
  height: 18px;
  display: inline-block;
}

/* Services row (single source) */
.services-row {
  margin-top: 8px;
  color: var(--muted);
  font-size: 19px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}
.services-row .service-word {
  display: inline-block;
  will-change: transform;
  letter-spacing: 0.02em;
  font-weight: 700;
}
.services-row .service-sep {
  display: inline-block;
  opacity: 0.55;
  transform: translateY(-1px);
}

.mobile-home-bridge { display: none; }
.mobile-brand-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 12px;
  align-items: start;
  margin: 6px 0 14px;
}
.mobile-brand {
  font-family: "Dearest", "Bodoni Moda", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(30px, 9vw, 44px);
  line-height: .95;
}
.mobile-quick-links-vertical { display: none; }
.mobile-services-horizontal {
  margin: 8px 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.mobile-services-horizontal span {
  font: 700 13px/1.2 Inter, sans-serif;
  color: var(--muted);
}
.mobile-inline-group {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}
.mobile-inline-link {
  text-decoration: none;
  color: #111;
  font: 700 13px/1.2 Inter, sans-serif;
}
.mobile-inline-sep {
  color: #111;
  font: 700 13px/1.2 Inter, sans-serif;
}

@media (max-width: 960px) {
  .grid-debug { display: none !important; }
  .mobile-home-bridge { display: block; }

  .page-head .home-link { display: none; }
  .page-head .home-link.mobile-work-logo { display: inline-block !important; }

  .site {
    padding: 20px 16px 20px;
  }

  .hero-row {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: auto;
    padding-top: 4px;
  }

  .hero-center {
    position: static;
    transform: none;
    width: 100%;
    text-align: center;
    order: 1;
  }

  .title {
    white-space: normal;
    font-size: clamp(40px, 10vw, 62px);
    line-height: 0.95;
  }

  .figure {
    width: min(56vw, 220px);
    height: min(56vw, 220px);
  }

  .figure.left,
  .figure.right,
  .figure.top-left {
    position: relative;
    left: auto;
    top: auto;
    margin: 0;
    transform: none;
    justify-self: center;
    align-self: center;
  }

  /* Mobile: use same character set as desktop (both visible) */
  .figure.left {
    display: grid;
    order: 2;
  }
  .figure.right {
    display: grid;
    order: 3;
  }

  /* Mobile: pseudo-transparent treatment for matte removal */
  video.char-img {
    mix-blend-mode: multiply !important;
    filter: grayscale(1) contrast(2.2) brightness(1.06) !important;
    background: transparent !important;
  }

  .figure,
  .char-img,
  .figure video {
    background: transparent !important;
  }

  .services-row {
    margin-top: 12px;
    font-size: 13px;
    gap: 8px;
    flex-wrap: wrap;
    white-space: normal;
    justify-content: center;
  }

  .services-row .service-word {
    transform: none !important;
  }

  .services-row .service-sep {
    display: none;
  }

  .bottom-nav {
    margin-top: 18px;
  }

  .bottom-nav a {
    padding: 14px 4px;
    font-size: 12px;
    letter-spacing: .16em;
  }

  .page-head {
    margin-bottom: 12px;
  }

  .page-head .home-link {
    font-size: clamp(40px, 10vw, 62px);
    line-height: .95;
    letter-spacing: .02em;
  }

  .landscape-grid,
  .portrait-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .video-title {
    font-size: 22px;
    padding: 8px 6px;
  }

  .hover-bar {
    opacity: 1;
    transform: none;
    height: 34px;
  }
}

@media (max-width: 640px) {
  .site {
    padding: 14px 12px 16px;
  }

  .title {
    font-size: clamp(34px, 11.5vw, 48px);
  }

  .page-head .home-link {
    font-size: clamp(34px, 11.5vw, 48px);
    line-height: .95;
  }

  .figure {
    width: min(60vw, 200px);
    height: min(60vw, 200px);
  }

  .services-row {
    font-size: 12px;
    gap: 6px;
  }

  .bottom-nav a {
    font-size: 11px;
    letter-spacing: .12em;
  }

  .video-title {
    font-size: 20px;
  }

  .copy-block p {
    font-size: 16px;
  }
}
