/* =============================================
   FRANCIS LIN — PORTFOLIO
   Warm cream · Burnt orange · Chrome details
   Bebas Neue display · DM Sans body
   ============================================= */

:root {
  --cream:       #FAF8F5;
  --cream-2:     #F3F0EB;
  --cream-3:     #EAE6DF;
  --ink:         #1A1814;
  --ink-soft:    #4A4640;
  --ink-muted:   #8A8480;
  --orange:      #D4622A;
  --orange-dark: #B85020;
  --chrome-1:    #E8E6E3;
  --chrome-2:    #C8C4BE;
  --chrome-3:    #A8A49E;

  --font-display: 'Bebas Neue', sans-serif;
  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --max-w: 1200px;
  --pad: 64px;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'60'%20height%3D'104'%3E%3Cpath%20d%3D'M30%2068L0%2050V16L30%200l30%2016v34L30%2068zm0-2.6L57.4%2049.3V17.7L30%202.6%202.6%2017.7v31.6L30%2065.4z'%20fill%3D'%23000'%20fill-opacity%3D'0.04'%2F%3E%3Cpath%20d%3D'M30%20104L0%2086V52l30-16%2030%2016v34L30%20104zm0-2.6L57.4%2085.3V53.7L30%2038.6%202.6%2053.7v31.6L30%20101.4z'%20fill%3D'%23000'%20fill-opacity%3D'0.04'%2F%3E%3C%2Fsvg%3E");
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ============ NAV ============ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px var(--pad);
  transition: all 0.4s ease;
}
#nav.scrolled {
  background: rgba(250, 248, 245, 0.94);
  backdrop-filter: blur(16px);
  padding: 18px var(--pad);
  border-bottom: 1px solid var(--chrome-1);
  box-shadow: 0 1px 0 var(--chrome-2);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  color: var(--ink);
  transition: color 0.2s;
}
.nav-logo:hover { color: var(--orange); }
.nav-links {
  display: flex;
  gap: 48px;
}
.nav-links a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--orange);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; }

/* ============ MOBILE MENU ============ */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'60'%20height%3D'104'%3E%3Cpath%20d%3D'M30%2068L0%2050V16L30%200l30%2016v34L30%2068zm0-2.6L57.4%2049.3V17.7L30%202.6%202.6%2017.7v31.6L30%2065.4z'%20fill%3D'%23000'%20fill-opacity%3D'0.04'%2F%3E%3Cpath%20d%3D'M30%20104L0%2086V52l30-16%2030%2016v34L30%20104zm0-2.6L57.4%2085.3V53.7L30%2038.6%202.6%2053.7v31.6L30%20101.4z'%20fill%3D'%23000'%20fill-opacity%3D'0.04'%2F%3E%3C%2Fsvg%3E");
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
}
.mobile-menu.open { display: flex; }
.mobile-link {
  font-family: var(--font-display);
  font-size: 4rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  transition: color 0.2s;
}
.mobile-link:hover { color: var(--orange); }

/* ============ BUTTONS ============ */
.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: background 0.25s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.08) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.btn-primary:hover { background: var(--orange); transform: translateY(-1px); }
.btn-primary:hover::after { transform: translateX(100%); }

.btn-ghost {
  display: inline-block;
  padding: 13px 36px;
  border: 1px solid var(--chrome-2);
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.25s;
}
.btn-ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* ============ LABEL ============ */
.label {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

/* ============ HERO ============ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--pad) 80px;
  position: relative;
}
.hero-text {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding-top: 160px;
}
.hero-eyebrow {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.9s 0.1s forwards;
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(5rem, 13vw, 11rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.9s 0.25s forwards;
}
.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-weight: 300;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 420px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeUp 0.9s 0.4s forwards;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s 0.55s forwards;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 48px;
  right: var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeIn 1s 1.2s forwards;
}
.hero-scroll-hint span {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--orange), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ============ HERO IMAGE ============ */
.hero-image-wrap {
  width: 100%;
  height: 85vh;
  overflow: hidden;
  position: relative;
}
.hero-image-inner {
  width: 100%;
  height: 120%;
  position: relative;
  top: 0;
  will-change: transform;
}
.hero-image-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: contrast(1.04) saturate(0.95);
}
.hero-image-caption {
  position: absolute;
  bottom: 20px;
  right: 24px;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250,248,245,0.7);
  background: rgba(26,24,20,0.4);
  padding: 6px 12px;
  backdrop-filter: blur(4px);
}

/* ============ WORK SECTION ============ */
.work-section {
  padding: 120px var(--pad);
  max-width: calc(var(--max-w) + var(--pad) * 2);
  margin: 0 auto;
}
.section-intro {
  margin-bottom: 80px;
}
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.section-heading em {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.85em;
  color: var(--orange);
  letter-spacing: 0;
}

/* ============ CASE STUDY ============ */
.case-study {
  margin-bottom: 100px;
  border-top: 1px solid var(--chrome-2);
  padding-top: 64px;
}
.case-study-header {
  margin-bottom: 48px;
}
.case-study-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-top: 16px;
}
.case-study-title-row h3 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
}
.case-study-sub {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: right;
  line-height: 1.8;
  flex-shrink: 0;
}

/* FEATURE IMAGE */
.case-feature-image {
  width: 100%;
  aspect-ratio: 16/7;
  overflow: hidden;
  position: relative;
  margin-bottom: 56px;
}
.case-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transition: transform 0.6s ease;
}
.case-feature-image:hover img { transform: scale(1.02); }
.case-feature-label {
  position: absolute;
  bottom: 16px;
  left: 20px;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250,248,245,0.8);
  background: rgba(26,24,20,0.5);
  padding: 5px 10px;
  backdrop-filter: blur(4px);
}

/* CASE BODY */
.case-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-bottom: 56px;
  align-items: start;
}
.case-desc p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 16px;
}
.case-highlights {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.case-highlights li {
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}
.case-highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 1px;
  background: var(--orange);
}
.case-highlights li strong { color: var(--ink); font-weight: 500; }

/* BRANDS */
.case-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  grid-column: 1 / -1;
}
.case-brands span {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border: 1px solid var(--chrome-2);
  padding: 5px 14px;
  background: var(--cream-2);
  transition: all 0.2s;
}
.case-brands span:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* IMAGE GRID */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 4px;
  margin-bottom: 32px;
}
.case-grid-item {
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--cream-3);
  position: relative;
}
.case-grid-item.large {
  grid-column: span 2;
  aspect-ratio: 16/9;
}
.grid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: contrast(1.02);
}
.case-grid-item:hover .grid-img {
  transform: scale(1.04);
}

/* Chrome sheen on hover */
.case-grid-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(232,230,227,0.15) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}
.case-grid-item:hover::after { transform: translateX(100%); }

/* VIDEO PLACEHOLDER */
.video-embed-placeholder {
  border: 1px dashed var(--chrome-2);
  background: var(--cream-2);
  margin-top: 24px;
}
.video-placeholder-inner {
  padding: 48px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.play-icon {
  font-size: 2rem;
  color: var(--orange);
  opacity: 0.6;
}
.video-placeholder-inner p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
}
.placeholder-hint {
  font-size: 0.72rem !important;
  color: var(--ink-muted) !important;
}

/* ============ ADDITIONAL WORK ============ */
.additional-work {
  margin-top: 80px;
  padding-top: 64px;
  border-top: 1px solid var(--chrome-2);
}
.work-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 32px;
}
.work-card {
  background: var(--cream-2);
  overflow: hidden;
  transition: transform 0.3s ease;
}
.work-card:hover { transform: translateY(-4px); }
.work-card-img {
  height: 200px;
  position: relative;
  overflow: hidden;
}
.work-card-img-label {
  position: absolute;
  bottom: 12px;
  right: 14px;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250,248,245,0.5);
}
.work-card-body {
  padding: 28px 28px 36px;
}
.work-card-tag {
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.work-card h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
  color: var(--ink);
}
.work-card p {
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.7;
}
.work-card p strong { color: var(--ink); font-weight: 500; }

/* ============ ABOUT ============ */
.about-section {
  background: var(--cream-2);
  padding: 120px var(--pad);
  border-top: 1px solid var(--chrome-2);
}
.about-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}
.about-image-wrap {
  position: sticky;
  top: 100px;
}
.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: contrast(1.04) saturate(0.9);
}
.about-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--cream-3);
  border: 1px dashed var(--chrome-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--ink-muted);
  text-align: center;
  padding: 32px;
}
.about-photo-placeholder span {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--chrome-2);
  letter-spacing: 0.1em;
}
.about-photo-placeholder p {
  font-size: 0.78rem;
  line-height: 1.8;
}
.about-photo-placeholder code {
  color: var(--orange);
  font-size: 0.72rem;
}
.about-heading {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
  margin-top: 8px;
}
.about-heading em {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9em;
  color: var(--orange);
  letter-spacing: 0;
}
.about-text p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.85;
  margin-bottom: 18px;
}

/* STATS */
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 40px 0;
  border-top: 1px solid var(--chrome-2);
  border-left: 1px solid var(--chrome-2);
}
.stat {
  padding: 20px 20px;
  border-right: 1px solid var(--chrome-2);
  border-bottom: 1px solid var(--chrome-2);
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  letter-spacing: 0.04em;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--ink-muted);
  line-height: 1.4;
}

/* SKILLS */
.about-skills {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
  padding: 24px;
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'60'%20height%3D'104'%3E%3Cpath%20d%3D'M30%2068L0%2050V16L30%200l30%2016v34L30%2068zm0-2.6L57.4%2049.3V17.7L30%202.6%202.6%2017.7v31.6L30%2065.4z'%20fill%3D'%23000'%20fill-opacity%3D'0.04'%2F%3E%3Cpath%20d%3D'M30%20104L0%2086V52l30-16%2030%2016v34L30%20104zm0-2.6L57.4%2085.3V53.7L30%2038.6%202.6%2053.7v31.6L30%20101.4z'%20fill%3D'%23000'%20fill-opacity%3D'0.04'%2F%3E%3C%2Fsvg%3E");
  border: 1px solid var(--chrome-2);
}
.skill-group {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
  font-size: 0.8rem;
  line-height: 1.6;
}
.skill-label {
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.05em;
  font-size: 0.72rem;
  text-transform: uppercase;
  padding-top: 2px;
}
.skill-group span:last-child {
  color: var(--ink-soft);
}
.about-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============ CONTACT ============ */
.contact-section {
  padding: 120px var(--pad);
  border-top: 1px solid var(--chrome-2);
}
.contact-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: 0.03em;
  margin-bottom: 24px;
  color: var(--ink);
}
.contact-desc {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.8;
  margin-bottom: 48px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.contact-email {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 36px;
  transition: color 0.2s;
  position: relative;
  display: inline-block;
}
.contact-email::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--orange);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.contact-email:hover { color: var(--orange); }
.contact-email:hover::after { transform: scaleX(1); }
.contact-socials {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 16px;
}
.contact-socials a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 0.2s;
}
.contact-socials a:hover { color: var(--orange); }

/* ============ FOOTER ============ */
.footer {
  padding: 28px var(--pad);
  border-top: 1px solid var(--chrome-2);
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  background: var(--cream-2);
}

/* ============ REVEAL ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============ KEYFRAMES ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.1); }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  :root { --pad: 32px; }
  .case-body { grid-template-columns: 1fr; gap: 32px; }
  .case-grid { grid-template-columns: 1fr 1fr; }
  .case-grid-item.large { grid-column: span 2; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-image-wrap { position: static; max-width: 280px; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .work-cards { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --pad: 20px; }
  .hero { padding-bottom: 60px; }
  .nav-links { display: none; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
  }
  .nav-toggle span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--ink);
    transition: transform 0.3s;
  }
  .case-study-title-row { flex-direction: column; align-items: flex-start; }
  .case-study-sub { text-align: left; }
  .case-grid { grid-template-columns: 1fr; }
  .case-grid-item.large { grid-column: span 1; }
  .about-stats { grid-template-columns: 1fr; }
  .hero-scroll-hint { display: none; }
  .work-cards { grid-template-columns: 1fr; }
  .footer { flex-direction: column; gap: 8px; text-align: center; }
}

/* ============ HERO IMAGE UNBLUR EFFECT ============ */
#heroImg {
  filter: blur(12px) scale(1.05) contrast(1.02);
  transition: filter 1s ease, transform 1s ease;
}
#heroImg.unblurred {
  filter: blur(0px) scale(1) contrast(1.02) saturate(0.95);
}

/* ============ HERO NAME SCROLL ANIMATION ============ */
.hero-name {
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.hero-name.hidden {
  opacity: 0;
  transform: translateY(-20px);
}
.hero-name.visible-again {
  opacity: 1;
  transform: translateY(0);
}

/* ============ SLIDE FROM RIGHT ============ */
.slide-from-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.slide-from-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============ SCROLL PAST BUTTON ============ */
.case-feature-image {
  position: relative;
}
.scroll-past-btn {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(26, 24, 20, 0.7);
  backdrop-filter: blur(8px);
  color: var(--cream);
  border: 1px solid rgba(250, 248, 245, 0.2);
  padding: 10px 20px;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
}
.scroll-past-btn:hover {
  background: rgba(212, 98, 42, 0.8);
  border-color: var(--orange);
  color: var(--cream);
}
.scroll-past-btn svg {
  animation: bounceDown 1.5s ease-in-out infinite;
}
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ============ VIDEO ROW (two side by side) ============ */
.video-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
@media (max-width: 700px) {
  .video-row { grid-template-columns: 1fr; }
}

/* ============ SLIDESHOW IN WORK CARDS ============ */
.work-card-slideshow {
  position: relative;
  overflow: hidden;
}
.slideshow-track {
  width: 100%;
  height: 100%;
  position: relative;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.slide.active { opacity: 1; }
.slide-prev, .slide-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(26,24,20,0.5);
  border: none;
  color: var(--cream);
  font-size: 1.4rem;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
}
.slide-prev:hover, .slide-next:hover { background: rgba(212,98,42,0.7); }
.slide-prev { left: 8px; }
.slide-next { right: 8px; }

/* ============ LIGHTBOX ============ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 24, 20, 0.95);
  z-index: 200;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}
.lightbox.open {
  display: flex;
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 201;
}
.lightbox-close:hover { opacity: 1; color: var(--orange); }
.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
}

/* ============ ORANGE SECTION HEADING ============ */
.section-heading.orange {
  color: var(--orange);
}

/* ============ CENTERED BRAND PILLS ============ */
.case-brands {
  justify-content: center;
  margin-top: 32px;
}

/* ============ VIDEO THUMBNAILS ============ */
.video-thumb-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
}
.video-thumb-link:hover { transform: translateY(-3px); }
.video-thumb-link.inactive { cursor: default; }
.video-thumb-link.inactive:hover { transform: none; }
.video-thumb {
  border: 1px solid var(--chrome-2);
  background: var(--cream-2);
  overflow: hidden;
}
.video-thumb-img {
  height: 180px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(212, 98, 42, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  padding-left: 4px;
  transition: background 0.2s, transform 0.2s;
}
.video-thumb-link:hover .play-circle {
  background: var(--orange);
  transform: scale(1.1);
}
.video-thumb-body {
  padding: 20px 24px 24px;
}
.video-thumb-tag {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}
.video-thumb-body p {
  font-size: 0.85rem;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 10px;
}
.video-thumb-platform {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ============ CARD LINK ============ */
.card-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  text-decoration: none;
  border-bottom: 1px solid var(--border-accent);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.card-link:hover {
  color: var(--orange-dark);
  border-color: var(--orange-dark);
}

/* ============ GRID PLACEHOLDER IMAGES ============ */
.placeholder-img {
  opacity: 0;
}
