/* ==========================================================================
   Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, p, ul, li, figure { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

:root{
  --side-pad: 40px;
  --bg: #0B0B0C;
  --fg: #ededed;
  --dim: rgba(237,237,237,.5);
  --faint: rgba(237,237,237,.35);
  --line: rgba(237,237,237,.14);
  --accent: #35d07f;
  --ease: cubic-bezier(.16,1,.3,1);
}

@media screen and (max-width: 991px){ :root{ --side-pad: 28px; } }
@media screen and (max-width: 767px){ :root{ --side-pad: 20px; } }
@media screen and (max-width: 479px){ :root{ --side-pad: 16px; } }

html{ font-size: 16px; -webkit-text-size-adjust: 100%; background: var(--bg); }

body{
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: clamp(15px, .9vw + 12px, 19px);
  line-height: 1.35;
  color: var(--fg);
  background: var(--bg);
  margin: 32px var(--side-pad);
}

@media screen and (max-width: 479px){
  body{ margin: 20px var(--side-pad); }
}

.page{ width: 100%; }

/* ==========================================================================
   Motion primitives
   ========================================================================== */
[data-animate]{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-animate].is-visible{ opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce){
  [data-animate]{ opacity: 1; transform: none; transition: none; }
  *{ animation: none !important; transition: none !important; }
}

.link-underline{ position: relative; display: inline-block; }
.link-underline::after{
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.link-underline:hover::after{ transform: scaleX(1); transform-origin: left; }

/* ==========================================================================
   Top bar : name (left) / email (center) / availability + phone (right)
   ========================================================================== */
.topbar{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding-bottom: 32px;
  position: relative;
  z-index: 5;
}
.tb-name{
  justify-self: start;
  font-size: clamp(18px, 1.2vw + 13px, 24px);
  font-weight: 700;
  letter-spacing: -.01em;
}
.tb-email{ justify-self: center; font-weight: 500; color: var(--fg); }
.tb-right{
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
  font-size: .85em;
}
.tb-status{ color: var(--fg); font-weight: 500; }
.tb-phone{ color: var(--dim); }

/* topbar overlaid on the hero video */
.topbar--hero{
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: clamp(20px, 3vw, 32px) clamp(20px, 3vw, 40px);
  z-index: 4;
}

@media screen and (max-width: 767px){
  .topbar{
    grid-template-columns: 1fr;
    justify-items: start;
    row-gap: 10px;
  }
  .tb-email{ justify-self: start; }
  .tb-right{ align-items: flex-start; text-align: left; }
}

/* ==========================================================================
   Hero : full-width looping video header
   ========================================================================== */
.hero{
  position: relative;
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  height: min(88vh, 900px);
  min-height: 420px;
  overflow: hidden;
  background: #101013;
}
.hero-media{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
/* fallback shown until a real <source> is added to the video */
.hero-fallback{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
  background:
    radial-gradient(120% 120% at 50% 0%, #1c1c22 0%, #0b0b0c 70%);
  color: var(--faint);
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-fallback span{ animation: breathe 4s var(--ease) infinite; }
@keyframes breathe{ 0%,100%{ opacity:.35 } 50%{ opacity:.7 } }

/* subtle scrim so the overlaid top bar stays legible */
.hero::before{
  content:"";
  position: absolute;
  inset: 0 0 auto 0;
  height: 180px;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(0,0,0,.5), rgba(0,0,0,0));
  pointer-events: none;
}

.scroll-cue{
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 3vw, 36px);
  transform: translateX(-50%);
  z-index: 3;
  color: var(--dim);
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  animation: nudge 2.4s var(--ease) infinite;
}
@keyframes nudge{ 0%,100%{ transform: translate(-50%,0) } 50%{ transform: translate(-50%,6px) } }

/* ==========================================================================
   Shared column headings / lists
   ========================================================================== */
.col-heading{
  font-weight: 600;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .78em;
  margin-bottom: 12px;
}
.nav-list li{ margin-bottom: 8px; }
.nav-list--plain li{ color: var(--dim); }
.nav-list--plain li:has(a){ color: inherit; }

/* ==========================================================================
   Work list : hover reveals a per-project background video
   ========================================================================== */
.work{
  position: relative;
  margin: 0 calc(var(--side-pad) * -1);
  padding: clamp(56px, 8vw, 120px) var(--side-pad) clamp(40px, 6vw, 80px);
  overflow: hidden;
}

/* background layer that holds one media panel per project */
.work-bg{
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.work-bg-item{
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.work-bg-item.is-active{ opacity: 1; }
.work-bg-item video,
.work-bg-item .bg-fallback{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work-bg-item .bg-fallback{
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(237,237,237,.25);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
/* distinct placeholder tint per project so the hover is visible pre-video */
.work-bg-item:nth-child(1) .bg-fallback{ background: linear-gradient(135deg,#241f2e,#12121a); }
.work-bg-item:nth-child(2) .bg-fallback{ background: linear-gradient(135deg,#1f2a2e,#101619); }
.work-bg-item:nth-child(3) .bg-fallback{ background: linear-gradient(135deg,#2e2620,#191411); }
.work-bg-item:nth-child(4) .bg-fallback{ background: linear-gradient(135deg,#202a24,#0f1512); }
.work-bg-item:nth-child(5) .bg-fallback{ background: linear-gradient(135deg,#2a2030,#15101a); }
.work-bg-item:nth-child(6) .bg-fallback{ background: linear-gradient(135deg,#202230,#101119); }
/* dark scrim over whichever panel is active, to keep titles readable */
.work-bg-item.is-active::after{
  content:"";
  position:absolute; inset:0;
  background: rgba(11,11,12,.55);
}

.work-list{
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
}

.work-item{
  position: relative;
  border-bottom: 1px solid var(--line);
}

.work-link{
  display: flex;
  align-items: baseline;
  gap: clamp(12px, 2vw, 28px);
  padding: clamp(28px, 4vw, 56px) 0;
  transition: transform .45s var(--ease), color .35s var(--ease);
  color: var(--dim);
}
.work-item:hover .work-link{ color: var(--fg); }

.work-title{
  font-weight: 700;
  font-size: clamp(2rem, 5.2vw, 4.6rem);
  line-height: 1;
  letter-spacing: -.01em;
  transition: transform .45s var(--ease);
}
.work-item:hover .work-title{ transform: translateX(14px); }

.work-tag{
  margin-left: auto;
  font-size: .85rem;
  font-weight: 500;
  color: var(--faint);
  flex: none;
  display: none;
}
@media screen and (min-width: 480px){ .work-tag{ display: block; } }

/* ==========================================================================
   Info columns
   ========================================================================== */
.info{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  padding: clamp(48px, 7vw, 96px) 0 0;
  max-width: 46rem;
}
@media screen and (max-width: 479px){
  .info{ grid-template-columns: 1fr; row-gap: 32px; }
}

/* ==========================================================================
   About : text + square portrait image
   ========================================================================== */
.about{
  display: grid;
  grid-template-columns: 1fr minmax(0, 320px);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
  padding: clamp(56px, 8vw, 120px) 0 clamp(40px, 6vw, 80px);
}
.about-text{ max-width: 40rem; }
.about-heading{
  font-weight: 700;
  font-size: clamp(2rem, 3.4vw, 3rem);
  margin-bottom: 24px;
}
.about-body p{ margin-bottom: 16px; color: var(--fg); }
.about-body p:last-child{ margin-bottom: 0; }

.about-photo{
  aspect-ratio: 1 / 1;
  width: 100%;
}
@media screen and (max-width: 767px){
  .about{ grid-template-columns: 1fr; }
  .about-photo{ max-width: 320px; order: -1; }
}

/* ==========================================================================
   Placeholders (dark)
   ========================================================================== */
.placeholder{
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #17171a, #232327);
  border: 1px solid var(--line);
  color: var(--faint);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.placeholder--hero{ aspect-ratio: 16 / 8; }
.placeholder--wide{ aspect-ratio: 16 / 9; }
.placeholder--square{ aspect-ratio: 1 / 1; }
.placeholder--tall{ aspect-ratio: 4 / 5; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer{
  padding: clamp(32px, 5vw, 64px) 0 24px;
  border-top: 1px solid var(--line);
}
.footer-email{
  display: block;
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 32px;
}
.footer-row{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  color: var(--dim);
  font-size: .9rem;
}
.social-list{ display: flex; gap: 20px; }
.footer-meta{ margin-left: auto; }
@media screen and (max-width: 479px){ .footer-meta{ margin-left: 0; } }

/* ==========================================================================
   Case study pages
   ========================================================================== */
.case-back{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--dim);
}
.case-back:hover{ color: var(--fg); }

.case-hero{ margin: clamp(32px, 5vw, 64px) 0 clamp(20px, 3vw, 36px); }
.case-title{
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}
.case-lede{
  font-size: clamp(1.1rem, 1.4vw + .6rem, 1.6rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--fg);
  max-width: 34ch;
}

.case-meta{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: clamp(28px, 4vw, 48px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(32px, 5vw, 64px);
}
@media screen and (max-width: 767px){ .case-meta{ grid-template-columns: repeat(2, 1fr); row-gap: 28px; } }
@media screen and (max-width: 479px){ .case-meta{ grid-template-columns: 1fr; } }
.case-meta dt{
  font-size: .78em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--dim);
  margin-bottom: 6px;
}
.case-meta dd{ font-weight: 500; }

.media{ margin: 0 calc(var(--side-pad) * -1) clamp(20px, 3vw, 40px); }
.media--inset{ margin-left: 0; margin-right: 0; }

.media-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 2vw, 24px);
  margin: 0 0 clamp(20px, 3vw, 40px);
}
@media screen and (max-width: 479px){ .media-row{ grid-template-columns: 1fr; } }

.embed{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 clamp(20px, 3vw, 40px);
  background: #17171a;
  border-radius: 2px;
  overflow: hidden;
}
.embed iframe,
.embed .placeholder{ position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.case-body{ max-width: 40rem; margin: clamp(28px, 4vw, 56px) 0; }
.case-body h2{ font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 700; margin: 0 0 16px; }
.case-body p{ margin-bottom: 16px; }
.case-body p:last-child{ margin-bottom: 0; }

.media-caption{ font-size: .85rem; color: var(--dim); margin: -12px 0 clamp(24px, 4vw, 48px); }
