/* ==========================================================================
   web-portfolios.css — the Web Portfolios section at /web-portfolios/.
   Added 2026-10-19.

   ONE PAGE, A GRID OF CONCEPT WEBSITES
   ------------------------------------
   The page is generated by tools/web-portfolios/build.py from the demo
   manifest (tools/web-portfolios/sites.json). The demo sites themselves live
   in /web-portfolios/sites/<slug>/ and are built elsewhere (the "EDC Web
   Portfolios" project); this stylesheet never reaches inside them.

   TOKENS
   ------
   The same EDC chrome apps.css reads from the tree, nothing invented: navy
   #16213e and #0a1930, gold #d4a84b (#9a6b12 for gold text on white), ink
   #1F2937 / #374151, muted #6b7280, border #E5E7EB, cream #FBF7F0, sub-text on
   navy #b0bec5, radii 8/12/16/28, easing cubic-bezier(0.22,1,0.36,1),
   Montserrat for text and Playfair Display for headings. Each card carries its
   demo's own accent colour (from the manifest) as --pf-accent, used only for a
   small dot and the hover hairline.

   MOTION
   ------
   Entrance reveals fire once via IntersectionObserver (assets/js/web-portfolios.js)
   and are gated by html.pf-js, so with JS off everything is simply there. The
   filter chips and the in-page preview are enhancements: without JS every card
   shows and every "Preview" link is a plain link to the demo.
   assets/css/motion-guard.css is linked after this file and collapses motion
   under prefers-reduced-motion; the block at the end pins the reveals too.

   NO overflow-x:hidden ABOVE THE NAV and no backdrop-filter on an ancestor of
   it: both break the shared header's fixed drawer once scrolled. Sections that
   need clipping use overflow: clip on themselves.
   ========================================================================== */

:root {
  --pf-navy: #16213e;
  --pf-navy-deep: #0a1930;
  --pf-gold: #d4a84b;
  --pf-gold-ink: #9a6b12;
  --pf-gold-light: #E1B168;
  --pf-gold-soft: rgba(212, 168, 75, 0.12);
  --pf-ink: #1F2937;
  --pf-body: #374151;
  --pf-muted: #6b7280;
  --pf-line: #E5E7EB;
  --pf-cream: #FBF7F0;
  --pf-sub-dark: #b0bec5;
  --pf-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pf-r-sm: 8px;
  --pf-r-md: 12px;
  --pf-r-lg: 16px;
  --pf-r-xl: 28px;
}

.pf-page { background: #fff; color: var(--pf-body); }
:where(.pf-page main) :is(h1, h2, h3) { font-family: 'Playfair Display', Georgia, serif; color: var(--pf-ink); }

.pf-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .pf-wrap { padding: 0 24px; } }

.pf-page a:focus-visible,
.pf-page button:focus-visible {
  outline: 3px solid var(--pf-gold);
  outline-offset: 3px;
  border-radius: var(--pf-r-sm);
}

.pf-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; border-radius: 999px;
  background: var(--pf-gold-soft); color: var(--pf-gold);
  font: 600 0.8rem/1.2 'Montserrat', sans-serif; letter-spacing: 0.12em; text-transform: uppercase;
}
.pf-eyebrow-ink { color: #6f4c08; }

.pf-h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.12; font-weight: 700; margin: 14px 0 12px; letter-spacing: -0.01em; }
.pf-intro { font-size: 1.08rem; line-height: 1.7; color: var(--pf-muted); max-width: 640px; }
.pf-section { padding: 88px 0; }
@media (max-width: 767px) { .pf-section { padding: 64px 0; } }
.pf-section-head { text-align: center; margin: 0 auto 40px; max-width: 760px; }
.pf-section-head .pf-intro { margin: 0 auto; }

.pf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: 600 0.98rem/1.2 'Montserrat', sans-serif; text-decoration: none; cursor: pointer; border: 0;
  transition: transform 240ms var(--pf-ease), background-color 240ms var(--pf-ease), box-shadow 240ms var(--pf-ease), color 240ms var(--pf-ease);
}
.pf-btn svg { width: 18px; height: 18px; flex: none; }
.pf-btn-gold { background: var(--pf-gold); color: var(--pf-navy-deep); box-shadow: 0 10px 30px rgba(212, 168, 75, 0.25); }
.pf-btn-ghost { background: rgba(255, 255, 255, 0.08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); }
.pf-btn-navy { background: var(--pf-navy-deep); color: #fff; }
.pf-btn-line { background: #fff; color: var(--pf-ink); box-shadow: inset 0 0 0 1px var(--pf-line); }
.pf-btn-sm { min-height: 40px; padding: 8px 16px; font-size: 0.88rem; }
@media (pointer: fine) {
  .pf-btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(212, 168, 75, 0.35); }
  .pf-btn-ghost:hover { background: rgba(255, 255, 255, 0.16); }
  .pf-btn-navy:hover { background: var(--pf-navy); transform: translateY(-1px); }
  .pf-btn-line:hover { box-shadow: inset 0 0 0 1px var(--pf-gold); color: var(--pf-gold-ink); }
  .pf-btn:hover .pf-arrow { transform: translate(2px, -2px); }
}
.pf-arrow { transition: transform 240ms var(--pf-ease); }

/* ==========================================================================
   Hero
   ========================================================================== */

.pf-hero {
  position: relative; overflow: clip; color: #fff;
  padding: 56px 0 96px;
  background:
    radial-gradient(900px 480px at 80% 0%, rgba(212, 168, 75, 0.16), transparent 65%),
    radial-gradient(600px 400px at 10% 100%, rgba(255, 255, 255, 0.06), transparent 60%),
    linear-gradient(170deg, var(--pf-navy-deep) 0%, var(--pf-navy) 100%);
}
.pf-hero > .pf-wrap { position: relative; }
.pf-hero-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 1024px) { .pf-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; } }

.pf-crumbs { font: 500 0.85rem/1.4 'Montserrat', sans-serif; color: var(--pf-sub-dark); margin-bottom: 28px; }
.pf-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pf-crumbs li + li::before { content: "\203A"; margin-right: 6px; opacity: 0.6; }
.pf-crumbs a { color: var(--pf-sub-dark); text-decoration: none; }
.pf-crumbs a:hover { color: #fff; text-decoration: underline; }
.pf-crumbs [aria-current] { color: #fff; }

.pf-hero h1 {
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  line-height: 1.04; font-weight: 700; letter-spacing: -0.02em;
  margin: 18px 0 20px;
}
.pf-hero h1 em { color: var(--pf-gold-light); font-style: italic; }
.pf-lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.7; color: #e5e7eb; max-width: 560px; margin: 0 0 28px; }
.pf-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }

.pf-stats { display: flex; flex-wrap: wrap; gap: 14px 36px; list-style: none; margin: 36px 0 0; padding: 0; }
.pf-stats li { display: flex; align-items: baseline; gap: 10px; font: 500 0.92rem/1.3 'Montserrat', sans-serif; color: var(--pf-sub-dark); }
.pf-stats strong { font: 700 2rem/1 'Playfair Display', Georgia, serif; color: #fff; }
.pf-stats li.pf-stats-tech { align-items: center; gap: 8px; }
.pf-stats li.pf-stats-tech svg { width: 18px; height: 18px; color: var(--pf-gold); }

.pf-honest {
  margin: 28px 0 0; padding: 12px 16px; max-width: 560px;
  border-radius: var(--pf-r-md);
  background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  font: 500 0.86rem/1.55 'Montserrat', sans-serif; color: #e5e7eb;
}
.pf-honest strong { color: #fff; }

/* The fan of three thumbnails. Pure CSS, no motion: the cards only lift a
   little on hover for fine pointers. */
.pf-fan { position: relative; height: 340px; max-width: 560px; margin: 0 auto; width: 100%; }
@media (min-width: 480px) { .pf-fan { height: 400px; } }
.pf-fan a {
  position: absolute; display: block; width: 68%; aspect-ratio: 16 / 10;
  border-radius: 14px; overflow: hidden;
  background: var(--pf-navy-deep);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: transform 500ms var(--pf-ease), box-shadow 500ms var(--pf-ease);
}
.pf-fan img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pf-fan .pf-fan-1 { left: 0; top: 6%; transform: rotate(-6deg); z-index: 1; }
.pf-fan .pf-fan-2 { left: 16%; top: 22%; transform: rotate(0deg); z-index: 3; width: 72%; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.7), 0 0 0 1.5px rgba(212, 168, 75, 0.55); }
.pf-fan .pf-fan-3 { right: 0; top: 2%; transform: rotate(6deg); z-index: 2; }
.pf-fan span {
  position: absolute; left: 10px; bottom: 10px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(10, 25, 48, 0.78); color: #fff;
  font: 600 0.7rem/1.2 'Montserrat', sans-serif; letter-spacing: 0.08em; text-transform: uppercase;
}
@media (pointer: fine) {
  .pf-fan a:hover { z-index: 4; transform: translateY(-8px) rotate(0deg) scale(1.02); }
}

/* ==========================================================================
   Gallery: filters + cards
   ========================================================================== */

.pf-gallery { padding-top: 72px; }
.pf-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 36px; padding: 0; list-style: none; }
.pf-chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  background: #fff; color: var(--pf-body); border: 0; box-shadow: inset 0 0 0 1px var(--pf-line);
  font: 600 0.86rem/1.2 'Montserrat', sans-serif; text-decoration: none;
  transition: background-color 240ms var(--pf-ease), color 240ms var(--pf-ease), box-shadow 240ms var(--pf-ease);
}
.pf-chip small { font-size: 0.74rem; font-weight: 600; opacity: 0.6; }
.pf-chip[aria-pressed="true"] { background: var(--pf-navy-deep); color: #fff; box-shadow: inset 0 0 0 1px var(--pf-navy-deep); }
.pf-chip[aria-pressed="true"] small { opacity: 0.7; }
@media (pointer: fine) { .pf-chip[aria-pressed="false"]:hover { box-shadow: inset 0 0 0 1px var(--pf-gold); color: var(--pf-gold-ink); } }
/* Without JS the chips are not interactive: hide them so nothing dead shows. */
html:not(.pf-js) .pf-filters { display: none; }

.pf-grid { display: grid; gap: 24px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .pf-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .pf-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.pf-grid > li { display: flex; }
.pf-grid > li[hidden] { display: none; }

.pf-card {
  position: relative; display: flex; flex-direction: column; width: 100%;
  border-radius: 20px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--pf-line), 0 1px 2px rgba(10, 25, 48, 0.04);
  transition: transform 500ms var(--pf-ease), box-shadow 500ms var(--pf-ease);
}
@media (pointer: fine) {
  .pf-card:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 0 0 1.5px var(--pf-accent, var(--pf-gold)), 0 30px 60px -30px rgba(10, 25, 48, 0.35);
  }
  .pf-card:hover .pf-card-media img { transform: scale(1.03); }
}
.pf-card-media {
  position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: 20px 20px 0 0; background: var(--pf-navy-deep);
}
.pf-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 900ms var(--pf-ease); }
.pf-card-cat {
  position: absolute; left: 12px; top: 12px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(10, 25, 48, 0.78); color: #fff;
  font: 600 0.68rem/1.2 'Montserrat', sans-serif; letter-spacing: 0.08em; text-transform: uppercase;
}
.pf-card-body { display: flex; flex: 1; flex-direction: column; padding: 20px 20px 22px; }
.pf-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pf-card h3 { font-size: 1.35rem; line-height: 1.2; margin: 0; }
.pf-card-ind { margin: 4px 0 0; font: 600 0.74rem/1.3 'Montserrat', sans-serif; letter-spacing: 0.12em; text-transform: uppercase; color: var(--pf-gold-ink); }
.pf-dot { flex: none; width: 12px; height: 12px; margin-top: 6px; border-radius: 50%; background: var(--pf-accent, var(--pf-gold)); box-shadow: 0 0 0 3px var(--pf-cream); }
.pf-card-tag { margin: 12px 0 0; font-size: 0.95rem; line-height: 1.6; color: var(--pf-body); }
.pf-card-try { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; font: 500 0.85rem/1.5 'Montserrat', sans-serif; color: var(--pf-gold-ink); }
.pf-card-try svg { flex: none; width: 15px; height: 15px; margin-top: 3px; }
.pf-card-try b { font-weight: 700; }
.pf-tech { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 14px 0 0; padding: 0; }
.pf-tech li { padding: 4px 9px; border-radius: 6px; font: 500 0.72rem/1.3 'Montserrat', sans-serif; color: var(--pf-muted); box-shadow: inset 0 0 0 1px var(--pf-line); }
.pf-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 18px; }

/* ==========================================================================
   In-page preview: a laptop frame with the demo inside (same origin).
   ========================================================================== */

.pf-preview { background: var(--pf-cream); }
.pf-preview-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; margin-bottom: 28px; }
.pf-preview-head .pf-intro { max-width: 560px; }
.pf-preview-pick { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }

.pf-laptop {
  position: relative; overflow: clip;
  border-radius: 18px; background: #0b0f15;
  box-shadow: 0 40px 100px -40px rgba(10, 25, 48, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.pf-laptop-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.pf-laptop-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a4150; }
.pf-laptop-bar i:nth-child(1) { background: #ff5f57; }
.pf-laptop-bar i:nth-child(2) { background: #febc2e; }
.pf-laptop-bar i:nth-child(3) { background: #28c840; }
.pf-laptop-url {
  flex: 1; min-width: 0; margin-left: 12px; padding: 5px 12px; border-radius: 7px;
  background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.55);
  font: 500 0.76rem/1.4 'Montserrat', sans-serif; text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pf-laptop-open { display: inline-flex; align-items: center; gap: 4px; font: 600 0.78rem/1.2 'Montserrat', sans-serif; color: var(--pf-gold); text-decoration: none; white-space: nowrap; }
.pf-laptop-open svg { width: 14px; height: 14px; flex: none; }
.pf-laptop-open:hover { text-decoration: underline; }
.pf-laptop-open[hidden] { display: none; }
.pf-laptop-screen { position: relative; aspect-ratio: 4 / 5; background: #0b0f15; }
@media (min-width: 640px) { .pf-laptop-screen { aspect-ratio: 16 / 10; } }
@media (min-width: 1024px) { .pf-laptop-screen { aspect-ratio: 16 / 9; } }
.pf-laptop-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #0b0f15; }
.pf-laptop-empty {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 24px; text-align: center; color: rgba(255, 255, 255, 0.55);
  font: 500 0.95rem/1.5 'Montserrat', sans-serif;
}
.pf-laptop-empty svg { width: 36px; height: 36px; color: var(--pf-gold); opacity: 0.8; }
.pf-laptop-empty[hidden] { display: none; }
.pf-preview-note { margin: 14px 0 0; font: 500 0.84rem/1.5 'Montserrat', sans-serif; color: var(--pf-muted); }

/* ==========================================================================
   How it becomes yours + about these demos
   ========================================================================== */

.pf-steps { display: grid; gap: 20px; list-style: none; margin: 0; padding: 0; counter-reset: pf; }
@media (min-width: 768px) { .pf-steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.pf-step { position: relative; padding: 28px 24px 26px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--pf-line); }
.pf-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 12px; margin-bottom: 16px;
  background: var(--pf-navy-deep); color: var(--pf-gold);
  font: 700 0.9rem/1 'Montserrat', sans-serif;
}
.pf-step h3 { font-size: 1.25rem; line-height: 1.25; margin: 0 0 8px; }
.pf-step p { margin: 0; line-height: 1.65; color: var(--pf-body); }

.pf-about { display: grid; gap: 28px; margin-top: 56px; padding: 32px 24px; border-radius: var(--pf-r-xl); background: var(--pf-cream); box-shadow: inset 0 0 0 1px #E9DCC5; }
@media (min-width: 900px) { .pf-about { grid-template-columns: 1.1fr 0.9fr; padding: 40px 48px; gap: 48px; } }
.pf-about h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 10px 0 10px; }
.pf-about p { margin: 0 0 12px; line-height: 1.7; }
.pf-about p:last-child { margin: 0; }
.pf-about ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.pf-about li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.55; }
.pf-about li svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--pf-gold-ink); }

/* ==========================================================================
   Final call
   ========================================================================== */

.pf-final {
  position: relative; overflow: clip;
  border-radius: 32px; padding: 64px 24px; text-align: center; color: #fff;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(212, 168, 75, 0.2), transparent 70%),
    linear-gradient(165deg, var(--pf-navy-deep), var(--pf-navy));
}
.pf-final h2 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.05; margin: 0 0 14px; }
.pf-final h2 em { color: var(--pf-gold-light); font-style: italic; }
.pf-final p { color: #e5e7eb; margin: 0 auto 28px; max-width: 560px; line-height: 1.65; }
.pf-final .pf-cta-row { justify-content: center; }
.pf-final-mail { display: block; margin: 22px auto 0; font: 600 0.95rem/1.4 'Montserrat', sans-serif; color: var(--pf-gold-light); text-decoration: none; overflow-wrap: anywhere; }
.pf-final-mail:hover { text-decoration: underline; }

/* ==========================================================================
   Entrance reveals (once, on first scroll into view). Gated by html.pf-js.
   ========================================================================== */

.pf-js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--pf-ease), transform 1000ms var(--pf-ease); }
.pf-js [data-reveal].is-in { opacity: 1; transform: none; }
.pf-js [data-reveal-delay="1"] { transition-delay: 120ms; }
.pf-js [data-reveal-delay="2"] { transition-delay: 240ms; }
.pf-js [data-reveal-delay="3"] { transition-delay: 360ms; }

@media (prefers-reduced-motion: reduce) {
  .pf-js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .pf-card, .pf-card-media img, .pf-btn, .pf-chip, .pf-fan a, .pf-arrow { transition: none !important; }
  .pf-card:hover, .pf-fan a:hover, .pf-card:hover .pf-card-media img { transform: none !important; }
}
