@font-face {
  font-family: "Cooper Light BT";
  src: url("../assets/fonts/cooperl.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cooper Medium BT";
  src: url("../assets/fonts/cooperm.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #47aa64;
  --purple: #6a3fd6;
  --work-purple: #7e42fa;
  --ink: #1a1a1a;
  --paper: #ffffff;
  --cursor-tennis: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2236%22%20height%3D%2236%22%3E%3Ctext%20x%3D%220%22%20y%3D%2228%22%20font-size%3D%2230%22%3E%F0%9F%8F%93%3C/text%3E%3C/svg%3E") 18 18, auto;
}

* {
  box-sizing: border-box;
  cursor: var(--cursor-tennis);
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Cooper Light BT", -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  cursor: var(--cursor-tennis);
}

.section-heading {
  font-family: "degular", -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  color: var(--purple);
}

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

.wrap {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Framed border motif used on header + hero + work tiles */
.frame {
  border: 7.7px solid var(--green);
  padding: 4.62px;
}

.frame-inner {
  border: 1.54px solid var(--paper);
  box-shadow: inset 0 0 0 0.77px var(--green);
}

/* Header */
.site-header {
  margin: 24px auto 0;
}

.site-header .frame-inner {
  background: var(--green);
  padding: 21px 40px;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-links {
  flex: 1;
  text-align: center;
}

.nav-links a {
  font-family: "Cooper Medium BT", -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--paper);
  font-size: 15px;
  letter-spacing: 0.0136em;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-links a:hover {
  opacity: 0.75;
}

.brand-logo {
  height: 107px;
  width: auto;
  display: block;
}

.brand-tagline-hero {
  font-family: "degular", -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: #777;
  font-size: 15px;
  text-align: center;
  letter-spacing: 0.0136em;
  text-transform: uppercase;
  margin: 24px 0 0;
}

.spiral-icon {
  vertical-align: middle;
  margin: 0 8px;
  position: relative;
  top: -1px;
}

/* Hero */
.hero {
  margin: 40px auto 0;
  position: relative;
}

.hero .frame-inner {
  overflow: hidden;
  position: relative;
}

.hero video,
.hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: cover;
}

/* Intro */
.intro {
  max-width: 760px;
  margin: 72px auto;
  text-align: center;
  font-size: 22px;
  line-height: 1.5;
  padding: 0 24px;
}

.intro + .intro-care {
  margin-top: -40px;
}

.intro-care {
  font-weight: 700;
  color: var(--purple);
  letter-spacing: 0.02em;
}

/* Featured work */
.section-heading {
  text-align: justify;
  text-align-last: justify;
  font-size: clamp(28px, 8.7vw, 122px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 300;
  margin: 0 0 40px;
}

@media (max-width: 600px) {
  .section-heading {
    text-align: center;
    text-align-last: center;
    font-size: clamp(24px, 10vw, 40px);
  }
}

.work-stack {
  display: flex;
  flex-direction: column;
  gap: 45px;
  margin-bottom: 100px;
}

.work-row {
  display: flex;
  align-items: center;
  gap: 0;
}

/* Alternate sides: odd rows show media on the right, caption on the left --
   matches the staggered checkerboard on the original site */
.work-row:nth-child(odd) {
  flex-direction: row-reverse;
}

.work-media {
  position: relative;
  overflow: hidden;
  flex: 0 0 50%;
  aspect-ratio: 16 / 9.6;
  background: #eee;
  display: block;
  padding: 0;
  border: 6px solid var(--green);
  transition: border-color 0.25s ease;
  cursor: var(--cursor-tennis);
  font: inherit;
}

.work-media:hover {
  border-color: var(--work-purple);
}

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

/* Invisible slot matching the opposite column's width, so the compact chip
   inside it always centers on the video column above/below it */
.work-title-slot {
  flex: 0 0 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Solid rectangle caption beside the video, matching the original's purple chip */
.work-title-box {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 24px;
  background: var(--work-purple);
  color: var(--paper);
  font-family: "degular", -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 21px;
  font-weight: 400;
  transition: background-color 0.25s ease;
}

.work-title-box:hover {
  background: var(--green);
}

@media (max-width: 800px) {
  .work-row,
  .work-row:nth-child(odd) {
    flex-direction: column;
  }
  .work-media {
    flex-basis: auto;
    width: 100%;
  }
  .work-title-slot {
    flex-basis: auto;
    width: 100%;
  }
  .nav-links {
    display: none;
  }
  .site-header .frame-inner {
    padding: 20px;
  }
  .intro {
    font-size: 18px;
  }
}

/* Originals */
.originals-note {
  max-width: none;
}

.originals-intro {
  font-family: "degular", -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--purple);
  max-width: none;
  padding: 0;
  margin: 60px 0 60px;
  text-align: justify;
  text-align-last: justify;
  text-transform: uppercase;
  font-size: clamp(18px, 4.54vw, 46.5px);
  line-height: 1.3;
}

.pong-track {
  position: relative;
  width: 100%;
  height: 140px;
  margin: 0 0 60px;
  overflow: hidden;
}

.pong-dot {
  position: absolute;
  left: 0;
  font-family: "degular", -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 200px;
  line-height: 1;
  color: var(--purple);
  animation: pong-bounce-x 2.73s linear infinite alternate,
             pong-bounce-y 2.21s linear infinite alternate;
}

.pong-paddle {
  position: absolute;
  width: 8px;
  height: 48px;
  background: var(--green);
  border-radius: 2px;
  animation: pong-paddle-move 2.21s linear infinite alternate;
}

.pong-paddle-left {
  left: 4px;
  animation-delay: -0.52s;
}

.pong-paddle-right {
  right: 4px;
  animation-delay: -1.105s;
}

@keyframes pong-bounce-x {
  from { left: 0; }
  to { left: calc(100% - 36px); }
}

/* top values keep the glyph's ink center (159.5px below the 200px em-box's
   own top edge, measured from font baseline metrics) traveling between 24px
   and 116px inside the 140px track, matching the paddles' travel band */
@keyframes pong-bounce-y {
  from { top: -135.5px; }
  to { top: -43.5px; }
}

@keyframes pong-paddle-move {
  from { top: 0; }
  to { top: 92px; }
}

.originals-stack {
  display: flex;
  flex-direction: column;
  gap: 64px;
  margin: 60px 0 100px;
}

.originals-row {
  display: flex;
  align-items: center;
  gap: 40px;
}

.originals-media {
  flex: 0 0 50%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 6.9px solid var(--green);
  display: block;
  padding: 0;
  background: none;
  font: inherit;
  cursor: var(--cursor-tennis);
  transition: border-color 0.25s ease;
}

.originals-media:hover {
  border-color: var(--work-purple);
}

.originals-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.originals-info {
  flex: 1;
}

.originals-title {
  font-family: "degular", -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--purple);
  font-size: 26px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 14px;
}

.originals-desc {
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 16px;
}

.originals-credits {
  font-size: 13px;
  color: #777;
  line-height: 1.7;
}

@media (max-width: 800px) {
  .originals-row {
    flex-direction: column;
    align-items: stretch;
  }
  .originals-media {
    flex-basis: auto;
    width: 100%;
  }
}

/* About */
.about-intro {
  font-family: "Cooper Light BT", -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  text-transform: uppercase;
  font-size: 20px;
  line-height: 1.5;
  width: 627px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  text-align: justify;
}

.about-handicam {
  display: block;
  width: 54px;
  height: auto;
  margin: 60px auto 0;
}

.about-services {
  display: flex;
  flex-direction: column;
  width: 338px;
  margin: 60px auto;
  border-top: 1px solid #ddd;
  text-align: center;
}

.service-item {
  padding: 28px 0;
  border-bottom: 1px solid #ddd;
}

.service-title {
  font-family: "degular", -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--purple);
  font-size: 28px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
  transition: color 0.2s ease;
}

.service-title:hover {
  color: var(--green);
}

.service-desc {
  font-family: "degular", -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.25s ease, margin-top 0.3s ease;
}

.service-item.is-open .service-desc {
  max-height: 200px;
  opacity: 1;
  margin-top: 8px;
}

.about-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 60px 0;
}

.about-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1;
  display: block;
}

.contact-block {
  text-align: center;
  margin: 80px auto 100px;
}

.contact-block h2 {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.contact-block a {
  font-size: 22px;
}

.contact-block a:hover {
  color: var(--green);
}

/* Video lightbox */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.video-modal.is-open {
  display: flex;
}

.video-modal-frame {
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
}

.video-modal-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.video-modal-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: var(--paper);
  font-size: 40px;
  line-height: 1;
  cursor: var(--cursor-tennis);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 40px 24px 60px;
  font-size: 13px;
  color: #777;
}

/* Animated custom cursor (progressive enhancement over --cursor-tennis) */
.custom-cursor-enabled,
.custom-cursor-enabled * {
  cursor: none !important;
}

#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
}

#custom-cursor-emoji {
  display: block;
  font-size: 30px;
  line-height: 1;
  transform: translate(-50%, -50%);
}
