/* ==========================================================================
   Fluid Palette — Studio Showcase (Modernist system)
   Homepage-only design language: flat, hard-edged, Archivo type, red accent.
   Deliberately independent of style.css/components.css (Material 3 / DaisyUI)
   so this page and the rest of the site can evolve without fighting the
   cascade. Ports the handful of protection rules from components.css so
   js/image-protect.js still renders correctly on this page.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;600;800&display=swap');

:root {
  --color-bg: #f3f2f2;
  --color-surface: #eae9e9;
  --color-text: #201e1d;
  --color-accent: #ec3013;
  --color-accent-600: #dd2b0f;
  --color-accent-700: #ae1800;
  --color-accent-100: #fff2ef;
  --color-accent-800: #7c1405;
  --color-divider: color-mix(in srgb, #201e1d 40%, transparent);
  --font-heading: "Archivo", system-ui, sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
}

body.fp-showcase {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
.fp-showcase * { box-sizing: border-box; }
.fp-showcase h1, .fp-showcase h2, .fp-showcase h3, .fp-showcase h6 {
  font-family: var(--font-heading); font-weight: 800; margin: 0;
}
.fp-showcase a { color: var(--color-accent); }
.fp-showcase a:hover { color: var(--color-accent-700); }
.fp-showcase button { font: inherit; }

@keyframes fp-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes fp-rise { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }

/* — buttons & tags (ported subset of the Modernist system) — */
.fp-showcase .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: 800; font-size: 14px; line-height: 1.2;
  color: var(--color-text); background: transparent; border: 1px solid transparent;
  padding: 12px 18px;
}
.fp-showcase .btn-primary { background: var(--color-accent); color: var(--color-bg); }
.fp-showcase .btn-primary:hover { background: var(--color-accent-600); color: var(--color-bg); }
.fp-showcase .btn-secondary { border-color: var(--color-divider); }
.fp-showcase .btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); color: var(--color-text); }
.fp-showcase .tag {
  display: inline-flex; align-items: center; font-size: 11px; letter-spacing: 0.02em; padding: 3px 10px;
}
.fp-showcase .tag-accent { background: var(--color-accent-100); color: var(--color-accent-800); }
.fp-showcase .tag-outline { border: 1px solid var(--color-accent); color: var(--color-accent); }

/* — header — */
.fp-header {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: baseline; gap: 28px;
  padding: 14px 32px; background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 2px solid var(--color-divider);
}
.fp-header__brand {
  font-family: var(--font-heading); font-weight: 800; font-size: 17px; letter-spacing: -0.02em;
  margin-right: auto; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.fp-header__byline {
  font-family: var(--font-body); font-weight: 400; font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: color-mix(in srgb, var(--color-text) 50%, transparent);
}
.fp-nav { display: flex; gap: 22px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.fp-nav a { color: inherit; text-decoration: none; }
.fp-nav a:hover { color: var(--color-accent); }

/* — hero — */
.fp-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-bottom: 2px solid var(--color-divider);
}
.fp-hero__text {
  padding: 72px 32px 40px; display: flex; flex-direction: column; justify-content: space-between;
  gap: 48px; border-right: 2px solid var(--color-divider);
}
.fp-hero__eyebrow {
  display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--color-accent-700); margin-bottom: 28px;
}
.fp-hero__eyebrow span:first-child { width: 28px; height: 2px; background: var(--color-accent); }
.fp-hero h1 {
  font-size: clamp(44px, 6.2vw, 96px); line-height: 0.92; letter-spacing: -0.035em;
  margin: 0 0 28px; text-wrap: balance;
}
.fp-hero h1 .accent { color: var(--color-accent); }
.fp-hero__lede {
  font-size: 17px; line-height: 1.5; max-width: 46ch;
  color: color-mix(in srgb, var(--color-text) 72%, transparent); margin: 0;
}
.fp-hero__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--color-divider);
}
.fp-hero__stat { padding: 18px 0; }
.fp-hero__stat + .fp-hero__stat { padding-left: 20px; border-left: 1px solid var(--color-divider); }
.fp-hero__stat-value { font-family: var(--font-heading); font-weight: 800; font-size: 34px; letter-spacing: -0.03em; }
.fp-hero__stat-value small { font-size: 16px; }
.fp-hero__stat-label {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
/* The hero figure displays the featured artwork full size and centered
   on the right panel with crisp white background and clear caption. */
.fp-hero__figure {
  position: relative; min-width: 0; background: #ffffff;
  height: 62vh; min-height: 440px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; padding-bottom: 56px;
}
#fpHeroFrame {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
/* The hero image is rendered through the same framedImg()/.art-frame/.art-mat
   pipeline as every other plate (see js/showcase.js renderHero) so it gets a
   real frame + mat instead of floating bare in the panel. Sizing, opacity and
   the is-loaded fade are already handled generically by frame-mat.css's
   .art-frame .art-mat img rules — no hero-specific img rule needed here. */
.fp-hero__caption {
  position: absolute; left: 0; bottom: 0; pointer-events: none; padding: 14px 18px;
  background: var(--color-bg); border-top: 2px solid var(--color-divider);
  border-right: 2px solid var(--color-divider); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; margin: 0; z-index: 20;
}

/* — sections — */
.fp-section { border-bottom: 2px solid var(--color-divider); }
.fp-section__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  flex-wrap: wrap; padding: 40px 32px 20px;
}
.fp-section__kicker { margin: 0 0 8px; color: var(--color-accent-700); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.fp-section__title { font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -0.03em; }

/* — collection controls — */
.fp-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fp-chip {
  cursor: pointer; font-family: var(--font-heading); font-weight: 800; font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 8px 14px;
  border: 1px solid var(--color-divider); background: transparent; color: var(--color-text);
}
.fp-chip:hover { border-color: var(--color-accent); }
.fp-chip.is-active { border-color: var(--color-accent); background: var(--color-accent); color: var(--color-bg); }
.fp-controls__divider { width: 2px; height: 26px; background: var(--color-divider); margin: 0 6px; }

/* — plates view — */
/* Masonry-style column stacking rather than a CSS Grid: with display:grid,
   every row is sized to its tallest item, so shorter tiles next to a
   portrait piece leave visible empty space beneath them before the next
   row starts — whitespace that has nothing to do with the actual images.
   CSS multi-column layout (columns:) instead lets each column pack items
   back-to-back independently, using each tile's own real height (from its
   orientation-derived aspect-ratio) with no forced row alignment.
   object-fit: contain on the image itself (below) keeps it fluid/uncropped
   regardless of the column width at any breakpoint. */
.fp-plates {
  columns: 3; column-gap: 2px; padding: 12px 32px 48px;
}
@media (max-width: 900px) {
  .fp-plates { columns: 2; }
}
@media (max-width: 560px) {
  .fp-plates { columns: 1; }
}
.fp-plate {
  position: relative; min-width: 0; margin: 0 0 2px; cursor: pointer; overflow: hidden;
  break-inside: avoid; background: var(--color-surface); border: none; padding: 0; text-align: left; display: block; width: 100%;
}
.fp-plate:hover { outline: 2px solid var(--color-accent); outline-offset: -2px; }
.fp-plate__media { position: absolute; inset: 0; }
.fp-plate__media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.fp-plate__caption {
  position: absolute; inset: auto 0 0 0; pointer-events: none; display: flex; align-items: flex-end;
  justify-content: space-between; gap: 12px; padding: 44px 16px 14px;
  background: linear-gradient(to top, color-mix(in srgb, #201e1d 78%, transparent), transparent);
  color: #f3f2f2; margin: 0;
}
.fp-plate__title { font-family: var(--font-heading); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; line-height: 1.15; }
.fp-plate__meta { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; margin-top: 4px; }
.fp-plate__num { font-family: var(--font-heading); font-weight: 800; font-size: 12px; letter-spacing: 0.08em; }

/* — award trophy badge (plates + photography grids) —
   Tooltip is positioned within the tile's own box (not fixed/portalled)
   because .fp-plate has overflow: hidden; escaping it would just clip. */
.fp-award-badge {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, #201e1d 72%, transparent); border-radius: 50%;
  cursor: default; outline: none;
}
.fp-award-badge__icon { font-size: 15px; line-height: 1; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.4)); }
.fp-award-badge__tip {
  position: absolute; top: 36px; right: 0; max-width: 200px; width: max-content;
  background: color-mix(in srgb, #201e1d 92%, transparent); color: #f3f2f2;
  font-size: 11px; line-height: 1.4; letter-spacing: 0.01em; padding: 8px 10px; border-radius: 4px;
  opacity: 0; visibility: hidden; transform: translateY(-4px); pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
}
.fp-award-badge:hover .fp-award-badge__tip,
.fp-award-badge:focus-visible .fp-award-badge__tip { opacity: 1; visibility: visible; transform: translateY(0); }

/* — Flickr video items (Photographs grid + lightbox) —
   Badge sits top-left (award badge owns top-right) so the two never
   collide on the same tile. */
.fp-video-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, #201e1d 72%, transparent); border-radius: 50%;
  color: #f3f2f2; font-size: 11px; pointer-events: none;
}
/* Videos get the same frame+mat *feel* as every painting/photo (a thin
   dark frame, a light mat) even though there's no admin-set frame_style/
   mat_color for them — without it the video's own black background just
   melted into the lightbox's dark backdrop with no visible edge. */
.fp-video-frame {
  width: min(900px, 86vw); margin: 0 auto;
  background: #050505; padding: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}
.fp-video-embed { background: #fdfcf8; padding: 14px; text-align: left; }
/* Flickr's oEmbed markup positions its iframe with position:absolute but
   no explicit top/left, relying on it landing at (0,0) by default — which
   only holds in a plain, unstyled container. Nested inside our own
   text-align:center lightbox wrapper, the iframe's "static position"
   (the fallback used when top/left are omitted) drifts off to whatever a
   centered inline element would land at instead of the corner. The
   !important is required since it must beat Flickr's own inline style. */
.fp-video-embed iframe { left: 0 !important; top: 0 !important; }
/* A persistent copyright line below the player — placed in the frame's own
   padding area (not overlapping the iframe) so it never blocks Flickr's
   playback controls, unlike an overlay would. */
.fp-video-copyright {
  background: #050505; color: rgba(255, 255, 255, 0.55);
  font-size: 11px; letter-spacing: 0.03em; text-align: center;
  padding: 10px 10px 0; pointer-events: none;
}
.fp-video-fallback {
  display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 12px;
}
.fp-video-fallback img { max-width: min(900px, 86vw); max-height: 60vh; object-fit: contain; }
.fp-video-fallback a {
  font-size: 13px; font-weight: 700; letter-spacing: 0.02em; color: var(--color-accent);
}

/* — index view — */
.fp-index {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(220px, 26vw, 380px);
  gap: clamp(20px, 3vw, 40px); padding: 12px 32px 48px; align-items: start;
}
.fp-index__list { border-top: 2px solid var(--color-divider); }
.fp-index__row {
  display: grid; grid-template-columns: 40px minmax(180px, 1fr) minmax(0, 130px) minmax(0, 92px) 52px;
  align-items: center; gap: 14px; padding: 16px 0 16px 0; border-bottom: 1px solid var(--color-divider);
  cursor: pointer; transition: background 140ms ease, padding-left 140ms ease;
  background: none; border-left: none; border-right: none; border-top: none; width: 100%; text-align: left;
}
.fp-index__row:hover, .fp-index__row:focus-visible {
  background: color-mix(in srgb, var(--color-accent) 8%, transparent); padding-left: 10px;
}
.fp-index__num { font-size: 12px; letter-spacing: 0.08em; color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.fp-index__title {
  font-family: var(--font-heading); font-weight: 800; font-size: clamp(18px, 1.9vw, 30px);
  letter-spacing: -0.025em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fp-index__cat {
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 55%, transparent); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.fp-index__size, .fp-index__year { font-size: 12px; letter-spacing: 0.06em; color: color-mix(in srgb, var(--color-text) 55%, transparent); }
.fp-index__preview { position: sticky; top: 92px; }
.fp-index__preview-media {
  position: relative; aspect-ratio: 4 / 5; background: var(--color-surface); border: 2px solid var(--color-divider);
}
.fp-index__preview-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.fp-index__preview-body { border-top: 2px solid var(--color-divider); padding-top: 12px; margin-top: 12px; }
.fp-index__preview-title { font-family: var(--font-heading); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.fp-index__preview-meta {
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 55%, transparent); margin-top: 4px;
}
.fp-index__preview-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }

/* — photography — */
.fp-photo-section { display: grid; grid-template-columns: 320px minmax(0, 1fr); border-bottom: 2px solid var(--color-divider); }
.fp-photo-intro { padding: 48px 28px; border-right: 2px solid var(--color-divider); }
.fp-photo-intro p { font-size: 14px; line-height: 1.6; color: color-mix(in srgb, var(--color-text) 70%, transparent); margin: 12px 0 0; }
.fp-photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; padding: 2px; }
.fp-photo-slot {
  position: relative; aspect-ratio: 3 / 4; background: var(--color-surface);
  border: 1px dashed var(--color-divider); display: flex; align-items: center; justify-content: center;
}
.fp-photo-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fp-photo-slot__label {
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; text-align: center; padding: 0 10px;
  color: color-mix(in srgb, var(--color-text) 45%, transparent);
}
.grayscale { filter: grayscale(1) contrast(1.08); }

/* — notes — */
.fp-notes {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px;
  border-top: 2px solid var(--color-divider); padding: 0 32px 48px;
}
.fp-note {
  padding: 24px 22px 24px 0; border-right: 1px solid var(--color-divider);
  display: flex; flex-direction: column; gap: 10px; min-height: 220px;
}
.fp-note__kicker { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent-700); }
.fp-note__title { font-size: 22px; letter-spacing: -0.02em; text-wrap: pretty; }
.fp-note__body { font-size: 13.5px; line-height: 1.6; color: color-mix(in srgb, var(--color-text) 68%, transparent); margin: 0; flex: 1; }
.fp-note__link { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.fp-notes-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding: 48px 32px 24px; }

/* — about / contact statement — */
.fp-about { background: var(--color-accent); color: var(--color-bg); padding: 72px 32px; }
.fp-about__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: end; }
.fp-about__statement {
  font-family: var(--font-heading); font-weight: 800; font-size: clamp(30px, 4.4vw, 62px);
  line-height: 1.02; letter-spacing: -0.035em; margin: 0; max-width: 22ch;
}
.fp-about__note { font-size: 15px; line-height: 1.6; margin: 0 0 18px; color: color-mix(in srgb, #f3f2f2 88%, transparent); }
.fp-about .btn-primary-inverted {
  background: var(--color-bg); color: var(--color-text); justify-content: flex-start;
  padding: 12px 18px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
}
.fp-about .btn-primary-inverted:hover { background: color-mix(in srgb, var(--color-bg) 88%, transparent); }

/* — footer — */
.fp-footer { padding: 24px 32px; font-size: 12px; letter-spacing: 0.06em; }
.fp-footer__nav {
  display: flex; flex-wrap: wrap; gap: 18px; padding-bottom: 16px; margin-bottom: 16px;
  border-bottom: 1px solid var(--color-divider); text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px;
}
.fp-footer__nav a { color: var(--color-text); text-decoration: none; }
.fp-footer__nav a:hover { color: var(--color-accent); }
/* This header/footer chrome is reused on pages that still run on the
   classic DaisyUI/Tailwind system (gallery, photography, about, blog,
   contact) rather than the .fp-showcase body class, so their own ambient
   (dark) theme would otherwise leak into it via inheritance. Force the
   explicit light, flat look here regardless of the page it's mounted on. */
.fp-header, .fp-footer { color: var(--color-text); }
.fp-footer { background: var(--color-bg); border-top: 2px solid var(--color-divider); }

.fp-footer__meta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
}

/* — lightbox — */
.fp-lightbox {
  position: fixed; inset: 0; z-index: 80; background: color-mix(in srgb, #201e1d 94%, transparent);
  display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-rows: minmax(0, 1fr);
  animation: fp-fade 180ms ease; overflow: hidden;
  border: none; padding: 0; margin: 0; width: 100%;
}
.fp-lightbox[hidden] { display: none; }
/* Scrollable in its own right (independent of the metadata aside), not
   just shrink-to-fit — a tall portrait piece may still exceed the
   viewport even at max-height, and should be reachable by scrolling
   rather than silently clipped. display:grid; place-items:center here
   would also trap the overflow: with overflow:auto you can only ever
   scroll to the *trailing* edge of grid/flex-centered content, never
   back up past center to the top/left — so this uses ordinary block flow
   (text-align + inline-block) instead, which scrolls cleanly in both
   directions and still centers when the image is smaller than the
   viewport. */
.fp-lightbox__media-wrap {
  position: relative; padding: 40px; min-height: 0; min-width: 0;
  overflow: auto; text-align: center;
}
.fp-lightbox__media { display: inline-block; max-width: 100%; animation: fp-rise 240ms ease; position: relative; }
.fp-lightbox__media img {
  display: block; max-width: 100%;
  /* --fp-media-max-h is set from JS (showcase.js syncLightboxMediaSize) to
     the media-wrap's actual measured content height. A flat
     calc(100vh - 80px) assumed the media area always spans the full
     viewport height, which is only true on the desktop side-by-side
     layout — once the metadata aside stacks below it (see the
     max-width: 900px breakpoint further down), the media row is
     genuinely shorter than 100vh and the image needs to fit that real
     space, not an unrelated viewport-wide guess. */
  max-height: var(--fp-media-max-h, calc(100vh - 80px));
  width: auto; height: auto; object-fit: contain; margin: 0 auto;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.fp-lightbox__media img.is-loaded {
  opacity: 1;
}
.fp-lightbox__aside {
  background: var(--color-bg); border-left: 2px solid var(--color-divider); padding: 28px 26px;
  display: flex; flex-direction: column; gap: 18px; overflow-y: auto; min-height: 0; text-align: left;
}
.fp-lightbox__top { display: flex; align-items: center; justify-content: space-between; }
.fp-lightbox__count { font-size: 12px; letter-spacing: 0.1em; color: color-mix(in srgb, var(--color-text) 50%, transparent); }
.fp-lightbox__close { width: 32px; height: 32px; padding: 0; justify-content: center; font-size: 16px; }
.fp-lightbox__title { font-size: 32px; letter-spacing: -0.03em; }
.fp-lightbox__award {
  display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.03em;
  color: var(--color-accent); background: color-mix(in srgb, var(--color-accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-accent) 35%, transparent);
  border-radius: 4px; padding: 8px 12px;
}
.fp-lightbox__award-icon { font-size: 14px; line-height: 1; }
.fp-lightbox__specs {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 13px;
  border-top: 2px solid var(--color-divider); padding-top: 14px;
}
.fp-lightbox__specs span:nth-child(odd) {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 50%, transparent);
}
.fp-lightbox__story { font-size: 14px; line-height: 1.65; color: color-mix(in srgb, var(--color-text) 75%, transparent); margin: 0; }
.fp-lightbox__pigments-label {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 50%, transparent); margin-bottom: 8px;
}
.fp-lightbox__pigments { display: flex; gap: 6px; flex-wrap: wrap; }
.fp-lightbox__actions { margin-top: auto; display: flex; gap: 8px; border-top: 2px solid var(--color-divider); padding-top: 16px; }
.fp-lightbox__actions .btn { flex: 1; justify-content: flex-start; }

/* — loading / empty states — */
.fp-loading { padding: 48px 32px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: color-mix(in srgb, var(--color-text) 55%, transparent); }

/* — image protection (ported from components.css so this page renders it correctly) — */
.fp-showcase .protected-image-container { position: relative; user-select: none; -webkit-user-select: none; }
.fp-showcase .image-shield { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; background: transparent; pointer-events: auto; }
.fp-showcase .watermark-overlay {
  position: absolute; z-index: 12; font-family: var(--font-body); font-size: 0.84rem; font-weight: 600;
  letter-spacing: 0.05em; color: #ffffff; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.5);
  pointer-events: none; user-select: none; white-space: nowrap;
}
.fp-showcase .wm-diagonal {
  top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-25deg); font-size: 0.95rem;
  padding: 4px 14px; border: 1px dashed rgba(255, 255, 255, 0.4); border-radius: 4px;
}
.fp-showcase .wm-center { top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0, 0, 0, 0.3); padding: 4px 10px; border-radius: 4px; }
.fp-showcase .wm-bottom-right { bottom: 12px; right: 14px; font-size: 0.78rem; background: rgba(0, 0, 0, 0.35); padding: 2px 8px; border-radius: 4px; }
.fp-showcase .art-protect-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 9999;
  background: #313033; color: #f4eff4; padding: 12px 24px; border-radius: 999px; font-size: 0.86rem;
  box-shadow: 0 12px 32px rgba(0,0,0,0.22); display: flex; align-items: center; gap: 10px;
  animation: slideUpToast 0.3s cubic-bezier(0.2, 0, 0, 1);
}
@keyframes slideUpToast { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* — contact (reused on the standalone contact.html page) — */
.fp-contact {
  max-width: 720px; margin: 0 auto; padding: 56px 32px 96px;
  background: var(--color-bg); color: var(--color-text);
}
.fp-contact__title { font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -0.03em; margin: 10px 0 14px; }
.fp-contact__lede {
  font-size: 16px; line-height: 1.55; max-width: 54ch; margin: 0 0 40px;
  color: color-mix(in srgb, var(--color-text) 72%, transparent);
}
.fp-form { display: flex; flex-direction: column; gap: 22px; }
.fp-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.fp-field { display: flex; flex-direction: column; gap: 8px; }
.fp-field label {
  font-family: var(--font-heading); font-size: 11px; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; color: color-mix(in srgb, var(--color-text) 60%, transparent);
}
.fp-field input, .fp-field select, .fp-field textarea {
  font-family: var(--font-body); font-size: 15px; color: var(--color-text);
  background: var(--color-surface); border: 2px solid var(--color-divider); padding: 12px 14px;
  border-radius: 0; box-sizing: border-box; width: 100%;
}
.fp-field input:focus, .fp-field select:focus, .fp-field textarea:focus {
  outline: none; border-color: var(--color-accent);
}
.fp-field textarea { resize: vertical; min-height: 140px; font-family: inherit; }
.fp-form__submit { align-self: flex-start; margin-top: 4px; }
@media (max-width: 640px) {
  .fp-form__row { grid-template-columns: 1fr; }
}

/* — standalone journal / notes page (blog.html) — */
.fp-journal {
  max-width: 880px; margin: 0 auto; padding: 56px 32px 96px;
  background: var(--color-bg); color: var(--color-text);
}
.fp-journal__head { margin-bottom: 40px; border-bottom: 2px solid var(--color-divider); padding-bottom: 24px; }
.fp-journal__title { font-size: clamp(34px, 4.4vw, 56px); letter-spacing: -0.03em; margin: 10px 0 14px; }
.fp-journal__lede { font-size: 16px; line-height: 1.6; color: color-mix(in srgb, var(--color-text) 72%, transparent); margin: 0; max-width: 58ch; }
.fp-article-card {
  background: var(--color-surface); border: 2px solid var(--color-divider);
  padding: 36px 32px; margin-bottom: 32px; display: flex; flex-direction: column; gap: 16px;
}
.fp-article-card__meta { display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: color-mix(in srgb, var(--color-text) 55%, transparent); }
.fp-article-card__title { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -0.025em; margin: 0; }
.fp-article-card__body { font-size: 15px; line-height: 1.7; color: color-mix(in srgb, var(--color-text) 80%, transparent); margin: 0; }
.fp-article-card__list { margin: 0; padding-left: 20px; font-size: 14.5px; line-height: 1.7; color: color-mix(in srgb, var(--color-text) 80%, transparent); }
.fp-callout-box {
  background: color-mix(in srgb, var(--color-accent) 6%, transparent);
  border-left: 3px solid var(--color-accent); padding: 18px 22px; margin: 8px 0;
  font-size: 14px; line-height: 1.6;
}

/* — standalone about page (about.html) — */
.fp-about-page {
  max-width: 1100px; margin: 0 auto; padding: 56px 32px 96px;
  background: var(--color-bg); color: var(--color-text);
}
.fp-about-page__grid {
  display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 48px; align-items: start;
}
.fp-about-card {
  background: var(--color-surface); border: 2px solid var(--color-divider); overflow: hidden;
}
.fp-about-card__media {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #000000;
}
.fp-about-card__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.fp-about-card__body { padding: 24px; }
.fp-about-card__name { font-family: var(--font-heading); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 4px; }
.fp-about-card__byline { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent-700); margin: 0 0 16px; font-weight: 800; }
.fp-about-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.fp-about-principles {
  background: var(--color-surface); border: 2px solid var(--color-divider); padding: 28px 24px; margin-top: 24px;
}
.fp-about-principles__title { font-family: var(--font-heading); font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 18px; color: var(--color-accent-700); }
.fp-about-principles__list { display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 0; list-style: none; }
.fp-about-principles__item { display: flex; gap: 14px; align-items: flex-start; }
.fp-about-principles__icon { font-size: 20px; line-height: 1; flex-shrink: 0; }
.fp-about-principles__heading { font-family: var(--font-heading); font-size: 14px; font-weight: 800; margin: 0 0 4px; }
.fp-about-principles__desc { font-size: 13px; line-height: 1.5; color: color-mix(in srgb, var(--color-text) 70%, transparent); margin: 0; }
.fp-about-statement__title { font-size: clamp(30px, 3.8vw, 48px); letter-spacing: -0.03em; margin: 10px 0 24px; line-height: 1.05; }
.fp-about-statement__text { font-size: 16px; line-height: 1.7; color: color-mix(in srgb, var(--color-text) 78%, transparent); display: flex; flex-direction: column; gap: 18px; }
.fp-about-statement__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; padding-top: 24px; border-top: 2px solid var(--color-divider); }
@media (max-width: 900px) {
  .fp-about-page__grid { grid-template-columns: 1fr; }
}

/* — responsive — */
@media (max-width: 900px) {
  .fp-hero { grid-template-columns: 1fr; }
  .fp-hero__text { border-right: none; border-bottom: 2px solid var(--color-divider); }
  .fp-hero__figure { height: 50vh; min-height: 360px; padding: 20px; padding-bottom: 56px; }
  .fp-index { grid-template-columns: 1fr; }
  .fp-index__preview { position: static; order: -1; }
  .fp-photo-section { grid-template-columns: 1fr; }
  .fp-photo-intro { border-right: none; border-bottom: 2px solid var(--color-divider); }
  .fp-notes { grid-template-columns: 1fr; }
  .fp-note { border-right: none; border-bottom: 1px solid var(--color-divider); }
  .fp-about__grid { grid-template-columns: 1fr; }
  .fp-lightbox { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .fp-lightbox__aside { border-left: none; border-top: 2px solid var(--color-divider); max-height: 46vh; }
}
@media (max-width: 640px) {
  .fp-header { padding: 12px 18px; gap: 16px; }
  .fp-nav { gap: 14px; }
  .fp-hero__text { padding: 40px 18px 28px; }
  .fp-section__head, .fp-notes-head { padding-left: 18px; padding-right: 18px; }
  .fp-plates, .fp-index, .fp-notes { padding-left: 18px; padding-right: 18px; }
  .fp-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fp-index__row { grid-template-columns: 28px minmax(0, 1fr) 44px; }
  .fp-index__cat, .fp-index__size { display: none; }
  .fp-about { padding: 48px 18px; }
}
