/* ==========================================================================
   PixMedium — visual upgrade layer
   Loaded after app.css on every demo page. Marketing page gets the full
   cinematic treatment; app pages inherit the refreshed type + component
   language. Nothing here removes functionality from app.css — it restyles.
   ========================================================================== */

/* ------------------------------------------------------------------ fonts */
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin-wght-normal.woff2') format('woff2-variations');
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin-wght-italic.woff2') format('woff2-variations');
  font-display: swap;
  font-style: italic;
  font-weight: 100 900;
}

/* ----------------------------------------------------------------- tokens */
:root {
  --pm-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --pm-sans: Inter, ui-sans-serif, system-ui, sans-serif;
  --pm-mint: #36ffb6;
  --pm-mint-deep: #0d8a5f;
  --pm-gold: #d3a64e;
  --pm-pine: #24371b;
  --pm-dark: #0d0f0c;
  --pm-ease: cubic-bezier(.16, 1, .3, 1);
  --pm-ring: 0 0 0 1px rgba(17, 19, 15, .07);
  --pm-shadow-soft: 0 18px 50px rgba(17, 19, 15, .1);
  --pm-shadow-deep: 0 40px 120px rgba(17, 19, 15, .22);
}

::selection { color: var(--pm-dark); background: var(--pm-mint); }

/* Thin brand scrollbar (progressive enhancement) */
html { scrollbar-width: thin; scrollbar-color: rgba(48, 71, 32, .55) transparent; }
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-thumb { border-radius: 99px; background: rgba(48, 71, 32, .45); }
::-webkit-scrollbar-track { background: transparent; }

/* When Lenis drives the scroll, native smooth-behavior must not fight it. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ------------------------------------------------------- injected chrome */
.pm-grain {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.pm-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2001;
  width: 100%;
  height: 3px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--pm-mint), var(--pm-gold));
  pointer-events: none;
}

/* ------------------------------------------------------------ typography */
.page-body h1,
.page-body h2,
.page-body h3:not(.browser-toolbar-title h3),
.plan-dialog h2,
.auth-panel-body h2 {
  font-family: var(--pm-serif);
  font-weight: 540;
  letter-spacing: -.022em;
}

/* Section headlines only — dialog titles (auth, plan comparison) keep their
   compact app.css sizes. */
.page-body main section h2 { font-size: clamp(42px, 4.6vw, 62px); line-height: 1.02; }

.page-body h1 em,
.page-body h2 em,
.page-body blockquote em {
  font-style: italic;
  font-weight: 470;
  color: inherit;
}

.eyebrow { font-weight: 800; letter-spacing: .16em; }
.eyebrow::before { width: 38px; }

/* --------------------------------------------------------------- header */
.site-header { transition: color .3s ease; }
.site-header.is-scrolled {
  position: fixed;
  z-index: 90;
  top: 0;
  right: 0;
  left: 0;
  min-height: 0;
  padding: 10px max(24px, calc((100vw - 1160px) / 2));
  color: var(--ink);
  background: rgba(244, 241, 235, .78);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid rgba(17, 19, 15, .08);
  animation: pm-header-in .55s var(--pm-ease) both;
}
@keyframes pm-header-in {
  from { transform: translateY(-110%); }
  to { transform: translateY(0); }
}
.site-header.is-scrolled .desktop-nav a { color: rgba(17, 19, 15, .62); }
.site-header.is-scrolled .desktop-nav a:hover { color: var(--ink); background: rgba(17, 19, 15, .06); }
.site-header.is-scrolled .account-link { color: var(--ink); }
.site-header.is-scrolled .account-link:hover { background: rgba(17, 19, 15, .07); }
@media (max-width: 700px) {
  .site-header.is-scrolled { padding: 8px 14px; }
  .site-header.is-scrolled .menu-button {
    border-color: rgba(17, 19, 15, .16);
    background: rgba(17, 19, 15, .05);
    color: var(--ink);
  }
}

/* ----------------------------------------------------------------- hero */
.hero { background: var(--pm-dark); }
.hero-media {
  position: absolute;
  inset: -10% 0 0;
  z-index: 0;
  overflow: hidden;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  transform-origin: 50% 100%;
  animation: pm-kenburns 26s var(--pm-ease) both;
}
@keyframes pm-kenburns {
  from { transform: scale(1.14); }
  to { transform: scale(1.02); }
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 15, 12, .93) 0%, rgba(13, 15, 12, .64) 48%, rgba(13, 15, 12, .16) 82%),
    linear-gradient(rgba(13, 15, 12, .3), transparent 32%, transparent 68%, rgba(13, 15, 12, .42));
}
.hero-content { z-index: 2; }

.hero h1 {
  max-width: 980px;
  margin: 38px 0 26px;
  font-size: clamp(64px, 8.6vw, 126px);
  font-weight: 480;
  line-height: .98;
  letter-spacing: -.03em;
}
.hero h1 em {
  position: relative;
  font-weight: 440;
  white-space: nowrap;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  right: .02em;
  bottom: .015em;
  left: .02em;
  height: .052em;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--pm-mint), var(--pm-gold));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 1.1s var(--pm-ease) 1.15s;
}
html.pm-hero-in .hero h1 em::after { transform: scaleX(1); }

/* Word-mask splitting (spans injected by upgrade.js). The padding/negative-
   margin pairs give descenders (y, g) and serif overhangs (r, italics) room
   inside the clip box without changing the line layout. */
.pm-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding: .06em .08em .22em;
  margin: -.06em -.08em -.22em;
}
.pm-word-inner { display: inline-block; will-change: transform; }
/* Once the word reveal has fully played, the masks have done their job —
   remove the clipping entirely so no glyph edge can ever be trimmed at rest. */
html.pm-words-done .hero h1 .pm-word { overflow: visible; }

.hero-actions .button-accent {
  box-shadow: 0 18px 55px rgba(54, 255, 182, .28);
}

/* scroll cue */
.hero-scroll {
  position: absolute;
  z-index: 3;
  bottom: 34px;
  left: max(24px, calc((100vw - 1160px) / 2));
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, .55);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.hero-scroll i {
  position: relative;
  width: 1px;
  height: 52px;
  overflow: hidden;
  background: rgba(255, 255, 255, .22);
}
.hero-scroll i::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--pm-mint);
  animation: pm-scroll-cue 2.1s cubic-bezier(.65, 0, .35, 1) infinite;
}
@keyframes pm-scroll-cue {
  0% { transform: translateY(0); }
  60%, 100% { transform: translateY(200%); }
}
@media (max-width: 700px) {
  .hero-scroll { display: none; }
  .hero h1 { font-size: clamp(54px, 15vw, 72px); letter-spacing: -.035em; }
}

/* glass upgrade for the floating hero card */
.hero-gallery-note {
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(19, 22, 17, .42);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}

/* -------------------------------------------------------------- marquee */
.pm-marquee {
  overflow: hidden;
  padding-block: 26px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.pm-marquee-track {
  display: flex;
  width: max-content;
  animation: pm-marquee 36s linear infinite;
}
.pm-marquee:hover .pm-marquee-track { animation-play-state: paused; }
.pm-marquee-group {
  display: flex;
  align-items: baseline;
  gap: 44px;
  padding-right: 44px;
  white-space: nowrap;
}
.pm-marquee-group span {
  font: 800 15px/1 var(--pm-sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pm-pine);
}
.pm-marquee-group em {
  font: italic 460 26px/1 var(--pm-serif);
  letter-spacing: -.01em;
  color: var(--ink);
}
.pm-marquee-group svg {
  width: 13px;
  height: 13px;
  align-self: center;
  color: var(--pm-gold);
}
@keyframes pm-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------- ghost section index */
.page-body main { counter-reset: pm-sec; }
.page-body main > section:not(.hero) { position: relative; counter-increment: pm-sec; }
.page-body main > section:not(.hero)::before {
  content: counter(pm-sec, decimal-leading-zero);
  position: absolute;
  z-index: 0;
  top: 44px;
  right: max(20px, calc((100vw - 1240px) / 2));
  font: 420 clamp(70px, 9vw, 150px)/0.8 var(--pm-serif);
  letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(17, 19, 15, .13);
  pointer-events: none;
  user-select: none;
}
.page-body main > section:not(.hero) > * { position: relative; z-index: 1; }
@media (max-width: 700px) {
  .page-body main > section:not(.hero)::before { top: 20px; font-size: 64px; }
}

/* ------------------------------------------------------- gallery browser */
.gallery-browser {
  border-radius: 26px;
  box-shadow: var(--pm-shadow-deep), var(--pm-ring);
}
.browser-bar small { font-family: var(--pm-sans); }
.browser-grid figure { overflow: hidden; }
.browser-grid figure img {
  transition: transform .9s var(--pm-ease), filter .9s var(--pm-ease);
}
.browser-grid figure:hover img { transform: scale(1.05); }
.browser-cover { overflow: hidden; }
.browser-cover-copy strong {
  font-family: var(--pm-serif);
  font-weight: 500;
  letter-spacing: -.015em;
}

/* trust row → quiet luxury chips */
.trust-row span {
  font-weight: 800;
  letter-spacing: .02em;
}
.trust-row svg { color: var(--pm-mint-deep); }

/* ---------------------------------------------------------- stats strip */
.pm-stats {
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.pm-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-block: 58px;
}
.pm-stat {
  display: grid;
  gap: 8px;
  padding-inline: 30px;
  border-left: 1px solid var(--line);
}
.pm-stat:first-child { border-left: 0; padding-left: 0; }
.pm-stat strong {
  font: 470 clamp(40px, 4.4vw, 58px)/1 var(--pm-serif);
  letter-spacing: -.03em;
  color: var(--ink);
}
.pm-stat strong sup {
  top: -.55em;
  font-size: .45em;
  color: var(--pm-mint-deep);
}
/* The counter span inside <strong> must keep the big serif style; only the
   direct-child label span below the number is small and muted. */
.pm-stat strong span { font: inherit; color: inherit; letter-spacing: inherit; }
.pm-stat > span {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .01em;
}
@media (max-width: 900px) {
  .pm-stats-grid { grid-template-columns: 1fr 1fr; gap: 30px 0; padding-block: 44px; }
  .pm-stat { padding-inline: 20px; }
  .pm-stat:nth-child(odd) { border-left: 0; padding-left: 0; }
}
@media (max-width: 480px) {
  .pm-stat strong { font-size: 34px; }
  .pm-stat > span { font-size: 12.5px; }
}

/* -------------------------------------------------- portfolio + events */
.profile-browser,
.event-preview {
  border-radius: 24px;
  box-shadow: var(--pm-shadow-deep), var(--pm-ring);
  transform-style: preserve-3d;
}
.pm-tilt { will-change: transform; }
.portfolio-layout,
.events-layout { perspective: 1400px; }
.profile-summary h3 {
  font-family: var(--pm-serif);
  font-weight: 540;
  letter-spacing: -.01em;
}
.event-preview-head strong {
  font-family: var(--pm-serif);
  font-weight: 540;
}
/* -------------------------------------------- find-your-photographer */
.pm-find { border-top: 1px solid var(--line); background: var(--paper); }
.pm-find-inner {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  padding-block: 62px;
}
.pm-find h3 {
  margin: 10px 0 10px;
  font-family: var(--pm-serif);
  font-weight: 530;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -.02em;
}
.pm-find-copy > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.pm-find-form { position: relative; display: flex; gap: 10px; }
.pm-find-form > svg {
  position: absolute;
  top: 50%;
  left: 20px;
  width: 19px;
  height: 19px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.pm-find-form input {
  flex: 1;
  min-width: 0;
  min-height: 56px;
  padding: 0 20px 0 50px;
  border: 1px solid rgba(17, 19, 15, .16);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}
.pm-find-form input:focus {
  outline: none;
  border-color: var(--pm-pine);
  box-shadow: 0 0 0 3px rgba(48, 71, 32, .12);
}
.pm-find-form button {
  min-height: 56px;
  padding: 0 26px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  transition: background .2s ease;
}
.pm-find-form button:hover { background: var(--pm-pine); }
.pm-find-status { margin: 12px 4px 0; color: var(--pm-mint-deep); font-size: 13.5px; font-weight: 700; }
@media (max-width: 900px) {
  .pm-find-inner { grid-template-columns: 1fr; gap: 26px; padding-block: 48px; }
}
@media (max-width: 700px) {
  .pm-find-form { flex-direction: column; }
  /* The form stacks, so anchor the icon to the input (first child, 56px tall)
     instead of the middle of the whole form. */
  .pm-find-form > svg { top: 28px; }
  .pm-find-form button { min-height: 52px; }
}

/* ---------------------------------------------------- delivery statement */
.pm-quote {
  padding-block: clamp(76px, 9vw, 120px);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--pm-dark);
  color: #fff;
}
.pm-quote::before {
  content: "”";
  position: absolute;
  top: -40px;
  right: max(10px, calc((100vw - 1300px) / 2));
  color: rgba(255, 255, 255, .045);
  font: italic 500 clamp(300px, 34vw, 520px)/1 var(--pm-serif);
  pointer-events: none;
}
.pm-quote-statement {
  max-width: 900px;
  margin: 0;
  font: 460 clamp(34px, 4.4vw, 58px)/1.16 var(--pm-serif);
  letter-spacing: -.022em;
}
.pm-quote-statement em { font-style: italic; }
/* background-clip:text does not reach into the split inline-block word
   spans, so the gradient is applied per word once the splitter has run. */
.pm-quote-statement em:not(:has(.pm-word)),
.pm-quote-statement em .pm-word-inner {
  background: linear-gradient(90deg, var(--pm-mint), var(--pm-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (max-width: 700px) {
  .pm-quote { padding-block: 72px; }
  .pm-quote-statement { font-size: clamp(32px, 9vw, 40px); line-height: 1.18; }
}

/* -------------------------------------------------------------- pricing */
.plan-preview {
  border-radius: 20px;
  transition: transform .5s var(--pm-ease), box-shadow .5s var(--pm-ease);
}
.plan-preview:hover {
  transform: translateY(-4px);
  box-shadow: var(--pm-shadow-soft);
}
.plan-preview h3 { font-family: var(--pm-serif); font-weight: 560; }
.plan-preview-price strong {
  font-family: var(--pm-serif);
  font-weight: 500;
  letter-spacing: -.03em;
}
.plan-preview.featured {
  border: 1.5px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(120deg, var(--pm-mint), var(--pm-gold) 55%, var(--pm-pine)) border-box;
  box-shadow: 0 26px 70px rgba(48, 71, 32, .16);
}
.comparison-price strong,
.comparison-plan-name { font-family: var(--pm-serif); }

/* ------------------------------------------------------------------ faq */
.faq-list h3 button span {
  font-family: var(--pm-serif);
  font-weight: 540;
  font-size: 1.18em;
  letter-spacing: -.01em;
}
.faq-list article { transition: background .3s ease; }
.faq-list article.open { background: rgba(48, 71, 32, .035); }
/* Breathing room from the row edges (and the .open tint) on all sizes. */
.faq-list h3 button { padding: 18px 16px; }
.faq-list article p { padding: 0 46px 25px 16px; }
@media (max-width: 700px) {
  .faq-list article p { padding-right: 16px; }
}

/* -------------------------------------------------------------- buttons */
.button,
.compare-plans-button,
.events-action,
.plan-preview-action,
.comparison-action,
.auth-submit {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
}
.button::before,
.events-action::before,
.compare-plans-button::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 34%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-22deg);
  transition: left .7s var(--pm-ease);
  pointer-events: none;
}
.button:hover::before,
.events-action:hover::before,
.compare-plans-button:hover::before { left: 150%; }
.pm-magnetic { will-change: transform; }

/* --------------------------------------------------------- dialog polish */
.plan-dialog,
.auth-dialog { border-radius: 28px; }
.plan-dialog-header h2 { letter-spacing: -.02em; }
.auth-quote blockquote {
  font: italic 460 24px/1.3 var(--pm-serif);
  letter-spacing: -.01em;
}

/* =======================================================================
   App pages (dashboard / gallery / profile / editor) — shared refresh
   ======================================================================= */
.dash-body .dash-welcome h2,
.dash-body .dash-section-head h2,
.dash-body .dash-modal-head h2,
.gal-body .gal-cover-copy strong,
.gal-body .gal-gate-card h1,
.pf-body .pf-head-body h1,
.ed-body .ed-preview-copy strong {
  font-family: var(--pm-serif);
  font-weight: 540;
  letter-spacing: -.018em;
}
.dash-body .dash-stat > strong,
.pf-body .pf-stat strong {
  font-family: var(--pm-serif);
  font-weight: 500;
  letter-spacing: -.02em;
}
.dash-card,
.dash-panel,
.dash-stat { box-shadow: var(--pm-ring); }
.dash-btn-primary { border-radius: 999px; }
.dash-btn-light { border-radius: 999px; }

/* =======================================================================
   Client gallery page (gallery.html) — luxury delivery treatment
   ======================================================================= */

/* Private-access gate: dark glass, matching the demo gate */
.gal-gate {
  background: rgba(10, 12, 9, .58);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}
.gal-gate-card {
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(19, 22, 17, .74);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .5);
}
.gal-gate-card h1 {
  font-family: var(--pm-serif);
  font-weight: 480;
  font-size: 36px;
  color: #fff;
}
.gal-gate-card h1 em { font-style: italic; font-weight: 430; }
.gal-gate-card p { color: rgba(244, 241, 235, .62); }
.gal-gate-card input {
  border-color: rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(13, 15, 12, .5);
  color: #f4f1eb;
}
.gal-gate-card input:focus { border-color: var(--pm-mint); box-shadow: none; }
.gal-gate-card .dash-btn-primary {
  border: 0;
  border-radius: 999px;
  background: var(--pm-mint);
  color: #06301f;
  box-shadow: 0 14px 45px rgba(54, 255, 182, .22);
}
.gal-gate-card .dash-btn-primary:hover { background: #2bf2aa; }
.gal-gate-hint { color: rgba(244, 241, 235, .45); }

/* Cover: one complete viewport before gallery controls enter the page. */
.gal-cover { height: 100vh; height: 100dvh; }
.gal-cover > img { animation: pm-cover-settle 22s var(--pm-ease) both; }
@keyframes pm-cover-settle {
  from { transform: scale(1.1); }
  to { transform: scale(1.01); }
}
.gal-cover::after {
  background: linear-gradient(180deg, rgba(13, 15, 12, .3), rgba(13, 15, 12, .04) 34%, rgba(13, 15, 12, .78));
}
.gal-cover-copy { padding-bottom: clamp(44px, 8vh, 84px); }
/* Size geometry only — family/weight/style/tracking/transform come from the
   var-driven app.css rule so the Design tab's typeface + title size actually
   apply to the hero (they used to be overridden here). The scale multiplies
   inside the clamp: large titles grow with the viewport but keep the phone
   floor, so XL can never push a single word past a narrow screen. */
.gal-cover-copy h1 {
  font-size: calc(clamp(54px * min(var(--galx-title-scale, 1), 1), 8.4vw * var(--galx-title-scale, 1), 122px * var(--galx-title-scale, 1)) * var(--galx-title-adjust, 1) * var(--galx-title-fit, 1));
}
.gal-cover-copy h1 em { font-style: italic; font-weight: 410; }
.gal-cover-meta {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}
.gal-cover-cta {
  border-radius: 999px;
  border-color: rgba(255, 255, 255, .42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* Unlock entrance: gallery.js adds .gal-open to <body> */
.gal-body.gal-open .gal-cover-copy > * { animation: pm-rise 1s var(--pm-ease) both; }
.gal-body.gal-open .gal-cover-copy > :nth-child(2) { animation-delay: .1s; }
.gal-body.gal-open .gal-cover-copy > :nth-child(3) { animation-delay: .2s; }
.gal-body.gal-open .gal-cover-copy > :nth-child(4) { animation-delay: .3s; }
@keyframes pm-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

/* Toolbar + grid */
.gal-brand { font-family: var(--pm-serif); font-weight: 540; font-size: 17px; letter-spacing: -.01em; }
/* Size only — family/weight follow the Design-tab typeface vars (app.css). */
.gal-toolbar-title strong { font-size: 25px; }
.gal-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(13, 15, 12, .38));
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.gal-photo:hover::after { opacity: 1; }
.gal-photo img { transition: transform .8s var(--pm-ease); }
.gal-photo:hover img { transform: scale(1.045); }

/* Lightbox */
.gal-lightbox {
  background: rgba(8, 9, 7, .94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.gal-lightbox:not([hidden]) { animation: pm-fade .32s ease; }
@keyframes pm-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.gal-lightbox img[data-lb-image] { border-radius: 10px; box-shadow: 0 40px 120px rgba(0, 0, 0, .55); }
.gal-lb-meta { font-family: var(--pm-serif); font-style: italic; font-size: 15px; letter-spacing: .02em; }
.gal-footer p { font-family: var(--pm-serif); font-style: italic; font-size: 15px; }

/* Download options modal (reuses dash-modal shell) */
.gal-body .dash-modal-head h2 { font-family: var(--pm-serif); font-weight: 530; letter-spacing: -.015em; }
.gal-dl-options { display: grid; gap: 12px; }
.gal-dl-option {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .25s var(--pm-ease), border-color .25s ease, box-shadow .25s ease;
}
.gal-dl-option:hover {
  transform: translateY(-2px);
  border-color: rgba(48, 71, 32, .4);
  box-shadow: var(--pm-shadow-soft);
}
.gal-dl-option strong { font-family: var(--pm-serif); font-weight: 540; font-size: 19px; padding-right: 90px; }
.gal-dl-option span { color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.gal-dl-option em {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 5px 11px;
  border-radius: 999px;
  font-style: normal;
  font-size: 10.5px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.gal-dl-option[data-dl-choice="web"] em { background: #eef3e9; color: var(--pm-pine); }
.gal-dl-option[data-dl-choice="original"] em {
  background: linear-gradient(120deg, var(--pm-mint), #bdf2d5);
  color: #06301f;
}

@media (max-width: 820px) {
  .gal-toolbar-title strong { font-size: 20px; }
}

/* =======================================================================
   Public profile page (profile.html) — refined within the approved shape
   ======================================================================= */
.pf-head-top h1 {
  font-family: var(--pm-serif);
  font-weight: 510;
  font-size: clamp(34px, 4vw, 44px);
  letter-spacing: -.02em;
}
.pf-head-avatar { border-width: 4px; box-shadow: var(--pm-shadow-soft); }
.pf-handle { letter-spacing: .01em; }
.pf-about2-copy h2,
.pf-contact-form h2 { font-family: var(--pm-serif); font-weight: 520; letter-spacing: -.018em; }
.pf-signature {
  font-family: var(--pm-serif);
  font-style: italic;
  font-weight: 460;
  font-size: 30px;
  color: var(--pm-pine);
}
.pf-foot-name { font-family: var(--pm-serif); font-weight: 500; }

/* Portfolio tiles: quiet bottom-left chip instead of a centred overlay */
.pf-tile { border-radius: 14px; }
.pf-tile::after {
  background: linear-gradient(180deg, rgba(13, 15, 12, 0) 48%, rgba(13, 15, 12, .5));
  opacity: 0;
  transition: opacity .3s ease;
}
.pf-tile:hover::after {
  background: linear-gradient(180deg, rgba(13, 15, 12, 0) 48%, rgba(13, 15, 12, .5));
  opacity: 1;
}
.pf-tile img { transition: transform .8s var(--pm-ease); }
.pf-tile:hover img { transform: scale(1.04); }
.pf-tile-meta {
  align-items: flex-end;
  justify-content: flex-start;
  padding: 13px 15px;
  font-size: 13.5px;
  transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
}
.pf-tile:hover .pf-tile-meta { transform: none; }
.pf-tile-meta .ic { width: 15px; }
.pf-tabs button.active { border-top-color: var(--pm-pine); }
.pf-contact-info { box-shadow: var(--pm-ring); }

/* =======================================================================
   Homepage mockups — keep in sync with the real gallery/profile pages
   ======================================================================= */
.browser-cover { height: 380px; }
.browser-cover-copy {
  left: 0;
  right: 0;
  bottom: 26px;
  justify-items: center;
  text-align: center;
  gap: 6px;
}
.browser-cover-copy small { letter-spacing: .18em; color: rgba(255, 255, 255, .78); }
.browser-cover-copy strong {
  font-family: var(--pm-serif);
  font-weight: 470;
  font-size: 42px;
}
.browser-cover-copy strong em,
.gal-toolbar-title strong em { font-style: italic; font-weight: 420; }
.browser-cover-copy span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}
.browser-toolbar-title strong { font-family: var(--pm-serif); font-weight: 530; }
.profile-tabs strong,
.profile-tabs span {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

/* ------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-media img { animation: none; transform: none; }
  .pm-marquee-track { animation: none; }
  .hero-scroll i::after { animation: none; }
  .hero h1 em::after { transform: scaleX(1); transition: none; }
  .pm-grain, .pm-progress { display: none; }
  .gal-cover > img { animation: none; transform: none; }
  .gal-body.gal-open .gal-cover-copy > * { animation: none; }
  .gal-lightbox:not([hidden]) { animation: none; }
}
