/* P02: the real shop behind the page, the richer second layer, the people. Loaded after style.css. */
:root {
  --green-text: #014f3a;   /* links and «Ανοιχτά»: dark enough for the photo layers */
  --green-name: #015a43;
  --card: #fbf8f1;
  --rule: #cdc5b3;
}
body { background-color: var(--paper); }

/* ---------- background: one photograph per section, two-tone, soft, slower than the scroll */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; display: none; }
.js .bg { display: block; }
.bg-i { position: absolute; left: 0; right: 0; top: -10%; height: 120%; background-size: cover; background-position: 50% 50%; opacity: 0; will-change: transform, opacity; }
.bg-i[data-bg="hero"] { opacity: 1; }
.bg-i.ld[data-bg="hero"] { background-image: url("photos/bg-hero-l.webp"); background-position: 30% 40%; }
.bg-i.ld[data-bg="history"] { background-image: url("photos/bg-history-l.webp"); }
.bg-i.ld[data-bg="people"] { background-image: url("photos/bg-people-l.webp"); }
.bg-i.ld[data-bg="hours"] { background-image: url("photos/bg-hours-l.webp"); }
.bg-i.ld[data-bg="services"] { background-image: url("photos/bg-services-l.webp"); }
.bg-i.ld[data-bg="mortar"] { background-image: url("photos/bg-mortar-l.webp"); }
.bg-i.ld[data-bg="foot"] { background-image: url("photos/bg-foot-l.webp"); }
@media (max-aspect-ratio: 1/1) {
  .bg-i.ld[data-bg="hero"] { background-image: url("photos/bg-hero-p.webp"); background-position: 50% 50%; }
  .bg-i.ld[data-bg="history"] { background-image: url("photos/bg-history-p.webp"); }
  .bg-i.ld[data-bg="people"] { background-image: url("photos/bg-people-p.webp"); }
  .bg-i.ld[data-bg="hours"] { background-image: url("photos/bg-hours-p.webp"); }
  .bg-i.ld[data-bg="services"] { background-image: url("photos/bg-services-p.webp"); }
  .bg-i.ld[data-bg="mortar"] { background-image: url("photos/bg-mortar-p.webp"); }
  .bg-i.ld[data-bg="foot"] { background-image: url("photos/bg-foot-p.webp"); }
}
/* daylight through the shop window: three panes of warm light, slanted, drifting */
.light { position: absolute; left: -30vmax; top: -40vmax; width: 170vmax; height: 180vmax; transform: translate3d(0, 0, 0) rotate(-24deg); will-change: transform;
  background: linear-gradient(90deg,
    rgba(255, 250, 236, 0) 30%, rgba(255, 250, 236, 0.62) 33.5%, rgba(255, 250, 236, 0.62) 40%, rgba(255, 250, 236, 0) 42.5%,
    rgba(255, 250, 236, 0) 43.5%, rgba(255, 250, 236, 0.55) 46%, rgba(255, 250, 236, 0.55) 53%, rgba(255, 250, 236, 0) 55.5%,
    rgba(255, 250, 236, 0) 56.5%, rgba(255, 250, 236, 0.4) 59%, rgba(255, 250, 236, 0.4) 64%, rgba(255, 250, 236, 0) 67.5%);
  -webkit-mask-image: linear-gradient(180deg, transparent 12%, #000 34%, #000 58%, transparent 86%); mask-image: linear-gradient(180deg, transparent 12%, #000 34%, #000 58%, transparent 86%); }
/* without JavaScript: the same photographs, fixed to their sections, no motion */
html:not(.js) .sec { background-size: cover; background-position: 50% 50%; }
html:not(.js) .hero { background-image: url("photos/bg-hero-l.webp"); }
html:not(.js) .leaflet { background-image: url("photos/bg-history-l.webp"); }
html:not(.js) .people { background-image: url("photos/bg-people-l.webp"); }
html:not(.js) .blister { background-image: url("photos/bg-hours-l.webp"); }
html:not(.js) .jar { background-image: url("photos/bg-services-l.webp"); }
html:not(.js) .mortar { background-image: url("photos/bg-mortar-l.webp"); }
html:not(.js) .foot { background-image: url("photos/bg-foot-l.webp"); }

.bigword { color: rgba(255, 252, 244, 0.34); }

/* ---------- cards */
.card { margin: 0; background: var(--card); border: 1px solid var(--rule); border-radius: 6px; padding: 0.65rem 0.65rem 0.7rem; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 22px 44px -30px rgba(22, 33, 28, 0.6); }
.card img { display: block; width: 100%; height: auto; border-radius: 3px; }
.card figcaption { font-size: 1.125rem; line-height: 1.35; color: var(--ink-soft); margin-top: 0.55rem; }
.card.info { padding: 1rem 1.1rem 1.05rem; }
.card h3 { font: 800 1.75rem/1.05 "Sofia Sans Extra Condensed", sans-serif; letter-spacing: 0.01em; margin: 0 0 0.35em; }
.card .duty { margin: 0; font-size: 1.125rem; line-height: 1.4; }
.card .duty a { padding: 0.45em 0; }
.card.map img { border: 1px solid var(--rule); }
.osm { display: block; font-size: 1.125rem; color: var(--ink-soft); }
.copy.wide { max-width: none; }
.lede { font-size: 1.3125rem; line-height: 1.45; font-weight: 500; }

/* ---------- hero: title directions (a editorial lockup, b the shop sign, c outline and solid) */
.name[data-title] { display: grid; justify-items: start; }
.name.t-a { font-size: min(15.6vw, 31vh); line-height: 0.8; }
.name.t-a span:first-child { font-weight: 300; font-size: 0.42em; line-height: 1; letter-spacing: 0.012em; color: var(--ink); display: flex; align-items: baseline; gap: 0.5em; margin-bottom: 0.1em; }
.name.t-a span:first-child::after { content: "1976 — 2026"; font: 600 1.125rem/1 "Sofia Sans", sans-serif; letter-spacing: 0.16em; color: var(--ink-soft); padding: 0 0 0 1em; border-left: 2px solid var(--green); align-self: center; }
.name.t-a span:last-child { color: var(--green-name); letter-spacing: -0.012em; }
.name.t-b { font: 900 min(9.6vw, 19vh)/0.92 "Sofia Sans", sans-serif; }
.name.t-b span:first-child { text-transform: uppercase; letter-spacing: 0.01em; color: var(--green-name); text-shadow: 0 1px 0 #2a9a7b, 1px 2px 0 #013f2f, 2px 3px 0 #013f2f, 3px 4px 0 #013a2b, 4px 5px 0 #013a2b, 5px 6px 0 #01352a, 10px 16px 18px rgba(20, 40, 30, 0.35); }
.name.t-b span:last-child { text-transform: uppercase; font: 700 0.3em/1 "Sofia Sans", sans-serif; letter-spacing: 0.34em; color: var(--ink); margin-top: 0.75em; padding: 0.5em 0.5em 0.45em 0.85em; border: 2px solid #8d968f; background: linear-gradient(180deg, #f4f4f0, #dcdfd9); box-shadow: 0 1px 0 #fff inset, 3px 5px 10px -4px rgba(20, 40, 30, 0.5); }
.name.t-c { font-size: min(13.6vw, 27.5vh); line-height: 0.84; }
.name.t-c span:first-child { color: transparent; -webkit-text-stroke: 0.014em var(--green-name); }
.name.t-c span:last-child { color: var(--ink); }

.factrow { position: relative; z-index: 2; list-style: none; margin: 2.2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; max-width: 57vw; }
.factrow li { border-top: 2px solid var(--ink); padding: 0.5rem 0 0; font-size: 1.1875rem; font-weight: 600; line-height: 1.2; color: var(--ink); }
.factrow b { font: 800 2.1rem/1 "Sofia Sans Extra Condensed", sans-serif; letter-spacing: 0.01em; }

/* ---------- history: the timeline of the 50-year card */
.leaflet .copy.tl { max-width: none; display: grid; grid-template-columns: minmax(0, 27rem) minmax(11rem, 17rem); gap: 2.4rem; align-items: center; align-content: center; }
.gl .fold.tl { min-height: 96vh; }
.tl .eyebrow { font: 700 1.25rem/1 "Sofia Sans", sans-serif; letter-spacing: 0.16em; color: var(--green-text); }
.timeline { list-style: none; margin: 1.3rem 0 1.1rem; padding: 0 0 0 1.5rem; border-left: 2px solid var(--green); }
.timeline li { position: relative; padding: 0 0 1.05rem; }
.timeline li::before { content: ""; position: absolute; left: calc(-1.5rem - 8px); top: 0.3rem; width: 14px; height: 14px; border-radius: 50%; background: var(--card); border: 3px solid var(--green); }
.timeline time { display: block; font: 800 1.75rem/1 "Sofia Sans Extra Condensed", sans-serif; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.timeline span { display: block; font-size: 1.125rem; line-height: 1.35; }
.thanks { font: 700 1.75rem/1.1 "Sofia Sans Extra Condensed", sans-serif; margin: 0; }
.tl-card { transform: rotate(1.6deg); }

/* ---------- people */
.people { padding-top: 16vh; padding-bottom: 16vh; z-index: 2; display: grid; grid-template-columns: minmax(16rem, 1fr) minmax(0, 3.1fr); gap: 3rem; align-items: start; }
.people-head { position: sticky; top: 14vh; }
.people .title { font-size: clamp(2.8rem, 5vw, 5rem); }
.quote { margin: 1.6rem 0 0; padding: 0 0 0 1.2rem; border-left: 4px solid var(--green); }
.quote p { font: 600 clamp(1.6rem, 2.1vw, 2.2rem)/1.12 "Sofia Sans Extra Condensed", sans-serif; letter-spacing: 0.01em; margin: 0 0 0.5rem; }
.quote footer { font-size: 1.125rem; color: var(--ink-soft); }
.people-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.person { background: var(--card); border: 1px solid var(--rule); border-radius: 6px; padding: 0.7rem 0.7rem 1.2rem; box-shadow: 0 30px 50px -36px rgba(22, 33, 28, 0.7); }
.person:nth-child(2) { margin-top: 3.5rem; }
.person:nth-child(3) { margin-top: 7rem; }
.person img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 50% 30%; border-radius: 3px; }
.person h3 { font: 800 clamp(2.4rem, 3.2vw, 3.4rem)/1 "Sofia Sans Extra Condensed", sans-serif; margin: 0.9rem 0.5rem 0.1rem; }
.person .role { font-weight: 700; font-size: 1.125rem; color: var(--green-text); margin: 0 0.5rem 0.6rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--rule); }
.person p { font-size: 1.125rem; line-height: 1.5; margin: 0 0.5rem; }

/* ---------- foot hours */
.foot-hours { margin: 0.4rem 0 1rem; font-size: 1.125rem; }
.foot-hours div { display: flex; flex-wrap: wrap; gap: 0 0.8rem; padding: 0.4rem 0; border-bottom: 1px solid var(--rule); }
.foot-hours dt { font-weight: 700; min-width: 13.5rem; }
.foot-hours dd { margin: 0; font-variant-numeric: tabular-nums; }

/* ---------- desktop spreads */
@media (min-width: 821px) {
  .copy.wide { display: grid; gap: 2.2rem; align-items: start; }
  .blister .copy.wide { grid-template-columns: minmax(0, 34rem); }
  .blister .side-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: start; max-width: 34rem; }
  .blister .card.map img { max-height: 9.5rem; object-fit: cover; }
  .jar .copy.wide { grid-template-columns: minmax(0, 36rem); }
  .jar .side-col { display: none; }
  .mortar .copy.wide { grid-template-columns: minmax(0, 31rem) minmax(11rem, 16rem); align-items: center; }
  .mortar .side-col { transform: rotate(-1.5deg); }
  .foot .copy.wide { grid-template-columns: minmax(0, 22rem) minmax(11rem, 15rem) minmax(7rem, 9rem); }
  .foot .call { white-space: nowrap; }
  .foot .side-col.third { transform: rotate(2deg); margin-top: 2.5rem; }
  .foot .title { margin-bottom: 0.25em; }
}
@media (min-width: 1500px) {
  .blister .copy.wide { grid-template-columns: minmax(0, 32rem) minmax(15rem, 1fr); }
  .blister .side-col { grid-template-columns: 1fr; max-width: 20rem; margin-top: 5.2rem; }
  .blister .card.map img { max-height: none; }
  .jar .copy.wide { grid-template-columns: minmax(0, 34rem) minmax(13rem, 1fr); }
  .jar .side-col { display: block; max-width: 18rem; margin-top: 6rem; transform: rotate(1.4deg); }
  .jar .photo-tall img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 38% 50%; }
}
@media (min-width: 821px) and (max-height: 900px) {
  .gl .blister .copy { top: 5vh; }
  .gl .jar .copy { top: 5vh; }
  .gl .mortar .copy { top: 9vh; }
  .title { font-size: clamp(2.4rem, 4.4vw, 4rem); }
  .hours th, .hours td { padding-top: 0.42rem; padding-bottom: 0.42rem; }
}

/* ---------- phone */
@media (max-width: 820px) {
  .gl .veil { transition: opacity 0.3s ease; background: var(--paper); border-bottom: 1px solid var(--rule); box-shadow: 0 14px 22px -16px rgba(22, 33, 28, 0.45); }
  .name.t-a { font-size: min(25.5vw, 15svh); line-height: 0.82; }
  .name.t-a span:first-child::after { font-size: 1.125rem; letter-spacing: 0.08em; padding-left: 0.6em; }
  .name.t-b { font-size: min(15.6vw, 9.6svh); }
  .name.t-c { font-size: min(23vw, 14svh); }
  .factrow { max-width: none; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; margin-top: 1.6rem; }
  .factrow b { font-size: 2.2rem; }
  .copy.wide { display: block; }
  .side-col { margin-top: 1.4rem; }
  .card + .card { margin-top: 1.1rem; }
  .leaflet .copy.tl { display: block; }
  .gl .fold.tl { min-height: 0; padding-bottom: 10svh; }
  .tl-card { max-width: 17rem; margin-top: 1.4rem; }
  .people, .gl .people.sec { display: block; padding-top: 9svh; padding-bottom: 9svh; }
  .people-head { position: static; }
  .people-grid { display: block; }
  .person { margin-top: 1.6rem !important; }
  .mortar .side-col, .jar .side-col { max-width: 19rem; }
  .foot .side-col.third { max-width: 11rem; }
  .foot-hours dt { min-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .bg-i, .light { will-change: auto; } }

/* hero: the fact row closes the first screen */
@media (min-width: 821px) and (min-height: 860px) {
  .hero { padding-top: 5vh; }
  .hero .facts { margin-top: 4.5vh; }
  .gl .hero .factrow { position: absolute; left: var(--gut); top: calc(100vh - 5.6rem); margin: 0; flex-wrap: nowrap; white-space: nowrap; }
}

/* the photographs took over the role of the large background words */
.bigword { display: none; }
/* large desktop: everything one step larger, so the spreads fill the screen */
@media (min-width: 1600px) and (min-height: 900px) { html { font-size: 118.75%; } }
.thanks { font-size: 2.1rem; }

/* ---------- leaflet: an index on the lead, and a second layer beside each fold */
.leaf-index { list-style: none; counter-reset: li; margin: 1.6rem 0 0; padding: 0; border-top: 2px solid var(--ink); max-width: 24rem; }
.leaf-index li { counter-increment: li; border-bottom: 1px solid var(--rule); }
.leaf-index a { display: flex; align-items: baseline; gap: 0.8rem; min-height: 44px; padding: 0.55rem 0; font-weight: 600; text-decoration: none; color: var(--ink); }
.leaf-index a::before { content: counter(li); font: 800 1.5rem/1 "Sofia Sans Extra Condensed", sans-serif; color: var(--green-text); min-width: 1.2rem; }
.leaf-index li.plain a::before { content: "→"; font-family: "Sofia Sans", sans-serif; font-size: 1.25rem; }
.leaf-index a:hover { color: var(--green-text); }
.fold-media { margin: 0 0 1.4rem; }
.fold-media.card { max-width: 13rem; transform: rotate(-1.4deg); }
.fold-media.duo { display: flex; align-items: center; gap: 0.7rem; }
.fold-media.duo img { width: 5.2rem; height: 5.2rem; border-radius: 50%; object-fit: cover; object-position: 50% 28%; border: 3px solid var(--card); box-shadow: 0 10px 20px -12px rgba(22, 33, 28, 0.7); }
.fold-media.duo img + img { margin-left: -1.6rem; }
.fold-media.duo a { font-weight: 700; padding: 0.7em 0.2em; margin-left: 0.4rem; }
.fold-media.values { display: flex; flex-direction: column; font: 800 clamp(2.4rem, 3.6vw, 4.4rem)/0.88 "Sofia Sans Extra Condensed", sans-serif; color: var(--green-name); }
.fold-media.values span:nth-child(2) { color: var(--ink); }
@media (min-width: 821px) {
  .leaflet .copy.fold:not(.tl) { max-width: none; display: grid; grid-template-columns: minmax(16rem, 28rem) minmax(0, auto); column-gap: 2.2rem; align-content: center; justify-content: start; align-items: center; }
  .leaflet .fold:not(.tl) > * { grid-column: 1; }
  .leaflet .fold:not(.tl) > .fold-media { grid-column: 2; grid-row: 1 / span 3; margin: 0; }
  .leaflet .fold:not(.tl) > .fold-media.duo { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
  .fold-media.duo img { width: 8.5rem; height: 8.5rem; }
  .fold-media.duo img + img { margin: -2rem 0 0 4.2rem; }
  .fold-media.duo a { margin: 0.3rem 0 0; }
  .fold h3 { font-size: clamp(2.6rem, 4.2vw, 4.2rem); }
}
@media (min-width: 821px) { .hours td { white-space: nowrap; } .hours td:has(.ph) { white-space: normal; } }
.hours th { width: 7.6em; }

@media (min-width: 821px) { .gl .jar { min-height: 240vh; } }
@media (min-width: 821px) { .gl .jar .copy { top: 7vh; } }
.capture .bg { display: none !important; }
/* stills (no WebGL): shown as photo cards */
html:not(.gl) .still { border: 1px solid var(--rule); box-shadow: 0 22px 44px -30px rgba(22, 33, 28, 0.6); }
/* phone: the stage band carries the window light too, so it is never a blank strip */
@media (max-width: 820px) {
  .gl .veil { background: linear-gradient(112deg, rgba(255, 252, 244, 0) 18%, rgba(255, 252, 244, 0.9) 26%, rgba(255, 252, 244, 0.9) 44%, rgba(255, 252, 244, 0) 52%, rgba(255, 252, 244, 0) 56%, rgba(255, 252, 244, 0.8) 63%, rgba(255, 252, 244, 0.8) 80%, rgba(255, 252, 244, 0) 90%), linear-gradient(180deg, #ece8dc, #f1ece1 60%, #ebe5d6); }
}
.fold-media.duo a { white-space: nowrap; }
@media (min-width: 821px) and (max-width: 1499px) {
  .fold-media.values { font-size: 2.6rem; }
  .mortar .copy.wide { grid-template-columns: minmax(0, 27rem) 10rem; }
}
@media (min-width: 821px) {
  .leaflet .fold:not(.tl) > .fold-media.values { grid-column: 1; grid-row: 4; margin: 1.4rem 0 0; font-size: clamp(2.6rem, 4vw, 4.6rem); }
  html:not(.gl) .hero > .still { width: 31%; }
}
@media (max-width: 820px) { .fold-media.values { order: 5; margin: 0.6rem 0 0; } }
.card .duty a { display: inline-block; padding: 0.72em 0; min-height: 44px; }
.fold .thanks { font-size: 2.2rem; }
@media (min-width: 821px) {
  .person img { aspect-ratio: 1 / 0.94; }
  .person:nth-child(2) { margin-top: 2.6rem; }
  .person:nth-child(3) { margin-top: 5.2rem; }
}

/* ---------- top line: the eyebrow and a small section nav (desktop) */
.topline { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.topnav { display: flex; gap: 0.4rem 2rem; }
.topnav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 1.125rem; color: var(--ink); text-decoration: none; border-bottom: 2px solid transparent; }
.topnav a:hover { color: var(--green-text); border-bottom-color: var(--green); }
.hero .topline .eyebrow { margin: 0; }
@media (max-width: 820px) { .topnav { display: none; } .hero .topline .eyebrow { margin-bottom: 6px; } }
@media (min-width: 821px) {
  /* a link to a section lands a little inside it, where its object is already on the stage */
  .gl #orario, .gl #ypiresies, .gl #magistrikes { scroll-margin-top: -18vh; }
  .gl .fold { scroll-margin-top: -8vh; }
}
/* shorter gaps between the pinned spreads, so the stage is not left bare between sections */
@media (min-width: 821px) {
  .gl .blister { padding-bottom: 5vh; }
  .gl .jar { padding-top: 9vh; padding-bottom: 4vh; }
  .gl .mortar { padding-top: 9vh; padding-bottom: 5vh; }
  .gl .foot { padding-top: 13vh; }
}
/* without the canvas: the leaflet still follows the lead text instead of sitting under it */
@media (min-width: 821px) { html:not(.gl) .leaflet > .still { position: relative; left: auto; top: auto; width: 30rem; max-width: 38%; margin: 0 0 1rem; } }
@media (max-width: 820px) { html:not(.gl) .still { box-shadow: none; margin-bottom: 0.9rem; } }
