/* ============================================================
   Tyler Ceja — UGC Portfolio
   Minimal design. Maximum impact.
   ============================================================ */

:root {
  --ivory: #F5F4F0;
  --white: #FFFFFF;
  --sand: #EDEBE4;
  --charcoal: #111111;
  --graphite: #1E1E1C;
  --stone: #6E6E69;
  --border: #DDDCD7;
  --coral: #FF5A36;
  --coral-tint: rgba(255, 90, 54, 0.06);

  --maxw: 1280px;
  --pad: 40px;

  --r-card: 14px;
  --r-media: 16px;
  --r-btn: 10px;

  --shadow: 0 8px 30px rgba(0, 0, 0, 0.05);

  --font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--ivory);
  color: var(--charcoal);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; }

.container { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- Shared type ---------- */
.label {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--stone); margin: 0 0 22px;
}
.label--coral { color: var(--coral); }

.eyebrow {
  font-size: 12.5px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--coral); margin: 0 0 26px;
  display: flex; align-items: center; gap: 8px;
}
.eyebrow .dot { color: var(--stone); }

.section__title {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.0; letter-spacing: -0.03em; font-weight: 600;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; line-height: 1;
  padding: 15px 24px; border-radius: var(--r-btn);
  border: 1px solid transparent; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn span { transition: transform .3s var(--ease); }
.btn:hover span { transform: translateX(3px); }
.btn--dark { background: var(--charcoal); color: var(--white); }
.btn--dark:hover { background: #000; }
.btn--ghost { background: transparent; color: var(--charcoal); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--charcoal); }
.btn--sm { padding: 11px 18px; font-size: 14px; }
.btn--lg { padding: 18px 30px; font-size: 16px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 244, 240, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { height: 78px; display: flex; align-items: center; justify-content: space-between; }
.nav__brand { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a { font-size: 15px; color: var(--stone); transition: color .25s var(--ease); }
.nav__links a:hover { color: var(--charcoal); }
.nav__links a.btn { color: var(--white); }
.nav__links a.btn:hover { color: var(--white); }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; padding: 10px; }
.nav__toggle span { display: block; height: 1.5px; background: var(--charcoal); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav__toggle span + span { margin-top: 6px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 12px var(--pad) 26px; border-bottom: 1px solid var(--border); background: var(--ivory); }
.mobile-menu a { padding: 12px 0; font-size: 18px; font-weight: 500; border-bottom: 1px solid var(--border); }
.mobile-menu a.btn { border: 1px solid transparent; margin-top: 12px; justify-content: center; }

/* ============================================================
   SECTIONS / SPACING
   ============================================================ */
.section { padding: 150px 0; }
.section--tight { padding: 110px 0; }
.section__head { margin-bottom: 64px; }

/* ---------- Surface rhythm (full-bleed background bands) ---------- */
#work { background: var(--graphite); border-top: 1px solid rgba(255,255,255,0.08); border-bottom: 1px solid rgba(255,255,255,0.08); }
#work .section__title { color: var(--white); }
#work .label { color: #a3a29c; }
#work .work-card__meta h3 { color: var(--white); }
#clients { background: var(--sand); }
/* testimonials sit on the ivory body; contact is white */

/* Accent tick before section labels for a touch of character */
.label { position: relative; padding-left: 26px; }
.label::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 16px; height: 2px; background: var(--coral); border-radius: 2px;
}
.results .label--coral::before { background: var(--coral); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 72px;
  align-items: center; padding-top: 96px; padding-bottom: 120px;
}
.hero::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  top: -120px; right: -8%; width: 62%; height: 130%;
  background:
    radial-gradient(60% 55% at 70% 30%, var(--coral-tint) 0%, transparent 70%),
    radial-gradient(70% 60% at 80% 20%, rgba(255, 255, 255, 0.9) 0%, transparent 65%);
  filter: blur(6px);
}
.hero__title { font-size: clamp(44px, 6.4vw, 82px); line-height: 0.98; letter-spacing: -0.035em; }
.hero__copy { max-width: 500px; color: var(--stone); font-size: 18px; margin: 28px 0 28px; }
.hero__text .attrs { margin-bottom: 36px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Portrait / placeholders ---------- */
.portrait {
  margin: 0; border-radius: var(--r-media); border: 1px solid var(--border);
  background:
    radial-gradient(120% 90% at 30% 20%, #ecebe6 0%, transparent 55%),
    linear-gradient(150deg, #e9e7e1 0%, #dcdad3 100%);
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end; justify-content: flex-start;
}
.portrait--hero { aspect-ratio: 4 / 5; }
.portrait--about { aspect-ratio: 4 / 5; }
.portrait__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.ph-tag {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--stone); background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; margin: 16px;
}
.ph-tag--dark { color: #9a9a94; background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.12); }

/* ============================================================
   SELECTED WORK
   ============================================================ */
.work { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; align-items: start; }
.work__row { display: contents; }
.work-card--lg { grid-column: auto; }

.work-card { transition: transform .5s var(--ease); }
.work-card:hover { transform: translateY(-6px); }
.work-card__media {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--r-media);
  border: 1px solid var(--border); overflow: hidden;
  background:
    radial-gradient(130% 80% at 70% 15%, #edece7 0%, transparent 50%),
    linear-gradient(160deg, #e7e5df 0%, #d9d7d0 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.work-card:hover .work-card__media { box-shadow: 0 22px 50px rgba(0, 0, 0, 0.12); }
.work-card__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  background: #d9d7d0;
}
.work-card__media--soon { display: flex; align-items: center; justify-content: center; }
.work-card__media--soon .ph-tag { margin: 0; }

.play {
  position: absolute; inset: 0; margin: auto; width: 62px; height: 62px;
  border-radius: 50%; border: 0; cursor: pointer; z-index: 2;
  background: rgba(17, 17, 17, 0.55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  transition: background .3s var(--ease), transform .3s var(--ease), opacity .3s var(--ease);
}
.play::after {
  content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff;
}
.work-card.playing .play { opacity: 0; pointer-events: none; }
@media (hover: hover) {
  .work-card:hover .play { background: var(--coral); transform: scale(1.06); }
  .work-card.playing:hover .play { opacity: 1; pointer-events: auto; }
  .work-card.playing:hover .play::after { border-color: transparent; }
  .work-card.playing:hover .play::before {
    content: ""; position: absolute; inset: 0; margin: auto; width: 14px; height: 14px;
    border-left: 4px solid #fff; border-right: 4px solid #fff; box-sizing: border-box;
  }
}
/* ---------- Video scrubber ---------- */
.scrub {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 22px 16px 14px; cursor: pointer; touch-action: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.4) 0%, transparent 100%);
  opacity: 0; transition: opacity .3s var(--ease);
}
.work-card__media:hover .scrub,
.work-card.playing .scrub { opacity: 1; }
.scrub:focus-visible { opacity: 1; outline: none; }
.scrub__track {
  position: relative; height: 3px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.35);
}
.scrub__fill {
  position: absolute; left: 0; top: 0; height: 100%; width: 0%;
  background: var(--coral); border-radius: 3px;
}
.scrub__knob {
  position: absolute; top: 50%; left: 0%; width: 12px; height: 12px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  transform: translate(-50%, -50%) scale(0); transform-origin: center;
  transition: transform .2s var(--ease);
}
.work-card__media:hover .scrub__knob,
.scrub:focus-visible .scrub__knob { transform: translate(-50%, -50%) scale(1); }

.work-card__meta { padding: 18px 2px 0; }
.work-card__brand { display: block; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--coral); margin-bottom: 5px; }
.work-card__meta h3 { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; color: var(--charcoal); }

/* ============================================================
   CLIENTS / LOGOS
   ============================================================ */
.logos {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 34px 24px;
  align-items: center;
}
.logos li {
  text-align: center; font-size: clamp(18px, 2vw, 24px); font-weight: 600;
  letter-spacing: -0.02em; color: var(--stone); opacity: 0.7;
  transition: color .3s var(--ease), opacity .3s var(--ease);
}
.logos li:hover { color: var(--charcoal); opacity: 1; }

/* ============================================================
   RESULTS (DARK)
   ============================================================ */
.results { background: var(--charcoal); color: var(--white); border-radius: 0; }
.results .section__title { color: var(--white); }
.results .label--coral { color: var(--coral); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.metric { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 26px; }
.metric__num { display: block; font-size: clamp(46px, 6vw, 76px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.metric__lbl { display: block; margin-top: 12px; font-size: 14px; color: #a2a29c; letter-spacing: 0.01em; }
.results__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 72px; }
.proof-card {
  margin: 0; aspect-ratio: 16 / 10; border-radius: var(--r-card);
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: flex-end;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.quote {
  margin: 0; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-card); padding: 34px 32px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
}
.quote blockquote { margin: 0; font-size: 20px; line-height: 1.4; letter-spacing: -0.015em; font-weight: 500; }
.quote figcaption { display: flex; flex-direction: column; gap: 2px; }
.quote__name { font-size: 14.5px; font-weight: 600; }
.quote__role { font-size: 14px; color: var(--stone); }

/* ============================================================
   ABOUT
   ============================================================ */
.about__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 72px; align-items: center; }
.about__copy { color: var(--stone); font-size: 18px; max-width: 520px; margin: 26px 0 34px; }
.attrs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 28px; }
.attrs li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.attrs svg { width: 20px; height: 20px; fill: none; stroke: var(--coral); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { background: var(--white); border-top: 1px solid var(--border); text-align: center; }
.contact__inner { display: flex; flex-direction: column; align-items: center; }
.contact__title { font-size: clamp(44px, 7vw, 92px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 600; margin: 4px 0 40px; }
.contact__links { display: flex; align-items: center; gap: 16px; margin-top: 30px; color: var(--stone); font-size: 15.5px; }
.contact__links a { transition: color .25s var(--ease); }
.contact__links a:hover { color: var(--coral); }
.contact__links .sep { opacity: 0.5; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--charcoal); color: #a2a29c; padding: 40px 0; }
.footer__inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer__brand { color: var(--white); font-weight: 600; font-size: 16px; }
.footer__links { display: flex; gap: 22px; }
.footer__links a { font-size: 14px; transition: color .25s var(--ease); }
.footer__links a:hover { color: var(--white); }
.footer__tag { margin-left: auto; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.14em; }
.footer__copy { font-size: 14px; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  :root { --pad: 24px; }
  .section { padding: 96px 0; }
  .section--tight { padding: 80px 0; }
  .section__head { margin-bottom: 44px; }

  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .mobile-menu.open { display: flex; }

  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; padding-bottom: 80px; }
  .hero__visual { order: 2; }
  .portrait--hero { aspect-ratio: 16 / 12; }

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

  .logos { grid-template-columns: repeat(3, 1fr); gap: 30px 20px; }

  .metrics { grid-template-columns: 1fr 1fr; gap: 32px; }
  .results__cards { margin-top: 52px; }

  .quotes { grid-template-columns: 1fr; gap: 18px; }

  .about__inner { grid-template-columns: 1fr; gap: 36px; }
  .about__text { order: 2; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .work { grid-template-columns: 1fr; }
  .work-card--lg .work-card__media { aspect-ratio: 9 / 16; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: 1fr; }
  .results__cards { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1 1 auto; justify-content: center; }
  .footer__inner { gap: 14px; }
  .footer__tag { margin-left: 0; width: 100%; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
