/* portfolio-light.css — light minimal theme mirroring reference style, portfolio.html only */
:root {
  --pl-bg: #ffffff;
  --pl-text: #111111;
  --pl-muted: #666666;
  --pl-line: #e5e5e5;
  --pl-accent: #0a66c2;
  --pl-card: #fafafa;
  --pl-display: 'Montserrat', Futura, 'Century Gothic', 'Helvetica Neue', sans-serif;
}
body.pl { background: var(--pl-bg); color: var(--pl-text); font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; margin: 0; -webkit-font-smoothing: antialiased; }
body.pl a { color: var(--pl-accent); }
.pl-wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* Header: black bar, boxed logo above nav (reference style) */
.pl-topbar { background: #000; position: sticky; top: 0; z-index: 40; border-bottom: 1px solid transparent; transition: background-color 280ms ease, box-shadow 280ms ease, border-color 280ms ease; }
.pl-topbar.no-stick { position: static; }
.home-btn { position: fixed; left: 40px; top: 32px; z-index: 60; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #fff; }
body.pl .home-btn { color: #fff; }
.home-btn:hover { opacity: 0.65; }
@media (max-width: 640px) { .home-btn { left: 20px; top: 20px; } }
.pl-topbar.is-scrolled { background: rgba(0, 0, 0, 0.5); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); border-bottom-color: rgba(255, 255, 255, 0.12); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16); }
.portfolio-topbar .home-btn { position: absolute; left: 40px; top: auto; bottom: 4px; }
.pl-header { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 28px 0 22px; position: relative; }
.pl-header .logo-link { color: #fff; text-decoration: none; font-family: var(--pl-display); font-weight: 800; letter-spacing: 0.22em; font-size: 1rem; border: 2px solid #fff; border-radius: 4px; padding: 6px 14px 6px 16px; }
.pl-header nav a { margin: 0 16px; text-decoration: none; color: #fff; font-family: var(--pl-display); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.pl-header nav a:hover { opacity: 0.6; }
.mobile-menu-btn { display: none; background: none; border: 0; cursor: pointer; }
.mobile-menu-btn span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; }

/* Full-screen photo hero, centered type over image */
.pl-hero { position: relative; min-height: calc(100vh - 130px); display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; overflow: hidden; }
.pl-hero-bg { position: absolute; left: 0; right: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; filter: grayscale(1) brightness(0.55); will-change: transform; }
.pl-hero-inner { position: relative; padding: 40px 24px; max-width: 1000px; }
.pl-hero-inner h1 { font-family: var(--pl-display); font-size: clamp(3rem, 10vw, 6.5rem); margin: 0 0 16px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.02; }
.pl-role { font-family: var(--pl-display); font-size: 1rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; margin: 0; opacity: 0.92; }
.pl-scroll { position: absolute; bottom: 30px; left: 50%; width: 22px; height: 22px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateX(-50%) rotate(45deg); opacity: 0.9; }

/* Sections: centered titles, generous whitespace */
.pl-section { padding: 72px 0; scroll-margin-top: 150px; }
.pl-section h2 { font-family: var(--pl-display); font-size: 1.9rem; margin: 0 0 24px; text-align: center; font-weight: 700; letter-spacing: 0.02em; }
.pl-section h3 { font-size: 1.05rem; margin: 28px 0 12px; letter-spacing: 0.04em; }
.pl-section p { line-height: 1.75; }
.pl-lead { font-size: 1.12rem; line-height: 1.8; }
.pl-stats { display: flex; gap: 48px; margin-top: 36px; justify-content: center; text-align: center; }
.pl-stats b { display: block; font-size: 1.7rem; }
.pl-stats span { color: var(--pl-muted); font-size: 0.9rem; }

/* Scroll reveal (transform/opacity only — no background changes) */
.pl-rv { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.pl-rv.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .pl-rv { opacity: 1; transform: none; transition: none; } }

/* Outline buttons (reference style) */
.pl-btn { display: inline-block; border: 1px solid var(--pl-text); color: var(--pl-text); background: transparent; padding: 13px 34px; border-radius: 3px; text-decoration: none; font-family: var(--pl-display); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 20px; transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease; }
body.pl .pl-btn { color: var(--pl-text); }
body.pl .pl-btn:hover { background: var(--pl-text); border-color: var(--pl-text); color: #fff; }
body.pl .pl-btn:focus-visible { background: var(--pl-text); border-color: var(--pl-text); color: #fff; }

/* Timeline */
.pl-timeline { list-style: none; padding: 0; }
.pl-timeline li { margin-bottom: 24px; line-height: 1.7; }
.pl-timeline .pl-dates { color: var(--pl-muted); font-size: 0.9rem; }

/* Image-led project cards (reference style) */
.pl-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 32px; }
.pl-card { cursor: pointer; overflow: hidden; }
.pl-card img { width: 100%; aspect-ratio: 3/2; object-fit: cover; border-radius: 2px; transition: transform 0.5s ease; }
.pl-card:hover img { transform: scale(1.03); }
.pl-card h3 { margin: 14px 0 4px; font-size: 1.05rem; }
.pl-card p { color: var(--pl-muted); margin: 0 0 8px; font-size: 0.95rem; }
.pl-card .pl-case { font-family: var(--pl-display); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }

/* Skill chips */
.pl-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pl-chips li { border: 1px solid var(--pl-line); border-radius: 999px; padding: 5px 14px; font-size: 0.88rem; }

/* Contact: centered, narrow form */
.pl-contact { text-align: center; }
.pl-contact form { text-align: left; max-width: 560px; margin: 32px auto 0; }
.pl-contact input, .pl-contact textarea { width: 100%; padding: 11px; margin: 6px 0 14px; border: 1px solid var(--pl-line); border-radius: 3px; font: inherit; box-sizing: border-box; }

/* Footer: stacked, centered */
.pl-footer { border-top: 1px solid var(--pl-line); padding: 32px 0 48px; color: var(--pl-muted); font-size: 0.9rem; text-align: center; }

/* Light modals */
.pl-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55); align-items: center; justify-content: center; z-index: 50; }
.pl-modal .pl-modal-box { background: #fff; max-width: 640px; width: 90%; border-radius: 4px; padding: 28px; max-height: 85vh; overflow: auto; }
.pl-modal .pl-modal-box img { width: 100%; border-radius: 2px; }
.close-modal { float: right; font-size: 1.6rem; cursor: pointer; line-height: 1; }

@media (max-width: 640px) {
  .pl-hero-inner h1 { font-size: 2.6rem; }
  .pl-role { letter-spacing: 0.16em; }
  .pl-cards { grid-template-columns: 1fr; }
  .pl-stats { gap: 24px; }
  .mobile-menu-btn { display: block; position: absolute; top: 28px; right: 20px; }
  .pl-header nav { display: none; position: absolute; top: 100%; right: 16px; background: #000; border: 1px solid #333; border-radius: 6px; padding: 12px 20px; z-index: 40; }
  .pl-header nav.active { display: block; }
  .pl-header nav a { display: block; margin: 10px 0; }
  .pl-header.nav-enhanced nav:not(.active) { display: none; }
  .portfolio-topbar .home-btn { left: 20px; top: 18px; bottom: auto; }
}

@media (prefers-reduced-motion: reduce) { .pl-topbar { transition: none; } }

/* Shared five-link business navigation + keyboard focus */
body.pl :focus-visible { outline: 3px solid var(--pl-accent); outline-offset: 4px; }
body.pl .pl-topbar :focus-visible { outline-color: #fff; }
.pl-header nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 8px; }

/* Compact page head (projects / contact pages) */
.pl-pagehead { text-align: center; padding: 64px 24px 8px; }
.pl-pagehead h1 { font-family: var(--pl-display); font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 800; margin: 0 0 12px; }
.pl-pagehead p { color: var(--pl-muted); margin: 0; }

/* Stacked project list (reference structure) */
.pl-cards.stack { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; gap: 56px; }
.pl-cards.stack .pl-card img { aspect-ratio: 3/2; }
.pl-cards.stack .pl-card h3 { font-size: 1.3rem; }
