/* =========================================================
   Haiqa Siddiqui — portfolio
   Minimal editorial system: off-white, ink, one deep-red accent.
   Headings/nav: Poppins. Body: Helvetica Neue.
   ========================================================= */

:root {
  --bg: #faf8f5;
  --bg-alt: #f2eee8;
  --ink: #141414;
  --muted: #6e6a65;
  --line: #e2ddd6;
  --accent: #7a1c22;          /* deep red */
  --accent-ink: #5e1419;

  --font-head: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;

  --wrap: 1360px;
  --gutter: clamp(16px, 4vw, 48px);
  --space: clamp(64px, 9vw, 128px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; height: auto; }

/* Copy protection: no text selection, no image dragging / iOS long-press save menu */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
img, video { -webkit-user-drag: none; user-drag: none; }
@media print { body { display: none; } }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 300; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 16px; z-index: 100; }
.skip:focus { top: 12px; }

/* ---------- type helpers ---------- */
.eyebrow, .kicker {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}
.kicker { color: var(--accent); margin: 14px 0 6px; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 46ch; margin-top: 20px; }
.text-link {
  font-family: var(--font-head); font-size: 12px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
  transition: color .2s;
}
.text-link:hover { color: var(--accent); }
.arrow { display: inline-block; transition: transform .25s var(--ease); }
a:hover .arrow { transform: translate(2px, -2px); }
.button {
  display: inline-block; font-family: var(--font-head); font-size: 12px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  background: var(--ink); color: var(--bg); padding: 16px 28px; transition: background .2s;
}
.button:hover { background: var(--accent); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 245, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo {
  font-family: var(--font-head); font-weight: 400; font-size: 15px;
  letter-spacing: .24em; text-transform: uppercase; white-space: nowrap;
}
.menu { display: flex; gap: clamp(18px, 2.4vw, 36px); align-items: center; }
.menu > li { position: relative; display: flex; align-items: center; }
.menu > li > a {
  font-family: var(--font-head); font-size: 12px; font-weight: 400;
  letter-spacing: .16em; text-transform: uppercase; padding: 8px 0;
  position: relative;
}
.menu > li > a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.menu > li:hover > a::after, .menu > li.is-active > a::after { transform: scaleX(1); }
.menu > li.is-active > a { color: var(--accent); }

.sub-toggle { width: 18px; height: 18px; margin-left: 4px; position: relative; }
.sub-toggle::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: 6px; height: 6px;
  border-right: 1px solid currentColor; border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .25s;
}
.sub {
  position: absolute; top: 100%; left: -20px; min-width: 230px;
  background: var(--bg); border: 1px solid var(--line);
  padding: 12px 0; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.sub a { display: block; padding: 8px 20px; font-size: 14px; color: var(--muted); transition: color .15s; }
.sub a:hover { color: var(--accent); }
@media (min-width: 961px) {
  .has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.is-open .sub {
    opacity: 1; visibility: visible; transform: none;
  }
  .has-sub:hover .sub-toggle::before { transform: translateY(1px) rotate(225deg); }
}
.menu-toggle { display: none; }

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  /* backdrop-filter would trap the fixed menu panel inside the header */
  .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
  .menu-toggle {
    display: block; font-family: var(--font-head); font-size: 12px; letter-spacing: .16em;
    text-transform: uppercase; padding: 10px 0; position: relative; z-index: 2;
  }
  .menu-toggle-close { display: none; }
  .nav-open .menu-toggle-label { display: none; }
  .nav-open .menu-toggle-close { display: inline; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--bg);
    padding: 24px var(--gutter) 48px; overflow-y: auto;
    opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
  .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .menu > li > a { font-size: 22px; letter-spacing: .04em; text-transform: none; font-weight: 300; padding: 18px 0; flex: 1; }
  .menu > li > a::after { display: none; }
  .sub-toggle { width: 44px; height: 44px; }
  .sub-toggle[aria-expanded="true"]::before { transform: translateY(1px) rotate(225deg); }
  .sub {
    position: static; opacity: 1; visibility: visible; transform: none; border: 0;
    background: none; width: 100%; padding: 0 0 16px; display: none; min-width: 0;
  }
  .has-sub.is-open .sub { display: block; }
  .sub a { padding: 8px 0; font-size: 16px; }
}

/* ---------- page head ---------- */
.page-head { padding-top: clamp(48px, 8vw, 112px); padding-bottom: clamp(32px, 5vw, 64px); }
.page-head h1 { font-size: clamp(40px, 7vw, 96px); }

/* ---------- hero / filmstrip ---------- */
.hero { padding-top: clamp(32px, 5vw, 64px); }
.hero-text { margin-bottom: clamp(24px, 3.5vw, 44px); }
.hero-statement {
  font-family: var(--font-head); font-weight: 300; font-size: clamp(24px, 3vw, 40px);
  line-height: 1.2; letter-spacing: -0.01em; max-width: 22ch; margin: 0;
}
/* Filmstrip — moved by main.js (auto-glide, wheel/trackpad, page scroll, drag/swipe).
   Spacing is padding (not gap) so the duplicated set loops at exactly half width with no jump.
   Without JS, or with reduced motion (.is-static), it is a plain swipeable row. */
.strip { overflow-x: auto; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip.is-live { overflow: hidden; touch-action: pan-y; cursor: grab; }
.strip.is-dragging { cursor: grabbing; }
.strip-track { display: flex; width: max-content; will-change: transform; }
.strip-track li { flex: none; height: clamp(360px, 62vh, 640px); padding-right: 12px; }
.strip-track img { height: 100%; width: auto; object-fit: cover; pointer-events: none; }

/* ---------- home blocks ---------- */
.intro { padding-top: var(--space); padding-bottom: calc(var(--space) * .6); }
.intro-text { font-family: var(--font-head); font-weight: 300; font-size: clamp(24px, 3.2vw, 42px); line-height: 1.3; max-width: 26ch; margin-bottom: 28px; }
.pubs { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 40px; }
.pubs .eyebrow { margin: 0; }
.pub-list { display: flex; flex-wrap: wrap; gap: 10px 36px; }
.pub-list a { font-family: var(--font-head); font-size: clamp(16px, 1.6vw, 20px); font-weight: 300; transition: color .2s; }
.pub-list a:hover { color: var(--accent); }

.section { padding-top: calc(var(--space) * .7); padding-bottom: calc(var(--space) * .3); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(26px, 3vw, 40px); }
.count { font-size: 13px; color: var(--muted); font-family: var(--font-body); letter-spacing: .02em; margin-left: 8px; vertical-align: middle; }

/* ---------- grids ---------- */
.grid { display: grid; gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px); }
.cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.tiles { grid-template-columns: repeat(4, 1fr); }
.tiles-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiles, .tiles-2 { grid-template-columns: 1fr; } .cards { grid-template-columns: 1fr 1fr; gap: 28px 12px; } }

.card-media, .tile-media { overflow: hidden; background: var(--bg-alt); aspect-ratio: 4 / 5; }
.tile-wide .tile-media { aspect-ratio: 4 / 3; }
.card-media img, .tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover img, .tile:hover img { transform: scale(1.035); }
.card-title { font-size: clamp(15px, 1.3vw, 18px); font-weight: 400; line-height: 1.35; margin-bottom: 10px; }
.card-cta { font-size: 13px; color: var(--muted); transition: color .2s; }
.card:hover .card-cta { color: var(--accent); }
@media (max-width: 560px) { .card-title { font-size: 15px; } .card-cta { font-size: 12px; } }
.tile h3 { font-size: clamp(18px, 1.6vw, 22px); margin-top: 14px; font-weight: 400; }
.tile:hover h3 { color: var(--accent); }
.img-missing { width: 100%; height: 100%; background: var(--bg-alt); display: grid; place-items: center; padding: 16px; text-align: center; }
.img-missing span { font-family: var(--font-head); font-weight: 300; font-size: clamp(20px, 2.2vw, 30px); color: var(--muted); }

/* ---------- services ---------- */
.service-list { border-top: 1px solid var(--line); counter-reset: s; }
.service-list li { border-bottom: 1px solid var(--line); }
.service-list li > a, .service-list-lg li {
  display: flex; align-items: baseline; gap: 24px; padding: 20px 0;
  font-family: var(--font-head); font-weight: 300; font-size: clamp(20px, 2.2vw, 28px); transition: color .2s, padding .3s var(--ease);
}
.service-list li > a:hover { color: var(--accent); padding-left: 8px; }
.num { font-family: var(--font-body); font-size: 12px; color: var(--accent); letter-spacing: .08em; min-width: 22px; }
.services-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; padding-bottom: calc(var(--space) * .4); }
.service-list-lg li { font-size: clamp(22px, 2.8vw, 36px); padding: 24px 0; }
.services-img { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 800px) { .services-layout { grid-template-columns: 1fr; } .services-img { position: static; } }

/* ---------- prose / split ---------- */
.prose-block { padding-top: calc(var(--space) * .6); padding-bottom: calc(var(--space) * .3); }
.split { display: grid; grid-template-columns: 1fr 2fr; gap: 16px clamp(24px, 5vw, 80px); padding: 28px 0; border-top: 1px solid var(--line); }
.split:first-child { border-top: 0; padding-top: 0; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.prose { max-width: 62ch; color: #2b2926; }
.prose-lg { font-size: clamp(18px, 1.7vw, 22px); line-height: 1.55; }
.prose-offset { margin-left: calc(33.33% + 8px); }
@media (max-width: 760px) { .prose-offset { margin-left: 0; } }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-list li { border: 1px solid var(--line); padding: 8px 14px; font-size: 14px; border-radius: 999px; }
.link-list li { margin-bottom: 8px; }
.link-list a { border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color .2s, color .2s; }
.link-list a:hover { color: var(--accent); border-color: var(--accent); }
.link-list-lg { margin-top: 40px; font-size: 20px; }

/* ---------- brand pages ---------- */
.brand-hero { width: 100%; height: min(86vh, 900px); overflow: hidden; background: var(--bg-alt); }
.brand-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 24px); padding-top: calc(var(--space) * .4); }
.pair img { width: 100%; height: 100%; object-fit: cover; }
.pair .zoom:only-child { grid-column: 1 / -1; }
.masonry { columns: 3 260px; column-gap: clamp(12px, 2vw, 24px); padding-top: calc(var(--space) * .4); }
.masonry > * { break-inside: avoid; margin-bottom: clamp(12px, 2vw, 24px); }
.coming-soon {
  aspect-ratio: 16 / 7; background: var(--bg-alt); display: grid; place-items: center;
  border: 1px solid var(--line);
}
.coming-soon .eyebrow { margin: 0; }
.brand-link-img { display: block; position: relative; margin-top: calc(var(--space) * .4); overflow: hidden; }
.brand-link-img img { width: 100%; max-height: 80vh; object-fit: cover; transition: transform .8s var(--ease); }
.brand-link-img:hover img { transform: scale(1.02); }
.brand-link-img > span {
  position: absolute; left: 24px; bottom: 24px; background: var(--bg); padding: 12px 18px;
  font-family: var(--font-head); font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
}
.brand-link-img:hover span { color: var(--accent); }

.pager { padding-top: var(--space); padding-bottom: calc(var(--space) * .6); }
.pager a { display: block; border-top: 1px solid var(--line); padding-top: 28px; font-family: var(--font-head); font-weight: 300; font-size: clamp(28px, 4.5vw, 60px); transition: color .2s; }
.pager a:hover { color: var(--accent); }
.pager .eyebrow { display: block; }

/* ---------- print features ---------- */
.pub-lead { max-width: 560px; margin-bottom: calc(var(--space) * .5); }
.pub-lead figcaption, figure figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; }
.features { display: grid; gap: var(--space); padding-bottom: calc(var(--space) * .3); }
.feature { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px clamp(24px, 5vw, 80px); align-items: center; border-top: 1px solid var(--line); padding-top: calc(var(--space) * .5); }
.feature:first-child { border-top: 0; padding-top: 0; }
.feature-lead { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px; }
.feature-lead img { width: 100%; max-height: 78vh; object-fit: cover; }
.feature-lead .zoom + .zoom img, .feature-lead .zoom:has(+ .zoom) img { aspect-ratio: 3 / 4; }
@media (min-width: 761px) { .feature:has(.zoom + .zoom) { grid-template-columns: 1.7fr 1fr; } }
.feature-text h2 { font-size: clamp(30px, 4vw, 54px); margin-bottom: 18px; }
.feature-text p { color: #2b2926; font-size: clamp(17px, 1.5vw, 20px); max-width: 44ch; margin-bottom: 24px; }
.feature-text .kicker { font-size: 11px; margin: 0 0 14px; }
.feature-pages { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; align-items: start; }
.feature-pages img { width: 100%; border: 1px solid var(--line); transition: opacity .2s; }
.feature-pages a:hover img { opacity: .85; }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; } }

/* ---------- experiences ---------- */
.media-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: clamp(12px, 2vw, 24px); }
.media-row img, .media-row video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--bg-alt); }
@media (max-width: 560px) { .media-row { grid-template-columns: 1fr 1fr; } }

/* ---------- about / contact ---------- */
.about { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 96px); align-items: start; padding-bottom: var(--space); }
.about-img img { width: 100%; }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; } .about-img { max-width: 480px; } }
.contact { padding-top: clamp(64px, 12vw, 160px); padding-bottom: var(--space); }
.contact h1 { font-size: clamp(48px, 9vw, 128px); }
.contact-email {
  display: inline-block; margin-top: 48px; font-family: var(--font-head); font-weight: 300;
  font-size: clamp(22px, 4vw, 52px); border-bottom: 1px solid var(--ink); padding-bottom: 6px;
  word-break: break-all; transition: color .2s, border-color .2s;
}
.contact-email:hover { color: var(--accent); border-color: var(--accent); }
.contact .button { margin-top: 32px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--bg); padding: clamp(56px, 8vw, 104px) 0 32px; margin-top: calc(var(--space) * .5); }
.site-footer .eyebrow { color: #a19b94; }
.footer-email {
  font-family: var(--font-head); font-weight: 300; font-size: clamp(22px, 4.4vw, 60px);
  display: inline-block; word-break: break-all; transition: color .2s;
}
.footer-email:hover { color: #d9a5a9; }
.site-footer-slim { padding-top: 0; }
.site-footer-slim .footer-row { margin-top: 0; border-top: 0; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; margin-top: clamp(48px, 7vw, 96px); padding-top: 24px; border-top: 1px solid #3a3836; font-size: 13px; color: #a19b94; }
.social { display: flex; gap: 28px; }
.social a, .to-top { color: var(--bg); }
.social a:hover, .to-top:hover { color: #d9a5a9; }
.copyright { margin: 0; }

/* ---------- lightbox ---------- */
.zoom { display: block; cursor: zoom-in; overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(15, 14, 13, .95);
  display: flex; align-items: center; justify-content: center; padding: 56px 16px;
  opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox button {
  position: absolute; color: #f2eee8; font-family: var(--font-head); font-size: 12px;
  letter-spacing: .16em; text-transform: uppercase; padding: 14px;
}
.lb-close { top: 8px; right: 8px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 28px !important; letter-spacing: 0 !important; }
.lb-prev { left: 4px; } .lb-next { right: 4px; }
.lb-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #a19b94; font-size: 12px; letter-spacing: .1em; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
