/*
Theme Name: Ribbon Porcelarts LP
Version: 1.15
Text Domain: ribbon-porcelarts
*/
:root{--paper:#fffaf0;--ink:#153976;--blue:#214ca6;--yellow:#fae485;--rose:#f4ddd9;--line:#15397645;--serif:"Hiragino Mincho ProN","Yu Mincho",serif}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--ink);background:var(--paper);font:15px/2 "Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif}
a{color:inherit;text-decoration:none}button{font:inherit;color:inherit;cursor:pointer}
a:focus-visible,button:focus-visible,summary:focus-visible,.rail:focus-visible{outline:2px solid currentColor;outline-offset:5px}
img{display:block;width:100%;height:100%;object-fit:cover}
figure,p,h1,h2,h3{margin:0}h1,h2,h3{font-family:var(--serif);font-weight:600;line-height:1.45}
h2{font-size:clamp(30px,4vw,57px);letter-spacing:.035em}
section[id]{scroll-margin-top:85px}
.bar{height:84px;position:sticky;z-index:9;top:0;display:flex;align-items:center;justify-content:space-between;padding:0 5%;gap:24px;background:var(--paper);border-bottom:1px solid var(--line)}
.brand{font:italic 40px/.9 Georgia,serif;display:inline-flex;flex-direction:column;gap:9px;white-space:nowrap}
.brand span{font:10px/1 sans-serif;letter-spacing:.12em}
nav{display:flex;gap:30px;font-size:13px;font-weight:700}nav a:hover{ text-decoration:underline;text-underline-offset:5px}
.bar-cta{font-size:13px;font-weight:700;border-bottom:1px solid;padding-bottom:5px;white-space:nowrap}.bar-cta span{margin-left:10px}
.toggle{display:none}
.hero{position:relative;isolation:isolate;min-height:min(760px,calc(100svh - 84px));display:flex;align-items:center;overflow:hidden;background:var(--yellow);padding:65px 8% 100px}
.hero-photo{position:absolute;inset:4% 3.2% 5% 32%;z-index:-1;overflow:hidden;border-radius:51% 44% 47% 40% / 45% 45% 55% 55%;animation:photo-in 1.35s both cubic-bezier(.2,.7,.25,1)}
.hero-photo img{object-position:63% center;animation:photo-scale 2.7s both cubic-bezier(.2,.7,.25,1)}
.hero-copy{position:relative;animation:copy-in 1s .2s both}
.eyebrow{font:700 12px/1.5 sans-serif;letter-spacing:.21em;margin-bottom:17px}
.hero h1{font-size:clamp(74px,11vw,158px);line-height:.98;letter-spacing:-.11em;margin:0 0 27px;text-shadow:2px 2px var(--yellow)}
.hero h1 em{font-style:normal;color:#153976}
.hero-copy>p:not(.eyebrow){font-size:clamp(15px,1.65vw,21px);font-weight:700;line-height:1.7}
.button{display:inline-flex;align-items:center;gap:30px;padding:13px 20px;margin-top:25px;background:var(--ink);color:white;border:1px solid var(--ink);font-size:13px;transition:background .25s,color .25s}
.button:hover{background:var(--paper);color:var(--ink)}
.scroll{position:absolute;bottom:21px;left:8%;font:700 10px/1.5 sans-serif;letter-spacing:.22em}.scroll span{display:inline-block;margin-left:9px;animation:float 2.5s ease-in-out infinite}
.petal{position:absolute;display:block;pointer-events:none;z-index:-1;background:#91a5e5;border-radius:96% 6% 96% 6%;animation:float 6s ease-in-out infinite}
.p1{width:9vw;height:5vw;min-width:45px;min-height:25px;right:4%;top:8%;rotate:70deg}.p2{width:12vw;height:6vw;min-width:65px;min-height:36px;right:10%;bottom:4%;rotate:-25deg;background:#e7a7aa;animation-delay:-2s}
.section{width:min(1120px,87%);margin:auto;padding:110px 0}
.about{display:flex;align-items:center;justify-content:space-between;gap:7%}.about-copy{flex:0 1 49%}.about-copy p:not(.eyebrow){margin-top:24px;max-width:37em}
.about-photo{width:44%;aspect-ratio:1/1.13;overflow:hidden;border-radius:48% 48% 3% 3%}
.works{background:var(--blue);color:var(--paper)}.work-heading{display:flex;justify-content:space-between;align-items:end;gap:15px;margin-bottom:34px}
.arrows{display:flex;gap:10px}.arrows button{width:44px;height:44px;border:1px solid currentColor;background:transparent;border-radius:50%;line-height:1}.arrows button:hover{background:var(--paper);color:var(--blue)}.arrows button:disabled{opacity:.42;cursor:default}
.rail{display:flex;gap:24px;overflow:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;padding:4px 2px 18px}.rail figure{flex:0 0 43%;scroll-snap-align:start}.rail figure:nth-child(2){margin-top:32px}.rail img{aspect-ratio:1.35;height:auto;transition:filter .35s}.rail img:hover{filter:saturate(1.2)}figcaption{margin-top:9px;font-size:13px}
.lesson-list{display:flex;margin-top:35px;border-block:1px solid var(--line)}.lesson-list article{width:50%;padding:32px 6% 36px 0}.lesson-list article+article{border-left:1px solid var(--line);padding:32px 0 36px 6%}
h3{font-size:clamp(24px,2.6vw,37px);margin-bottom:12px}.process{display:flex;flex-wrap:wrap;gap:12px 40px;padding-left:25px;margin:26px 0 0;font-weight:700}
.faq{background:var(--rose)}.faq-inner{display:flex;gap:8%}.faq-inner>div:first-child{flex:0 0 34%}.faq-inner>div+div{flex:1}
details{border-top:1px solid var(--line)}details:last-child{border-bottom:1px solid var(--line)}
summary{cursor:pointer;list-style:none;position:relative;padding:16px 35px 16px 0;font-weight:700}summary::-webkit-details-marker{display:none}summary::after{content:"＋";right:0;position:absolute}details[open] summary::after{content:"−"}details p{padding-bottom:16px}
.contact{text-align:center;padding:100px 5%;background:var(--yellow)}.contact h2+p{margin-top:22px}.pending{margin-top:20px;font-size:13px}
footer{display:flex;justify-content:space-between;align-items:center;padding:35px 6%;font-size:13px}
.motion .reveal{opacity:0;transform:translateY(25px);transition:opacity .8s ease,transform .8s cubic-bezier(.2,.7,.25,1)}
.motion .reveal.visible{opacity:1;transform:none}
@keyframes float{50%{transform:translateY(-12px)}}@keyframes copy-in{from{opacity:0;transform:translateY(18px)}}@keyframes photo-in{from{clip-path:ellipse(17% 18% at 62% 50%);opacity:.55}to{clip-path:ellipse(75% 75% at 50% 50%);opacity:1}}@keyframes photo-scale{from{transform:scale(1.12)}}
@media(max-width:760px){
.bar{height:65px;padding:0 5%;gap:12px}.brand{font-size:32px}.brand span{font-size:9px}.bar-cta{font-size:11px}.bar-cta span{margin-left:3px}
.toggle{display:block;order:3;background:none;border:0;padding:7px 0;font-size:11px}.toggle span{font-size:15px}
nav{display:none;position:absolute;inset:65px 0 auto;background:var(--paper);padding:20px 6%;flex-direction:column;gap:0;border-bottom:1px solid var(--line)}nav.open{display:flex}nav a{padding:9px 0}
.hero{padding:39px 6% 64px;min-height:0;display:block}.hero-photo{position:relative;inset:auto;aspect-ratio:1.25;width:95%;margin:0 0 -28px auto}.hero-copy{margin-top:0}.hero h1{font-size:clamp(63px,17vw,105px);margin-bottom:16px}.hero h1 br{display:none}.hero-copy .eyebrow{margin-bottom:8px}.p1{top:6%}.p2{bottom:13%}.scroll{left:6%;bottom:15px}
.section{padding:65px 0;width:88%}.about,.faq-inner{display:block}.about-photo{margin:30px 0 0 auto;width:82%;aspect-ratio:1.15}.rail{gap:15px}.rail figure{flex-basis:77%}.rail figure:nth-child(2){margin-top:18px}.work-heading{margin-bottom:24px}.arrows button{width:38px;height:38px}
.lesson-list{display:block}.lesson-list article,.lesson-list article+article{width:100%;padding:22px 0;border-left:0}.lesson-list article+article{border-top:1px solid var(--line)}.faq-inner>div+div{margin-top:24px}.contact{padding:65px 5%}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}.motion .reveal{opacity:1;transform:none}}

/* Full-bleed opening and flowing color transitions */
body:has(.hero) .bar{background:#183a77;color:#fff9e9;border:0}
body:has(.hero) .bar-cta{border:1px solid #fff9e980;border-radius:50%;padding:7px 15px}
.hero{display:flex;align-items:center;justify-content:center;text-align:center;min-height:clamp(610px,calc(100svh - 84px),1000px);padding:54px 6% 75px;background:#183a77;color:#fff9ed}
.hero-photo{inset:0;z-index:-3;border-radius:0;aspect-ratio:auto;width:auto;margin:0;animation:ribbon-opening 1.45s both cubic-bezier(.24,.68,.27,1)}
.hero-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(135deg,#18314a20 5%,#14233d80 48%,#172c5155 75%,#172c5188)}
.hero-photo img{object-position:center 49%}
.hero-copy{margin:0;animation-delay:.35s}
.hero h1{font-size:clamp(64px,9vw,131px);letter-spacing:-.09em;line-height:1.08;margin:0 0 18px;text-shadow:0 3px 25px #10213899}
.hero h1 em{color:#fff3bc}
.hero h1 br{display:none}
.hero-copy>p:not(.eyebrow){font-weight:600;text-shadow:0 2px 12px #142242}
.hero .eyebrow{margin-bottom:18px;letter-spacing:.24em}
.hero .button{margin-top:26px;border-color:#fff6da;background:#fff6da;color:#183a77}
.hero .button:hover{background:#183a77;color:#fff6da}
.hero .scroll{bottom:15px;left:50%;translate:-50% 0;z-index:1}
.hero .petal{z-index:-1;animation:ribbon-drift 9s ease-in-out infinite alternate}
.hero .p1{width:48%;height:42%;min-width:0;min-height:0;left:-23%;top:-14%;right:auto;rotate:-13deg;background:#315fb0;border-radius:44% 42% 66% 38%}
.hero .p2{width:57%;height:31%;min-width:0;min-height:0;right:-24%;bottom:-17%;rotate:-18deg;background:#315fb0;border-radius:62% 31% 52% 48%;animation-delay:-3s}
.hero::before,.hero::after{content:"";position:absolute;pointer-events:none;z-index:-2;animation:ribbon-drift 11s ease-in-out infinite alternate}
.hero::before{width:42%;height:37%;right:-21%;top:-14%;rotate:24deg;background:#f1d981;border-radius:35% 56% 59% 42%}
.hero::after{width:57%;height:25%;left:-25%;bottom:-15%;rotate:12deg;background:#a7b9df;border-radius:54% 62% 36% 48%;animation-delay:-4s}
.about{min-height:680px}
.about-photo{border-radius:49% 51% 43% 57% / 41% 44% 56% 59%;rotate:4deg}
.works{position:relative;background:#214889}
.works .section{padding-block:90px 105px}
.rail figure:nth-child(2){margin-top:48px}
.rail img{border-radius:45% 52% 39% 46% / 22% 25% 21% 20%}
.faq{background:#f5e7cf}
.contact{background:#244989;color:#fff8e6}
.contact .button{background:#fff8e6;color:#244989;border-color:#fff8e6}
@keyframes ribbon-opening{from{clip-path:ellipse(16% 18% at 49% 47%);opacity:.6}to{clip-path:ellipse(78% 81% at 50% 50%);opacity:1}}
@keyframes ribbon-drift{to{transform:translate3d(4%,9%,0) rotate(8deg) scale(1.07)}}
@media(max-width:760px){
body:has(.hero) .bar nav{background:#183a77;color:#fff9e9;border-color:#fff9e94d}
.hero{min-height:clamp(520px,calc(88svh - 65px),740px);padding:36px 6% 55px}
.hero-photo{position:absolute}
.hero-photo img{object-position:61% center}
.hero h1{font-size:clamp(58px,13vw,94px)}
.hero h1 br{display:initial}
.hero .petal.p1{width:68%;height:28%;left:-34%;top:-12%}
.hero .petal.p2{width:70%;height:26%;right:-32%;bottom:-13%}
.hero::before{width:58%;height:28%;top:-12%;right:-32%}
.hero::after{width:74%;height:18%;bottom:-10%;left:-36%}
.about{min-height:0}
.works .section{padding-block:65px}
.rail figure:nth-child(2){margin-top:27px}
}
/* Header trial link */
body:has(.hero) .bar-cta{
  display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;
  min-height:40px;padding:7px 15px;border:1px solid #fff2ca;border-radius:0;
  background:#fff2ca;color:#183a77;letter-spacing:.05em;line-height:1.3;
  transition:background-color .2s,color .2s;
}
body:has(.hero) .bar-cta span{display:none}
body:has(.hero) .bar-cta:hover{background:#183a77;color:#fff2ca}
@media(max-width:760px){
  body:has(.hero) .bar-cta{min-height:35px;padding:6px 8px}
}
body:has(.hero) .bar-cta{gap:8px}
body:has(.hero) .bar-cta::after{
  content:"";display:block;flex:0 0 9px;width:9px;height:9px;
  background:linear-gradient(currentColor,currentColor) center/9px 1px no-repeat,
             linear-gradient(currentColor,currentColor) center/1px 9px no-repeat;
}
@media(max-width:760px){body:has(.hero) .bar-cta{gap:6px}}
/* Compact navigation on all screen sizes */
.bar{height:76px;justify-content:space-between}
.bar>.brand{position:absolute;left:50%;transform:translateX(-50%);align-items:center}
.bar>.toggle{order:-1;display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:0 4px;background:transparent;border:0;font-size:12px;letter-spacing:.08em}
.bar>.toggle span{display:none}
.bar>.toggle::before,.bar>.toggle::after{content:"";position:absolute;left:calc(5% + 4px);width:16px;height:1px;background:currentColor;transition:transform .2s ease}
.bar>.toggle::before{transform:translateY(-3px)}
.bar>.toggle::after{transform:translateY(3px)}
.bar>.toggle[aria-expanded="true"]::before{transform:rotate(45deg)}
.bar>.toggle[aria-expanded="true"]::after{transform:rotate(-45deg)}
.bar>.toggle{padding-left:30px}
.bar>nav{display:none;position:absolute;inset:100% auto auto 5%;width:min(330px,90vw);padding:9px 22px;gap:0;flex-direction:column;background:var(--paper);color:var(--ink);border:1px solid var(--line);box-shadow:0 12px 24px #14233d24}
body:has(.hero) .bar>nav{background:var(--paper);color:var(--ink);border-color:var(--line)}
.bar>nav.open{display:flex}
.bar>nav a{display:block;padding:13px 0;line-height:1.5}
.bar>nav a+a{border-top:1px solid var(--line)}
@media(max-width:760px){
  .bar{height:65px}
  .bar>.toggle{font-size:10px;padding-left:23px;letter-spacing:0}
  .bar>.toggle::before,.bar>.toggle::after{width:13px}
  .bar>.brand{font-size:28px}
  .bar>.brand span{font-size:8px}
}
.bar>.toggle{position:relative;justify-content:center;width:44px;padding:0;font-size:0}
.bar>.toggle::before,.bar>.toggle::after{left:auto}
/* Full-width navigation panel */
.bar>nav,body:has(.hero) .bar>nav{
  inset:100% 0 auto;width:100%;max-height:calc(100dvh - 76px);
  padding:clamp(26px,4vw,54px) max(7%,calc((100% - 1050px) / 2));
  overflow:auto;background:#183a77;color:#fff9ed;border:0;
  border-top:1px solid #fff9ed33;box-shadow:0 18px 32px #14233d36;
  flex-flow:row wrap;column-gap:7%;
}
.bar>nav.open{animation:ribbon-menu-open .42s cubic-bezier(.22,.72,.3,1) both}
.bar>nav a,.bar>nav a+a{
  flex:0 0 46.5%;padding:16px 0;border-top:0;border-bottom:1px solid #fff9ed41;
  color:inherit;font:600 clamp(21px,3vw,34px)/1.45 var(--serif);
  letter-spacing:.04em;text-decoration:none;
}
.bar>nav.open a{animation:ribbon-menu-item .42s cubic-bezier(.22,.72,.3,1) both}
.bar>nav a:nth-child(2){animation-delay:.05s}
.bar>nav a:nth-child(3){animation-delay:.10s}
.bar>nav a:nth-child(4){animation-delay:.15s}
.bar>nav a:hover,.bar>nav a:focus-visible{color:#fff2ca;border-bottom-color:#fff2ca}
@keyframes ribbon-menu-open{from{clip-path:inset(0 0 100%);opacity:.65}to{clip-path:inset(0);opacity:1}}
@keyframes ribbon-menu-item{from{opacity:0;transform:translateY(-9px)}to{opacity:1;transform:none}}
@media(max-width:760px){
  .bar>nav,body:has(.hero) .bar>nav{
    max-height:calc(100dvh - 65px);flex-direction:column;flex-wrap:nowrap;padding:16px 7% 28px;
  }
  .bar>nav a,.bar>nav a+a{flex:0 0 auto;padding:12px 0}
}
/* Navigation floats over the opening image. */
body:has(.hero) .bar {
  position:fixed;inset:0 0 auto;height:88px;
  background:linear-gradient(#112b58eb,#112b5877 62%,transparent);
}
body:has(.hero) .hero{min-height:100svh;padding-top:134px}

.bar>.toggle{z-index:3}
.bar>.toggle::before,.bar>.toggle::after{width:22px}
.bar>.toggle::before{transform:translateY(-4px)}
.bar>.toggle::after{transform:translateY(4px)}
.bar>.toggle[aria-expanded="true"]::before{transform:rotate(45deg)}
.bar>.toggle[aria-expanded="true"]::after{transform:rotate(-45deg)}
.bar:has(>nav.open)::after{
  content:"";position:fixed;inset:0;background:#0c193b9c;z-index:1;
  animation:ribbon-menu-backdrop .28s both;
}
body:has(.hero) .bar:has(>nav.open){background:transparent}
body:has(.bar>nav.open){overflow:hidden}
.bar>nav.open,body:has(.hero) .bar>nav.open{
  position:fixed;inset:0 auto 0 0;z-index:2;width:min(76vw,860px);
  max-height:none;padding:clamp(94px,17vh,155px) max(10%,80px) 42px clamp(30px,7.5vw,110px);
  flex-flow:column nowrap;gap:clamp(15px,3vh,27px);
  color:#fff8e6;border:0;box-shadow:none;
  background:radial-gradient(ellipse at 0% 100%,#396bba 0%,transparent 58%),linear-gradient(132deg,#264f99,#17356d);
  clip-path:inset(0 round 0 9% 7% 0);
  clip-path:shape(from 0 0,line to 96% 0,curve to 96% 28% with 102% 9% / 91% 17%,curve to 95% 55% with 100% 39% / 101% 46%,curve to 95% 79% with 90% 63% / 99% 71%,curve to 96% 100% with 92% 88% / 93% 96%,line to 0 100%,close);
  animation:ribbon-menu-slide .46s cubic-bezier(.22,.72,.3,1) both;
}
.bar>nav a,.bar>nav a+a{
  flex:0 0 auto;align-self:flex-start;padding:1px 10px 1px 0;border:0;
  font:500 14px/1.6 sans-serif;letter-spacing:.08em;color:inherit;
}
.bar>nav a::before{
  display:block;margin-bottom:2px;color:#fff8e6;font:italic 500 clamp(32px,5vw,60px)/1 Georgia,serif;
  letter-spacing:-.025em;
}
.bar>nav a:first-child::before{content:"Porcelarts"}
.bar>nav a:nth-child(2)::before{content:"Gallery"}
.bar>nav a:nth-child(3)::before{content:"Lessons"}
.bar>nav a:nth-child(4)::before{content:"FAQ"}
.bar>nav a:hover::before,.bar>nav a:focus-visible::before{color:#ffe3a0}
@keyframes ribbon-menu-slide{from{transform:translateX(-103%)}}
@keyframes ribbon-menu-backdrop{from{opacity:0}}
@media(max-width:760px){
  body:has(.hero) .bar{height:65px}
  body:has(.hero) .hero{padding-top:108px}
  body:has(.hero) .bar-cta{padding:6px 8px}
  .bar>.toggle::before,.bar>.toggle::after{width:17px}
  .bar>nav.open,body:has(.hero) .bar>nav.open{width:89vw;padding:91px 14% 26px 8%;gap:17px}
}
.hero .hero-copy{top:-18px}
.hero h1{
  white-space:nowrap;font-size:clamp(44px,8vw,108px);
  font-feature-settings:"palt" 1;letter-spacing:-.035em;line-height:1.16;
}
.hero h1 br{display:none}
@media(max-width:760px){
  .hero .hero-copy{top:-10px}
  .hero h1{font-size:clamp(32px,10.8vw,68px);margin-bottom:14px}
}
.hero .scroll{
  display:flex;flex-direction:column;align-items:center;gap:8px;
  min-width:64px;bottom:12px;padding:4px 0 0;
  color:#fff9ed;font-size:9px;letter-spacing:.24em;text-shadow:0 1px 6px #102138;
}
.hero .scroll span{display:none}
.hero .scroll::after{
  content:"";width:1px;height:24px;
  background:linear-gradient(#fff9ed,#fff9ed) center top/1px 8px no-repeat,#fff9ed65;
  animation:ribbon-scroll-line 2.2s ease-in-out infinite alternate;
}
@keyframes ribbon-scroll-line{to{background-position:center bottom}}
.hero .button{gap:12px}
.hero .button span[aria-hidden="true"]{display:none}
.hero .button::after{
  content:"";display:block;flex:0 0 9px;width:9px;height:9px;
  background:linear-gradient(currentColor,currentColor) center/9px 1px no-repeat,
             linear-gradient(currentColor,currentColor) center/1px 9px no-repeat;
}

#works{background:#f8f1e5;color:#183a77}
#works .works-inner{padding-block:clamp(55px,8vw,106px)}
#works .work-heading{display:block;text-align:center;margin:0 auto clamp(28px,5vw,58px)}
#works .work-heading .eyebrow{margin-bottom:10px}
#works .work-heading h2{font-size:clamp(31px,4.7vw,57px)}
#works .arrows{display:none}
#works .rail{display:flex;align-items:flex-start;gap:clamp(12px,2.6vw,35px);overflow:visible;scroll-snap-type:none;padding:0}
#works .rail figure{flex:1 1 0;min-width:0;margin:0}
#works .rail figure:first-child{flex:1.5 1 0}
#works .rail figure:nth-child(2){margin-top:47px}
#works .rail figure:nth-child(3){margin-top:15px}
#works .rail img{height:auto;aspect-ratio:1.06;object-fit:cover;border:5px solid #fffaf0;border-radius:0;box-shadow:0 5px 18px #492a3412;transition:filter .35s ease}
#works .rail figure:first-child img{aspect-ratio:1.17}
#works .rail img:hover{filter:brightness(1.04)}
#works figcaption{font-size:13px;line-height:1.65;margin:10px 0 0;padding:0 0 9px;border-bottom:1px solid #183a7726}
@media(max-width:760px){
  #works .rail{flex-wrap:wrap;gap:19px 12px}
  #works .rail figure{flex:1 1 calc(50% - 6px)}
  #works .rail figure:first-child{flex:0 0 100%}
  #works .rail figure:first-child img{aspect-ratio:1.48}
  #works .rail figure:nth-child(n){margin-top:0}
  #works .rail img{border-width:3px}
  #works figcaption{font-size:12px}
}
