/* ───────────────────────────────────────────────────────────
   Husani Barnwell — Portfolio redesign
   Same skeleton, class names, and hover mechanics as the
   original husanibarnwell.com. Original palette:
   red #A90606 / white, project pages white / black.
   Type: Helvetica (400) / Helvetica Bold (700) / Helvetica Black (900).
   ─────────────────────────────────────────────────────────── */

:root {
  --red: #A90606;
  --red-deep: #7e0404;
  --white: #ffffff;
  --white-dim: rgba(255, 255, 255, 0.72);
  --black: #000000;
  --black-dim: rgba(0, 0, 0, 0.65);
  --helv: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
div { vertical-align: top; }

body {
  margin: 0;
  padding: 0 0 200px 0;
  color: var(--white);
  background: var(--red);
  font-family: var(--helv);
  -webkit-font-smoothing: antialiased;
}

/* subtle film grain */
body::after {
  content: '';
  position: fixed; inset: -100%;
  pointer-events: none; z-index: 60;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.035;
}

/* project pages flip to white, as the original did */
body.project-page {
  background: var(--white);
  color: var(--black);
}

ul, li {
  list-style: none;
  margin: 0; padding: 0;
  line-height: 24px;
  letter-spacing: .5px;
}

a { color: var(--white); text-decoration: none; transition: color .25s; }
a:hover { color: var(--black); }

.project-page a { color: var(--black); }
.project-page a:hover {
  text-decoration: line-through;
  color: var(--red);
}

a.active {
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}

.wrapper {
  width: 100%;
  padding-left: clamp(120px, 14vw, 200px);
  padding-top: 48px;
  padding-right: 24px;
}

/* ── nav ─────────────────────────────── */
.nav {
  font-size: 14px;
  font-weight: 700;
  margin: 0 30px 0 0;
  position: fixed;
  top: 40px; left: 40px;
  z-index: 70;
  letter-spacing: .5px;
}
.nav li { line-height: 26px; }
.logo {
  width: 86px;
  position: relative;
  top: 12px;
  margin-right: 9px;
  padding-bottom: 20px;
  transition: transform .35s cubic-bezier(.22,1,.36,1);
}
.logo:hover { transform: rotate(-6deg) scale(1.06); }

/* hamburger — hidden on desktop, injected by gfx.js */
.nav-toggle { display: none; }

p { line-height: 1.8; letter-spacing: .5px; }

/* ── portfolio index list ─────────────── */
.content {
  width: 75%;
  font-size: 16px;
  padding-right: 40px;
  display: inline-block;
  font-weight: 700;
  letter-spacing: .5px;
}

.content > p:first-child {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin-bottom: 42px;
}

.leadin {
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 900;
  line-height: 1.2;
  position: relative;
  top: -45px;
}

/* campaign line items — same hover-reveal mechanic as the original */
.leadin2 {
  font-weight: 900;
  font-size: clamp(36px, 4.6vw, 62px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  position: relative;
  top: -10px;
  margin: 0 0 26px 0;
  transition: color .35s, transform .35s cubic-bezier(.22,1,.36,1);
}
a:hover .leadin2, .leadin2:hover {
  color: var(--black);
  transform: translateX(10px);
}

.leadin2 .smalltxt {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--white-dim);
  margin: 6px 0 0 2px;
  max-width: 840px;
  transition: color .35s;
}
a:hover .leadin2 .smalltxt { color: var(--white); }

/* the rollover thumbnail: identical mechanics, 750ms fade */
.leadin2 img {
  width: 65%;
  position: absolute;
  top: 0; left: 50%;
  z-index: -1;
  opacity: 0;
  transform: scale(1.03);
  transition: all 750ms;
  pointer-events: none;
  box-shadow: 0 40px 120px rgba(0,0,0,.45);
}
.leadin2:hover img, a:hover .leadin2 img {
  opacity: 1;
  transform: scale(1);
}

/* original vertical nudges for tall thumbnails */
.bump-up  { top: -400px !important; }
.bump-up2 { top: -200px !important; }
.bump-up3 { top: -600px !important; }

/* ── project pages ────────────────────── */
.descriptiontext {
  font-size: clamp(32px, 3.8vw, 46px);
  font-weight: 900;
  line-height: 1.1;
  margin-top: -2px;
}
.descriptiontext b { font-weight: 900; }

.smalltxt {
  font-size: 18px;
  margin-right: 150px;
  letter-spacing: .3px;
  max-width: 840px;
  line-height: 1.7;
}
.smalltxt b { font-weight: 700; }
.project-page .smalltxt { color: var(--black-dim); }
.project-page .smalltxt b { color: var(--black); }

.listhead {
  font-weight: 700;
  padding-bottom: 16px;
  letter-spacing: 1px;
}

p.nomargin { margin-top: 0; }

.sidebar {
  width: 25%;
  padding: 0 40px 0 20px;
  display: inline-block;
  border-left: 2px solid var(--white);
  font-size: 15px;
}
.project-page .sidebar { border-left-color: var(--black); }

.spacer { padding-top: 60px; }
ul { margin-bottom: 32px; }

.photos img,
.cingularphotos img,
.tonicphotos img,
.datavizphotos img {
  width: 92%;
  margin-top: 20px;
}
.cingularphotos img { border: 1px solid #000000; }
.tonicphotos img { border: 1px solid #e4e4e4; }
.datavizphotos img { border: 1px solid #c4c5c5; }

.dubaifalcon { width: 100%; }
.nbcsmallimage img { padding-top: 20px; width: 40%; }
.megaprint img { width: 43%; margin-right: 20px; padding-bottom: 20px; display: inline-block; }
.mmsbillboards img { width: 87%; margin-top: 20px; }
.video div, .mmsvideo, .fordvideo { width: 92%; }

/* ── slideshow (replaces slick) ───────── */
.slideshow { position: relative; width: 92%; margin-top: 20px; }
.slideshow img { width: 100%; margin-top: 0; display: none; }
.slideshow img.on { display: block; }
.slideshow .ss-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.92); color: var(--black);
  border: 1px solid rgba(0,0,0,.25);
  font-family: var(--helv); font-size: 18px; line-height: 1;
  width: 44px; height: 44px; border-radius: 50%;
  cursor: pointer; z-index: 5;
  transition: background .25s, color .25s;
}
.slideshow .ss-btn:hover { background: var(--red); color: var(--white); }
.slideshow .ss-prev { left: 12px; }
.slideshow .ss-next { right: 12px; }

/* ── footer ───────────────────────────── */
.footer {
  text-align: center;
  padding-top: 57px;
  padding-right: 80px;
}
.footer ul, .footer li { list-style: none; margin: 0; padding: 0; padding-right: 40px; }
.footer li {
  display: inline-block;
  margin: 10px;
  font-size: 14px;
  font-weight: 700;
}

.site-footer {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--white-dim);
  padding: 60px 0 0 clamp(120px, 14vw, 200px);
}
.project-page .site-footer { color: var(--black-dim); }

.voyrpresslogos { padding: 0 40px 40px 0; }
.voyrpresslogoswrapper img { width: 250px; }
.bermudaphotos img { width: 46%; float: left; padding-right: 20px; padding-bottom: 80px; }

/* ── responsive (same breakpoints as original) ── */
@media screen and (max-width: 1150px) {
  .content { width: 100%; }
  .sidebar {
    border: none;
    border-top: 2px solid var(--white);
    padding: 20px 0 0 0;
    margin-top: 40px;
    width: calc(100% - 40px);
  }
  .project-page .sidebar { border-top-color: var(--black); }
  .footer { text-align: center; padding: 57px 5px 0 15px; }
  .sidebar ul { display: inline-block; vertical-align: top; padding-right: 20px; width: 32%; }
  .listhead { padding-top: 20px; }
  .spacer { padding-top: 35px; }
  .smalltxt { font-size: 16px; margin-right: 50px; }
  .dubaifalcon img { width: 35%; }
}

@media screen and (max-width: 700px) {
  .wrapper { padding-left: 24px; padding-top: 96px; }

  /* fixed top bar: logo left, hamburger right */
  .nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    margin: 0;
    padding: 12px 20px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--red);
    box-shadow: 0 6px 24px rgba(0,0,0,.18);
  }
  .project-page .nav { background: var(--white); }
  .logo { width: 58px; top: 0; margin: 0; padding-bottom: 0; display: block; }

  /* menu hidden behind the hamburger */
  .nav ul {
    display: none;
    position: fixed;
    top: 78px; left: 0; right: 0; bottom: 0;
    margin: 0;
    padding: 28px 24px;
    background: var(--red);
  }
  .project-page .nav ul { background: var(--white); }
  .nav.open ul { display: block; }
  .nav li { display: block; margin: 0; }
  .nav li a {
    display: block;
    padding: 14px 0;
    font-size: 26px;
    font-weight: 900;
    border-bottom: 1px solid rgba(255,255,255,.22);
  }
  .project-page .nav li a { border-bottom-color: rgba(0,0,0,.15); }
  body.nav-locked { overflow: hidden; }

  /* hamburger button */
  .nav-toggle {
    display: block;
    background: none;
    border: 0;
    padding: 10px 4px;
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    width: 26px; height: 3px;
    margin: 5px 0;
    background: var(--white);
    transition: transform .3s, opacity .3s;
  }
  .project-page .nav-toggle span { background: var(--black); }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .sidebar { margin-left: 0; width: 100%; }
  .sidebar ul { display: block; width: 100%; }
  .leadin { font-size: 22px; line-height: 1.4; top: 0; }
  .leadin2 { font-size: 32px; }
  .leadin2 img { width: 90%; left: 5%; }
  .descriptiontext { line-height: 1.2; margin-top: 13px; }
  .photos, .cingularphotos, .tonicphotos, .datavizphotos, .bermudaphotos, .video, .fordvideo { padding-left: 0; }
  .dubaifalcon img { width: 90%; }
  .nbcsmallimage img { width: 92.5%; }
  .megaprint img { width: 44%; margin-right: 1px; display: inline-block; }
  .mmsbillboards img { width: 87%; margin-top: 20px; }
  .mmsvideo div, .fordvideo div { padding: 75% 0 0 120% !important; }
  .smalltxt { font-size: 15px; margin-right: 0; }
  .footer { padding: 40px 10px 0; }
  .site-footer { padding-left: 24px; }
  .bump-up { top: -100px !important; }
  .bump-up2 { top: -200px !important; }
  .bump-up3 { top: -600px !important; }
}
