/* One canvas across the page; the original animation contributes only ink. */
:root {
 --kertoko-linen:linear-gradient(#f8f4ebb3,#f8f4ebb3),url('toile-reference.webp');
 --kertoko-linen-size:auto,480px 270px;
 --ink:#2c2923;
 --muted:#574f43;
}
.leaf-motion.kertoko-animated-logo {
 position:relative;
 aspect-ratio:16/9!important;
 background:transparent!important;
 border:0!important;
 box-shadow:none!important;
}
.leaf-motion>img.leaf-animation-image {
 filter:url(#kertoko-canvas-ink)!important;
}
/* Two synchronized views of the supplied GIF let the red seal take the lead. */
.leaf-motion>.leaf-art-picture,.leaf-motion>.leaf-stamp-picture {
 position:absolute;inset:0;display:block;width:100%;height:100%;
}
.leaf-motion>picture>img.leaf-animation-image {
 display:block;position:static;width:100%;height:100%;max-height:none;
 object-fit:fill;aspect-ratio:16/9;animation:none;transform:none;
 filter:url(#kertoko-canvas-ink)!important;
}
.leaf-motion>.leaf-art-picture>img {clip-path:inset(0 39% 0 0)}
.leaf-motion>.leaf-stamp-picture {
 transform:translateX(3%) scale(1.5);transform-origin:70.8% 67.4%;
}
.leaf-motion>.leaf-stamp-picture>img.leaf-animation-image {
 clip-path:inset(40% 14% 8% 61%);
 filter:url(#kertoko-canvas-ink) url(#kertoko-red-thicken)!important;
}
body:not(.login):not(.wp-admin),
body.kertoko-admin.kertoko-feuille-admin,
body.login.kertoko-login.kertoko-feuille-login {
 background-color:#f5f0e5;
 background-image:var(--kertoko-linen);
 background-size:var(--kertoko-linen-size);
 background-position:center top;
 background-repeat:repeat;
 background-attachment:scroll;
}
body:not(.login):not(.wp-admin)::before {display:none}
.leaf-hero-art>.leaf-motion {box-shadow:none}
.brand .header-leaf-logo,
.brand .header-leaf-logo img,
.footer-wordmark .footer-leaf-logo,
.footer-wordmark .footer-leaf-logo img {height:auto;aspect-ratio:16/9}
.brand .header-leaf-logo {width:135px}
.footer-wordmark .footer-leaf-logo {width:180px}
.gesture-feature,.atelier-scene>div {background:transparent}
.art-dialog {
 background-color:#f5f0e5;
 background-image:var(--kertoko-linen);
 background-size:var(--kertoko-linen-size);
 background-position:center top;
 background-attachment:scroll;
}
.back-to-top {
 background:transparent;border:0;box-shadow:none;
}
.back-to-top:hover {background:transparent}
@media(max-width:760px) {
 .primary-navigation {
  background-color:#f5f0e5;
  background-image:var(--kertoko-linen);
  background-size:var(--kertoko-linen-size);
  background-position:center top;
  background-attachment:scroll;
 }
}

/* Native WordPress controls keep readable surfaces over the same woven ground. */
body.kertoko-feuille-admin :is(#wpwrap,#wpcontent,#wpbody,#wpbody-content,#wpfooter),
body.kertoko-feuille-admin #kertoko_welcome,
body.kertoko-feuille-admin .kertoko-welcome,
body.kertoko-feuille-admin .kertoko-admin-art {
 background:transparent;
}
body.kertoko-feuille-admin .kertoko-admin-art {border:0}
body.kertoko-feuille-admin .kertoko-admin-art>.leaf-motion {
 display:block;width:min(100%,373.333px);height:auto;margin-inline:auto;
}
body.kertoko-feuille-admin .kertoko-admin-art>.leaf-motion>.leaf-animation-image {
 width:min(100%,373.333px);height:auto;max-height:none;aspect-ratio:16/9;
}
body.kertoko-feuille-admin .kertoko-welcome-brand>.welcome-leaf-logo,
body.kertoko-feuille-admin .kertoko-welcome-brand>.welcome-leaf-logo img {
 height:auto;aspect-ratio:16/9;
}
@media(max-width:782px) {
 body.kertoko-feuille-admin .kertoko-admin-art>.leaf-motion {width:min(100%,337.777px);height:auto}
 body.kertoko-feuille-admin .kertoko-admin-art>.leaf-motion>.leaf-animation-image {width:min(100%,337.777px);height:auto}
}
@media(max-width:420px) {
 body.kertoko-feuille-admin .kertoko-admin-art>.leaf-motion {width:min(100%,293.333px);height:auto}
 body.kertoko-feuille-admin .kertoko-admin-art>.leaf-motion>.leaf-animation-image {width:min(100%,293.333px);height:auto}
}

body.login.kertoko-feuille-login::before {
 display:none;
}
body.login.kertoko-feuille-login::after {display:none}
body.login.kertoko-feuille-login .kertoko-login-art>.leaf-motion {
 border:0;box-shadow:none;
}
body.login.kertoko-feuille-login .kertoko-login-art>.leaf-motion>.leaf-animation-image {
 width:min(100%,83.555vh);height:auto;max-height:none;margin-inline:auto;
}
body.login.kertoko-feuille-login h1 a {
 position:relative;background:none;height:130px;padding-top:82px;
}
body.login.kertoko-feuille-login h1 a::before {
 content:"";position:absolute;top:0;left:50%;transform:translateX(-50%);
 width:66px;height:72px;background:url('sceau-rouge.png') center/contain no-repeat;
 filter:url(#kertoko-red-thicken);
}
.brand .header-leaf-logo>.leaf-stamp-picture>img.leaf-animation-image,
.footer-leaf-logo>.leaf-stamp-picture>img.leaf-animation-image,
.welcome-leaf-logo>.leaf-stamp-picture>img.leaf-animation-image {
 filter:url(#kertoko-canvas-ink) url(#kertoko-red-small)!important;
}
.back-to-top>img {filter:url(#kertoko-red-small)}
@media(max-width:760px) {
 .brand .header-leaf-logo {width:102px}
}

.work-detail{display:inline-flex;align-items:center;gap:13px;font-size:10px;line-height:1.7;margin-top:12px;color:var(--muted);text-decoration:underline;text-underline-offset:4px}.work-detail:hover{color:var(--red)}.work-breadcrumb{font-size:10px;color:var(--muted);margin-bottom:32px;display:flex;flex-wrap:wrap;gap:6px}.work-page>article>h1{margin-top:20px}.work-page-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:8%;align-items:center;margin-bottom:35px}.work-page-layout figure img{width:100%;height:auto;max-height:650px;object-fit:contain}.work-page-layout figcaption{font-size:10px;color:var(--muted);margin-top:12px}.work-author{font-size:12px;margin:24px 0;color:var(--muted)}.work-availability{font-size:10px;color:var(--muted);margin-top:18px}@media(max-width:760px){.work-page-layout{grid-template-columns:1fr;gap:28px}.work-page-layout figure img{max-height:470px}}

.leaf-hero-heading>p:not(.eyebrow):not(.leaf-hero-intro){font-family:var(--serif);font-size:23px;font-style:italic;color:var(--muted)}@media(max-width:760px){.leaf-hero-heading>p:not(.eyebrow):not(.leaf-hero-intro){font-size:20px}}

/* Enlarge the header identity by framing the ink, not the unused canvas. */
.site-header {height:184px;gap:24px}
.brand {gap:18px;min-width:0}
.brand .brand-type {white-space:nowrap}
.header-logo-frame {
 --header-logo-width:220px;
 position:relative;display:block;overflow:hidden;
 width:var(--header-logo-width);
 height:calc(var(--header-logo-width) * .696223);
 flex:0 0 var(--header-logo-width);
}
.brand .header-logo-frame>.header-leaf-logo {
 position:absolute;
 width:calc(var(--header-logo-width) * 1.576355);
 height:auto;max-width:none;margin:0;
 left:calc(var(--header-logo-width) * -.374384);
 top:calc(var(--header-logo-width) * -.141215);
}
@media(min-width:761px) and (max-width:1100px) {
 .site-header {height:156px;gap:20px}
 .header-logo-frame {--header-logo-width:184px}
 .brand {gap:12px}
 .brand .brand-type {font-size:31px}
 .primary-navigation {gap:18px}
 .nav-list {gap:18px}
 .social-nav {gap:10px;padding-left:14px}
}
@media(min-width:761px) and (max-width:920px) {
 .site-header {height:138px;gap:16px}
 .header-logo-frame {--header-logo-width:150px}
 .brand {gap:10px}
 .brand .brand-type {font-size:28px}
 .primary-navigation {gap:14px}
 .nav-list {gap:14px}
 .social-nav {gap:8px;padding-left:12px}
 .social-nav .gyotaku-social {width:23px;height:25px}
}
@media(max-width:760px) {
 .site-header {height:140px;gap:12px}
 .header-logo-frame {--header-logo-width:clamp(120px,35vw,164px)}
 .brand {gap:10px}
 .brand .brand-type {font-size:clamp(24px,7vw,30px)}
 .brand .brand-type>span {font-size:5.5px}
 .primary-navigation {top:140px;max-height:calc(100dvh - 140px)}
}
@media(max-width:370px) {
 .site-header {height:128px;gap:8px}
 .header-logo-frame {--header-logo-width:112px}
 .brand {gap:8px}
 .brand .brand-type {font-size:24px}
 .primary-navigation {top:128px;max-height:calc(100dvh - 128px)}
}

/* 1.3.2 — replayable entry sequence, preserving the enlarged header frame. */
.leaf-motion[data-logo-motion="loading"],.brand-custom[data-logo-motion="loading"]{visibility:hidden}
.brand-custom img{max-height:132px;max-width:250px;width:auto}
.logo-replay{padding:0;border:0;border-bottom:1px solid currentColor;background:transparent;color:var(--red);font:inherit;font-size:9px;letter-spacing:.06em;line-height:1.6;cursor:pointer}
.logo-replay>span{font-size:14px;margin-left:6px}.logo-replay:hover{color:var(--ink)}.logo-replay:focus-visible{outline:2px solid var(--red);outline-offset:5px}
@media(max-width:760px){.brand-custom img{max-height:100px;max-width:160px}}

/* The centred wordmark stays serif; compact menu labels echo the red seal. */
@font-face{font-family:'Kertoko Tampon';src:url('kertoko-tampon-regular.woff2') format('woff2'),url('kertoko-tampon-regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
.site-header .brand-type{font-family:var(--serif);font-size:52px;letter-spacing:.055em;line-height:1}
.site-header .brand-type>span{font-size:9px;letter-spacing:.18em;margin-top:11px;line-height:1.5}
.nav-list a{font-family:'Kertoko Tampon',sans-serif;font-size:18px;font-weight:400;letter-spacing:.065em;line-height:1.9;white-space:nowrap;text-transform:uppercase}
.primary-navigation{gap:28px}.nav-list{gap:21px}.social-nav{padding-left:22px;gap:14px}
.menu-toggle{font-family:'Kertoko Tampon',sans-serif;font-size:17px;font-weight:400;letter-spacing:.06em;text-transform:uppercase}
@media(max-width:1540px){
 .site-header{height:156px;gap:20px}.header-logo-frame{--header-logo-width:184px}.brand{gap:16px}
 .site-header .brand-type{font-size:46px}.site-header .brand-type>span{font-size:8.5px}
 .menu-toggle{display:flex;align-items:center;gap:13px;background:transparent;border:0;padding:10px 0 10px 10px}
 .menu-toggle i{width:20px;height:9px;border-top:1px solid;border-bottom:1px solid;position:relative}
 .menu-toggle[aria-expanded=true] i{border-bottom:0;transform:rotate(45deg);height:1px}
 .menu-toggle[aria-expanded=true] i:after{content:"";position:absolute;inset:-1px 0 0;border-top:1px solid;transform:rotate(90deg)}
 .primary-navigation{display:none;position:absolute;top:156px;left:calc(-1 * var(--gutter));right:calc(-1 * var(--gutter));padding:24px var(--gutter) 34px;background-color:#f5f0e5;background-image:var(--kertoko-linen);background-size:var(--kertoko-linen-size);background-attachment:scroll;box-shadow:0 20px 20px #34352d15;max-height:calc(100dvh - 156px);overflow:auto}
 .primary-navigation.open{display:block}.nav-list{display:block}.nav-list li{border-bottom:1px solid var(--rule)}
 .nav-list a{font-size:21px;line-height:2.2;display:inline-block}.social-nav{border:0;padding:25px 0 0;gap:22px}
}
@media(max-width:760px){
 .site-header{height:140px;gap:10px}.header-logo-frame{--header-logo-width:clamp(112px,32vw,164px)}.brand{gap:9px}
 .site-header .brand-type{font-size:clamp(32px,8.6vw,43px)}.site-header .brand-type>span{font-size:clamp(6.5px,1.7vw,8px);letter-spacing:.04em;margin-top:8px}
 .menu-toggle{font-size:17px;gap:9px;padding-left:4px}.menu-toggle i{width:18px}
 .primary-navigation{top:140px;max-height:calc(100dvh - 140px)}
}
@media(max-width:370px){
 .site-header{height:128px;gap:7px}.header-logo-frame{--header-logo-width:96px}.brand{gap:6px}
 .site-header .brand-type{font-size:30px}.site-header .brand-type>span{font-size:6.5px;letter-spacing:.02em}
 .menu-toggle{font-size:16px;gap:7px}.menu-toggle i{width:16px}
 .primary-navigation{top:128px;max-height:calc(100dvh - 128px)}
}

/* A balanced header: seal at the left, name and signature on the centre line. */
.brand-wordmark{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);text-align:center;display:block}
.brand-wordmark .brand-type{display:block}.brand-wordmark .brand-type>span{display:block;white-space:nowrap}
@media(max-width:760px){.header-logo-frame{--header-logo-width:clamp(80px,25vw,150px)}.site-header .brand-type{font-size:clamp(32px,8.6vw,43px)}}
@media(max-width:370px){.header-logo-frame{--header-logo-width:80px}.site-header .brand-type{font-size:28px}}

.footer-shop{display:flex;flex-wrap:wrap;gap:12px 30px;align-items:center;justify-content:space-between;border-top:1px solid var(--rule);padding:22px 0}.footer-shop>span{font-size:10px;color:var(--muted)}

/* The photographed red pigment keeps the original woven gaps in its alpha. */
.leaf-motion>.leaf-real-stamp {
 --kertoko-stamp-crop-top:53.3%;
 --kertoko-stamp-crop-right:21.5%;
 --kertoko-stamp-crop-bottom:18.2556%;
 --kertoko-stamp-crop-left:62.5%;
}
.leaf-motion>.leaf-real-stamp>img.leaf-real-stamp-image {
 position:absolute;inset:auto;
 left:62.5%;top:53.3%;width:16%;height:28.4444%;
 max-width:none;max-height:none;aspect-ratio:1;object-fit:contain;
 filter:none!important;clip-path:none;animation:none;transform:none;
}
/* Wait for the real seal to enter the viewport before depositing its ink. */
html.kertoko-motion-enabled [data-kertoko-motion][data-logo-motion="pending"]>.leaf-stamp-picture:not(.kertoko-stamp-flight) {opacity:0}
.leaf-motion.kertoko-stamp-in-motion,
.header-logo-frame.kertoko-stamp-in-motion {overflow:visible}

/* Small stamped menu labels: only ink receives the texture, never the focus ring. */
.primary-navigation .nav-list li{width:max-content;max-width:100%;border:0;--menu-stamp-angle:-.25deg}
.primary-navigation .nav-list li:nth-child(3n+2){--menu-stamp-angle:.3deg}
.primary-navigation .nav-list li:nth-child(3n){--menu-stamp-angle:-.1deg}
.nav-list a,.menu-toggle{position:relative;isolation:isolate;color:var(--red,#a44838);transition:color .16s ease,transform .16s ease}
.nav-list a{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:8px 12px;line-height:1.15;transform:rotate(var(--menu-stamp-angle,-.25deg))}
.nav-list a::after{content:none}
.nav-list a::before,.menu-toggle::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background-color:currentColor;opacity:.9;-webkit-mask:url('menu-frame.svg') center/100% 100% no-repeat;mask:url('menu-frame.svg') center/100% 100% no-repeat}
.nav-list a>.menu-stamp-label,.menu-toggle>.menu-stamp-label{display:inline-block;-webkit-mask:url('menu-mask.svg') 0 0/64px 64px repeat;mask:url('menu-mask.svg') 0 0/64px 64px repeat}
.menu-toggle{padding:8px 11px;min-height:36px}
.nav-list a:hover,.nav-list a:focus-visible,.nav-list a[aria-current],.nav-list .current-menu-item>a,.menu-toggle:hover,.menu-toggle:focus-visible,.menu-toggle[aria-expanded="true"]{color:#7f3025;transform:translateY(1px) rotate(0)}
.nav-list a:hover::before,.nav-list a:focus-visible::before,.nav-list a[aria-current]::before,.nav-list .current-menu-item>a::before,.menu-toggle:hover::before,.menu-toggle:focus-visible::before,.menu-toggle[aria-expanded="true"]::before{opacity:1}
@media(min-width:1541px){.primary-navigation{gap:18px}.primary-navigation .nav-list{gap:10px}.primary-navigation .social-nav{padding-left:16px;gap:12px}}
@media(max-width:1540px){.primary-navigation .nav-list li+li{margin-top:10px}.nav-list a{min-height:44px;line-height:1.2;padding:8px 13px}}
