:root {
  --lucy-p-bg: var(--bg, #020817);
  --lucy-p-card: var(--card, #071323);
  --lucy-p-text: var(--text, #f3f7f8);
  --lucy-p-muted: var(--text-2, #9daab5);
  --lucy-p-accent: var(--accent, #14d9a5);
  --lucy-p-border: var(--border, rgba(255,255,255,.1));
  --lucy-p-display: var(--display, 'Cormorant Garamond', Georgia, serif);
  --lucy-p-body: var(--body, 'Inter', Arial, sans-serif);
}

.lucy-portfolio-shell { width:min(1400px, calc(100% - 8rem)); margin-inline:auto; }

/* Home showcase */
.lucy-portfolio-home { position:relative; overflow:hidden; }
.lucy-portfolio-home::before { content:""; position:absolute; width:520px; height:520px; right:-220px; top:10%; border:1px solid rgba(20,217,165,.12); border-radius:50%; pointer-events:none; }
.lucy-portfolio-home__head { display:flex; justify-content:space-between; gap:2rem; align-items:flex-end; margin-bottom:3rem; }
.lucy-portfolio-home__head > div:first-child { max-width:900px; }
.lucy-portfolio-home .section-sub { max-width:760px; }
.lucy-portfolio-controls { display:flex; gap:.65rem; flex:0 0 auto; }
.lucy-portfolio-arrow { width:48px; height:48px; display:grid; place-items:center; border:1px solid var(--lucy-p-border); background:transparent; color:var(--lucy-p-text); border-radius:50%; cursor:pointer; transition:border-color .2s, color .2s, background .2s, opacity .2s; }
.lucy-portfolio-arrow svg { width:20px; height:20px; }
.lucy-portfolio-arrow:hover:not(:disabled), .lucy-portfolio-arrow:focus-visible { border-color:var(--lucy-p-accent); color:var(--lucy-p-accent); background:rgba(20,217,165,.05); }
.lucy-portfolio-arrow:disabled { opacity:.28; cursor:not-allowed; }
.lucy-portfolio-viewport { overflow:hidden; outline:none; }
.lucy-portfolio-track { --lucy-gap:1.25rem; display:flex; flex-wrap:nowrap; gap:var(--lucy-gap); transition:transform .55s cubic-bezier(.22,.8,.25,1); will-change:transform; }
.lucy-portfolio-card--carousel { flex:0 0 calc((100% - (var(--lucy-gap) * 3)) / 4); min-width:0; }
.lucy-portfolio-home__footer { display:flex; justify-content:flex-end; margin-top:2rem; }
.lucy-portfolio-text-link { display:inline-flex; align-items:center; gap:.7rem; color:var(--lucy-p-text); text-decoration:none; font-size:.76rem; font-weight:600; letter-spacing:.11em; text-transform:uppercase; border-bottom:1px solid rgba(20,217,165,.35); padding-bottom:.35rem; }
.lucy-portfolio-text-link span { color:var(--lucy-p-accent); }

/* Cards */
.lucy-portfolio-card { min-width:0; background:linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.018)); border:1px solid var(--lucy-p-border); border-radius:4px; overflow:hidden; transition:transform .32s ease, border-color .32s ease, box-shadow .32s ease; }
.lucy-portfolio-card:hover { transform:translateY(-5px); border-color:rgba(20,217,165,.28); box-shadow:0 20px 55px rgba(0,0,0,.25); }
.lucy-portfolio-card__media { position:relative; display:block; aspect-ratio:4/3; overflow:hidden; background:#071323; }
.lucy-portfolio-card__media img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .65s cubic-bezier(.22,.8,.25,1), filter .35s; }
.lucy-portfolio-card:hover .lucy-portfolio-card__media img { transform:scale(1.035); }
.lucy-portfolio-card__media::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg, transparent 55%, rgba(2,8,23,.72)); pointer-events:none; }
.lucy-portfolio-card__placeholder { width:100%; height:100%; display:grid; place-items:center; background:radial-gradient(circle at 35% 30%, rgba(20,217,165,.18), transparent 38%), linear-gradient(135deg,#071323,#020817); }
.lucy-portfolio-card__placeholder span { font-family:var(--lucy-p-display); font-size:4rem; color:rgba(255,255,255,.16); }
.lucy-portfolio-card__category { position:absolute; left:1rem; bottom:1rem; z-index:2; padding:.4rem .65rem; background:rgba(2,8,23,.76); border:1px solid rgba(255,255,255,.12); -webkit-backdrop-filter:blur(8px); backdrop-filter:blur(8px); border-radius:100px; color:var(--lucy-p-text); font-size:.62rem; font-weight:600; letter-spacing:.1em; text-transform:uppercase; }
.lucy-portfolio-card__body { padding:1.35rem 1.3rem 1.45rem; }
.lucy-portfolio-card__meta { color:var(--lucy-p-accent); font-size:.65rem; letter-spacing:.12em; text-transform:uppercase; margin-bottom:.75rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lucy-portfolio-card__title { font-family:var(--lucy-p-display); font-size:clamp(1.45rem,2vw,1.9rem); font-weight:400; line-height:1.06; margin:0 0 .8rem; }
.lucy-portfolio-card__title a { color:var(--lucy-p-text); text-decoration:none; }
.lucy-portfolio-card__outcome { min-height:3.2em; color:var(--lucy-p-muted); font-size:.82rem; line-height:1.6; margin:0 0 1.1rem; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.lucy-portfolio-card__link { display:inline-flex; align-items:center; gap:.55rem; color:var(--lucy-p-text); text-decoration:none; font-size:.67rem; font-weight:600; letter-spacing:.1em; text-transform:uppercase; }
.lucy-portfolio-card__link span { color:var(--lucy-p-accent); }

/* Archive */
body.lucy-portfolio-view { background:var(--lucy-p-bg); color:var(--lucy-p-text); font-family:var(--lucy-p-body); }
.lucy-portfolio-archive { min-height:70vh; }
.lucy-portfolio-archive__hero { padding:12rem 0 6rem; position:relative; overflow:hidden; border-bottom:1px solid var(--lucy-p-border); }
.lucy-portfolio-archive__hero::before { content:""; position:absolute; inset:auto -12% -70% auto; width:720px; height:720px; border-radius:50%; background:radial-gradient(circle,rgba(20,217,165,.11),transparent 68%); pointer-events:none; }
.lucy-portfolio-kicker { display:inline-flex; align-items:center; gap:.6rem; color:var(--lucy-p-muted); text-decoration:none; font-size:.68rem; letter-spacing:.15em; text-transform:uppercase; margin-bottom:2.1rem; }
.lucy-portfolio-kicker span { color:var(--lucy-p-accent); }
.lucy-portfolio-archive__hero h1 { max-width:1000px; margin:0; font-family:var(--lucy-p-display); font-size:clamp(4rem,11vw,9rem); font-weight:300; line-height:.82; letter-spacing:-.045em; }
.lucy-portfolio-archive__hero p { max-width:760px; color:var(--lucy-p-muted); font-size:clamp(1rem,1.7vw,1.25rem); line-height:1.75; margin:2.5rem 0 0; }
.lucy-portfolio-archive__content { padding:4rem 0 8rem; }
.lucy-portfolio-filters { display:flex; flex-wrap:wrap; gap:.65rem; margin-bottom:3.4rem; }
.lucy-portfolio-filter { display:inline-flex; align-items:center; gap:.55rem; padding:.7rem 1rem; color:var(--lucy-p-muted); border:1px solid var(--lucy-p-border); border-radius:100px; text-decoration:none; font-size:.72rem; transition:.25s; }
.lucy-portfolio-filter span { opacity:.6; font-size:.62rem; }
.lucy-portfolio-filter:hover, .lucy-portfolio-filter.is-active { color:var(--lucy-p-bg); background:var(--lucy-p-accent); border-color:var(--lucy-p-accent); }
.lucy-portfolio-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.6rem; }
.lucy-portfolio-pagination { margin-top:4rem; }
.lucy-portfolio-pagination .nav-links { display:flex; gap:.6rem; justify-content:center; }
.lucy-portfolio-pagination a, .lucy-portfolio-pagination span { min-width:42px; height:42px; display:grid; place-items:center; border:1px solid var(--lucy-p-border); color:var(--lucy-p-text); text-decoration:none; }
.lucy-portfolio-pagination .current { background:var(--lucy-p-accent); color:var(--lucy-p-bg); border-color:var(--lucy-p-accent); }
.lucy-portfolio-empty { padding:5rem; text-align:center; border:1px solid var(--lucy-p-border); background:rgba(255,255,255,.025); }
.lucy-portfolio-empty p { color:var(--lucy-p-muted); }
.lucy-portfolio-empty a { color:var(--lucy-p-accent); }

/* Single project */
.lucy-project__hero { padding:11rem 0 4.5rem; border-bottom:1px solid var(--lucy-p-border); }
.lucy-project__back { display:inline-flex; color:var(--lucy-p-muted); text-decoration:none; font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; margin-bottom:3rem; }
.lucy-project__back:hover { color:var(--lucy-p-accent); }
.lucy-project__categories { display:flex; flex-wrap:wrap; gap:.7rem; margin-bottom:1.5rem; }
.lucy-project__categories a { color:var(--lucy-p-accent); text-decoration:none; font-size:.67rem; font-weight:600; letter-spacing:.12em; text-transform:uppercase; }
.lucy-project__hero h1 { max-width:1180px; margin:0; font-family:var(--lucy-p-display); font-weight:300; font-size:clamp(3.4rem,8.4vw,8rem); line-height:.91; letter-spacing:-.035em; }
.lucy-project__lead { max-width:820px; color:var(--lucy-p-muted); font-size:clamp(1.05rem,1.8vw,1.35rem); line-height:1.75; margin:2rem 0 0; }
.lucy-project__cover { padding:3rem 0 0; }
.lucy-project__cover img { width:100%; max-height:820px; object-fit:cover; display:block; border-radius:3px; }
.lucy-project__main { display:grid; grid-template-columns:minmax(220px,300px) minmax(0,800px); justify-content:space-between; gap:6rem; padding-top:6rem; padding-bottom:7rem; }
.lucy-project__facts { position:sticky; top:8rem; align-self:start; border-top:1px solid var(--lucy-p-border); }
.lucy-project__facts > div { padding:1.25rem 0; border-bottom:1px solid var(--lucy-p-border); }
.lucy-project__facts span { display:block; color:var(--lucy-p-muted); font-size:.62rem; letter-spacing:.13em; text-transform:uppercase; margin-bottom:.45rem; }
.lucy-project__facts strong { display:block; color:var(--lucy-p-text); font-size:.9rem; font-weight:400; line-height:1.55; }
.lucy-project__external { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-top:1.25rem; padding:.9rem 1rem; color:var(--lucy-p-bg); background:var(--lucy-p-accent); text-decoration:none; font-size:.7rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase; }
.lucy-project__content { color:var(--lucy-p-muted); font-size:1.02rem; line-height:1.85; }
.lucy-project__content > * { max-width:760px; }
.lucy-project__content > * + * { margin-top:1.6rem; }
.lucy-project__content h2, .lucy-project__content h3 { color:var(--lucy-p-text); font-family:var(--lucy-p-display); font-weight:400; line-height:1.08; margin-top:3.5rem; }
.lucy-project__content h2 { font-size:clamp(2.2rem,4vw,3.7rem); }
.lucy-project__content h3 { font-size:clamp(1.6rem,3vw,2.35rem); }
.lucy-project__content a { color:var(--lucy-p-accent); }
.lucy-project__content img, .lucy-project__content .wp-block-image, .lucy-project__content .wp-block-gallery { max-width:100%; }
.lucy-project__content blockquote { border-left:2px solid var(--lucy-p-accent); margin-left:0; padding-left:1.6rem; color:var(--lucy-p-text); font-family:var(--lucy-p-display); font-size:1.7rem; font-style:italic; }
.lucy-project__narrative { border-block:1px solid var(--lucy-p-border); background:rgba(255,255,255,.018); }
.lucy-project__narrative-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
.lucy-project__narrative article { padding:4rem 2.2rem; border-right:1px solid var(--lucy-p-border); }
.lucy-project__narrative article:last-child { border-right:0; }
.lucy-project__narrative article > span { color:var(--lucy-p-accent); font-size:.64rem; letter-spacing:.15em; }
.lucy-project__narrative h2 { font-family:var(--lucy-p-display); font-weight:400; font-size:2.15rem; margin:1rem 0 1.2rem; }
.lucy-project__narrative p { color:var(--lucy-p-muted); font-size:.9rem; line-height:1.75; margin:0; }
.lucy-project__tags { display:flex; flex-wrap:wrap; gap:.7rem; align-items:center; padding-top:3rem; padding-bottom:3rem; }
.lucy-project__tags > span { color:var(--lucy-p-muted); font-size:.65rem; letter-spacing:.12em; text-transform:uppercase; margin-right:.4rem; }
.lucy-project__tags a { color:var(--lucy-p-text); text-decoration:none; border:1px solid var(--lucy-p-border); padding:.45rem .7rem; border-radius:100px; font-size:.72rem; }
.lucy-project__tags a:hover { border-color:var(--lucy-p-accent); color:var(--lucy-p-accent); }
.lucy-project__related { padding:6rem 0 8rem; border-top:1px solid var(--lucy-p-border); }
.lucy-project__related-head { margin-bottom:2.7rem; }
.lucy-project__related-head p { color:var(--lucy-p-accent); font-size:.66rem; letter-spacing:.14em; text-transform:uppercase; }
.lucy-project__related-head h2 { font-family:var(--lucy-p-display); font-size:clamp(2.5rem,5vw,4.5rem); font-weight:400; margin:.55rem 0 0; }

@media (max-width:1180px) {
  .lucy-portfolio-shell { width:min(100% - 5rem, 1200px); }
  .lucy-portfolio-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .lucy-project__main { gap:3.5rem; }
}
@media (max-width:1023px) {
  .lucy-portfolio-viewport { overflow-x:auto; scrollbar-width:thin; scrollbar-color:rgba(20,217,165,.5) transparent; scroll-snap-type:x mandatory; padding-bottom:1rem; }
  .lucy-portfolio-track { width:max-content; transform:none!important; }
  .lucy-portfolio-card--carousel { flex:0 0 min(390px, 55vw); width:min(390px,55vw); scroll-snap-align:start; }
  .lucy-portfolio-controls { display:none; }
  .lucy-project__main { grid-template-columns:1fr; }
  .lucy-project__facts { position:static; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 2rem; }
  .lucy-project__external { align-self:end; }
  .lucy-project__narrative-grid { grid-template-columns:1fr; }
  .lucy-project__narrative article { border-right:0; border-bottom:1px solid var(--lucy-p-border); }
  .lucy-project__narrative article:last-child { border-bottom:0; }
}
@media (max-width:700px) {
  .lucy-portfolio-shell { width:calc(100% - 3rem); }
  .lucy-portfolio-home__head { align-items:flex-start; }
  .lucy-portfolio-card--carousel { flex-basis:82vw; width:82vw; }
  .lucy-portfolio-archive__hero { padding:9rem 0 4.5rem; }
  .lucy-portfolio-archive__hero h1 { font-size:clamp(3.7rem,21vw,6.5rem); }
  .lucy-portfolio-archive__content { padding-top:2.8rem; }
  .lucy-portfolio-filters { flex-wrap:nowrap; overflow-x:auto; padding-bottom:.7rem; }
  .lucy-portfolio-filter { flex:0 0 auto; }
  .lucy-portfolio-grid { grid-template-columns:1fr; }
  .lucy-project__hero { padding:9rem 0 3rem; }
  .lucy-project__cover { padding-top:1.5rem; }
  .lucy-project__main { padding-top:3.5rem; padding-bottom:4.5rem; }
  .lucy-project__facts { grid-template-columns:1fr; }
  .lucy-project__narrative article { padding:3rem 0; }
  .lucy-project__related { padding:4.5rem 0 6rem; }
}
@media (prefers-reduced-motion:reduce) {
  .lucy-portfolio-track, .lucy-portfolio-card, .lucy-portfolio-card__media img, .lucy-portfolio-arrow { transition:none; }
}
