/* ============================================
   UMMI SALMA — PORTFOLIO
   Custom design layer on top of Bootstrap 5.
   Bootstrap handles grid/layout scaffolding;
   this file handles color, type, and component detail.
   ============================================ */

:root {
  --bg: #2a2822;
  --bg-deep: #211f1b;
  --bg-card: #34322b;
  --border: #46433a;
  --text: #f1ede4;
  --text-muted: #a39c8d;
  --accent: #b7a6e8;       /* light lavender — hover states only */
  --accent-deep: #8f79d4;  /* deeper lavender — hover states only */
  --tag-bg: #6a4fc4;       /* eyebrow rectangle fill — the ONLY place lavender fills a background */
  --tag-text: #f4f0ff;     /* text sitting on the eyebrow rectangle */
  --accent-on: #211f1b;

  --font-display: "General Sans", sans-serif;
  --font-body: "Newsreader", serif;

  --wrap: 1220px;
}

[data-theme="light"] {
  --bg: #f4f1ea;
  --bg-deep: #ebe6db;
  --bg-card: #ffffff;
  --border: #ddd6c6;
  --text: #221f1a;
  --text-muted: #6b6558;
  --accent: #6f52c7;
  --accent-deep: #5a3fae;
  --tag-bg: #6a4fc4;
  --tag-text: #f4f0ff;
  --accent-on: #f4f1ea;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s ease, color .35s ease;
  position: relative;
}

/* subtle grain texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .9;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

::selection {
  background: var(--accent);
  color: var(--accent-on);
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 1;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--text);
}

p { margin: 0; }

/* ---------- EYEBROWS ----------
   Rule: lavender is ONLY used as the fill behind a boxed eyebrow tag.
   Plain, unboxed labels (hero eyebrow, "The Record") stay light/muted text. */

.eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--accent);
  margin: 0 0 18px;
}

.eyebrow-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--tag-text);
  background: var(--tag-bg);
  padding: 6px 12px;
  border-radius: 3px;
  margin: 0 0 22px;
}

/* ---------- HEADER ---------- */
 
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
 
.header-inner { height: 78px; }
 
.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.logo:hover {
  color: #b7a6e8;
}
 
.main-nav { gap: 36px; }
 
.main-nav a {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--text);
  transition: color .2s ease;
}
 
.main-nav a:hover { color: var(--accent); }
 
.header-controls { gap: 18px; }
 
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease;
  font-size: 15px;
}
 
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
 
.icon-sun, .icon-moon { display: inline-block !important; }
.icon-moon { display: none !important; }
[data-theme="light"] .icon-sun { display: none !important; }
[data-theme="light"] .icon-moon { display: inline-block !important; }
 
.menu-toggle {
  background: none;
  border: none;
  color: var(--text);
  font-size: 18px;
  width: 32px;
  height: 32px;
  cursor: pointer;
}
 
/* mobile nav, toggled open via JS */
@media (max-width: 991.98px) {
  .main-nav {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 8px 22px 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .main-nav.open {
    display: flex !important;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
}

/* ---------- HERO ---------- */

.hero { padding: 84px 40px 64px; }

.hero-text h1 {
  font-size: clamp(40px, 5.6vw, 74px);
  line-height: 1.06;
  max-width: 16ch;
}

.hero-photo img {
  width: 100%;
  max-width: 340px;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  border: 1px solid var(--border);
}

.scroll-cue {
  margin-top: 56px;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- SECTIONS (shared) ---------- */

.section {
  padding: 96px 40px;
  border-top: 1px solid var(--border);
}

.section-head { margin-bottom: 48px; }

.section-head h2 {
  font-size: clamp(44px, 5.4vw, 70px);
  line-height: 1.02;
}

/* ---------- WHAT I DO ---------- */

.what-i-do-left .eyebrow-tag { margin-bottom: 20px; }

.what-i-do-heading { font-size: clamp(40px, 4.6vw, 60px); }

/* paragraph's top lines up with the heading's top, not the eyebrow above it */
.section-lede {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--text);
  max-width: 52ch;
  margin-top: 1px;
  font-style: italic;
}

@media (max-width: 991.98px) {
  .section-lede { margin-top: 0; }
}

/* paragraph's top lines up with the heading's top, not the eyebrow above it */
.section-lede2 {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.55;
  color: var(--text);
  max-width: 52ch;
  margin-top: 1px;
}

@media (max-width: 991.98px) {
  .section-lede2 { margin-top: 0; }
}

/* ---------- THE RECORD ---------- */
 
.record-section { padding-top: 72px; padding-bottom: 96px; }
 
.record-grid { border: 1px solid var(--border); }
 
.record-item {
  padding: 34px 28px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
 
.record-num {
  display: block;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}
 
.record-item p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
  max-width: 24ch;
}
 
@media (min-width: 768px) {
  .record-item:nth-child(4n) { border-right: none; }
  .record-item:nth-child(n+5) { border-bottom: none; }
}
 
/* single stacked column on mobile: no right border, only the last item drops its bottom border */
@media (max-width: 767.98px) {
  .record-item { border-right: none; }
  .record-item:nth-child(4) { border-bottom: none; }
}

/* ---------- BRANDS & ORGANISATIONS ---------- */
 
.brands-section { padding: 0 40px 96px; }
 
.brands-strip {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 56px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
 
.brands-strip::-webkit-scrollbar { display: none; }
 
.brands-strip a {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  opacity: .75;
  transition: opacity .2s ease;
}
 
.brands-strip a:hover { opacity: 1; }
 
.brands-strip img {
  height: 38px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.6);
}
 
[data-theme="light"] .brands-strip img { filter: grayscale(1) brightness(0.4); }
 
.swipe-hint {
  margin-top: 26px;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--text-muted);
}
 
@media (max-width: 767.98px) {
  .brands-section { padding: 0 22px 64px; }
}
 
/* ---------- FEATURED PROJECTS / CASE STUDIES ---------- */
 
.case-list { border-top: 1px solid var(--border); }
 
.case-row {
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  transition: opacity .2s ease;
}
 
.case-row:hover { opacity: .82; }

.case-row2 {
  padding: 30px 0;
  color: var(--text);
  transition: opacity .2s ease;
}
 
.case-row2:hover { opacity: .82; }
 
.case-num {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text-muted);
}
 
.case-category {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
}
 
.case-desc {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-muted);
}
 
.case-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  /*border: 1px solid var(--border);*/
}
 
.case-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
 
.view-all-link {
  display: inline-block;
  margin-top: 40px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--text-muted);
  padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}
 
.view-all-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}


/* ---------- FEATURED PROJECTS / CASE STUDIES ---------- */

.case-list { border-top: 1px solid var(--border); }

.case-row {
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  transition: opacity .2s ease;
}

.case-row:hover { opacity: .82; }

.case-num {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text-muted);
}

.case-category {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
}

.case-desc {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-muted);
}

.case-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.case-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.case-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.view-all-link {
  display: inline-block;
  margin-top: 40px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--text-muted);
  padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}

.view-all-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------- TESTIMONIALS ---------- */

.testimonial-grid { border: 1px solid var(--border); }

.testimonial-card {
  margin: 0;
  padding: 38px 40px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}

@media (min-width: 768px) {
  .testimonial-card:nth-child(2n) { border-right: none; }
  .testimonial-card:nth-child(n+3) { border-bottom: none; }
}

@media (max-width: 767.98px) {
  .testimonial-card { border-right: none; }
  .testimonial-card:last-child { border-bottom: none; }
}

.testimonial-card p {
  font-family: var(--font-body);
  /*font-style: italic;*/
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
}

.testimonial-card footer {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.t-name {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.t-role {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- LET'S COLLABORATE ---------- */

.collaborate-section {
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.collaborate-inner { padding: 100px 40px; gap: 40px; }

.collaborate-inner h2 { font-size: clamp(38px, 5vw, 64px); }

.btn-primary {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  background: var(--accent);
  color: var(--accent-on);
  padding: 18px 34px;
  border-radius: 100px;
  white-space: nowrap;
  transition: background-color .2s ease, transform .2s ease;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
  color: var(--accent-on);
}

.collaborate-inner a:hover {
  background-color: #8f79d4;
}

/* ---------- FOOTER ---------- */

.site-footer { background: var(--bg-deep); }

.footer-inner { padding: 64px 40px 48px; }

.footer-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 10px;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 30ch;
  margin-bottom: 20px;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 13px;
  font-family: var(--font-display);
}

.footer-label {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text);
  padding: 4px 0;
  transition: color .2s ease;
}

.footer-col a:hover { color: var(--accent); }




/* ---------- CONTACT HERO ---------- */
 
.contact-hero {
  padding-bottom: 26px;
}
 
.contact-eyebrow { margin-bottom: 14px; }
 
.contact-heading {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: clamp(56px, 10vw, 128px);
  line-height: .95;
  color: var(--text);
  margin: 0 0 28px;
}

.about-heading {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  font-size: clamp(56px, 10vw, 128px);
  line-height: .95;
  color: var(--text);
  margin: 0 0 28px;
}
 
.contact-lede { max-width: 46ch; }
 
/* ---------- CONTACT DETAILS ---------- */
 
.contact-details { padding-top: 0; border-top: none; }
 
.contact-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 56px;
}
 
.contact-col-label {
  text-transform: uppercase;
  margin-bottom: 22px;
}
 
.contact-note {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 26ch;
  margin-bottom: 18px;
}
 
.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 3px;
  transition: color .2s ease, border-color .2s ease;
  word-break: break-word;
}
 
.contact-email:hover {
  color: var(--accent);
  border-color: var(--accent);
}
 
.contact-service { margin-bottom: 20px; }
 
.contact-service:last-child { margin-bottom: 0; }
 
.contact-service h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 4px;
}
 
.contact-service p {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}
 
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
 
.contact-links a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  color: var(--text);
  padding: 6px 0;
  transition: color .2s ease;
  width: fit-content;
}
 
.contact-links a:hover { color: var(--accent); }
 
/* current-page indicator in the nav (Contact link) */
.main-nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}
 
/* ---------- CONTACT RESPONSIVE ---------- */
 
@media (max-width: 767.98px) {
  .contact-heading { font-size: clamp(48px, 16vw, 72px); }
  .contact-divider { margin-bottom: 40px; }
}





/* ============================================
   ABOUT PAGE
   ============================================ */
 
.journey-section { padding-top: 64px; }

.journey-section-alt { padding-top: 0; border-top: none; }

.journey-copy .eyebrow-tag { margin-bottom: 20px; }

.journey-copy h2 {
  font-size: clamp(32px, 3.6vw, 48px);
  line-height: 1.12;
  margin-bottom: 28px;
}

.journey-copy p {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 20px;
}

.journey-copy p:last-child { margin-bottom: 0; }

.journey-subhead {
  font-size: 20px;
  font-weight: 600;
  margin: 36px 0 14px;
}

.journey-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  /*filter: grayscale(1) contrast(1.05);*/
  border: 1px solid var(--border);
}

.journey-copy .eyebrow-tag {
  margin-bottom: 20px;
  color: var(--tag-text);
}

@media (max-width: 767.98px) {
  .journey-section-alt { padding-top: 44px; }
}
 
/* ---------- A FEW FAVOURITES ---------- */
 
.favourites-lede {
  font-family: var(--font-body);
  font-size: 19px;
  color: var(--text-muted);
  max-width: 60ch;
  margin-top: -8px;
  margin-bottom: 8px;
}
 
.fav-subsection { margin-top: 100px; }
 
.fav-subsection:first-of-type { margin-top: 40px; }
 
.fav-sub-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 28px;
}
 
.fav-sub-title {
  font-size: 22px;
  font-weight: 600;
}
 
.fav-sub-copy {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-muted);
  text-align: left;
}
 
.fav-gallery {
  display: flex;
  gap: 65px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}
 
.fav-gallery::-webkit-scrollbar { display: none; }
 
.fav-card {
  flex: 0 0 auto;
  width: 150px;
  text-decoration: none;
  color: var(--text);
}
 
.fav-card-thumb {
  width: 200px; /*or 150x230px*/
  height: 296px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 22px;
  margin-bottom: 10px;
  transition: border-color .2s ease;
}

.fav-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
 
.fav-card:hover .fav-card-thumb { border-color: var(--accent); }
 
.fav-card-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 2px;
}
 
.fav-card-author {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--text-muted);
}
 
/* ---------- MEMORIES GALLERY ---------- */
 
.memories-gallery {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}
 
.memories-gallery::-webkit-scrollbar { display: none; }
 
.memory-card {
  flex: 0 0 auto;
  width: 350px;
  aspect-ratio: 4 / 5;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 13px;
}

.memory-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.memory-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.05);
  transition: filter .3s ease;
}

.memory-card:hover img {
  filter: none;
}
 
@media (max-width: 767.98px) {
  .fav-sub-row { grid-template-columns: 1fr; gap: 16px; }
  .journey-section { padding-top: 44px; }
}
 
/* focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.accent-text {
  color: var(--accent);
}





/* ---------- RESPONSIVE ---------- */

@media (max-width: 767.98px) {
  .wrap { padding: 0 22px; }
  .section { padding: 64px 22px; }
  .hero { padding: 56px 22px 44px; }
  .collaborate-inner { padding: 64px 22px; }
  .footer-inner { padding: 48px 22px 32px; }
  .hero-photo { justify-content: flex-start !important; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}





/* ============================================
   PORTFOLIO PAGE
   ============================================ */
 
.portfolio-hero { padding: 84px 40px 40px; }
 
.portfolio-hero h1 {
  font-size: clamp(56px, 9vw, 120px);
  line-height: .95;
  margin: 8px 0 24px;
}
 
.portfolio-subline {
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--text-muted);
  max-width: 50ch;
}
 
/* sticky category pill sub-nav */
.portfolio-subnav {
  position: sticky;
  top: 78px;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
 
.portfolio-pills {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 16px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
 
.portfolio-pills::-webkit-scrollbar { display: none; }
 
.portfolio-pill {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 9px 18px;
  transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
 
.portfolio-pill:hover { color: var(--text); border-color: var(--text-muted); }
 
.portfolio-pill.active {
  color: var(--tag-text);
  background: var(--tag-bg);
  border-color: var(--tag-bg);
}
 
/* project grid */
.portfolio-grid {
  --bs-gutter-x: 28px;
  --bs-gutter-y: 36px;
}
 
.portfolio-card { display: block; color: var(--text); }
 
.portfolio-thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  margin-bottom: 16px;
}
 
.portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.portfolio-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.portfolio-thumb2 {
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  margin-bottom: 16px;
}

.portfolio-thumb2 video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.portfolio-card:hover .portfolio-thumb img { transform: scale(1.04); }
 
.portfolio-card-category {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
 
.portfolio-card-title {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 8px;
}
 
.portfolio-card-desc {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-muted);
}
 
/* placeholder / "coming soon" cards are non-interactive, dimmed slightly */
.portfolio-card.is-placeholder {
  cursor: default;
  opacity: .6;
}
 
.portfolio-card.is-placeholder:hover .portfolio-thumb img { transform: none; }
 
@media (max-width: 767.98px) {
  .portfolio-subnav { top: 78px; }
}
 
/* ---------- ABOUT HERO (self-contained, independent of the Contact page) ---------- */
 
.about-hero { padding: 84px 40px 40px; }
 
.about-hero h1 {
  font-size: clamp(56px, 9vw, 120px);
  line-height: .95;
  margin: 8px 0 24px;
}
 
.about-subline {
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--text-muted);
  max-width: 50ch;
}
 





/* ============================================
   CASE STUDY PAGES
   ============================================ */
 
/* top utility bar: index link / category + counter / next link */
.case-topbar {
  border-bottom: 1px solid var(--border);
}
 
.case-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}
 
.case-topbar a {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color .2s ease;
}
 
.case-topbar a:hover { color: var(--accent); }
 
.case-topbar-meta {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text-muted);
  white-space: nowrap;
}
 
.case-topbar .short-label { display: none; }
 
@media (max-width: 575.98px) {
  .case-topbar .full-label { display: none; }
  .case-topbar .short-label { display: inline; }
  .case-topbar-meta { font-size: 11px; }
}
 
/* hero */
.case-hero { padding-top: 56px; padding-bottom: 40px; }
 
.case-hero-category {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--accent);
  margin-bottom: 14px;
}
 
.case-hero h1 {
  font-size: clamp(44px, 6.5vw, 84px);
  line-height: 1;
  margin-bottom: 20px;
}
 
.case-hero-dek {
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--text-muted);
  max-width: 60ch;
}
 
/* role / scope / tools row */
.case-meta-row {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px 24px;
}
 
.case-meta-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--text-muted);
}
 
.case-meta-value {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
}
 
/* hero image, constrained to the content column, never full-bleed */
.case-hero-image {
  margin-top: 40px;
  border: 1px solid var(--border);
  overflow: hidden;
}
 
.case-hero-image img {
  width: 100%;
  height: auto;
  display: block;
}
 
/* body copy sections */
.case-section-body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  max-width: 72ch;
}
 
.case-section-body p { margin-bottom: 22px; }
.case-section-body p:last-child { margin-bottom: 0; }
 
.case-section-body ol,
.case-section-body ul {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  max-width: 72ch;
  padding-left: 22px;
  margin-bottom: 22px;
}
 
.case-section-body li { margin-bottom: 8px; }
 
.case-subhead {
  font-size: 20px;
  font-weight: 600;
  margin: 40px 0 16px;
}
 
.case-subhead:first-child { margin-top: 0; }
 
/* inline image blocks within the process section */
.case-image-block {
  margin: 36px 0;
  border: 1px solid var(--border);
  overflow: hidden;
}
 
.case-image-block img {
  width: 100%;
  height: auto;
  display: block;
}

.case-image-block video {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
}
 
.case-image-caption {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
}
 
.case-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 36px 0;
}
 
.case-image-grid .case-image-block { margin: 0; }
 
/* inspiration credit links */
.case-inspiration-list {
  margin: 22px 0;
  padding-left: 0;
  list-style: none;
}
 
.case-inspiration-list li {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text-muted);
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
 
.case-inspiration-list li:last-child { border-bottom: 1px solid var(--border); }
 
.case-inspiration-list a {
  color: var(--text);
  border-bottom: 1px solid var(--text-muted);
  transition: color .2s ease, border-color .2s ease;
}
 
.case-inspiration-list a:hover {
  color: var(--accent);
  border-color: var(--accent);
}
 
/* bottom nav: back to portfolio / next case study */
.case-bottom-nav {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
 
.case-bottom-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  transition: color .2s ease;
}
 
.case-bottom-nav a:hover { color: var(--accent); }
 
.case-back-link {
  font-size: 14px;
  color: var(--text-muted);
}
 
.case-next-link {
  text-align: right;
  color: var(--text);
}
 
.case-next-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
 
.case-next-title { font-size: 22px; }
 
@media (max-width: 767.98px) {
  .case-hero { padding-top: 40px; padding-bottom: 28px; }
  .case-meta-row { grid-template-columns: 1fr; gap: 16px; }
  .case-image-grid { grid-template-columns: 1fr; }
}
 

 
.fav-portfolio-gallery {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}
 
.fav-portfolio-gallery::-webkit-scrollbar { display: none; }
 
.fav-portfolio-card {
  flex: 0 0 auto;
  width: 300px;
  text-decoration: none;
  color: var(--text);
}
 
.fav-card-portfolio-thumb {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 22px;
  margin-bottom: 10px;
  transition: border-color .2s ease;
}

.fav-card-portfolio-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 1400px) {
  .fav-portfolio-card {
    width: 340px;
  }
}



/* Cap tall 9:16 media (portrait video/photo case studies) so it doesn't dominate the viewport on larger screens */
.portrait-media {
  max-width: 380px;
  margin-left: 0;
  margin-right: auto;
}
 
@media (max-width: 700px) {
  .portrait-media {
    max-width: 100%;
  }
}


/* Video-left / text-right layout for short passion-project video pages, roomier than the standard two-up image grid */
.case-image-block2 {
  border: 1px solid var(--border);
  overflow: hidden;
}
 
.case-image-block2 img {
  width: 100%;
  height: auto;
  display: block;
}

.case-image-block2 video {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
}



.case-media-text-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: top;
}
 
@media (max-width: 700px) {
  .case-media-text-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
 
/* Drop a section's own top divider when it directly follows a hero whose meta row already provides one */
.section.no-top-divider {
  border-top: none;
  padding-top: 48px;
}



/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background-color: black;
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
  padding: 20px;
}

.scroll-top i {
  font-size: 16px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: #6A4FC4;
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}
/* 9:16 gallery thumb variant, for portrait-format galleries like AI character consistency sets */
.fav-card-portfolio-thumb.ratio-9-16 {
  aspect-ratio: 9 / 16;
}
