/* Beverly Lim ? Editorial Portfolio */

:root {
  --cream: #faf6f0;
  --fuchsia: #e84e8a;
  --rose: #c0547a;
  --navy: #1a1530;
  --navy-soft: #2a2348;
  --ink: #1a1530;
  --muted: rgba(26, 21, 48, 0.62);
  --muted-on-navy: rgba(250, 246, 240, 0.72);
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sub: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-display: "Abril Fatface", Georgia, serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* ?? Checkered border ?? */

.checkered-border {
  height: 12px;
  width: 100%;
  background-color: var(--cream);
  background-image:
    linear-gradient(90deg, var(--fuchsia) 50%, transparent 50%),
    linear-gradient(90deg, var(--fuchsia) 50%, transparent 50%),
    linear-gradient(0deg, var(--fuchsia) 50%, transparent 50%),
    linear-gradient(0deg, var(--fuchsia) 50%, transparent 50%);
  background-size: 14px 14px;
  background-position: 0 0, 7px 7px, 7px 0, 0 7px;
}

/* ?? Nav ?? */

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 1.35rem clamp(1.25rem, 4vw, 3rem) 1rem;
  background: var(--cream);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 3.5vw, 2.75rem);
  list-style: none;
}

.nav-links a {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--fuchsia);
  transition: color 0.25s var(--ease);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--navy);
}

.nav-toggle {
  display: none;
  width: 28px;
  height: 20px;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

/* ?? Hero ?? */

.hero {
  padding: 0 clamp(0.75rem, 2vw, 1.25rem) clamp(1.5rem, 4vw, 2.5rem);
}

.hero-visual {
  position: relative;
  width: 100%;
  margin-inline: auto;
  padding-bottom: clamp(2.25rem, 7.5vw, 4.75rem);
}

.hero-image-wrap {
  position: relative;
  width: min(86%, 960px);
  margin-inline: auto;
  aspect-ratio: 2.35 / 1;
  overflow: visible;
}

.hero-image-clip {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(232, 78, 138, 0.08);
}

.hero-image-clip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center calc(59% + 44px);
  transform: scale(1.2);
  transform-origin: center center;
}

.hero-name {
  --text-overlap: 27%;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, calc(100% - var(--text-overlap)));
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 11vw, 6.5rem);
  font-weight: 400;
  font-style: italic;
  line-height: 0.92;
  letter-spacing: 0.02em;
  color: var(--fuchsia);
  text-shadow: 0 3px 0 rgba(26, 21, 48, 0.12);
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
}

/* ?? Marquee ?? */

.marquee {
  background: var(--navy);
  overflow: hidden;
  padding: 0.85rem 0;
  border-block: 1px solid rgba(250, 246, 240, 0.08);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
  white-space: nowrap;
}

.marquee-item {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
}

.marquee-dot {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--fuchsia);
  flex-shrink: 0;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ?? Section shared ?? */

.section-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.75rem;
}

.section-label--light {
  color: var(--fuchsia);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.section-title em {
  font-style: italic;
  color: var(--fuchsia);
}

.section-title--display {
  font-family: var(--font-body);
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 900;
  font-style: italic;
  color: var(--fuchsia);
  letter-spacing: -0.01em;
  text-transform: lowercase;
}

.section-title--light {
  color: var(--cream);
}

.section-title--light em {
  color: var(--fuchsia);
}

.container {
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

/* ?? Work ?? */

.work {
  position: relative;
  z-index: 1;
  overflow: visible;
  padding-block: clamp(3rem, 6vw, 5rem);
}

.work-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  max-width: 640px;
}

.work-list {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 4rem);
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.work-card {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  max-width: 920px;
}

.work-card--left {
  align-self: flex-start;
}

.work-card--right {
  align-self: flex-end;
  flex-direction: row-reverse;
  margin-top: clamp(1rem, 3vw, 2rem);
  text-align: right;
}

.work-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
  max-width: 36rem;
}

.work-card-circle {
  flex-shrink: 0;
  height: clamp(200px, 28vw, 300px);
  width: clamp(300px, 52vw, 480px);
  overflow: hidden;
  background: rgba(26, 21, 48, 0.04);
  box-shadow:
    0 6px 20px rgba(26, 21, 48, 0.12),
    0 20px 52px rgba(26, 21, 48, 0.2);
}

.work-card--left .work-card-circle {
  margin-left: calc(-1 * clamp(1.25rem, 4vw, 3rem));
  border-radius: 0 999px 999px 0;
}

.work-card--right .work-card-circle {
  margin-right: calc(-1 * clamp(1.25rem, 4vw, 3rem));
  border-radius: 999px 0 0 999px;
}

.work-card-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.work-card:hover .work-card-circle img,
.work-card:focus-within .work-card-circle img {
  transform: scale(1.05);
}

.work-card-desc {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--muted);
}

.work-card-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fuchsia);
}

.work-card-title {
  font-family: var(--font-sub);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 400;
  line-height: 1.25;
  transition: color 0.25s var(--ease);
}

.work-card:hover .work-card-title,
.work-card:focus-within .work-card-title {
  color: var(--fuchsia);
}

.work-card--inactive {
  cursor: default;
}

.work-card--inactive:hover .work-card-circle img,
.work-card--inactive:focus-within .work-card-circle img {
  transform: none;
}

.work-card--inactive:hover .work-card-title,
.work-card--inactive:focus-within .work-card-title {
  color: inherit;
}

/* ?? About ?? */

.about {
  position: relative;
  z-index: 2;
  background: var(--navy);
  color: var(--cream);
  overflow: hidden;
  padding-block: clamp(4.5rem, 9vw, 7rem);
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1.25fr) minmax(220px, 0.95fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.about-portrait {
  width: clamp(300px, 38vw, 440px);
  aspect-ratio: 1;
  margin-left: calc(-1 * clamp(1.25rem, 4vw, 3rem) - clamp(52px, 11vw, 88px));
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
  border: 5px solid var(--fuchsia);
  background-color: #c8b9a8;
  background-image: url('../assets/portrait.jpg');
  background-repeat: no-repeat;
  background-position: calc(50% + 30px) 28%;
  background-size: 88%;
}

.about-portrait img {
  width: 100%;
  height: 100%;
  opacity: 0;
}

.about-label {
  color: var(--cream);
  margin-bottom: 1rem;
}

.about-title {
  margin-bottom: 1.5rem;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.08;
}

.about-title-accent {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  color: var(--fuchsia);
}

.about-copy > p:not(.section-label):not(.about-label) {
  color: rgba(250, 246, 240, 0.9);
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about-copy > p:not(.section-label):not(.about-label):last-child {
  margin-bottom: 0;
}

.about-credentials {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-self: center;
}

.about-credentials li {
  padding-block: 1.35rem;
  border-bottom: 1px solid rgba(250, 246, 240, 0.14);
}

.about-credentials li:first-child {
  padding-top: 0;
}

.about-credentials strong {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(0.98rem, 1.5vw, 1.2rem);
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--fuchsia);
}

.about-credentials span {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted-on-navy);
}

/* ?? Press ?? */

.press {
  padding-block: clamp(4rem, 8vw, 6.5rem);
}

.press-header {
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  max-width: 560px;
}

.press-intro {
  margin-top: 1rem;
  color: var(--muted);
}

.press-feature {
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: linear-gradient(135deg, rgba(232, 78, 138, 0.06) 0%, rgba(250, 246, 240, 0.9) 55%);
  border: 1px solid rgba(26, 21, 48, 0.1);
  border-radius: 20px;
}

.press-feature-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(26, 21, 48, 0.08);
}

.press-feature-logo {
  width: min(180px, 50vw);
  height: auto;
}

.press-feature-outlet {
  font-family: var(--font-sub);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.press-feature-body {
  display: grid;
  gap: 1.25rem;
}

.press-feature-date {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 0.5rem;
}

.press-feature-title {
  font-family: var(--font-sub);
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 0.35rem;
}

.press-feature-subtitle {
  font-family: var(--font-sub);
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.press-feature-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.press-feature-role {
  font-family: var(--font-sub);
  font-size: 0.88rem;
  font-style: italic;
  color: var(--navy);
  margin-bottom: 0.85rem;
}

.press-feature-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--fuchsia);
  border-bottom: 1px solid rgba(232, 78, 138, 0.35);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.press-feature-link:hover {
  color: var(--rose);
  border-color: var(--rose);
}

.press-feature-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 520px;
}

.press-feature-photo {
  margin: 0;
}

.press-feature-photo-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}

.press-feature-photo-btn img {
  display: block;
  width: 100%;
  height: clamp(110px, 16vw, 150px);
  object-fit: cover;
  object-position: top center;
  border-radius: 12px;
  border: 1px solid rgba(26, 21, 48, 0.08);
  box-shadow: 0 8px 20px rgba(26, 21, 48, 0.06);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.press-feature-photo-btn:hover img,
.press-feature-photo-btn:focus-visible img {
  transform: scale(1.02);
  box-shadow: 0 12px 28px rgba(26, 21, 48, 0.12);
}

.press-feature-photo-hint {
  position: absolute;
  inset: auto 0.5rem 0.5rem auto;
  padding: 0.2rem 0.45rem;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(26, 21, 48, 0.72);
  border-radius: 999px;
  pointer-events: none;
}

.press-lightbox {
  inset: 0;
  margin: auto;
  width: fit-content;
  height: fit-content;
  max-width: min(92vw, 760px);
  max-height: 90vh;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: transparent;
  overflow: visible;
}

.press-lightbox::backdrop {
  background: rgba(26, 21, 48, 0.82);
}

.press-lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(92vw, 760px);
  max-height: 90vh;
  object-fit: contain;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.press-lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(250, 246, 240, 0.95);
  color: var(--navy);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.press-lightbox-close:hover,
.press-lightbox-close:focus-visible {
  background: #fff;
}

.press-list {
  list-style: none;
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(26, 21, 48, 0.1);
}

.press-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  padding-block: 1.75rem;
  border-bottom: 1px solid rgba(26, 21, 48, 0.1);
  align-items: baseline;
  transition: background 0.3s var(--ease);
}

.press-item:hover {
  background: rgba(232, 78, 138, 0.04);
}

.press-year {
  font-family: var(--font-sub);
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--rose);
}

.press-title {
  font-family: var(--font-sub);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.press-desc {
  font-size: 0.95rem;
  color: var(--muted);
}

/* ?? Contact ?? */

.contact {
  padding-block: clamp(4rem, 8vw, 6.5rem);
  background: var(--cream);
  border-top: 1px solid rgba(26, 21, 48, 0.08);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}

.contact-note {
  color: var(--muted);
  margin-top: 1.25rem;
  max-width: 42ch;
  line-height: 1.75;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-style: italic;
  color: var(--fuchsia);
  border-bottom: 2px solid rgba(232, 78, 138, 0.3);
  padding-bottom: 4px;
  transition: border-color 0.25s var(--ease);
}

.contact-email:hover,
.contact-email:focus-visible {
  border-color: var(--fuchsia);
}

.contact-location {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

/* ?? Footer ?? */

.footer {
  background: var(--navy);
  color: var(--muted-on-navy);
  padding: 2rem clamp(1.25rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer a {
  color: var(--cream);
  transition: color 0.25s var(--ease);
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--fuchsia);
}

/* ?? Project pages ?? */

body.project-page {
  background: #fff;
}

body.project-page .nav {
  background: #fff;
}

.project {
  padding-bottom: clamp(3rem, 6vw, 5rem);
  background: #fff;
}

.project-header {
  padding-block: clamp(2rem, 5vw, 3.5rem) clamp(2.5rem, 5vw, 4rem);
  max-width: 720px;
}

.project-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--fuchsia);
  transition: color 0.25s var(--ease);
}

.project-back:hover,
.project-back:focus-visible {
  color: var(--navy);
}

.project-cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fuchsia);
  margin-bottom: 0.65rem;
}

.project-title {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

.project-intro {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
  max-width: 38rem;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.project-figure {
  margin: 0;
  overflow: hidden;
  background: #fff;
}

.project-figure--wide {
  grid-column: 1 / -1;
}

.project-gallery--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.project-figure img {
  width: 100%;
  height: auto;
}

.project-figure--apparel img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Seamless textile tiles — each swatch is the single tile repeated by the
   browser, so any break in the pattern would show at the repeat seams. */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.tile-swatch {
  margin: 0;
  background: #fff;
  border: 1px solid rgba(26, 21, 48, 0.08);
}

.tile-swatch-fill {
  aspect-ratio: 1 / 1;
  background-repeat: repeat;
  background-size: 33.3333%;
  background-position: center;
}

.tile-caption {
  padding: 0.75rem 0.9rem 0.85rem;
  font-family: var(--font-sub);
  font-size: 1rem;
  line-height: 1.35;
  color: var(--navy);
}

.tile-caption span {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.tile-swatch-btn {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  -webkit-user-select: none;
  user-select: none;
}

.tile-swatch-btn .tile-swatch-fill {
  transition: transform 0.6s var(--ease);
}

.tile-swatch-btn:hover .tile-swatch-fill,
.tile-swatch-btn:focus-visible .tile-swatch-fill {
  transform: scale(1.05);
}

.tile-swatch-hint {
  position: absolute;
  left: 50%;
  bottom: 0.85rem;
  transform: translate(-50%, 0.5rem);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(26, 21, 48, 0.8);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.tile-swatch-btn:hover .tile-swatch-hint,
.tile-swatch-btn:focus-visible .tile-swatch-hint {
  opacity: 1;
  transform: translate(-50%, 0);
}

.tile-lightbox {
  width: min(94vw, 720px);
  margin: auto;
  inset: 0;
  max-height: 100vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.tile-lightbox::backdrop {
  background: rgba(26, 21, 48, 0.9);
}

.tile-lightbox-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.tile-lightbox-panel {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-height: 78vh;
  background-repeat: repeat;
  background-size: 50%;
  background-position: center;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

.tile-lightbox-shield {
  position: absolute;
  inset: 0;
}

.tile-lightbox-caption {
  padding: 0.9rem 1.15rem 1rem;
  margin: 0;
  font-family: var(--font-sub);
  font-size: 1.2rem;
  color: var(--navy);
  background: #fff;
}

.tile-lightbox-caption span {
  display: block;
  margin-top: 0.15rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.tile-lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(250, 246, 240, 0.95);
  color: var(--navy);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.tile-lightbox-close:hover,
.tile-lightbox-close:focus-visible {
  background: #fff;
}

.tile-lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  background: rgba(250, 246, 240, 0.95);
  color: var(--navy);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.tile-lightbox-prev {
  left: 1.25rem;
}

.tile-lightbox-next {
  right: 1.25rem;
}

.tile-lightbox-nav:hover,
.tile-lightbox-nav:focus-visible {
  background: #fff;
}

@media (max-width: 768px) {
  .tile-lightbox-nav {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.6rem;
  }

  .tile-lightbox-prev {
    left: 0.5rem;
  }

  .tile-lightbox-next {
    right: 0.5rem;
  }
}

/* Personal work: mixed-media gallery with masonry columns + wide features */
.pw-collection {
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.pw-masonry {
  column-count: 3;
  column-gap: clamp(1rem, 2vw, 1.5rem);
  margin-block: clamp(1rem, 2vw, 1.5rem);
}

.pw-item {
  margin: 0 0 clamp(1rem, 2vw, 1.5rem);
  break-inside: avoid;
}

.pw-feature {
  margin: 0;
}

.pw-item .pw-btn,
.pw-feature .pw-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #fff;
  cursor: zoom-in;
  overflow: hidden;
  line-height: 0;
}

.pw-btn img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}

.pw-btn:hover img,
.pw-btn:focus-visible img {
  transform: scale(1.03);
  opacity: 0.94;
}

.pw-btn:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .pw-masonry {
    column-count: 2;
  }
}

@media (max-width: 560px) {
  .pw-masonry {
    column-count: 1;
  }
}

.pw-lightbox {
  inset: 0;
  margin: auto;
  width: fit-content;
  height: fit-content;
  max-width: min(94vw, 1100px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.pw-lightbox::backdrop {
  background: rgba(26, 21, 48, 0.86);
}

.pw-lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(94vw, 1100px);
  max-height: 92vh;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}

.pw-lightbox-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(250, 246, 240, 0.95);
  color: var(--navy);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.pw-lightbox-close:hover,
.pw-lightbox-close:focus-visible {
  background: #fff;
}

.pw-lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 999px;
  background: rgba(250, 246, 240, 0.95);
  color: var(--navy);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
  transition: background 0.2s var(--ease);
}

.pw-lightbox-prev {
  left: 1.25rem;
}

.pw-lightbox-next {
  right: 1.25rem;
}

.pw-lightbox-nav:hover,
.pw-lightbox-nav:focus-visible {
  background: #fff;
}

@media (max-width: 768px) {
  .pw-lightbox-nav {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.6rem;
  }

  .pw-lightbox-prev {
    left: 0.5rem;
  }

  .pw-lightbox-next {
    right: 0.5rem;
  }
}

.project-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-block: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid rgba(26, 21, 48, 0.1);
}

.project-nav-link {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 600;
  color: var(--fuchsia);
  transition: color 0.25s var(--ease);
}

.project-nav-link:hover,
.project-nav-link:focus-visible {
  color: var(--navy);
}

.project-nav-link--next {
  text-align: right;
}

.project-body {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.project-section {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.project-section-copy {
  max-width: 42rem;
}

.project-section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.project-section-text {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--muted);
}

.project-section-text p + p {
  margin-top: 1rem;
}

.project-section-list {
  list-style: none;
  margin-top: 1.25rem;
  display: grid;
  gap: 0.85rem;
}

.project-section-list li {
  padding-left: 1.1rem;
  position: relative;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--muted);
}

.project-section-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--fuchsia);
}

.project-section-list strong {
  display: block;
  color: var(--navy);
  font-weight: 600;
}

.project-hero {
  margin-bottom: clamp(0.5rem, 2vw, 1rem);
}

.project-section .project-gallery {
  padding-bottom: 0;
}

/* ?? Mobile nav ?? */

@media (max-width: 768px) {
  .nav {
    justify-content: space-between;
  }

  .hero-name {
    font-size: clamp(2rem, 14vw, 3.25rem);
    --text-overlap: 27%;
    transform: translate(-50%, calc(100% - var(--text-overlap)));
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: 0 0 auto 0;
    top: 57px;
    flex-direction: column;
    background: var(--cream);
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease), opacity 0.4s;
    border-bottom: 1px solid rgba(26, 21, 48, 0.08);
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle.is-open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .work-card {
    flex-direction: column;
    align-items: flex-start;
    max-width: 100%;
  }

  .work-card--right {
    flex-direction: column;
    align-items: flex-end;
    align-self: flex-end;
    text-align: right;
    margin-top: 0;
  }

  .work-card-circle {
    height: clamp(180px, 40vw, 260px);
    width: clamp(260px, 78vw, 380px);
  }

  .work-card--left .work-card-circle {
    margin-left: calc(-1 * clamp(1.25rem, 4vw, 3rem));
    margin-right: 0;
  }

  .work-card--right .work-card-circle {
    margin-left: 0;
    margin-right: calc(-1 * clamp(1.25rem, 4vw, 3rem));
  }

  .work-card-body {
    max-width: 100%;
  }

  .about-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-portrait {
    width: min(72vw, 320px);
    margin-left: calc(-1 * clamp(1.25rem, 4vw, 3rem) - clamp(40px, 12vw, 72px));
    margin-bottom: 0.25rem;
  }

  .about-credentials {
    align-self: start;
  }

  .press-feature-gallery {
    max-width: none;
  }

  .press-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .contact-inner {
    grid-template-columns: 1fr;
  }

  .contact-location {
    text-align: left;
  }

  .project-gallery {
    grid-template-columns: 1fr;
  }

  .project-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-nav-link--next {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .marquee-track {
    animation: none;
  }

  .work-card-circle img {
    transition: none;
  }
}
