/* REGION B: catalogue, index, contact, footer, case view, products overlay.
   Positions below are the final resting layout. sections.js only adds transforms,
   opacity and clip-path on top of it, so the page reads correctly without motion. */

main{display:block}

/* ---------- full-screen pages ----------
   Every section is exactly one screen. js/pager.js moves one section per gesture; scroll-snap is
   the no-JS and scrollbar-drag fallback. html.pager-moving (during the JS tween) and html.no-snap
   (?y=, ?pager=0) switch the snapping off. */
html{scroll-snap-type:y mandatory}
html.pager-moving,html.no-snap{scroll-snap-type:none}
.sec{scroll-snap-align:start;scroll-snap-stop:always}
.sec.hero,.sec.catalogue,.sec.index,.sec.contact{height:100vh;height:100svh;min-height:0}

/* ---------- reveal states (classes are added by JS, so no-JS stays visible) ---------- */
.rv{transition:opacity .9s ease,transform 1.05s var(--ease);transition-delay:var(--d,0ms);will-change:transform,opacity}
.rv:not(.in){opacity:0}
.rv-pop{transform-origin:0 100%}
.rv-pop:not(.in){transform:translate3d(0,40px,0) scale(.6)}
.rv-up:not(.in){transform:translate3d(0,26px,0)}
.rv-grow{transform-origin:0 50%}
.rv-grow:not(.in){transform:scale(.08,.5)}
.rv-fade{transition:opacity 1s ease;transition-delay:var(--d,0ms)}
html.gdl-now .rv,html.gdl-now .contact-art{transition:none !important}

.ph{border-bottom:1px dashed currentColor;cursor:help}

/* ---------- #catalogue (dark 2) ---------- */
.cat-copy{position:absolute;z-index:var(--z-copy);left:calc(var(--gutter) + 1.2vw);top:34vh;width:min(24rem,34vw)}
.cat-copy > *{will-change:transform,opacity}
.cat-copy .body{margin-top:1.4rem;min-height:3em}
.cat-copy .meta{margin-top:1.4rem;display:flex;gap:1.4rem;flex-wrap:wrap}
.cat-copy .meta .cat-count{opacity:.75}
.cat-copy .textlink{display:inline-block;margin-top:1.6rem}
.cat-copy .textlink:hover{color:var(--pear)}
/* the one filled pear shape besides the Scroll disc: the way into the products overlay */
.neon{display:flex;width:max-content;align-items:center;height:2.5rem;margin-top:2.4rem;padding:0 1.15rem;background:var(--pear);color:var(--navy);font-family:var(--display);font-size:1rem;letter-spacing:.06em;text-transform:uppercase;line-height:1;transition:background-color .3s ease}
.neon:hover{background:var(--ghost)}
.neon:focus-visible{outline-color:var(--pear)}
.cat-stage{position:absolute;z-index:var(--z-cross);left:46%;width:39%;top:3vh;height:calc(39vw * 1.42);will-change:transform}
.cat-frame{position:absolute;inset:0;overflow:hidden;background:var(--panel);touch-action:pan-y;cursor:grab}
.cat-slide{position:absolute;inset:0;overflow:hidden;visibility:hidden}
.cat-slide.is-current,.cat-slide.is-entering{visibility:visible}
.cat-slide img{position:absolute;top:0;left:-6%;width:112%;max-width:none;height:100%;object-fit:cover;will-change:transform}
.cat-slide.is-current{z-index:1}
.cat-slide.is-entering{z-index:2}
.cat-btn{position:absolute;z-index:3;bottom:24%;width:60px;height:38px;display:grid;place-items:center;background:var(--panel);color:var(--ghost);transition:background-color .3s ease,color .3s ease}
.cat-btn svg{width:28px;height:10px;fill:none;stroke:currentColor;stroke-width:1.1}
.cat-btn:hover{color:var(--pear)}
.cat-prev{left:-30px}
.cat-next{right:-30px}

/* ---------- #index (light) ---------- */
/* --orb: the circle fits short screens too; left keeps the outer arc of dots (to -0.28 of the circle) on screen */
.orb-wrap{--orb:min(33vw,54vh);position:absolute;left:max(7%,calc(var(--orb) * .34));top:17vh;width:var(--orb);height:var(--orb)}
.orb{position:absolute;inset:0;border-radius:50%;overflow:hidden;background:#e9ecdf;will-change:transform}
.orb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:opacity .35s ease}
.dots{position:absolute;inset:0;pointer-events:none}
.dot{position:absolute;width:9px;height:9px;margin:-4.5px 0 0 -4.5px;border-radius:50%;background:var(--pear);box-shadow:0 0 0 1.5px var(--navy);will-change:transform}
.dot.ink{background:var(--navy)}
.index-copy{position:absolute;z-index:var(--z-copy);left:52%;top:27vh;width:min(26rem,30vw)}
.index-list{list-style:none;margin:1.5rem 0 0;padding:0;counter-reset:ix}
.index-list li{border-top:1px solid #09274224}
.index-list li:last-child{border-bottom:1px solid #09274224}
.index-list a{position:relative;display:grid;grid-template-columns:2rem 1fr auto;align-items:baseline;gap:.8rem;padding:.62rem 0}
.ix-n,.ix-meta{font-family:var(--display);font-size:.85rem;letter-spacing:.06em;text-transform:uppercase;color:var(--navy-soft)}
.ix-name{font-size:clamp(.95rem,1.1vw,1.08rem);font-weight:400;transition:transform .45s var(--ease)}
.index-list a::before{content:"";position:absolute;left:0;top:50%;width:9px;height:9px;margin-top:-4.5px;border-radius:50%;background:var(--pear);box-shadow:0 0 0 1.5px var(--navy);transform:scale(0);transition:transform .35s var(--ease)}
.index-list a:hover::before,.index-list a:focus-visible::before,.index-list a.is-on::before{transform:scale(1)}
.index-list a:hover .ix-n,.index-list a:focus-visible .ix-n,.index-list a.is-on .ix-n{opacity:0}
.index-list a:hover .ix-name,.index-list a:focus-visible .ix-name{transform:translateX(.35rem)}

/* ---------- #contact (dark) ---------- */
.contact{padding-top:15vh;overflow:hidden}
.contact-copy{position:relative;z-index:var(--z-copy);margin-left:1.2vw;width:min(24rem,36vw)}
.contact-copy .body{margin-top:1.4rem}
.mail{margin-top:3.2rem;display:flex;flex-wrap:wrap;align-items:center;gap:.6rem 1rem}
.mail span{font-size:clamp(1rem,1.25vw,1.2rem);font-weight:400;user-select:all;overflow-wrap:anywhere}
.mail button{height:30px;padding:0 .9rem;background:var(--panel);font-family:var(--display);font-size:.9rem;letter-spacing:.06em;text-transform:uppercase;transition:color .3s ease}
.mail button:hover{color:var(--pear)}
.mail button.done{color:var(--pear)}
.links{list-style:none;margin:1.8rem 0 0;padding:0;display:grid;gap:.15rem}
.links a{display:inline-block;padding:.45rem 0;font-family:var(--display);font-size:1.05rem;letter-spacing:.06em;text-transform:uppercase;color:var(--ghost-soft);border-bottom:1px solid #fefffa22;min-width:12rem;transition:color .3s ease,border-color .3s ease}
.links a:hover,.links a:focus-visible{color:var(--ghost);border-color:var(--pear)}
.contact-art{position:absolute;z-index:var(--z-cross);left:46%;width:min(33%,46vh);top:8vh;height:min(49.5vw,72vh);overflow:hidden;background:#0c2238;clip-path:inset(0 0 0 0)}
.contact-art img{position:absolute;left:0;top:-11%;width:100%;height:126%;max-width:none;object-fit:cover;object-position:52% 50%}
.contact-art.is-line{clip-path:inset(0 calc(50% - 2px) 0 calc(50% - 2px))}
.contact-art.is-open{transition:clip-path .8s var(--ease-io)}
.foot{position:absolute;left:calc(var(--gutter) + 1.2vw);right:calc(var(--gutter) + 3vw);bottom:5vh;display:flex;align-items:baseline;justify-content:space-between;gap:.6rem 2rem;flex-wrap:wrap;font-size:.85rem;color:var(--ghost-soft)}
.foot .logo{color:var(--ghost);font-size:1.3rem}
.foot-mid i{font-style:normal;margin:0 .45rem;opacity:.6}
.foot-top{font-family:var(--display);letter-spacing:.06em;text-transform:uppercase;font-size:.9rem;border-bottom:1px solid #fefffa33}
.foot-top:hover{color:var(--pear);border-color:var(--pear)}

/* ---------- case view ---------- */
.case{position:fixed;inset:0;z-index:var(--z-case);background:var(--navy);color:var(--ghost);overflow-y:auto;overscroll-behavior:contain;clip-path:inset(var(--ct,0px) var(--cr,0px) var(--cb,0px) var(--cl,0px))}
.case:focus{outline:none}
.case.grow{transition:clip-path .85s cubic-bezier(.72,0,.18,1)}
.case.leave{opacity:0;transition:opacity .28s ease}
.case-in{transition:opacity .6s ease .3s,transform .9s var(--ease) .3s}
.case.pre .case-in{opacity:0;transform:translateY(24px)}
.case-wrap{padding-left:var(--gutter);padding-right:var(--gutter)}
.case-small{font-family:var(--display);font-size:.95rem;letter-spacing:.06em;text-transform:uppercase}
.case-bar{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;align-items:center;padding-top:1.1rem;padding-bottom:1.1rem;background:var(--navy);border-bottom:1px solid #fefffa22}
.case-bar .case-count{color:var(--ghost-soft)}
.case-bar button{padding:.35rem 0;border-bottom:1px solid #fefffa44}
.case-bar button:hover{color:var(--pear);border-color:var(--pear)}
.case-head{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:1rem;row-gap:1.2rem;padding-top:clamp(2.5rem,7vw,6rem);padding-bottom:clamp(1.6rem,3vw,3rem);align-items:end}
.case-head h2{grid-column:1 / 13;margin:0;font-family:var(--display);font-weight:400;font-size:clamp(2.2rem,4vw,3.8rem);line-height:1;letter-spacing:.01em;text-transform:uppercase}
.case-head p{grid-column:1 / 6;margin:0;max-width:38ch;color:var(--ghost-soft)}
.case-facts{grid-column:7 / 13;display:flex;flex-wrap:wrap;gap:.4rem 2rem;justify-content:flex-end;margin:0;padding:0;list-style:none;color:var(--ghost-soft)}
.case-views{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:clamp(1rem,2.4vw,2.4rem) 1rem;padding-bottom:clamp(3rem,8vw,7rem);align-items:start}
.case-views figure{margin:0;grid-column:1 / 13}
.case-views figure.half{grid-column:span 6}
.case-views figure.slim{grid-column:span 3;max-width:288px}
.case-frame{display:block;overflow:hidden;border:1px solid #fefffa22;background:#fefffa0d}
.case-frame img{width:100%;height:auto}
.case-views figcaption{padding-top:.6rem;color:var(--ghost-soft)}
.case-blank{aspect-ratio:16 / 10;display:grid;place-items:center;text-align:center;padding:1rem;border:1px dashed var(--ghost-soft);color:var(--ghost-soft);background-image:repeating-linear-gradient(135deg,#fefffa22 0 1px,transparent 1px 14px)}
.case-blank b{display:block;font-weight:400;color:var(--pear);margin-bottom:.4rem}
.case-next{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:1rem;align-items:end;padding-top:clamp(2rem,4vw,3.5rem);padding-bottom:clamp(3rem,6vw,5rem);border-top:1px solid #fefffa22}
.case-next .case-small{grid-column:1 / 13;color:var(--ghost-soft);padding-bottom:.8rem}
.case-next strong{grid-column:1 / 9;font-family:var(--display);font-weight:400;font-size:clamp(1.8rem,3vw,2.8rem);line-height:1;text-transform:uppercase;transition:transform .6s var(--ease)}
.case-next:hover strong{transform:translateX(.12em);color:var(--pear)}
.case-next .case-frame{grid-column:10 / 13}

/* ---------- narrow screens: one column, light parallax ---------- */
@media (max-width:760px){
  /* phones: a section is at least one screen; a taller one scrolls inside its own snap area */
  .sec.catalogue,.sec.index,.sec.contact{height:auto;min-height:100vh;min-height:100svh}
  .cat-copy,.index-copy{position:relative;left:auto;top:auto;width:auto;max-width:30rem}
  .catalogue{display:flex;flex-direction:column;padding-top:12vh;padding-bottom:0}
  .cat-copy{order:2;margin-top:2.2rem;padding-bottom:4rem;min-height:15rem}
  .cat-stage{position:relative;order:1;left:auto;top:auto;width:calc(100% - 44px);margin:0 22px;height:auto;aspect-ratio:1 / 1.3}
  .cat-prev{left:-22px}
  .cat-next{right:-22px}
  .cat-btn{width:50px;height:36px;bottom:12%}
  .index{padding-top:8vh;padding-bottom:6vh}
  .orb-wrap{position:relative;left:auto;top:auto;width:64vw;height:64vw;margin-left:12vw;margin-bottom:27vw}
  .index-copy{margin-top:1rem}
  .contact{padding-top:12vh;padding-bottom:3rem;display:flex;flex-direction:column;overflow:visible}
  .contact-copy{width:auto;margin-left:0}
  .contact-art{position:relative;left:auto;top:auto;height:115vw;order:-1;margin-top:0;margin-bottom:3rem;width:70%;align-self:center}
  .foot{position:relative;left:auto;right:auto;bottom:auto;margin-top:4rem;flex-direction:column;gap:.5rem}
  .foot-mid{line-height:1.8}
  .case-head p,.case-facts{grid-column:1 / 13;justify-content:flex-start}
  .case-views figure.half{grid-column:1 / 13}
  .case-views figure.slim{grid-column:1 / 13}
  .case-next strong{grid-column:1 / 13}
  .case-next .case-frame{grid-column:1 / 8;margin-top:1rem}
}

/* =====================================================================
   Review round, sections. Each block is one change, on only with ?c=NN.
   ===================================================================== */

/* c07 catalogue: portrait crops; JS swaps the files */
/* (frame overscan unchanged: the wipe moves the image 5% of its width) */

/* c08 contact: the pear line that the picture opens from (JS drives clip-path and --pl) */
html.c08 .contact-art{background:var(--panel)}
html.c08 .contact-art::after{content:"";position:absolute;inset:0;background:var(--pear);opacity:var(--pl,0);pointer-events:none}

/* c09 catalogue frame: same overhang into #index at any viewport shape, and on phones */
html.c09 .cat-stage{--sh:min(calc(39vw * 1.42),89vh);height:var(--sh);top:calc(50vh - var(--sh) / 2)}
@media (max-width:760px){
  html.c09 .catalogue{padding-bottom:0}
  html.c09 .cat-copy{order:1;margin-top:0;padding-bottom:2.2rem;min-height:13.5rem}
  html.c09 .cat-stage{order:2;height:auto;top:auto}
}

/* c12 index rows: the hovered / current row stands out, the rest step back */
html.c12 .index-list a{transition:opacity .3s ease}
html.c12 .index-list a.is-on .ix-name{transform:translateX(.35rem);font-weight:500}
html.c12 .index-list a.is-on .ix-meta{color:var(--navy)}
@media (hover:hover){
  html.c12 .index-list:hover a:not(:hover){opacity:.38}
  html.c12 .index-list:hover a:hover .ix-name{font-weight:500}
}
html.c12 .index-list:has(a:focus-visible) a:not(:focus-visible){opacity:.38}
html.c12 .index-list a:focus-visible{outline-offset:2px}

/* c13 case view: lead picture edge to edge under the bar */
html.c13 .case-bar-name{position:absolute;left:50%;transform:translateX(-50%);max-width:46vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ghost-soft)}
html.c13 .case-lead{margin:0;overflow:hidden;background:#061d33}
html.c13 .case-lead img{width:100%;height:auto;transform-origin:50% 30%;transition:transform 1.6s var(--ease)}
html.c13 .case.pre .case-lead img{transform:scale(1.07)}
html.c13 .case-head{padding-top:clamp(2rem,4.5vw,4rem)}
@media (max-width:760px){
  html.c13 .case-bar-name{display:none}
}

/* c14 bug fixes (phone footer): no separator dot left alone at the start of a line */
@media (max-width:760px){
  html.c14 .foot-mid i{display:block;height:0;margin:0;overflow:hidden;font-size:0}
  html.c14 .foot-mid{display:flex;flex-direction:column;line-height:1.7}
}

/* c11 index orb (JS swaps the image and places the dots): room on phones for the outer arc */
@media (max-width:760px){
  html.c11 .orb-wrap{margin-left:20vw}
}

/* ---------- products overlay (#products): the case view's family, a wall of pictures ---------- */
.case.prods{z-index:calc(var(--z-case) - 1)}
.prods-bar{padding-top:1.4rem;padding-bottom:1.2rem}
.prods-bar .title{font-size:clamp(1.6rem,2.2vw,2.2rem)}
.prods-grid{list-style:none;margin:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(2.2rem,4vw,3.6rem) clamp(1rem,2vw,2rem);padding-top:clamp(2rem,5vh,3.6rem);padding-bottom:clamp(3rem,8vh,6rem)}
.prod{display:block}
.prod-img{display:block;aspect-ratio:5 / 7;overflow:hidden;background:var(--panel)}
.prod-img img{width:100%;height:100%;object-fit:cover;transition:transform 1.2s var(--ease)}
.prod:hover .prod-img img,.prod:focus-visible .prod-img img{transform:scale(1.03)}
.prod-name{position:relative;display:inline-block;margin-top:.9rem;font-size:clamp(.95rem,1.05vw,1.05rem);font-weight:400}
.prod-name::after{content:"";position:absolute;left:0;right:0;bottom:-3px;height:1px;background:var(--pear);transform:scaleX(0);transform-origin:0 50%;transition:transform .45s var(--ease)}
.prod:hover .prod-name::after,.prod:focus-visible .prod-name::after{transform:scaleX(1)}
.prod-meta{display:block;margin-top:.35rem;font-size:.85rem;color:var(--ghost-soft)}
.prod-line{display:block;margin-top:.3rem;font-size:.85rem;color:var(--ghost-soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.prod:focus-visible{outline:none}
.prod:focus-visible .prod-img{outline:2px solid var(--ghost);outline-offset:4px}
@media (max-width:1100px){ .prods-grid{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media (max-width:760px){
  .prods-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:2rem 1rem}
  .prod-line{display:none}
}

/* short phones: catalogue and index still fit one screen (the frame and the circle scale with the height) */
@media (max-width:760px) and (max-height:760px){
  .catalogue{padding-top:8vh;padding-top:8svh}
  html.c09 .cat-copy{padding-bottom:1.4rem;min-height:0}
  .cat-copy .body,.cat-copy .meta{margin-top:1rem}
  .cat-copy .textlink{margin-top:1.1rem}
  .neon{margin-top:1.5rem}
  html.c09 .cat-stage{width:min(calc(100% - 44px),calc((92svh - 19rem) / 1.3));margin:0 auto}
  .index{padding-top:5svh;padding-bottom:3svh}
  .orb-wrap,html.c11 .orb-wrap{width:min(64vw,26svh);height:min(64vw,26svh);margin-bottom:calc(min(64vw,26svh) * .42)}
  .index-list a{padding:.5rem 0}
}
