/* ============================================================
   CHRIS SEBASTIAN MEDIA
   Design inspired by sunkissedbyheaven.com
   ============================================================ */

/* --- RESET & BASE ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brown:      #271503;
  --brown-deep: #1a0d00;
  --teal:       #e8c84a;
  --teal-light: #f0d97a;
  --tan:        #cec4ba;
  --cream:      #f1f1f1;
  --sage:       #faf9f6;
  --white:      #ffffff;
  --text:       #271503;
  --text-muted: #696a6a;

  --font-mono: 'Bebas Neue', Arial, sans-serif;
  --font-body: 'DM Sans', Arial, sans-serif;

  --container:  1200px;
  --pad:        1.25rem;
  --radius-card: 1.5rem;

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- CONTAINER -------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* --- LABEL ------------------------------------------------ */
.label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: block;
}
.label--light { color: rgba(255,255,255,0.6); }

/* --- BUTTONS ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--brown);
  color: var(--white);
  border: 1.5px solid var(--brown);
  border-radius: 0;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.2s;
}
.btn:hover {
  background: var(--brown-deep);
  transform: translateY(-1px);
}
.btn--outline {
  background: transparent;
  color: var(--brown);
}
.btn--outline:hover {
  background: var(--brown);
  color: var(--white);
}
.btn--light {
  background: var(--white);
  color: var(--brown);
  border-color: var(--white);
}
.btn--light:hover {
  background: var(--cream);
  transform: translateY(-1px);
}

/* --- HEADER / NAV ----------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--cream);
  transform: translateY(0);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.header.hidden { transform: translateY(-100%); }
.header.shadow { box-shadow: 0 2px 20px rgba(39,21,3,0.08); }

.header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brown);
}

.header__nav {
  display: flex;
  gap: 36px;
}
.header__nav a {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}
.header__nav a:hover { color: var(--brown); }

.header__toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.header__toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--brown);
  transition: all 0.3s;
}

.header__mobile {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--cream);
  padding: 1.5rem var(--pad);
  gap: 1.5rem;
}
.header__mobile.open { display: flex; }
.header__mobile-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brown);
}

/* --- HERO ------------------------------------------------- */
.hero {
  position: relative;
  height: 100vh;
  max-height: 42.5rem;
  min-height: 30rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 64px;
  overflow: hidden;
  background: var(--brown-deep);
}

.hero__bg {
  position: absolute;
  inset: 0;
}
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(39,21,3,0.2) 0%,
    rgba(39,21,3,0.55) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--pad);
  animation: fadeUp 0.9s 0.2s var(--ease) both;
}

.hero__title {
  font-family: var(--font-mono);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.hero__sub {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2rem;
  letter-spacing: 0.04em;
}

/* --- SHOWREEL --------------------------------------------- */
/* --- HEADER SOCIAL ICONS ---------------------------------- */
.header__social {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.header__social a {
  color: var(--brown);
  opacity: 0.55;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
}
.header__social a:hover { opacity: 1; }

.showreel {
  background: var(--cream);
  padding: 5rem var(--pad);
  text-align: center;
}

.showreel__inner {
  max-width: 900px;
  margin: 0 auto;
}

.showreel__title {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brown);
  margin-bottom: 2.5rem;
  line-height: 1.15;
}

.showreel__player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(39,21,3,0.15);
}
.showreel__player iframe {
  width: 100%;
  height: 100%;
  display: block;
}
.showreel__player--portrait {
  aspect-ratio: 9 / 16;
  max-width: 400px;
  margin: 0 auto;
}

/* --- SERVICES --------------------------------------------- */
.services {
  background: var(--white);
  padding: 6rem 0;
}

.services__header {
  margin-bottom: 3.5rem;
}

.services__title {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brown);
  line-height: 1.15;
  max-width: 480px;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--tan);
}

.service-item {
  padding: 2rem 2rem 2rem 0;
  border-bottom: 1px solid var(--tan);
  border-right: 1px solid var(--tan);
  transition: background 0.2s;
}
.service-item:nth-child(3n) { border-right: none; }
.service-item:hover { background: var(--sage); }

.service-item__num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--teal);
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 1rem;
}

.service-item__title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brown);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.service-item__body {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.65;
}

.services__cta {
  margin-top: 3rem;
}

/* --- STORY ------------------------------------------------ */
.story {
  background: var(--sage);
  padding: 6rem 0;
}

.story__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}
.story__row:last-child { margin-bottom: 0; }
.story__row--reverse .story__image { order: 2; }
.story__row--reverse .story__text  { order: 1; }

.story__image {
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}
.story__image--placeholder {
  background: var(--tan);
  display: flex;
  align-items: center;
  justify-content: center;
}
.story__image--placeholder span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(39,21,3,0.3);
}

.story__title {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brown);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.story__body {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}
.story__body:last-of-type { margin-bottom: 2rem; }

/* --- WORK ------------------------------------------------- */
.work {
  background: var(--white);
  padding: 6rem 0;
}

.work__header {
  margin-bottom: 3rem;
}

.work__title {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brown);
  line-height: 1.15;
}

.work__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.work-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--cream);
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(39,21,3,0.1);
}

.work-card__image {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}
.work-card__image iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

.work-card__yt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.work-card:hover .work-card__yt-thumb img { transform: scale(1.04); }

.work-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(39,21,3,0.0);
  opacity: 0;
  transition: opacity 0.3s, background 0.3s;
}
.work-card:hover .work-card__play,
.story__image:hover .work-card__play,
a.story__image:hover .work-card__play {
  opacity: 1;
  background: rgba(39,21,3,0.4);
}
.work-card__play svg {
  width: 52px;
  height: 52px;
  color: #fff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}
.work-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.work-card:hover .work-card__image img { transform: scale(1.04); }

.work-card__image--placeholder {
  background: var(--tan);
  display: flex;
  align-items: center;
  justify-content: center;
}
.work-card__image--placeholder span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(39,21,3,0.3);
}

.work-card__info {
  padding: 1.25rem 1.5rem 1.5rem;
}

.work-card__cat {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 0.4rem;
}

.work-card__title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brown);
}

/* --- STATS ------------------------------------------------ */
.stats {
  background: var(--brown);
  padding: 5rem 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat__num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

/* --- CONTACT ---------------------------------------------- */
.contact {
  position: relative;
  padding: 7rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 540px;
  background: var(--brown-deep);
}

.contact__bg {
  position: absolute;
  inset: 0;
}
.contact__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,13,0,0.7);
}

.contact__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 560px;
  width: 100%;
}

.contact__title {
  font-family: var(--font-mono);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.contact__sub {
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  margin-bottom: 2.5rem;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact__input {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  border-radius: 0;
}
.contact__input::placeholder { color: rgba(255,255,255,0.35); }
.contact__input:focus {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.12);
}
.contact__textarea { resize: vertical; min-height: 110px; }

/* --- FOOTER ----------------------------------------------- */
.footer {
  background: var(--brown);
  padding: 3.5rem 0 2rem;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}

.footer__name {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer__tagline {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255,255,255,0.35);
}

.footer__nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__nav a {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}
.footer__nav a:hover { color: var(--white); }

.footer__social {
  display: flex;
  gap: 16px;
}
.footer__social a {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}
.footer__social a:hover { color: var(--white); }

.footer__copy {
  padding-top: 2rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.2);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

/* --- ANIMATIONS ------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* --- RESPONSIVE ------------------------------------------- */
@media (max-width: 992px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .service-item:nth-child(3n) { border-right: 1px solid var(--tan); }
  .service-item:nth-child(2n) { border-right: none; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
}

@media (max-width: 768px) {
  .header__nav { display: none; }
  .header__toggle { display: flex; }

  .hero { max-height: 30rem; }
  .hero__title { font-size: clamp(2rem, 10vw, 3rem); }

  .story__row { grid-template-columns: 1fr; gap: 2rem; }
  .story__row--reverse .story__image { order: 0; }
  .story__row--reverse .story__text  { order: 0; }

  .work__grid { grid-template-columns: 1fr; }

  .stats__grid { grid-template-columns: repeat(2, 1fr); }

  .footer__inner { flex-direction: column; }
  .footer__nav { gap: 16px; }

  .services__grid { grid-template-columns: 1fr; }
  .service-item { border-right: none; }
}

@media (max-width: 480px) {
  :root { --pad: 1rem; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
}
