/* S.H. Jewellery: site styles */
/* Layout: quiet maison style. Centred logo over a small-capitals menu; full-width photograph with
   centred words beneath; generous white space; light upright serif headings; underlined text links;
   near-white pink ground with burgundy only as an accent. */
:root{
  --ground:#FDF9F8;        /* barely-pink white */
  --panel:#F8F0EF;         /* very soft blush, used sparingly */
  --mat:#F2E6E6;           /* behind photos while they load */
  --burgundy:#7A2236;      /* links, active menu item */
  --text:#2A1E21;
  --muted:#7E6A6E;
  --hair:rgba(42,30,33,.12);
  --serif:"Cormorant Garamond","Cormorant",Garamond,"Times New Roman",serif;
  --sans:"Montserrat","Helvetica Neue",Arial,sans-serif;
  --caps:var(--sans);
  color-scheme:light;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-behavior:smooth}
body{overflow-x:clip;margin:0;background:var(--ground);color:var(--text);font-family:var(--sans);font-size:14px;line-height:1.8;font-weight:300;letter-spacing:.01em;-webkit-font-smoothing:antialiased}
img{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
p{margin:0}
h1,h2,h3{margin:0;font-family:var(--serif);font-weight:300;line-height:1.12;letter-spacing:.01em;text-wrap:balance;color:var(--text)}
.gutter{padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
.inner{max-width:1240px;margin:0 auto}
.caps{font-family:var(--sans);font-size:10.5px;font-weight:400;letter-spacing:.26em;text-transform:uppercase}
a:focus-visible,button:focus-visible{outline:1px solid var(--burgundy);outline-offset:4px}
.rule{display:block;width:40px;height:1px;background:var(--burgundy);opacity:.6}
.rule.center{margin-inline:auto}
.rule i{display:none}

/* Header: centred logo, menu beneath */
.site-head{position:sticky;top:env(safe-area-inset-top,0px);z-index:10;background:rgba(253,249,248,.94);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--hair)}
body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:11;background:var(--ground)}
.site-head .inner{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:16px 40px;padding-block:18px}
.crest{display:block;width:92px;aspect-ratio:900/627;background:var(--burgundy);-webkit-mask:url("/images/logo.png") center/contain no-repeat;mask:url("/images/logo.png") center/contain no-repeat}
.site-head ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px clamp(24px,3.4vw,52px)}
.site-head a,.site-head button{color:var(--text);padding-block:6px;border-bottom:1px solid transparent;transition:color .3s,border-color .3s}
.site-head a:hover,.site-head a[aria-current="page"]{color:var(--burgundy);border-bottom-color:var(--burgundy)}

/* Text link with underline (used instead of buttons) */
.btn{display:inline-block;align-self:center;font-family:var(--sans);font-size:10.5px;font-weight:500;letter-spacing:.26em;text-transform:uppercase;color:var(--text);background:none;border:0;border-bottom:1px solid currentColor;padding:0 0 6px;cursor:pointer;transition:color .3s}
.btn:hover{color:var(--burgundy)}

/* Hero: full-width photograph, words centred beneath */
.hero-photo{width:100%;aspect-ratio:2/1;object-fit:cover;background:var(--mat)}
.hero-copy{text-align:center;display:flex;flex-direction:column;align-items:center;gap:22px;padding-block:clamp(48px,6vw,80px) clamp(64px,8vw,112px);animation:rise 1.4s ease-out both}
.hero-copy h1{font-size:clamp(38px,4.4vw,60px);max-width:16em}
.hero-copy .caps{color:var(--muted)}
@keyframes rise{from{opacity:.3;transform:translateY(8px)}to{opacity:1;transform:none}}

/* Quiet text section */
.statement{text-align:center;display:flex;flex-direction:column;align-items:center;gap:20px;padding-block:clamp(72px,9vw,128px)}
.statement h2{font-size:clamp(32px,3.6vw,46px)}
.statement p{color:var(--muted);max-width:44ch}
.panel{background:var(--panel)}

/* Promises: three quiet columns */
.promises .inner{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:48px;padding-block:clamp(64px,8vw,104px);text-align:center;border-top:1px solid var(--hair)}
.promise{display:flex;flex-direction:column;align-items:center;gap:10px}
.promise h3{font-size:24px}
.promise p{color:var(--muted);max-width:28ch}

/* Section title */
.section-title{text-align:center;display:flex;flex-direction:column;align-items:center;gap:16px;padding-block:clamp(72px,9vw,120px) 48px}
.section-title h1,.section-title h2{font-size:clamp(36px,4vw,52px)}
.section-title .caps,.section-title .sub{color:var(--muted)}
.section-title .sub{max-width:44ch}

/* Gallery */
.teaser,.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,2.4vw,36px);align-items:start}
.gallery-grid{padding-bottom:clamp(72px,9vw,120px)}
/* Gallery: jewel bar */
.jewel-bar{display:flex;justify-content:center;gap:clamp(20px,3.6vw,52px);margin:0 auto clamp(28px,4vw,48px);border-bottom:1px solid var(--hair);overflow-x:auto;scrollbar-width:none}
.jewel-bar::-webkit-scrollbar{display:none}
.jewel-bar button{flex:none;position:relative;background:none;border:0;cursor:pointer;padding:0 2px 16px;font:400 11.5px var(--sans);letter-spacing:.24em;text-transform:uppercase;color:var(--muted);white-space:nowrap;transition:color .3s}
.jewel-bar button:hover{color:var(--text)}
.jewel-bar button[aria-selected=true]{color:var(--burgundy)}
.jewel-bar button[aria-selected=true]::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:var(--burgundy)}
.gallery-grid .tile{animation:tile-in .6s ease both}
@keyframes tile-in{from{opacity:0;transform:translateY(8px)}}
@media(prefers-reduced-motion:reduce){.gallery-grid .tile{animation:none}}
@media(max-width:640px){.jewel-bar{justify-content:flex-start;gap:24px}}
.tile{padding:0;border:0;line-height:0;font-size:0;background:var(--mat);cursor:zoom-in;display:block;width:100%;overflow:hidden}
.tile img{width:100%;aspect-ratio:4/3;object-fit:cover;object-position:50% 50%;transition:transform 1.4s ease,opacity .6s}
.tile:hover img{transform:scale(1.03)}
.more{display:flex;justify-content:center;padding-block:56px 0}
.gallery-note{text-align:center;color:var(--muted);padding-block:24px}

/* Split: photograph beside centred words */
.split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:clamp(32px,6vw,96px)}
.split.flip .split-img{order:2}
.split-img{background:var(--mat)}
.split-img img{width:100%;aspect-ratio:4/5;object-fit:cover}
.split-copy{display:flex;flex-direction:column;align-items:center;text-align:center;gap:22px;padding-block:32px}
.split-copy h1,.split-copy h2{font-size:clamp(34px,3.8vw,50px)}
.split-copy p{color:var(--muted);max-width:40ch}
.section-gap{margin-top:clamp(72px,9vw,128px)}

/* Process */
.steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(32px,4vw,64px);padding-bottom:clamp(72px,9vw,112px)}
.step{text-align:center;display:flex;flex-direction:column;align-items:center;gap:12px}
.step-circle{width:min(200px,70%);aspect-ratio:1;border-radius:50%;overflow:hidden;background:var(--mat);margin-bottom:14px}
.step-circle img{width:100%;height:100%;object-fit:cover}
.step .num{font-family:var(--serif);font-size:20px;color:var(--burgundy);line-height:1}
.step h2.caps{font-family:var(--sans);font-size:10.5px;font-weight:500;letter-spacing:.26em}
.step .sub{font-family:var(--serif);font-size:21px;line-height:1.35;max-width:22ch}
.step .body{color:var(--muted);max-width:34ch}
.compare-wrap{max-width:480px;margin:0 auto;display:flex;flex-direction:column;align-items:center;gap:22px}
.compare{position:relative;width:100%;--pos:50%;cursor:ew-resize;touch-action:pan-y;user-select:none;background:var(--mat)}
.compare .clip{position:relative;overflow:hidden}
.compare img{width:100%;aspect-ratio:4/5;object-fit:cover;pointer-events:none}
.compare .before{position:absolute;inset:0;clip-path:inset(0 calc(100% - var(--pos)) 0 0)}
.compare .bar{position:absolute;top:0;bottom:0;left:var(--pos);width:1px;background:#fff;transform:translateX(-.5px);pointer-events:none}
.compare .knob{position:absolute;top:50%;left:var(--pos);width:40px;height:40px;transform:translate(-50%,-50%);border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;pointer-events:none;box-shadow:0 4px 18px -6px rgba(0,0,0,.25);z-index:2}
.compare .knob span{color:var(--text);font-size:16px;letter-spacing:4px;line-height:1;padding-left:4px}
.compare .tag{position:absolute;bottom:16px;font-family:var(--sans);font-size:9.5px;letter-spacing:.24em;text-transform:uppercase;color:#fff;text-shadow:0 1px 6px rgba(0,0,0,.35);pointer-events:none;z-index:2}
.compare .tag.l{left:18px;color:var(--text);text-shadow:none}.compare .tag.r{right:18px}
.compare input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:ew-resize;margin:0;z-index:3}
.compare:focus-within .knob{outline:1px solid var(--burgundy);outline-offset:4px}
.when{color:var(--muted)}
.compare-wrap.top{padding-bottom:clamp(72px,9vw,112px)}

/* From sketch to life: hover to reveal the real piece */
.reveal-wrap{max-width:860px;margin:0 auto clamp(72px,9vw,112px);display:flex;flex-direction:column;align-items:center;gap:32px}
.reveal-head{text-align:center;display:flex;flex-direction:column;gap:10px}
.reveal-head .caps{color:var(--text)}
.reveal-hint{font-family:var(--serif);font-style:italic;font-size:19px;color:var(--muted)}
.reveal-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(18px,3vw,44px);width:100%}
.reveal{position:relative;display:block;width:100%;padding:0 0 58px;border:0;background:none;cursor:pointer;text-align:center;font:inherit;color:inherit}
.reveal img{width:100%;aspect-ratio:4/5;object-fit:cover;display:block;background:var(--mat)}
.reveal .real{position:absolute;top:0;left:0;opacity:0;transition:opacity .9s ease}
.reveal:hover .real,.reveal:focus-visible .real,.reveal[aria-pressed="true"] .real{opacity:1}
.reveal::after{content:"";position:absolute;top:10px;left:10px;right:10px;bottom:68px;border:1px solid rgba(253,249,248,.6);pointer-events:none}
.reveal-cap{position:absolute;left:0;right:0;bottom:0;display:flex;flex-direction:column;align-items:center;gap:6px}
.reveal-cap .num{font-family:var(--serif);font-style:italic;font-size:22px;color:var(--burgundy);line-height:1}
@media (hover:none){.reveal-hint::after{content:""}}

/* From sketch to life: one image moving through the stages */
.stages-wrap{max-width:520px;margin:0 auto clamp(72px,9vw,112px);display:flex;flex-direction:column;align-items:center;gap:26px}
.stages{position:relative;width:100%;aspect-ratio:4/5;overflow:hidden;background:var(--mat);cursor:pointer;outline-offset:6px}
.stages .stage{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity 1.2s ease}
.stages .stage.is-on{opacity:1}
.stages::after{content:"";position:absolute;inset:10px;border:1px solid rgba(253,249,248,.6);pointer-events:none}
.timeline{list-style:none;margin:0;padding:0;width:100%;display:grid;grid-template-columns:repeat(3,1fr);position:relative}
.timeline::before{content:"";position:absolute;top:11px;left:16.6%;right:16.6%;height:1px;background:var(--hair)}
.timeline::after{content:"";position:absolute;top:11px;left:16.6%;height:1px;background:var(--burgundy);width:calc(var(--prog,0) * 66.8%);transition:width 1.2s ease}
.tl-step{position:relative;z-index:1;width:100%;background:none;border:0;padding:0;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:8px;font:inherit;color:var(--muted)}
.tl-step .num{font-family:var(--serif);font-style:italic;font-size:17px;line-height:22px;width:24px;height:24px;border-radius:50%;background:var(--ground);border:1px solid var(--hair);color:var(--muted);transition:all .6s}
.tl-step.is-on,.tl-step.is-done{color:var(--text)}
.tl-step.is-on .num,.tl-step.is-done .num{border-color:var(--burgundy);color:var(--burgundy)}
.tl-step.is-on .num{background:var(--burgundy);color:#fff}
.stages-hint{font-family:var(--serif);font-style:italic;font-size:18px;color:var(--muted);text-align:center}

/* Design sheet */
.sheet{max-width:980px;margin:0 auto clamp(72px,9vw,112px);display:flex;flex-direction:column;align-items:center;gap:24px}
.sheet .caps{color:var(--text)}
.sheet-frame{width:100%;padding:clamp(16px,3vw,40px);background:#FDF9F8;outline:1px solid var(--hair);outline-offset:-10px}
.sheet-frame img{width:100%;height:auto}

/* Process: moving ribbon of words */
.ribbon{width:100vw;margin:0 0 clamp(48px,6vw,88px) calc(50% - 50vw);background:var(--panel);border-top:1px solid var(--hair);border-bottom:1px solid var(--hair);overflow:hidden;position:relative}
.ribbon::before,.ribbon::after{content:"";position:absolute;top:0;bottom:0;width:10%;z-index:1;pointer-events:none}
.ribbon::before{left:0;background:linear-gradient(90deg,var(--panel),transparent)}
.ribbon::after{right:0;background:linear-gradient(270deg,var(--panel),transparent)}
.rb-track{display:flex;width:max-content;animation:ribbon 46s linear infinite}
.ribbon:hover .rb-track{animation-play-state:paused}
.rb-group{display:flex;align-items:center;flex-shrink:0}
.rb-group span{font-family:var(--serif);font-style:italic;font-weight:300;font-size:clamp(22px,2.2vw,30px);white-space:nowrap;padding:14px 0}
.rb-group i{font-style:normal;font-size:12px;color:var(--burgundy);opacity:.6;margin:0 clamp(24px,3.4vw,48px)}
@keyframes ribbon{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.rb-track{animation:none;width:auto;flex-wrap:wrap;justify-content:center}.rb-group+.rb-group{display:none}.rb-group{flex-wrap:wrap;justify-content:center}}

/* Process: sketch-to-life image beside the design sheet */
.pair-row{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,6fr);gap:clamp(28px,4vw,64px);align-items:center;margin-bottom:clamp(24px,4vw,48px)}
.pair-row .stages-wrap,.pair-row .sheet{margin:0;max-width:none}
.pair-row .stages-wrap{width:100%;max-width:360px;justify-self:center}
@media (max-width:900px){.pair-row{grid-template-columns:1fr}.pair-row .stages-wrap{max-width:440px}}

/* Contact */
.contact-list{display:flex;flex-direction:column;align-items:center;gap:20px}
.contact-list div{display:flex;flex-direction:column;align-items:center;gap:4px}
.contact-list .caps{color:var(--muted)}
.contact-list a{font-family:var(--serif);font-size:24px;border-bottom:1px solid transparent;transition:border-color .3s,color .3s}
.contact-list a:hover{color:var(--burgundy);border-bottom-color:var(--burgundy)}

/* Footer */
footer{border-top:1px solid var(--hair);margin-top:clamp(72px,9vw,120px);text-align:center}
footer .crest{margin-inline:auto}
footer .inner{display:flex;flex-direction:column;align-items:center;gap:26px;padding-block:64px 40px}
footer .line{font-family:var(--serif);font-size:clamp(22px,2.4vw,28px);font-weight:300}
footer ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;justify-content:center;gap:8px 36px}
footer ul a:hover,.foot-contact a:hover{color:var(--burgundy)}
.foot-contact{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 32px;color:var(--muted)}
footer small{display:block;font-size:10px;letter-spacing:.2em;text-transform:uppercase;color:var(--muted);padding-top:20px}

/* Webelop credit */
.credit{font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:var(--muted);margin-top:-6px}
.credit a{color:var(--muted);border-bottom:1px solid transparent;transition:color .3s,border-color .3s}
.credit a:hover{color:var(--burgundy);border-bottom-color:var(--burgundy)}

/* Lightbox */
.lightbox{position:fixed;inset:0;background:rgba(253,249,248,.98);z-index:20;display:flex;align-items:center;justify-content:center;padding:max(48px,env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) max(48px,env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px))}
.lb-fig{margin:0;display:flex;flex-direction:column;align-items:center;gap:clamp(18px,2.4vw,28px);max-width:min(100%,1000px)}
.lb-fig img{display:block;width:auto;height:auto;max-width:100%;max-height:calc(100vh - 210px);max-height:calc(100dvh - 210px);object-fit:contain}
.lb-enq{font-family:var(--sans);font-size:10.5px;font-weight:500;letter-spacing:.26em;text-transform:uppercase;text-decoration:none;color:var(--burgundy);border:1px solid var(--burgundy);padding:15px 30px;transition:background .3s,color .3s}
.lb-enq:hover,.lb-enq:focus-visible{background:var(--burgundy);color:var(--ground)}
.lb-btn{position:absolute;background:none;border:0;color:var(--text);font-family:var(--serif);font-size:40px;font-weight:300;line-height:1;cursor:pointer;padding:10px 16px}
.lb-btn:hover{color:var(--burgundy)}
.lb-close{top:calc(10px + env(safe-area-inset-top,0px));right:calc(14px + env(safe-area-inset-right,0px));font-size:34px}
.lb-prev{left:calc(8px + env(safe-area-inset-left,0px));top:50%;transform:translateY(-50%)}
.lb-next{right:calc(8px + env(safe-area-inset-right,0px));top:50%;transform:translateY(-50%)}

/* One piece, two looks */
.dual{padding-block:clamp(24px,4vw,56px)}
.dual-copy{display:flex;flex-direction:column;align-items:center;text-align:center;gap:18px;max-width:560px;margin:0 auto clamp(40px,5vw,72px)}
.dual-copy .caps{color:var(--muted)}
.dual-copy h2{font-size:clamp(38px,4.4vw,58px)}
.dual-copy h2 em{font-style:italic;color:var(--burgundy)}
.dual-copy p:last-child{color:var(--muted);max-width:34ch}
.dual-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(18px,3vw,44px);max-width:980px;margin:0 auto;align-items:start}
.dual-card{margin:0;display:flex;flex-direction:column;align-items:center;gap:18px}
.dual-frame{position:relative;width:100%;aspect-ratio:3/5;overflow:hidden;background:var(--mat)}
.dual-frame img{width:100%;height:100%;object-fit:cover;transition:transform 1.6s ease}
.dual-card.parts .dual-frame{background:#F8F0EF}
.dual-card.parts .dual-frame img{object-fit:contain;padding:8% 10%}
.dual-frame::after{content:"";position:absolute;inset:10px;border:1px solid rgba(253,249,248,.55);pointer-events:none}
.dual-card.parts .dual-frame::after{border-color:rgba(122,34,54,.14)}
.dual-card:not(.parts):hover .dual-frame img{transform:scale(1.035)}
.dual-card figcaption{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center}
.dual-card .num{font-family:var(--serif);font-style:italic;font-size:22px;color:var(--burgundy);line-height:1}
.dual-card figcaption .caps{color:var(--text)}

/* Laptop and tablet */
@media (max-width:1100px){
  .inner{max-width:960px}
  .split{gap:clamp(28px,5vw,64px)}
  .promises .inner{gap:32px}
  .step-circle{width:min(180px,80%)}
}
@media (max-width:900px){
  .promises .inner{grid-template-columns:1fr;gap:36px;max-width:520px}
  .teaser .tile:nth-child(3){display:none}
  .teaser{grid-template-columns:repeat(2,minmax(0,1fr))}
  .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
/* Phone */
@media (max-width:640px){
  .site-head .inner{flex-direction:column;gap:12px;padding-block:16px 10px}
  .crest{width:84px}
  .site-head ul{justify-content:center;gap:6px 22px}
  .hero-photo{aspect-ratio:1060/820;height:auto;object-fit:cover}
  .teaser,.gallery-grid{gap:12px}
  .split{grid-template-columns:1fr;gap:12px}
  .split.flip .split-img{order:0}
  .steps{grid-template-columns:1fr;gap:56px}
  .reveal-row{gap:10px}
  .reveal-cap .caps{font-size:9px;letter-spacing:.16em}
  .dual-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
  .dual-card figcaption .caps{font-size:9px;letter-spacing:.16em}
  .dual-card .num{font-size:18px}
}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}


/* Laptops and wide screens: keep the key content within the first screen */
@media (min-width:641px){
  .hero-photo{aspect-ratio:2/1;width:100%;height:auto;object-fit:contain}
  .hero-copy{padding-block:clamp(28px,3.4vw,48px) clamp(56px,7vw,96px);gap:18px}
  #process-view .section-title{padding-block:clamp(36px,4vw,64px) 28px}
  .stages-wrap{gap:20px}
}
