/* FotodiSogno — quiet futuristic gallery, October 2026.
   Photo proportions, slideshow behavior and collection content are preserved. */
:root {
  --bg:#090c10; --paper:#edf2f7; --muted:#b0bac5; --faint:#9aa8b6;
  --line:#b7d6ec29; --accent:#b5d9ec;
  --font-display:'Manrope',system-ui,sans-serif;
}
.home-page,.project-page { --bg:#090c10; --paper:#edf2f7; --accent:#b5d9ec; --series-accent:#b5d9ec; }
body { background:var(--bg); }
.home-page .site-header,.project-page .project-header {
  background:#090c10b8; border-bottom:1px solid #d2e5f21c;
  backdrop-filter:blur(22px) saturate(115%); -webkit-backdrop-filter:blur(22px) saturate(115%);
}
.home-page .site-header.scrolled { background:#090c10e8; backdrop-filter:blur(22px); }
.home-page .brand b,.project-page .brand b {
  font:500 clamp(1.2rem,1.7vw,1.6rem)/1.15 var(--font-ui); letter-spacing:-.055em;
}
.brand b em,.home-page .brand b em { color:var(--accent); }
.home-page .brand small,.brand small { color:#c1ccd7; font-size:.75rem; letter-spacing:.12em; }
.home-page .language-switcher button[aria-pressed=true],.project-page .language-switcher button[aria-pressed=true] {
  border-color:#b5d9ec66; background:#b5d9ec12; color:var(--accent); border-radius:8px;
}
.main-nav a:hover { border-color:var(--accent); }
.home-page .cinema-frame { border:0!important; }
.home-page .cinema-copy { max-width:1000px; }
.home-page .cinema-copy h1 {
  font:500 clamp(3.5rem,8vw,8.5rem)/1.08 var(--font-ui); letter-spacing:-.065em;
  color:#f3f6fa; text-shadow:0 4px 32px #0005;
}
.home-page .cinema-copy>p { font-size:.875rem; letter-spacing:.14em; }
.home-page .hero-actions .text-link {
  border:1px solid #d7e7f04d; border-radius:8px; padding:12px 20px; min-height:48px;
  background:#090c1038; backdrop-filter:blur(10px); transition:background .25s,border-color .25s;
}
.home-page .hero-actions .text-link:hover { background:#b5d9ec1f; border-color:#b5d9eca0; }
.home-page .hero-bottom { border-top-color:#d7e7f036; }
.reading-progress { background:linear-gradient(90deg,#8eaabd,#d4efff); height:2px; }
.section-kicker,.hero-kicker { color:var(--accent); }
.home-page .projects-section { padding-top:100px; padding-bottom:110px; }
.home-page .projects-heading { margin-bottom:38px; gap:26px 8%; }
.home-page .projects-heading h2,.home-page .about-copy h2,.home-page .contact-section h2 {
  font-family:var(--font-ui); font-weight:500; letter-spacing:-.055em; line-height:1.14;
}
.home-page .projects-heading h2 { font-size:clamp(2.6rem,4.7vw,5rem); }
.home-page .collection-index { gap:8px 12px; padding:22px 0; margin-bottom:48px; }
.home-page .collection-index a {
  padding:8px 13px; min-height:44px; border:1px solid transparent; border-radius:7px;
  transition:background .25s,border-color .25s,color .25s;
}
.home-page .collection-index a:hover,.home-page .collection-index a:focus-visible {
  background:#b5d9ec0b; border-color:#b5d9ec36; color:var(--paper);
}
.home-page .collection-index a small { color:var(--accent); }
.home-page .project-grid { grid-template-columns:repeat(12,minmax(0,1fr)); gap:72px 5%; align-items:start; }
.home-page .portfolio-card,.home-page .portfolio-card:last-child:nth-child(odd) {
  grid-column:span 5; display:block; padding-top:0; --series-accent:#b5d9ec!important;
}
.home-page .portfolio-card:nth-child(4n+1),.home-page .portfolio-card:nth-child(4n+4) { grid-column:span 7; }
.home-page .portfolio-card:nth-child(2n) { margin-top:100px; }
.home-page .portfolio-card:last-child { margin-top:0; }
.home-page .portfolio-card:last-child:nth-child(odd) { grid-column:1/-1; max-width:100%; }
.home-page .portfolio-card:last-child:nth-child(odd) .card-link { display:block; }
.home-page .portfolio-card .card-image {
  height:clamp(300px,36vw,590px); background:linear-gradient(145deg,#121a23,#0b1016);
  border:1px solid #b5d9ec20; padding:18px; border-radius:3px;
  transition:border-color .35s,background .35s;
}
.home-page .portfolio-card:nth-child(2n) .card-image { height:clamp(290px,29vw,460px); }
.home-page .portfolio-card:last-child:nth-child(odd) .card-image { height:clamp(320px,42vw,640px); }
.home-page .portfolio-card .card-main,.home-page .portfolio-card picture { height:100%; width:100%; display:grid; place-items:center; }
.home-page main .card-main img,.home-page main .manifest-visual img,.home-page main .about-photo>img { border:0; }
.home-page .portfolio-card img { max-height:100%; max-width:100%; width:auto; height:auto; object-fit:contain; }
.home-page .portfolio-card .card-link:hover .card-image { border-color:#b5d9ec70; background:#111a24; }
.home-page .portfolio-card .card-link:hover img { transform:none; filter:brightness(1.025); }
.home-page .card-heading h3 { font:500 clamp(1.5rem,2.6vw,2.7rem)/1.2 var(--font-ui); letter-spacing:-.045em; }
.home-page .portfolio-card .card-heading { padding:22px 0 17px; border-color:var(--line); }
.home-page .portfolio-card .card-heading>span { color:var(--accent); font-size:.875rem; }
.home-page .card-details { font-size:.875rem; color:var(--faint); }
.home-page .portfolio-card>p { color:var(--muted); font-size:1rem; }
.home-page .card-count { font-size:.8125rem; border-radius:5px; background:#090c10cc; }
.home-page .card-open { color:var(--paper); background:#090c10bb; border-color:#b5d9ec50; }
.home-page .card-link:hover .card-open { background:#b5d9ec; color:#090c10; border-color:#b5d9ec; }
.home-page .manifest-section {
  background:radial-gradient(ellipse at 80% 50%,#19304155,transparent 65%),#0e141c;
  padding:80px var(--gutter); gap:10%;
}
.home-page .manifest-copy blockquote { font:500 clamp(2.4rem,4vw,4.7rem)/1.18 var(--font-ui); letter-spacing:-.045em; }
.home-page .manifest-copy .signature { color:var(--accent); }
.home-page .about-section { padding-top:90px; padding-bottom:100px; }
.home-page .about-photo { padding:16px; border:1px solid var(--line); background:#101720; }
.home-page .about-copy h2 { font-size:clamp(2.3rem,3.5vw,4.1rem); }
.home-page .contact-section {
  background:radial-gradient(ellipse at 90% 100%,#203b5055,transparent 65%),#0d131b;
  padding-top:100px; padding-bottom:90px;
}
.home-page .contact-grid { gap:18px; }
.home-page .contact-grid>a { padding:24px; border:1px solid var(--line); border-radius:8px; background:#b5d9ec04; }
.home-page .contact-grid>a:hover { background:#b5d9ec0b; border-color:#b5d9ec66; }
.home-page .contact-value { font-size:clamp(1rem,1.5vw,1.5rem); }
.project-page .project-opening {
  background:radial-gradient(ellipse at 0 20%,#1c344355,transparent 60%),var(--bg);
  padding-bottom:80px;
}
.project-page .project-opening-media { padding:20px; border:1px solid var(--line); }
.project-page .project-opening h1,.project-page .project-opening h1.title-long,.project-page .project-opening h1.title-extra-long {
  font-size:clamp(2.2rem,4.3vw,4.6rem)!important; font-family:var(--font-ui)!important;
  line-height:1.16!important; letter-spacing:-.05em!important;
}
.project-page .project-meta,.project-page .section-kicker,.project-page .frame-number,.project-page .next-project-copy small { color:var(--accent); }
.project-page .project-opening .text-link { border-color:#b5d9ec80; }
.project-page .gallery-heading,.project-page .gallery-caption { border-color:var(--line); }
.project-page .gallery-section { padding-top:64px; }
.project-page .next-project-canvas { border:1px solid var(--line); background:#101720; }
.project-page .project-lightbox { background:#070a0dfb; }
.project-page .lightbox-close,.project-page .lightbox-counter { background:#090c10c9; border-color:#b5d9ec45; }
/* Show portfolio images immediately; motion never hides content. */
.home-page .portfolio-card.reveal,.home-page .portfolio-card.reveal.visible { clip-path:none!important; opacity:1!important; transform:none!important; animation:none!important; }
@media(min-width:821px) and (max-width:1100px) {
  .home-page .project-grid { gap:55px 4%; }
  .home-page .portfolio-card:nth-child(2n) { margin-top:65px; }
  .project-page .project-opening { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
}
@media(max-width:820px) {
  .home-page .site-header { background:#090c10ef; }
  .home-page .brand b { font-size:1.5rem; }
  .home-page .brand small { font-size:.6875rem; }
  .home-page .header-panel,.home-page .site-header.menu-open { background:#090c10; }
  .home-page .cinema-copy h1 { font-size:clamp(2.6rem,11vw,5rem); line-height:1.1; }
  .home-page .cinema-copy>p { font-size:.8125rem; letter-spacing:.08em; }
  .home-page .hero-actions { gap:12px; }
  .home-page .hero-actions .text-link { padding:10px 14px; margin-top:16px; }
  .home-page .projects-section { padding:56px var(--gutter); }
  .home-page .projects-heading { gap:20px; margin-bottom:24px; }
  .home-page .projects-heading h2,.home-page .about-copy h2,.home-page .contact-section h2 { font-size:clamp(2rem,8vw,3.4rem); }
  .home-page .collection-index { margin-bottom:28px; gap:8px; }
  .home-page .collection-index a { padding:8px; }
  .home-page .project-grid { grid-template-columns:minmax(0,1fr); gap:40px; }
  .home-page .portfolio-card,.home-page .portfolio-card:nth-child(n),.home-page .portfolio-card:last-child:nth-child(odd) { grid-column:1; margin-top:0; }
  .home-page .portfolio-card:nth-child(n) .card-image { height:auto; padding:12px; }
  .home-page .portfolio-card .card-main,.home-page .portfolio-card picture { height:auto; }
  .home-page .portfolio-card img { width:100%; height:auto; }
  .home-page .card-heading h3 { font-size:clamp(1.5rem,6.5vw,2.2rem); }
  .home-page .manifest-section { padding:50px var(--gutter); }
  .home-page .manifest-copy blockquote { font-size:clamp(2rem,8vw,3.4rem); }
  .home-page .about-section,.home-page .contact-section { padding:56px var(--gutter); }
  .home-page .contact-grid { gap:12px; }
  .home-page .contact-grid>a { padding:20px; }
  .project-page .project-opening { padding-bottom:40px; }
  .project-page .project-opening-media { padding:12px; }
  .project-page .project-opening h1,.project-page .project-opening h1.title-long,.project-page .project-opening h1.title-extra-long { font-size:clamp(1.8rem,7.5vw,3.2rem)!important; }
}
@media(prefers-reduced-motion:reduce) {
  .home-page .portfolio-card .card-image,.home-page .hero-actions .text-link,.home-page .collection-index a { transition:none; }
}

/* White photographic frames, on the images themselves at every screen size. */
.home-page main img,
.project-page main img,
.project-page .project-lightbox img,
.home-page .frame-lightbox img {
  box-sizing:border-box;
  border:1px solid #fff!important;
}
.lightbox-image-snapshot {
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  padding:inherit; pointer-events:none;
}
.project-page .project-lightbox .lightbox-image { transition:none!important; }
/* Fit borders to the photographic pixels, never to contain-mode letterboxing. */
.home-page .hero-slide,
.home-page .cinema-frame picture {
  display:flex!important; align-items:center; justify-content:center;
}
.home-page .cinema-frame img,
.home-page .hero-slide.is-current img {
  width:auto!important; height:auto!important;
  max-width:100%!important; max-height:100%!important;
  flex:none; margin:auto;
}
.home-page main .manifest-visual img,
.home-page main .about-photo>img {
  width:auto; height:auto; max-width:100%; margin-inline:auto;
}

/* Collection links enter the viewer directly; the grid has no duplicate cover. */
.home-page .projects-heading { grid-template-columns:minmax(0,1fr); margin-bottom:40px; }
.project-page .gallery-section { padding-top:calc(var(--header-h) + 40px); }
.project-page .gallery-heading h1 { font:500 clamp(2rem,4vw,4rem)/1.18 var(--font-ui); letter-spacing:-.045em; }
.project-page .project-lightbox { background:#070a0d; }
@media(max-width:820px) { .project-page .gallery-section { padding-top:calc(var(--header-h) + var(--safe-top,0px) + 28px); } }

/* Full-header slideshow, with photographs shown in their original proportions. */
.home-page .hero-slide { position:absolute;inset:0;opacity:0;transition:none!important;pointer-events:none;text-decoration:none; }
.home-page .hero-slide.is-current { opacity:1;pointer-events:auto; }
.home-page #heroMedia,.home-page .hero-slide { width:auto!important;height:auto!important; }
.home-page .hero-play-controls { display:flex;gap:9px; }
.home-page .hero-play-controls button { display:grid;place-items:center;width:44px;height:44px;border:1px solid #ffffff55;border-radius:50%;font-size:18px;background:#090c1080; }
.home-page .hero-play-controls button:hover { background:#ffffff20;border-color:white; }
@media(min-width:821px) {
  .home-page .cinema-hero { aspect-ratio:3/2;height:auto;min-height:0;max-height:none;padding:calc(var(--header-h) + 40px) var(--gutter) 32px; }
  .home-page .cinema-frame { position:absolute;inset:0;width:100%;height:100%;z-index:-1;background:#07090b;box-shadow:none; }
  .home-page #heroMedia { position:absolute;inset:0; }
  .home-page .hero-shade { display:block;position:absolute;inset:0;background:linear-gradient(180deg,#0006,transparent 24%,transparent 48%,#0008 83%,#000c);pointer-events:none; }
  .home-page .cinema-copy { max-width:none;margin:auto 0 0;padding:70px 0 35px; }
  .home-page .cinema-copy h1 { font-size:clamp(3.5rem,8vw,8.5rem); }
  .home-page .hero-actions { flex-direction:row;align-items:center;gap:14px 28px; }
  .home-page .hero-bottom { margin-top:0; }
}
@media(max-width:820px) {
  .home-page #heroMedia { inset:0; }
  .home-page .hero-play-controls { gap:6px; }
  .home-page .hero-play-controls button { width:38px;height:38px; }
}

/* An aligned collection grid: photographs, restrained captions and consistent spacing. */
.home-page .projects-section { max-width:1600px;margin-inline:auto;padding-top:88px;padding-bottom:88px; }
.home-page .projects-heading { margin-bottom:42px; }
.home-page .projects-heading h2 { font-size:clamp(2.1rem,3.5vw,3.6rem); }
.home-page .project-grid { grid-template-columns:repeat(3,minmax(0,1fr));gap:64px 32px;align-items:start; }
.home-page .portfolio-card:nth-child(n),.home-page .portfolio-card:last-child:nth-child(odd) { grid-column:auto;display:block;margin:0;padding:0;max-width:none; }
.home-page .portfolio-card:nth-child(n) .card-link { display:block; }
.home-page .portfolio-card:nth-child(n) .card-image {
  height:clamp(250px,27vw,410px);padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;display:grid;place-items:end center;overflow:visible;
}
.home-page .portfolio-card .card-main,.home-page .portfolio-card picture { width:100%;height:100%;display:flex;align-items:flex-end;justify-content:center; }
.home-page .portfolio-card img { width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain; }
.home-page .portfolio-card .card-link:hover .card-image { background:transparent;border:0; }
.home-page .portfolio-card .card-count,.home-page .portfolio-card .card-open { display:none; }
.home-page .portfolio-card .card-heading { align-items:flex-start;padding:20px 0 16px;min-height:88px;border-bottom:1px solid var(--line); }
.home-page .portfolio-card .card-heading h3 { font:500 clamp(1.25rem,1.7vw,1.65rem)/1.28 var(--font-ui);letter-spacing:-.035em; }
.home-page .portfolio-card .card-heading>span { font-size:.75rem;padding-top:4px;color:var(--faint); }
.home-page .portfolio-card .card-details { margin-top:14px;font-size:.75rem;letter-spacing:.02em; }
@media(min-width:821px) and (max-width:1100px) {
  .home-page .project-grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:52px 30px; }
  .home-page .portfolio-card:nth-child(n) .card-image { height:340px; }
}
@media(max-width:820px) {
  .home-page .projects-section { padding-top:52px;padding-bottom:52px; }
  .home-page .projects-heading { margin-bottom:28px; }
  .home-page .project-grid { grid-template-columns:minmax(0,1fr);gap:42px; }
  .home-page .portfolio-card:nth-child(n) .card-image { height:auto;padding:0; }
  .home-page .portfolio-card .card-main,.home-page .portfolio-card picture { height:auto; }
  .home-page .portfolio-card img { width:auto;max-width:100%;height:auto;max-height:520px; }
  .home-page .portfolio-card .card-heading { min-height:0;padding:18px 0 14px; }
  .home-page .portfolio-card .card-heading h3 { font-size:1.5rem; }
}
/* Definite image bounds prevent intrinsic portrait heights from covering captions. */
.home-page .portfolio-card .card-main,.home-page .portfolio-card picture,.home-page .portfolio-card img { min-width:0;min-height:0; }
@media(min-width:821px) {
  .home-page .portfolio-card .card-main { position:absolute;inset:0;width:100%;height:100%; }
  .home-page .portfolio-card picture { height:100%;width:100%; }
}

/* Napoli azzurro — small editorial details, October 25, 2026. */
:root {
  --azzurro:#78b7df;
  --azzurro-soft:#9bc7e2;
  --azzurro-line:#78b7df59;
  --azzurro-wash:#78b7df0d;
}
.home-page .brand b em,.project-page .brand b em { color:var(--azzurro-soft); }
.home-page .section-kicker .section-number,
.home-page #heroFrameNumber,
.project-page .frame-number { color:var(--azzurro); }
.home-page .main-nav a:is(:hover,:focus-visible) {
  color:var(--paper); border-bottom-color:var(--azzurro);
}
.home-page .language-switcher button[aria-pressed=true],
.project-page .language-switcher button[aria-pressed=true] {
  color:var(--azzurro-soft); border-color:var(--azzurro-line); background:var(--azzurro-wash);
}
.home-page .hero-actions .hero-explore { border-color:var(--azzurro-line); }
.home-page .hero-actions .text-link:is(:hover,:focus-visible),
.home-page .hero-play-controls button:is(:hover,:focus-visible) {
  border-color:var(--azzurro); background:#78b7df14;
}
.home-page .portfolio-card .card-heading {
  border-image:linear-gradient(90deg,var(--azzurro-line) 0 28px,var(--line) 28px 100%) 1;
}
.home-page .portfolio-card .card-link:is(:hover,:focus-visible) .card-heading>span {
  color:var(--azzurro-soft);
}
.home-page .about-copy .text-link,
.project-page .project-header-contact { border-bottom-color:var(--azzurro-line); }
.home-page .about-copy .text-link i,
.home-page .contact-grid>a>i { color:var(--azzurro-soft); }
.home-page .contact-grid>a:is(:hover,:focus-visible) {
  border-color:var(--azzurro-line); background:var(--azzurro-wash);
}
.project-page .project-back:is(:hover,:focus-visible),
.project-page .lightbox-arrow:is(:hover,:focus-visible),
.project-page .lightbox-close:is(:hover,:focus-visible) { color:var(--azzurro-soft); }
.home-page a:focus-visible,.home-page button:focus-visible,
.project-page a:focus-visible,.project-page button:focus-visible {
  outline-color:var(--azzurro);
}
